Paul,
Thank you for your jianpu3.ly
I try to use it in key D   the score display correctly, but the jianpu display 
differently.  I don't know scheme. I am hoping in your spare time you can 
update it.  Very much appreciated.
Immanuel,Ming  


     On Tuesday, April 21, 2015 12:06 AM, Paul Morris <p...@paulwmorris.com> 
wrote:
   

 Hi Ming, 

> On Apr 19, 2015, at 8:22 PM, MING TSANG <tsan...@rogers.com> wrote:
> 
> It is terrific. Now only one input of notes is generating Voice Staff for 
> jianpu notation and new Staff for music score.  Thank you.
> 
> I try to put  r8  r16  r32 and I got the following error:
> Starting lilypond-windows.exe 2.19.17 [sample_jianpu2.ly]...
> Processing `K:/sample_lily-code/sample_jianpu2.ly'
> Parsing...
> Interpreting music...[8]
> warning: type check for `stencil' failed; value `#<unspecified>' must be of 
> type `stencil'
> fatal error: typecheck failed
> Exited with return code 1.

Thanks for catching this.  I’ve fixed it in the next version (jianpu3), 
attached to my other message.

> Thank you again for making this possible. I have been waiting this for years, 
> since v2.12.  Silas's and David's solution require to code twice - one for 
> jianpu and one for music score.  Your is only one input and straight forward. 
> Excellent.

Glad I could help!  I’m sure it’s not yet as mature or complete as Silas’s 
approach, but it can be improved and refined over time.  

Cheers,
-Paul


  
\version "2.19.17"
\language "english"

\header {
  title = "天父必保守"
  subtitle = "Heavenly Father Conversative"
  composer = "曲 詞 : 鄒立基"
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size "letter")
}

\layout {
  \context {
    \Voice
    \consists "Melody_engraver"
    \override Stem #'neutral-direction = #'()
  }
}
\include "include_jianpu3.ily"
globalD = {
  \key d \major
  \numericTimeSignature
  \time 4/4
  \tempo 4=80
}
globalC = {
  \key   c \major
  \numericTimeSignature
  \time 4/4
  \tempo 4=80
}

chordNames = \chordmode {
  %\global
  % Chords follow here.
  
}

melodyC =   {
  %\global
  e'4 8 d'8 e'4 a4 |%m01
  e'8 g'8 e'8d'8 e'2 |%m02
  c'4. b8 a'4 a'4 |%m03
  a'8g'8 d'8e'8 d'2 |%m04
}
melodyD =   {
  %\global
  fs'4 8 e'8 fs'4 b4 |%m01
  fs'8 a'8 fs'8e'8 fs'2 |%m02
  d'4. cs'8 b'4 b'4 |%m03
  b'8a'8 e'8fs'8 e'2 |%m04
}

verseOne = \lyricmode {
  \set stanza = "1."
  mi mi re mi la    mi sol mi re mi    do ti la la    la sol re mi re
  
}

verseTwo = \lyricmode {
  \set stanza = "2."
  % Lyrics follow here.
  
}
jianpuVoiceD = \new Staff \with {
      \consists \Jianpu_note_head_engraver
      \consists \Jianpu_rest_engraver
      \consists \Jianpu_accidental_engraver
      \override Clef.stencil = ##f
      \remove Staff_symbol_engraver
      \override StaffSymbol.line-count = #0
      \override BarLine.bar-extent = #'(-2 . 2)
      \override Staff.TimeSignature.style = #'numbered
      \override Staff.Stem.transparent = ##t
      \override Stem.length = #0
      \override Rest.Y-offset = #-1
      \override NoteHead.Y-offset = #-1
      \override Beam.transparent = ##t
      \override Stem.direction = #UP
      \override Beam.beam-thickness = #0
      \override Beam.length-fraction = #0
      \override Tie.staff-position = #2.5
      \override TupletBracket.bracket-visibility = ##t
      \tupletUp
      \hide Stem
      \hide Beam
    }
    \new Voice {
      \globalD \melodyD
    }
jianpuVoiceC = \new Staff \with {
      \consists \Jianpu_note_head_engraver
      \consists \Jianpu_rest_engraver
      \consists \Jianpu_accidental_engraver
      \override Clef.stencil = ##f
      \remove Staff_symbol_engraver
      \override StaffSymbol.line-count = #0
      \override BarLine.bar-extent = #'(-2 . 2)
      \override Staff.TimeSignature.style = #'numbered
      \override Staff.Stem.transparent = ##t
      \override Stem.length = #0
      \override Rest.Y-offset = #-1
      \override NoteHead.Y-offset = #-1
      \override Beam.transparent = ##t
      \override Stem.direction = #UP
      \override Beam.beam-thickness = #0
      \override Beam.length-fraction = #0
      \override Tie.staff-position = #2.5
      \override TupletBracket.bracket-visibility = ##t
      \tupletUp
      \hide Stem
      \hide Beam
    }
    \new Voice {
      \globalC \melodyC
    }
\markup { music in C.....}    
\score {
  <<
    \jianpuVoiceC
    %\new ChordNames \chordNames
    \new Staff = "melo" { \globalC  \melodyC }
    \addlyrics { \verseOne }
    \addlyrics { \verseTwo }
  >>
  \layout { }
  \midi { }
}
\markup { }
\markup { }
\markup { music in D   expecting to sing as C .. but now jianpu sing as fa (4) }
\markup { however midi sound correct ac C in key D but jianpu show 4 (fa) -- should be mi (3) } 

\score {
  <<
    \jianpuVoiceD
    %\new ChordNames \chordNames
    \new Staff = "melo" { \globalD \melodyD }
    \addlyrics { \verseOne }
    \addlyrics { \verseTwo }
  >>
  \layout { }
  \midi { }
}

Attachment: include_jianpu3.ily
Description: Binary data

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to