Hi Anders, simply delete midi in your score and create a new one just for the midi:
\score { \new StaffGroup << \new Staff \keepWithTag myStaff {\melody } \new TabStaff \keepWithTag myTab { \melody } >> \layout { } } \score { \new Staff \keepWithTag myStaff \melody \midi { } } Cheers, Pierre 2015-03-08 16:53 GMT+01:00 and...@andis59.se <and...@andis59.se>: > I have a peace of music that has a Staff and a TabStaff but the music is > not the same. How would I create the midi so it only plays the tag that is > used in the Staff > > In the sample I only want MIDI for the tag myStaff. > > // Anders > > Sample code > %% Start > \version "2.19.15" > > \header { > title = "Test of MIDI" > } > > global = { > \time 4/4 > \key c \major > \tempo 4=100 > } > > > melody = { > \global > \tag myStaff { c'8 d' e' f' g' f' e' d' c'2 r2} > \tag myTab { c'8 d' e' e' g' e' e' d' c'2 r2 } > } > > > \score { > \new StaffGroup << > \new Staff > \keepWithTag myStaff {\melody } > \new TabStaff > \keepWithTag myTab { \melody } > >> > \layout { } > \midi { } > } > %% end > -- > English isn't my first language. > So any error or strangeness is due to the translation. > Please correct my English so that I may become better. > > _______________________________________________ > 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