RedMstGUI gui window for RedMst

escape key is the same as RedMst.next.

left/right arrow keys is next and prev.

space key toggles play and stop.

use this class for lowest cpu usage.

gui versions 2 and 3 adds metronome and transport view but takes a little bit more to update.

see also [RedMst], [RedMstGUI2], [RedMstGUI3]

*new(size, skin)

size is fontsize. default= 24

skin is a GUI.skin. if not gives a red skin will be provided.

<>dur

how often redraw the window in beats. default= 0.25. which means every 16th note.

it uses RedMst.clock.

//--simple example

(

s.waitForBoot{

RedMst.clear;

RedMst.clock= TempoClock(140/60);

RedMst.quant= 8;

RedMstGUI(20);

RedTrk(

\bass,

Pbind(\degree, Pseq([0, 5], inf), \octave, 4),

#[0, 1, 2, 3]

);

RedTrk(

\melody,

Pbind(\degree, Pseq([0, 5, 2, 3, 3, 1], inf), \dur, Pseq([0.25, 0.25, 0.5], inf)),

#[1, 2, 5]

);

RedTrk(

\melody2,

Pbind(\degree, Pseq([7, 6, 4, 3], inf), \dur, 2, \octave, 6),

#[2, 3]

);

}

)

RedMst.play;

RedMst.next;

RedMst.next;

RedMst.quant= 2;

RedMstGUI(64); //add more guis

RedMstGUI(24, GUI.skins.default);

RedMstGUI(9);

RedMst.next;

RedMst.stop;

RedMst.clear;