lilypond-user
[Top][All Lists]
Advanced

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

Re: Lilypond structure / implicit - explicit / with statement


From: Bernard
Subject: Re: Lilypond structure / implicit - explicit / with statement
Date: Mon, 04 Apr 2016 17:36:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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
}

I think I am getting quite close now. Thanks,

Greetings

Bernard





reply via email to

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