\version "2.17.0" \language "english" global = { \key c \major \numericTimeSignature \time 4/4 %\partial 4 \tempo 4=100 } nrS = \override NoteHead #'color = #red nbS = \override NoteHead #'color = #blue nE = \revert NoteHead #'color music = { \parallelMusic #'( Right Left) { \relative c'{ \global 4 8 e8 4 4 1 \nrS 2\arpeggio 2\arpeggio 2\arpeggio 2\arpeggio } |\break % right \relative c{ \global d,8 a'8 f'4 2 c8 g'8 d'4 e2 \clef treble 2\arpeggio 2\arpeggio 2\arpeggio 2\arpeggio } | % left % bar Righ \relative c'{ 4 f8 e8 2 \nE 2 r4 c8 e8 g4. a8 g4 c4 c4. a8 g4 c,8 d8 4. 8 4 4 <<{c1}\\{e,4 f8 d8 e2}>> \bar"|." } | % right \relative c{ d'8 a'4. \clef bass 2 c,8 g'8 d'4 c2 c,8 g'8 e'4 e,8 c'8 g'4 f,8 c'8 f4 e,8 c'8 e4 g,,8 e'8 g4 2 <<{r8 g8 a8 f8 g2}\\{c,1}>> } | % left } } musicX = { \parallelMusic #'( RightX LeftX) { \relative c'{ \global 4 8 e8 4 4 1 \nbS \ottava #1 2\arpeggio 2\arpeggio 2\arpeggio 2\arpeggio } |\break % right \relative c{ \global d,8 a'8 f'4 2 c8 g'8 d'4 e2 \clef treble 2\arpeggio 2\arpeggio 2\arpeggio 2\arpeggio } | % left % bar \relative c'{ 4 f8 e8 2 \ottava #0 \nE 2 r4 c8 e8 g4. a8 g4 c4 c4. a8 g4 c,8 d8 4. 8 4 4 <<{c1}\\{e,4 f8 d8 e2}>> \bar"|." } | % right \relative c{ d'8 a'4. \clef bass 2 c,8 g'8 d'4 c2 c,8 g'8 e'4 e,8 c'8 g'4 f,8 c'8 f4 e,8 c'8 e4 g,,8 e'8 g4 2 <<{r8 g8 a8 f8 g2}\\{c,1}>> } | % left } } chordNames = \chordmode { \global d2:m7 g2:7 c1 e2 a2:m f2 c2/e % 63-66 d2:m f2/g c1 c2 c2/e f2 c2/e c2/g g2:7 c1 % 67-72 } pianoPart = \new PianoStaff \with { %instrumentName = "Pno." %shortInstrumentName = "Pno." } << \new ChordNames \chordNames \set PianoStaff.connectArpeggios = ##t \new Staff = "right" \with { midiInstrument = "acoustic grand" } \Right \new Staff = "left" \with { midiInstrument = "acoustic grand" } { \clef bass \Left } >> \markup " (1) : code without octave --------- every thing is OK to the hardcopy" \score { << \pianoPart >> \layout { \context { \RemoveEmptyStaffContext \override VerticalAxisGroup #'remove-first = ##t } } \midi { } } pianoPartX = \new PianoStaff \with { %instrumentName = "Pno." %shortInstrumentName = "Pno." } << \new ChordNames \chordNames \set PianoStaff.connectArpeggios = ##t \new Staff = "RightX" \with { midiInstrument = "acoustic grand" } \RightX \new Staff = "LeftX" \with { midiInstrument = "acoustic grand" } { \clef bass \LeftX } >> \markup " (2) : I put in \ottava #1 and \ottava #0 -- previous (red note head) become one octave lower ( blue note head)" \score { << \pianoPartX >> \layout { \context { \RemoveEmptyStaffContext \override VerticalAxisGroup #'remove-first = ##t } } \midi { } }