more blabla again

This commit is contained in:
tth
2021-10-30 15:54:36 +02:00
parent 25055fed70
commit b0a682c849
8 changed files with 103 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ if (!input.open(port)) {
<<< "erreur open MIDI" >>>; me.exit();
}
while (1) {
while (1) {
input => now;
while ( input.recv(msg) ) {
<<< msg.data1, msg.data2, msg.data3 >>>;

14
code/playsample.ck Normal file
View File

@@ -0,0 +1,14 @@
SndBuf buf => dac;
"sample.wav" => buf.read;
float srate, duration;
1 => buf.gain;
for ( 0.7=>srate; srate<1.8; 0.1 +=> srate) {
900 / srate => duration;
<<< "loop...", srate, duration >>>;
0 => buf.pos;
srate => buf.rate;
(duration)::ms => now;
}