-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mozart_CONDUCTOR.scd
83 lines (46 loc) · 1.27 KB
/
Mozart_CONDUCTOR.scd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// CONDUCTOR
// Load IPs
"Mozart_IP_Addresses.scd".loadRelative;
// Load some variables
"Mozart_Init_Variables.scd".loadRelative;
// Load some functions
"Mozart_Conductor_Functions.scd".loadRelative;
// Load GUI
"Mozart_Conductor_GUI.scd".loadRelative;
// ================================================
// we no longer need to run the code below manually
// it's all in the GUI
// Start metronome
// ~sendTempoStart.value(120);
// Change tempo anytime
// ~sendTempoChange.value(191);
// Start playing
// ~sendStartPlaying.value;
// Start playing
// ~sendStopPlaying.value;
// Print tally updates
(
f = {
inf.do{
~tally.postln;
~referendumTally.postln;
0.9.wait;
}
}.fork;
)
f.stop
// Still MANUAL...
// findWinner, instantly send it to all computers, reset list
// ~findWinner.value;
// ~startReferendum.value(4);
// ~findReferendumWinner.value;
// probably no need for this
// default set to 0
// Who advances letter measures? 0 = conductor does; 1 = local machines do.
// ~advanceLetterMeasureFlag.value(1);
// Manually send winners (1-12)
~sendDiceWinner.value(rrand(2, 12));
~tally;
// idea for another version:
// vote only gets counted when we reach a minimum number of voters
// make players be stuck on SAME measure A, B, C... until that happens.