RedTapTempoGUI average tempo of the last n taps/clicks
see also: RedMixGUI
class methods:
*new(clock, n, timeout, server, parent, position)
clock - provide a TempoClock. nil creates a TempoClock internally.
n - number of taps to average. default= 4.
timeout - time after n counter is reset. default= 3 seconds.
server - for monitor synth. default= Server.default.
parent - window, composite view or nil
position - Point or nil
instance methods:
tempo
in bps.
tempo_(bps)
set tempo.
monitor_(bool)
monitorAmp_(val)
monitorBus_(index)
default monitor bus is 7.
close
closes the window if open and stop internal task.
def
return the synthdef.
class variables:
*def
instance variables:
<parent
<clock
//--
a= RedTapTempoGUI();
a.tempo;
a.tempo= 2;
a.monitor= true;
a.monitorBus= 0;
a.monitorAmp= 0.2;
a.monitor= false;
a.close;
//--
(
w= Window("hgf", Rect(100, 200, 500, 500));
w.front;
v= CompositeView(w, Rect(10, 10, 400, 400)).background_(Color.blue).decorator= FlowLayout(Rect(0, 0, 300, 300));
c= TempoClock(1.4);
a= RedTapTempoGUI(c, parent:v);
)
c.tempo= 2.2