small tweak to get rid of wslib dependency
This commit is contained in:
parent
92381afc3c
commit
4300697885
|
|
@ -125,9 +125,9 @@ transportView = {
|
|||
if(measure.size == 1, {measure = " " ++ measure});
|
||||
if(measure.size == 2, {measure = " " ++ measure});
|
||||
measure ++ ":" ++ beat};
|
||||
// [-30, -105, -104].asAscii and [-30, -105, -113].asAscii are unicode inverse bullet and normal bullet, respectively
|
||||
metronomeStringFunc = {arg curBeat; case {curBeat % 8 < 1} {[-30, -105, -104].asAscii}
|
||||
{curBeat % 2 < 1} {[-30, -105, -113].asAscii} {true} {" "}};
|
||||
// [-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} {" "}};
|
||||
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
|
||||
|
|
@ -217,7 +217,7 @@ transportView = {
|
|||
HLayout([VLayout(HLayout(
|
||||
clock = StaticText().string_(" 1:1").font_(Font("Monaco", 200)),
|
||||
StaticText().string_("|").font_(Font("Monaco", 200)),
|
||||
metronome = StaticText().string_([-30, -105, -104].asAscii).font_(Font("Monaco", 300)).stringColor_(Color.red)), nil, transport),
|
||||
metronome = StaticText().string_([-30, -105, -104].collect(_.asAscii).as(String)).font_(Font("Monaco", 300)).stringColor_(Color.red)), nil, transport),
|
||||
alignment: \top])};
|
||||
|
||||
// mixer
|
||||
|
|
|
|||
Loading…
Reference in a new issue