Hi David, thanks, sorry for not noticing this in your previous mail...
-- Orm Am Donnerstag, den 08. Mai 2014 um 17:50:15 Uhr (+0200) schrieb David Kastrup: > Orm Finnendahl <orm.finnend...@hfmdk-frankfurt.de> writes: > > > Hi David, > > > > below is a minimal example. One of the disadvantages of this notation > > is obvious, if you render the file: Both parts are in the wrong > > octave. The "\relative c'" has to get moved inside the brackets of the > > \bclarinet and \eb-clarinet calls in order to correct this. I'd much > > prefer not having to enclose the music of the different instruments by > > brackets in the score section at all. > > > > Is there any clean workaround? > > I did mention make-relative in the last reply and provided a full > example. It's equally applicable to this case. > > \version "2.19.0" > > bclarinet = > #(define-music-function (parser location music) > (ly:music?) > (make-relative (music) music > #{ > \instrumentSwitch "b-clarinet" > \transpose c d $music > #})) > > ebclarinet = > #(define-music-function (parser location music) > (ly:music?) > (make-relative (music) music > #{ > \instrumentSwitch "eb-clarinet" > \transpose es c $music > #})) > > \addInstrumentDefinition #"eb-clarinet" > #`((instrumentTransposition . ,(ly:make-pitch 0 3 -1)) > (shortInstrumentName . "Es-Kl") > (clefGlyph . "clefs.G") > (middleCPosition . -6) > (clefPosition . -2) > (instrumentCueName . "Es-Kl") > (midiInstrument . "clarinet")) > > \addInstrumentDefinition #"b-clarinet" > #`((instrumentTransposition . ,(ly:make-pitch -1 7 -1)) > (shortInstrumentName . "Kl") > (clefGlyph . "clefs.G") > (middleCPosition . -6) > (clefPosition . -2) > (instrumentCueName . "Kl") > (midiInstrument . "clarinet")) > > \score { > \relative c' { > \clef G > \ebclarinet { c d e f } > \bclarinet { c d e f } > } > } > > > -- > David Kastrup > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user