lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I want MIDI only for a specific tag


From: address@hidden
Subject: I want MIDI only for a specific tag
Date: Sun, 08 Mar 2015 16:53:24 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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.

Attachment: Test-of-MIDI.ly
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]