On 04.04.2016 17:36, Bernard wrote:
On 04-04-16 16:51, Simon Albrecht wrote:
On 04.04.2016 12:46, Bernard wrote:
I have attached some more real live code using /with and and example I tried to skip the /with section and assign properties directly, which fails.

instrumentName, drumStyleTable &c. are context properties. Inside music, these are set with the \set command, e.g.
\set DrumStaff.instrumentName = "foo"
Note that a string doesn’t need the # before.

HTH, Simon

Hi Simon,

Thanks, I could do set the properties.
But when the voice is called I get a Error : unexpected MUSIC_IDENTIFIER

when using "\with" I did not get this error.

\score {
\new DrumStaff {
\override DrumStaff.StaffSymbol.line-count = #3
\set DrumStaff.instrumentName = "Djembe 2"
\set DrumStaff.drumStyleTable = #(alist->hash-table djembe)
}
\djEen
}

Are you familiar with the whole of the Learning Manual? If not, you should read it thoroughly. \score {} can only contain /one/ music expression. Your example has two music expressions, the second without any link to the first. You need to either bind them together as sequential {} or simultaneous <<>> music – in this case it doesn’t really matter which.

HTH, Simon

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to