lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notes in voiceone corrupt voicethree after voice splitting?


From: Nick Payne
Subject: Re: Notes in voiceone corrupt voicethree after voice splitting?
Date: Wed, 25 Mar 2015 07:57:03 +1100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 25/03/2015 07:20, address@hidden wrote:
       Your attached code still has the note heads in voiceThree and voiceSix
changed to black harmonics, when there is a black harmonic in voiceOne

Just change Staff.NoteHead to NoteHead, and it fixes the problem:

\version "2.18.2"

voiceFive = #(context-spec-music (make-voice-props-set 4) 'Voice)
voiceSix = #(context-spec-music (make-voice-props-set 5) 'Voice)

H = \once \override NoteHead.style = #'harmonic-black

voiceone = \relative c'' {
    \clef "G_8"
    \time 4/4
    \key g \major
    b4 b \H b b |
}

voicetwo = \relative c {
    \set harmonicDots = ##t
    e'8\rest d2..\harmonic |
}

voicethree = \relative c' {
     \override NoteColumn.force-hshift = #0.0
     s4 g4^~ g2 |
}

voicefour = \relative c {
    c1 |
}

voicefive = \relative c {
}

voicesix = \relative c' {
      g4\rest g4
     \once \override NoteColumn.force-hshift = #1.0
         fis2 |
}

 guitar = << \voiceone \\ \voicetwo \\ \voicethree \\ \voicefour \\
\voicefive \\ \voicesix >>

#(set-global-staff-size 19)

\score { \new Staff \guitar }

Attachment: score.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]