Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit faa0ee0

Browse files
update examples with new OSC path (untested other than tidal-notochord.scd
1 parent d4cc42b commit faa0ee0

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

examples/notochord/autopitch.scd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ OSCdef(\test, {
9393
(Process.elapsedTime - t).postln;
9494
}, '/prediction', nil);
9595
t = Process.elapsedTime;
96-
b.sendMsg("/predictor/predict",
96+
b.sendMsg("/notochord/predict",
9797
\inst, 257, \pitch, 60+12.rand, \time, 0, \vel, 0, \fix_time, 0, \fix_vel, 0);
9898
)
9999

@@ -114,7 +114,7 @@ b.sendMsg("/predictor/predict",
114114
~last_dt = nil;
115115
~last_vel = nil;
116116
t = Process.elapsedTime;
117-
b.sendMsg("/predictor/reset");
117+
b.sendMsg("/notochord/reset");
118118
y!?{y.free};
119119
y = nil;
120120
};
@@ -130,7 +130,7 @@ MIDIdef.program(\switch, {
130130
{3}{
131131
~gate = 0;
132132
SystemClock.clear;
133-
b.sendMsg("/predictor/reset");
133+
b.sendMsg("/notochord/reset");
134134
y.release;
135135
SystemClock.clear;
136136
};
@@ -153,15 +153,15 @@ MIDIdef.program(\switch, {
153153
// get a new prediction in light of last note,
154154
// fixing dt and vel to performed values so just pitch is predicted
155155
pitch.notNil.if{
156-
b.sendMsg("/predictor/feed",
156+
b.sendMsg("/notochord/feed",
157157
\inst, ~instrument, \pitch, ~last_pitch, \time, ~delay, \vel, ~last_vel);
158-
b.sendMsg("/predictor/predict",
158+
b.sendMsg("/notochord/predict",
159159
\inst, ~instrument, \pitch, ~last_pitch, \time, ~last_dt, \vel, 0,
160160
\index_pitch, pitch, \fix_time, dt, \fix_vel, vel, \fix_instrument, ~instrument);
161161
}{
162-
b.sendMsg("/predictor/feed",
162+
b.sendMsg("/notochord/feed",
163163
\inst, ~instrument, \pitch, ~last_pitch, \time, ~delay, \vel, ~last_vel);
164-
b.sendMsg("/predictor/predict",
164+
b.sendMsg("/notochord/predict",
165165
\inst, ~instrument, \pitch, ~last_pitch, \time, ~last_dt, \vel, 0,
166166
\fix_time, dt, \fix_vel, vel, \fix_instrument, ~instrument);
167167
};

examples/notochord/harmonize.scd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ OSCdef(\return, {
114114
(Process.elapsedTime - t).postln;
115115
}, '/prediction', nil);
116116
t = Process.elapsedTime;
117-
b.sendMsg("/predictor/predict",
117+
b.sendMsg("/notochord/predict",
118118
\inst, 0, \pitch, 60+12.rand, \time, 0, \vel, 0,
119119
);
120120
)
@@ -146,7 +146,7 @@ t = nil;
146146
~player_t = t;
147147
~machine_t = t;
148148

149-
b.sendMsg("/predictor/reset");
149+
b.sendMsg("/notochord/reset");
150150

151151
~global_kws = {
152152
//add a collection of global variables to an argument list
@@ -164,7 +164,7 @@ b.sendMsg("/predictor/reset");
164164

165165
~feed_event = {
166166
arg inst, pitch, dt, vel;
167-
b.sendMsg("/predictor/feed",
167+
b.sendMsg("/notochord/feed",
168168
\inst, inst, \pitch, pitch, \time, dt, \vel, vel);
169169
};
170170

@@ -186,7 +186,7 @@ b.sendMsg("/predictor/reset");
186186
// \exclude_pitch
187187
]);
188188

189-
b.sendMsg("/predictor/predict", *kw);
189+
b.sendMsg("/notochord/predict", *kw);
190190
~pending_predictions.addFirst(pitch);
191191

192192
};
@@ -350,7 +350,7 @@ t = nil;
350350
~pending_predictions.clear;
351351
~player_held.clear;
352352
~release_all.(0);
353-
b.sendMsg("/predictor/reset");
353+
b.sendMsg("/notochord/reset");
354354
~player_inst = 257;
355355
~model_inst = 258;
356356
// ~player_inst = 128.rand+1;

examples/notochord/linnstrument-display.scd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Server.default.options.outDevice_("Built-in Output");
2929
~synth = Synth(\pluck, [\freq, freq, \vel, amp]);
3030

3131
// monophonic -- release last note and immediately start new note
32-
b.sendMsg("/predictor/feed",
32+
b.sendMsg("/notochord/feed",
3333
\pitch, midinote, \time, ~delay, \vel, amp*127);
34-
b.sendMsg("/predictor/predict",
34+
b.sendMsg("/notochord/predict",
3535
\pitch, midinote, \time, dt, \vel, 0,
3636
\pitch_topk, 5);
3737

@@ -60,7 +60,7 @@ s.waitForBoot{
6060

6161
~model_reset = {
6262
t = Process.elapsedTime;
63-
b.sendMsg("/predictor/reset");
63+
b.sendMsg("/notochord/reset");
6464
// ~synth!?{~synth.free};
6565
s.freeAll;
6666
~synth = nil;
@@ -123,7 +123,7 @@ OSCdef(\return, {
123123
(Process.elapsedTime - t).postln;
124124
}, '/prediction', nil);
125125
t = Process.elapsedTime;
126-
b.sendMsg("/predictor/predict",
126+
b.sendMsg("/notochord/predict",
127127
\pitch, 60+12.rand, \time, 0, \vel, 0,
128128
\index_pitch, 0,
129129
\sweep_time, true,

0 commit comments

Comments
 (0)