Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75b9609
commit d9ed2a0
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
\version "2.16.2" | ||
|
||
\markup \justify { | ||
Below i've defined custom contexts: SopranoStaff and SopranoVoice. | ||
However, they don't work with midi - first i get a | ||
\typewriter "warning: cannot find or create new `SopranoVoice'" | ||
and ten "\lyricsto" fails, saying that it \typewriter "cannot find Voice `sop'". | ||
I suppose that because of some Midi bug a Voice is created instead of | ||
SopranoVoice, and then "\lyricsto" cannot find the SopranoVoice | ||
it is supposed to find. | ||
|
||
Without "\midi" block eveerything works fine. | ||
} | ||
|
||
\layout { | ||
\context { | ||
\ChoirStaff | ||
\accepts "SopranoStaff" | ||
} | ||
|
||
\context { | ||
\Staff | ||
\type "Engraver_group" | ||
\name "SopranoStaff" | ||
\alias "Staff" | ||
|
||
\accepts "SopranoVoice" | ||
\defaultchild "SopranoVoice" | ||
|
||
instrumentName = "Soprano" | ||
} | ||
|
||
\context { | ||
\Voice | ||
\name "SopranoVoice" | ||
\alias "Voice" | ||
} | ||
} | ||
|
||
\score { | ||
<< | ||
\new SopranoVoice = sop { c' b' a' f' } | ||
\new Lyrics \lyricsto sop \lyricmode { la la la la } | ||
>> | ||
\layout { } | ||
\midi { } | ||
} |