Bernard <lilyp...@bernardhulsman.nl> writes: > 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,
I have no idea what you think you are doing but I have severe doubts that you are getting close to anything useful. It looks to me like you are just randomly putting syntactic entities into a bag and shake. Have you read through the Learning Manual? It should tell you how LilyPond organizes its input. At any rate, \new DrumStaff is optionally followed by a context modification before the single music expression it typesets in the DrumStaff context. In the above case, that music expression is { \override ... djembe) }, so \djEen has nothing whatsoever to do with the DrumStaff and is just a spurious expression in the \score. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user