Browse Source

updating score and tweak code to alleviate wslib dependency

master
Michael Winter 2 months ago
parent
commit
61a3ba752c
6 changed files with 12 additions and 9 deletions
  1. BIN
      lilypond/seed_20200525/cicc_score.pdf
  2. +1
    -1
      lilypond/seed_20200525/includes/cicc_guitar.ly
  3. +1
    -1
      lilypond/seed_20200525/includes/cicc_high.ly
  4. +1
    -1
      lilypond/seed_20200525/includes/cicc_low.ly
  5. +7
    -5
      supercollider/cicc_gui.scd
  6. +2
    -1
      supercollider/cicc_transcriber.scd

BIN
lilypond/seed_20200525/cicc_score.pdf View File


+ 1
- 1
lilypond/seed_20200525/includes/cicc_guitar.ly View File

@@ -421,7 +421,7 @@
}

{
\set Score.markFormatter = #format-mark-box-numbers \tempo \markup {\concat {\smaller \general-align #Y #DOWN \note #"2" #1 \normal-text " = approx. 90"}} \override Staff.TimeSignature #'stencil = ##f \numericTimeSignature \time 2/2
\set Score.markFormatter = #format-mark-box-numbers \tempo \markup {\concat {\smaller \general-align #Y #DOWN \note #"2" #1 \normal-text " = approx. 80 (preferably faster towards 90 and no less than 70)"}} \override Staff.TimeSignature #'stencil = ##f \numericTimeSignature \time 2/2
\clef "treble_(8)"
\bar "||" \mark \markup { \bold \box 1.1 }
\time 2/2

+ 1
- 1
lilypond/seed_20200525/includes/cicc_high.ly View File

@@ -421,7 +421,7 @@
}

{
\set Score.markFormatter = #format-mark-box-numbers \tempo \markup {\concat {\smaller \general-align #Y #DOWN \note #"2" #1 \normal-text " = approx. 90"}} \numericTimeSignature \time 2/2
\set Score.markFormatter = #format-mark-box-numbers \tempo \markup {\concat {\smaller \general-align #Y #DOWN \note #"2" #1 \normal-text " = approx. 80 (preferably faster towards 90 and no less than 70)"}} \numericTimeSignature \time 2/2
\clef "treble^(8)"
\bar "||" \mark \markup { \bold \box 1.1 }
\time 2/2

+ 1
- 1
lilypond/seed_20200525/includes/cicc_low.ly View File

@@ -421,7 +421,7 @@
}

{
\set Score.markFormatter = #format-mark-box-numbers \tempo \markup {\concat {\smaller \general-align #Y #DOWN \note #"2" #1 \normal-text " = approx. 90"}} \override Staff.TimeSignature #'stencil = ##f \numericTimeSignature \time 2/2
\set Score.markFormatter = #format-mark-box-numbers \tempo \markup {\concat {\smaller \general-align #Y #DOWN \note #"2" #1 \normal-text " = approx. 80 (preferably faster towards 90 and no less than 70)"}} \override Staff.TimeSignature #'stencil = ##f \numericTimeSignature \time 2/2
\clef "bass_(8)"
\bar "||" \mark \markup { \bold \box 1.1 }
\time 2/2

+ 7
- 5
supercollider/cicc_gui.scd View File

@@ -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"),
@@ -299,4 +301,4 @@
),
tabs = StackLayout(masterView.value, faderView.value, helpView.value));
};
)
)

+ 2
- 1
supercollider/cicc_transcriber.scd View File

@@ -129,7 +129,8 @@
lilyString = lilyString ++ "\n{ ";
lilyString = lilyString ++ "\n\\set Score.markFormatter = #format-mark-box-numbers ";

lilyString = lilyString + "\\tempo \\markup {\\concat {\\smaller \\general-align #Y #DOWN \\note #\"2\" #1 \\normal-text \" = approx. 90\"}}";
lilyString = lilyString + "\\tempo \\markup {\\concat {\\smaller \\general-align #Y #DOWN \\note #\"2\" #1 \\normal-text \"";
lilyString = lilyString + "= approx. 80 (preferably faster towards 90 and no less than 70)\"}}";
if(p != 1, {lilyString = lilyString + "\\override Staff.TimeSignature #'stencil = ##f"});
lilyString = lilyString + "\\numericTimeSignature \\time 2/2\n";


Loading…
Cancel
Save