On 01/03/17 18:02, Peter Gentry wrote:
It would be nice to be able to change the clef at the same time as
transposing.
I often forget one or other and it is easier to input data in the
original clef for checking input.
Having started down this road it has become a challenge…..Any help for
a ageing muso who has forgotten almost all the scheme/lily learnt last
year very gratefully received.
No one picked up this one. Perhaps a way to tackle this problem would be
to define specific contexts for the instruments that automatically have
the right properties. It's worth reading through all the context
properties to see which you should set.
--
Timothy Lanfear, Bristol, UK.
\version "2.19.56"
\layout {
\context {
\Staff
\name "BassClt"
\alias Staff
\clef "treble"
instrumentName = \markup { \center-column { "Bass" "Clarinet" } }
shortInstrumentName = "BCl"
}
\context {
\Staff
\name "Bassoon"
\alias Staff
\clef "bass"
instrumentName = "Bassoon"
shortInstrumentName = "Bsn"
}
\inherit-acceptability "BassClt" "Staff"
\inherit-acceptability "Bassoon" "Staff"
}
\midi {
\context {
\Staff
\name "BassClt"
\alias Staff
instrumentTransposition = #(ly:make-pitch -2 7 -1)
midiInstrument = "clarinet"
}
\context {
\Staff
\name "Bassoon"
\alias Staff
midiInstrument = "bassoon"
}
\inherit-acceptability "BassClt" "Staff"
\inherit-acceptability "Bassoon" "Staff"
}
music = { \key c\major c4 d e f g a b c' }
\score {
\new StaffGroup <<
\new Bassoon { \music }
\new BassClt { \transpose bes c'' \music }
>>
\layout{}
\midi{}
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user