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

Commit 4c08e6b

Browse files
partially predetermining notes apparently working
1 parent bf4a59a commit 4c08e6b

3 files changed

Lines changed: 138 additions & 411 deletions

File tree

examples/notepredictor/midi-duet.scd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ b.sendMsg("/predictor/predict", \pitch, 60+12.rand, \time, 0, \vel, 0);
4242
// duet with the model
4343
// feeds the model's predictions back to it as well as player input
4444
(
45-
~gate = 0;
45+
~gate = 1;
4646
t = Process.elapsedTime;
4747
b.sendMsg("/predictor/reset");
4848

@@ -137,7 +137,7 @@ OSCdef(\return, {
137137
y = Synth(\pluck, [
138138
\freq, num.midicps, \vel, val/127]);//.release(1);
139139
// post the current note
140-
[\model, dt, num].postln;
140+
[\model, dt, num, val].postln;
141141
// mark the time of current note
142142
t = Process.elapsedTime;
143143
// crudely draw note on piano GUI

0 commit comments

Comments
 (0)