|
|
@ -27,9 +27,10 @@
|
|
|
|
if(sec.size == 1, {sec = "0" ++ sec}, {});
|
|
|
|
if(sec.size == 1, {sec = "0" ++ sec}, {});
|
|
|
|
min ++ ":" ++ sec
|
|
|
|
min ++ ":" ++ sec
|
|
|
|
};
|
|
|
|
};
|
|
|
|
// [-30, -105, -104].asAscii and [-30, -105, -113].asAscii are unicode inverse bullet and normal bullet, respectively
|
|
|
|
// [-30, -105, -104] and [-30, -105, -113] are unicode inverse bullet and normal bullet, respectively
|
|
|
|
metronomeStringFunc = { arg div; case {div % 20 < 2}
|
|
|
|
metronomeStringFunc = { arg div; case {div % 20 < 2}
|
|
|
|
{[-30, -105, -104].asAscii} {div % 4 < 2} {[-30, -105, -113].asAscii} {true} {" "} };
|
|
|
|
{[-30, -105, -104].collect({arg int; int.asAscii}).as(String)} {div % 4 < 2}
|
|
|
|
|
|
|
|
{[-30, -105, -113].collect({arg int; int.asAscii}).as(String)} {true} {" "} };
|
|
|
|
metronomeColorFunc = { arg div; case {div % 20 < 2} {Color.red} {div % 4 < 2} {Color.blue} {true} {Color.black} };
|
|
|
|
metronomeColorFunc = { arg div; case {div % 20 < 2} {Color.red} {div % 4 < 2} {Color.blue} {true} {Color.black} };
|
|
|
|
|
|
|
|
|
|
|
|
~appStatusFunc = Task({
|
|
|
|
~appStatusFunc = Task({
|
|
|
@ -102,7 +103,7 @@
|
|
|
|
[VLayout(generator, nil,
|
|
|
|
[VLayout(generator, nil,
|
|
|
|
HLayout(clock = StaticText(win).string_("00:00").font_(Font("Monaco", 200)),
|
|
|
|
HLayout(clock = StaticText(win).string_("00:00").font_(Font("Monaco", 200)),
|
|
|
|
StaticText(win).string_("|").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, transport
|
|
|
|
), alignment: \top])) };
|
|
|
|
), alignment: \top])) };
|
|
|
|
faderViews = { |group|
|
|
|
|
faderViews = { |group|
|
|
|
|