@ -125,9 +125,9 @@ transportView = {
if(measure.size == 1, {measure = " " ++ measure});
if(measure.size == 2, {measure = " " ++ measure});
measure ++ ":" ++ beat};
// [-30, -105, -104].collect(_.asAscii).as(String) and [-30, -105, -113].collect(_.asAscii).as(String) are unicode inverse bullet and normal bullet, respectively
metronomeStringFunc = {arg curBeat; case {curBeat % 8 < 1} {[-30, -105, -104].collect(_.asAscii ).as(String)}
{curBeat % 2 < 1} {[-30, -105, -113].collect(_.asAscii ).as(String)} {true} {" "}};
// [-30, -105, -104] and [-30, -105, -113] are unicode inverse bullet and normal bullet, respectively
metronomeStringFunc = {arg curBeat; case {curBeat % 8 < 1} {[-30, -105, -104].collect({arg int; int.asAscii} ).as(String)}
{curBeat % 2 < 1} {[-30, -105, -113].collect({arg int; int.asAscii} ).as(String)} {true} {" "}};
metronomeColorFunc = {arg curBeat; case {curBeat % 32 < 1} {Color.red} {curBeat % 8 < 1} {Color.blue} {true} {Color.black}};
// get current time and call update clock and metronome
@ -212,12 +212,12 @@ transportView = {
startPosText.string = clockStringFunc.value((pos.value * 129).trunc * 8);
startPos = ((pos.value * 129).trunc * 8) / (129 * 8);
clock.string = clockStringFunc.value((startPos * 129).trunc * 8)}.inEnvir), stretch: 1],
startPosText = StaticText().string_(" 1:1").font_(Font("Monac o", 15)), nil);
startPosText = StaticText().string_(" 1:1").font_(Font("Liberation Mono", 15)), nil);
HLayout([VLayout(HLayout(
clock = StaticText().string_(" 1:1").font_(Font("Monac o", 200)),
StaticText().string_("|").font_(Font("Monac o", 200)),
metronome = StaticText().string_([-30, -105, -104].collect(_.asAscii).as(String)).font_(Font("Monac o", 300)).stringColor_(Color.red)), nil, transport),
clock = StaticText().string_(" 1:1").font_(Font("Liberation Mono", 200)),
StaticText().string_("|").font_(Font("Liberation Mono", 200)),
metronome = StaticText().string_([-30, -105, -104].collect({arg int; int.asAscii}).as(String)).font_(Font("Liberation Mon o", 300)).stringColor_(Color.red)), nil, transport),
alignment: \top])};
// mixer