|
|
|
@ -24,9 +24,11 @@
|
|
|
|
|
leadSpace = (3 - measureString.size).collect({" "}).join;
|
|
|
|
|
leadSpace ++ measureString ++ "." ++ beatString
|
|
|
|
|
};
|
|
|
|
|
// [-30, -105, -104].asAscii and [-30, -105, -113].asAscii are unicode inverse bullet and normal bullet, respectively
|
|
|
|
|
metronomeStringFunc = { arg beat; if(beat == 1, {[-30, -105, -104].asAscii}, {[-30, -105, -113].asAscii}) };
|
|
|
|
|
metronomeColorFunc = { arg beat; if(beat == 1, {Color.red},{Color.black}) };
|
|
|
|
|
// [-30, -105, -104] and [-30, -105, -113] are unicode inverse bullet and normal bullet, respectively
|
|
|
|
|
metronomeStringFunc = { arg beat; if(beat == 1,
|
|
|
|
|
{[-30, -105, -104].collect({arg int; int.asAscii}).as(String)},
|
|
|
|
|
{[-30, -105, -113].collect({arg int; int.asAscii}).as(String)})};
|
|
|
|
|
metronomeColorFunc = { arg beat; if(beat == 1, {Color.red},{Color.black})};
|
|
|
|
|
|
|
|
|
|
win = Window("Counterfeiting in Colonial Connecticut", Rect(500, 500, 1100, 575), false).front;
|
|
|
|
|
masterView = {
|
|
|
|
@ -195,7 +197,7 @@
|
|
|
|
|
[VLayout(
|
|
|
|
|
HLayout(clock = StaticText(win).string_(" 1.1").font_(Font("Monaco", 200)),
|
|
|
|
|
StaticText(win).string_("|").font_(Font("Monaco", 200)),
|
|
|
|
|
metronome = StaticText(win).string_([-30, -105, -104].asAscii).font_(Font("Monaco", 300)).stringColor_(Color.red)),
|
|
|
|
|
metronome = StaticText(win).string_([-30, -105, -104].collect({arg int; int.asAscii}).as(String)).font_(Font("Monaco", 300)).stringColor_(Color.red)),
|
|
|
|
|
nil, transport, nil,
|
|
|
|
|
HLayout(
|
|
|
|
|
tempo = TextField(view).string_("90"),
|
|
|
|
|