<-- previous page     Table of Contents    Index    next page -->

Deriving cue notes from another staff

Sometimes you may want to have the notes on one staff be used as cue notes on another staff, typically to help the players of one instrument know when they should come in, by showing what another instrument will be playing just before their entrance. One way to do this is to define a macro. In this example, the macro is called NAC, for "normal and cue." The first parameter is the staff/voice that should get normal sized notes, the second is the staff/voice that should get cue sized notes, and the third is the Mup input for the notes themselves. Since REG and CUE parameters could each be passed a list, if multiple instruments are playing in unison, they could all in be listed as REG, and if you wanted multiple staffs to get the same cues, they could all be listed as CUE, as shown in this example:

define NAC(REG, CUE, INPUT)
	REG: INPUT
	CUE: [cue]... INPUT
@

score
	staffs=4
staff 3
	// it's okay if some of the staffs are invisible
	visible=n
music

NAC(1&3, 2&4, c;f;a;g;)
bar

Picture of Mup output


   <-- previous page    Table of Contents    Index    next page -->