-
Notifications
You must be signed in to change notification settings - Fork 0
/
apicultor_main_synth.scd
686 lines (578 loc) · 18.8 KB
/
apicultor_main_synth.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
/*
Cloud Instrument & Sounds from the web (using API-Cultor) by hordia (2018)
<h@ordia.com.ar>
https://github.com/sonidosmutantes/apicultor
init & setup
1. Run apicultor service:
apicultor/cloud_instrument$ python CloudInstrument.py
2. Run this SuperCollider script
*/
//General config
//~host = "mac";
~host = "raspi";
//~midi_controller = "yaeltex"; //WARNING: fails if controller is not present
//~midi_controller = "midimix";
~midi_controller = "none";
if( ~host=="mac", {
"Running in mac".postln;
s.options.sampleRate= 48000; //mac
}
,{
"Running in raspberry pi".postln;
//Raspberry Pi low latency config
//jackd -P75 -t2000 -dalsa -dhw:S2 -p4096 -n7 -r44100 -s
s.options.sampleRate= 44100;
~number_of_mb = 32; //default is 8mb
//~number_of_mb = 512;
s.options.memSize = ~number_of_mb * 1024;
});
//TODO: ver multiple outputs
s.boot; //start server
// (optional) Recording
/*
("Recording in "++thisProcess.platform.recordingsDir).postln; //locate folder
s.recHeaderFormat = "wav";
s.record;
//to end: s.stopRecording;
*/
s.waitForBoot {
~voices_number = 8; //max simultaneus synth 'voices' (polyphony)
~bufferinstances = Array.newClear(~voices_number);
~synthInstances = Array.newClear(~voices_number);
~filterInstances = Array.newClear(~voices_number); //TODO: set to zero (0)
//Mutante main sytnth (Multi effec freeze synth)
//TODO: check if there is a way to avoid processing when are disabled (pitchratio=1, delamix=0, etc
//Chain order: freeze -> vibrato -> pan-> pithshift -> filters -> delay -> reverb
//TODO: add compression? freqshift? Stereo vibrato? stereo delay?
SynthDef(\mutantefreeze, { arg busout=0, bufnum=0, point=0, vol=1, fftwidth=4096, pan=0, startPos=0, delay = 0.25, numchannels=1, delaymix=0, lfoamount= 0, lforate=0, pitchratio=1, roomsize=0.5, reverbmix=0, lpfcutoff=20000, bpfcutoff=20000, hpfcutoff=100, loopstatus=1, trigvalue=1 ;
//Note about HPF cutoff: Cutoff frequency in Hertz. WARNING: due to the nature of its implementation frequency values close to 0 may cause glitches and/or extremely loud audio artifacts!
var in, chain, sig, dupsig, adelay, vibrato;
//plays buffer in loop
~numChannels = 1;
in = PlayBuf.ar(~numChannels, bufnum, BufRateScale.kr(bufnum), trigger: trigvalue, loop: loopstatus);
//with FREEZE (point=0 off)
chain = FFT(LocalBuf(4096), in);
chain = PV_MagFreeze(chain, point);
//dupsig = IFFT(chain).dup;
sig = IFFT(chain);
//LFO
vibrato = SinOsc.ar(lforate,Rand(0,2.0));
sig = vibrato*sig*(lfoamount) + sig*(1-lfoamount);
//with Pitch Shift (rate)
//pitchRatio - the ratio of the pitch shift. Must be from 0.0 to 4.0.
sig = PitchShift.ar(sig, 0.1, pitchratio, 0, 0.004);
//sig = LPF.ar(sig, lpfcutoff, 1, 0); //Low Pass Filter
//sig = BPF.ar(sig, bpfcutoff, 1, 0); //FIXME BPF (always enabled)
sig = HPF.ar(sig, hpfcutoff, 1, 0); //High Pass Filter
/*
if( filtermode==1, {
//LPF
sig = LPF.ar(sig, filtercutoff, 1, 0);
},
{
if( filtermode==2, { //BPF
sig = BPF.ar(sig, filtercutoff, 1, 0);
},
{
if( filtermode==3, { //HPF
sig = HPF.ar(sig, filtercutoff, 1, 0);
}, {
//OFF
});
})
});*/
//with DELAY
~maxdelaytime = 2; // max delay time 2000 mseg
sig = DelayN.ar( sig, ~maxdelaytime, delay, delaymix, sig); // input is mixed with delay via the add input (delaymix = 0 -> off)
//with Reverb (in, mix: 0.33, room: 0.5, damp: 0.5, mul: 1, add: 0)
sig = FreeVerb.ar(sig, reverbmix, roomsize, 0.5, 1, 0 );
//sig = GVerb(sig, roomsize, 3, 0.5, 0.5, 15 );
//Other FXs
//right = FreqShift.ar(left, SinOsc.kr(3.23, 0, 5));
//with PAN (Note: stereo voices duplicates audio memory buffer)
//dupsig = Splay.ar(vol*sig).dup; //audio duplication and volume adjustment
dupsig = (sig*vol).dup(2);
sig = Balance2.ar(dupsig[0], dupsig[1], pan);
Out.ar(busout, sig);
}).add;
/*
//Testing. Reloading first voice (voice 1)
~synthInstances[0].free;
~synthInstances[0] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[0].bufnum, \out, 0, \vol, 1]);
*/
//Granular synth / grain synthesis
SynthDef(\sfgrain, {arg bufnum=0, pan=0.0, startPos=0.0, amp=0.1, dur=0.04;
var grain;
grain= PlayBuf.ar(1,bufnum, BufRateScale.kr(bufnum), 1,
BufFrames.ir(bufnum)*startPos, 0)*(EnvGen.kr(Env.perc(0.01,dur),doneAction:2)-0.001);
Out.ar(0,Pan2.ar(grain, pan))}
).add;
/////////////////////////////////
//External controller config
//WARNING: se rompe si no esta el controlador presente/conectado
if( ~midi_controller=="yaeltex", {
"Using Yaeltex MIDI API.Cultor custom controller".postln;
"ui/yaeltex_midi_to_osc.scd".loadRelative; // Yaeltex custom MIDI controller
}
,{
if( ~midi_controller=="midimix", {
"Using AKAI MIDIMix controller".postln;
"ui/akai_midimix_to_osc.scd".loadRelative; // AKAI MIDIMix Controller
}, {
"Not using MIDI controller!".postln;
"ui/midi_to_osc.scd".loadRelative; //osc instances
});
});
/////////////////////////////////
//
//OSC function freeeze synth instance
// Recibe de apicultor la notificación del que nuevo sonido esta disponible
//
x = OSCFunc(
{ | msg, time, addr, port |
var new_file, voice_number, metadata;
new_file = msg[1].asString;
voice_number = msg[2].asInt;
( "Voice number: "+(voice_number+1)).postln;
( "New sound received " + new_file ).postln;
if( ~midi_controller=="yaeltex", {
~button_light.value(~yaeltex.voices[~active_voice-1].note, 1); //voice led on
}
,{
});
metadata = msg[3].asString; //Ej: sinbase.wav by anbo - id: 18860
~bufferinstances[voice_number].free;
~bufferinstances[voice_number] = Buffer.read(s, new_file);
~synthInstances[voice_number].free;
//~default_volume = 0;
~default_volume = 1;
~synthInstances[voice_number] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[voice_number].bufnum, \out, 0, \vol, ~default_volume]);
//Sets metadata in OSC display
~osc_server_OpenStage.sendMsg('/EDIT', 'soundfile', '{"value":"'++metadata++'","color":"green"}');
metadata = metadata.split($ ).postln; //convert it to an string array, first position is the filename
~osc_server_OpenStage.sendMsg('/EDIT', 'led_'++(voice_number+1), '{"label":"'++metadata[0]++'","color":"green"}'); //sets wav filename
~osc_server_OpenStage.sendMsg('/EDIT', 'led_'++(voice_number+1), '{"value":"1"}'); //sets led on
},
'/playnewsound'
);
//x.free;
//Error searching/retrieving a new soundFile
/*
Possible errors:
* Internet Connection
* Database error
* No file available with those descriptors values
* File format or convertion error
* No available space error
* Etc
*/
OSCdef.new(
\error_with_the_new_sound,
{
arg msg;
var metadata_error = msg[1].asString;
(metadata_error).postln;
//custom error message
metadata_error = "Error en la descarga. Probar otra descripcion sonora";
~osc_server_OpenStage.sendMsg('/EDIT', 'soundfile', '{"value":"'++metadata_error++'","color":"red"}');
},
'/errorwithnewsound',
);
OSCdef.new(
\chat_msg,
{
arg msg;
var chat = msg[1].asString;
("----> APICultor msg: "++chat).postln;
},
'/chat',
);
//General OSC service functions
//Master sound server volume (SuperCollider in dB)
//Supported commands
//Master Volume
v = s.volume;
OSCdef.new(
\fx_volume,
{
arg msg;
//TODO: respuesta audible logarítmica? linexp?
//--> 7 son -20dB
//v.volume = msg[1].asFloat.linlin(0, ~master_volume_max, v.min, v.max);
v.volume = msg[1].asFloat.linlin(0, ~master_volume_max, -40, v.max);
//("Volume: "++msg[1].asFloat.asStringPrec(2)).postln;
("Volume: "++v.volume ++" dB").postln;
},
'/fx/volume',
);
//Set Voice
~active_voice = 1; //1..8
OSCdef.new(
\set_voices,
{
arg msg;
if( msg[1].asInteger>0, {
~active_voice = msg[1].asInteger;
("Setting voice: "++~active_voice).postln;
//OpenStage UI update
[1,2,3,4,5,6,7,8].do{|number|
~osc_server_OpenStage.sendMsg('/EDIT', 'led_'++(number), '{"value":"0","color":"green"}');
};
~osc_server_OpenStage.sendMsg('/EDIT', 'led_'++(~active_voice), '{"value":"1","color":"green"}');
});
},
'/set_voices',
);
//Retrieve
OSCdef.new(
\retrieve,
{
arg msg;
("Asking the Service for a new sound in the remote database").postln;
//msg[1] argument, always 1
~onoff_value = 1;
//Activating ~active_voice on apicultor
~osc_server_APICultorService.sendMsg("/set_voices", ~active_voice, ~onoff_value);
~osc_server_APICultorService.sendMsg("/retrieve", 1); //get a new sound
//~send_osc_all.value(~new_sound_reset, 1); // RESET MIR config?
if( ~midi_controller=="yaeltex", {
~button_blink.value( ~yaeltex.voices[~active_voice-1].note );
}
,{
});
//OpenStage UI update
[1,2,3,4,5,6,7,8].do{|number|
//sets led off
~osc_server_OpenStage.sendMsg('/EDIT', 'led_'++(number), '{"value":"0"}');
};
},
'/retrieve',
);
//Reset MIR state
OSCdef.new(
\reset_mir,
{
arg msg;
("Reset MIR state! descriptors_dict={} clean").postln;
~osc_server_APICultorService.sendMsg("/mir/reset", 1); //reset mir state
},
'/mir/reset',
);
//Mutante Granular SYNTH
~granularAmount = [50,50,50,50,50,50,50,50]; //default values for each voice (1..8)
~granular_voladjust = 10;
OSCdef.new(
\synth_granular_trigger,
{
arg msg;
var v_pos = ~active_voice-1;
("Granular synthesis of voice "++(~active_voice)++' (value '++msg[1].asInteger++')').postln;
('-> Grains amount '++~granularAmount[v_pos] ).postln;
if( msg[1].asInteger==1, {
{
~granularAmount[v_pos].do{ arg j;
var timeprop = (j/199.0)**3;
//TODO: save reference to adjust volume
Synth(\sfgrain,[\bufnum, ~bufferinstances[v_pos].bufnum, \startPos,rrand(0.0,timeprop),\amp, exprand(0.005,0.1)+~granular_voladjust, \pan, 1.0.rand2]);
rrand((timeprop*0.1).max(0.01),timeprop*0.4).wait
};
}.fork
});
},
'/synth/granular/trigger',
);
//Grains amount update (for each voice)
OSCdef.new(
\synth_granular_set_grains,
{
arg msg;
var v_pos = ~active_voice-1;
~granularAmount[v_pos] = msg[1].asInteger;
("Grain amount "++~granularAmount[v_pos] ++' (voice '++~active_voice++')').postln;
},
'/synth/granular/grains/amount',
);
//Freeze synth (enable/disable) with 1 freeze sets on, with 0 sets off
OSCdef.new(
\synth_freeze,
{
arg msg;
var value = msg[1].asInteger;
var voice = msg[2].asFloat;
if( voice==(-1), {
voice = ~active_voice-1;
});
//("Value: "++value).postln;
~synthInstances[voice].set(\point, value); //1 freeze sets on, with 0 sets off
if( msg[1].asInteger==1,
{("Freeze ON (voice "++(voice+1)++")").postln;},
{("Freeze OFF (voice "++(voice+1)++")").postln;},
);
},
'/synth/freeze',
);
OSCdef.new(
\synth_reset,
{
var v_pos = ~active_voice-1;
~synthInstances[v_pos].free;
//~default_volume = 0;
~default_volume = 1;
~synthInstances[v_pos] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[v_pos].bufnum, \out, 0, \vol, ~default_volume]);
("Synth fx reset").postln;
},
'/synth/reset',
);
//////////////////////////////////
//(single) Voice configuration (FX)
//////////////////////////////////
//Voice volume
OSCdef.new(
\voice_volume,
{
arg msg;
("Voice: "++(~active_voice)++" , Vol: "++msg[1].asFloat).postln;
~synthInstances[~active_voice-1].set(\vol, msg[1].asFloat );
},
'/voice_volume',
);
//Voice PAN
OSCdef.new(
\fx_pan,
{
arg msg;
var value = msg[1].asFloat;
//FIXME general PAN
//("PAN: "++msg[1]).postln;
//Out.ar(0, Pan2(value));
//Out.ar(1, Pan2(msg[1].asFloat,0));
("Voice: "++(~active_voice)++" , Pan: "++value.asStringPrec(2)).postln;
~synthInstances[~active_voice-1].set(\pan, value );
},
'/fx/pan',
);
//Delay amount. With delay==0, sets delaymix to 0 (no delay, dry signal)
OSCdef.new(
\fx_delay,
{
arg msg;
("Voice: "++(~active_voice)++" , Delay: "++msg[1].asFloat.asStringPrec(2)).postln;
if( msg[1].asFloat==0,
{
~synthInstances[~active_voice-1].set(\delaymix,0);
"Delaymix OFF".postln
},
~synthInstances[~active_voice-1].set(\delaymix, ~default_delaymix),
);
~synthInstances[~active_voice-1].set(\delay, msg[1].asFloat );
},
'/fx/delay',
);
//Delaymix, amount of wet/dry signal
OSCdef.new(
\fx_delaymix,
{
arg msg;
("Voice: "++(~active_voice)++" , DelayMix: "++msg[1].asFloat.asStringPrec(2)).postln;
~synthInstances[~active_voice-1].set(\delaymix, msg[1].asFloat);
},
'/fx/delay/mix',
);
//(pitch) Rate
OSCdef.new(
\fx_pitch_rate,
{
arg msg;
("Voice: "++(~active_voice)++" , (pitch) Rate: "++msg[1].asFloat).postln;
~synthInstances[~active_voice-1].set(\pitchratio, msg[1].asFloat);
},
'/fx/rate',
);
//Gate. TODO: improve this
OSCdef.new(
\fx_gate,
{
arg msg;
var value = msg[1].asFloat;
//if( value>0, {value=1}, {value=0});
("Voice: "++(~active_voice)++" , Gate: "++value).postln;
~synthInstances[~active_voice-1].set(\vol, value);
},
'/fx/gate',
);
//Reverb
OSCdef.new(
\fx_reverb,
{
arg msg;
var value = msg[1].asFloat;
("Voice: "++(~active_voice)++" , Reverb: "++value.asStringPrec(2)).postln;
~synthInstances[~active_voice-1].set(\reverbmix, value);
},
'/fx/reverb',
);
//Ressonance (by now reverb roomsize)
OSCdef.new(
\fx_ressonance,
{
arg msg;
var value = msg[1].asFloat;
("Voice: "++(~active_voice)++" , Ressonance (reverb roomsize): "++value.asStringPrec(2)).postln;
~synthInstances[~active_voice-1].set(\roomsize, value.linlin(0,1,0,4));
},
'/fx/ressonance',
);
//Filter (LP/BP/HP) -> 0-> OFF // 1:LPF,2:BPF,3:HPF
OSCdef.new(
\fx_filter,
{
arg msg;
var value = msg[1].asInteger;
~filter_status = value;
//~synthInstances[~active_voice-1].set(\filtermode, ~filter_status);
~filterInstances[~active_voice-1] = ~filter_status;
~estado = "OFF";
if( ~filter_status==1, {
~estado = "LPF";
}, {
if( ~filter_status==2, {
~estado = "BPF (temporary disabled)"; //FIXME: implement BPF filter
},
{
if( ~filter_status==3, {
~estado = "HPF";
}, {
//OFF
});
})
});
("Voice: "++(~active_voice)++" , Filter Mode: "++~estado++" ("++value++")").postln;
},
'/fx/filter',
);
//Cutoff
OSCdef.new(
\fx_cutoff,
{
arg msg;
var value = msg[1].asInteger;
("Voice: "++(~active_voice)++" , Cutoff: "++value).postln;
if( ~filterInstances[~active_voice-1] ==1, {
//~estado = "LPF";
~synthInstances[~active_voice-1].set(\lpfcutoff, value);
}, {
if( ~filter_status==2, {
//~estado = "BPF";
~synthInstances[~active_voice-1].set(\bpfcutoff, value);
},
{
if( ~filter_status==3, {
//~estado = "HPF";
~synthInstances[~active_voice-1].set(\hpfcutoff, value);
}, {
//OFF
});
})
});
},
'/fx/cutoff',
);
//LFO (By now is RATE, not amount)
OSCdef.new(
\fx_lfo,
{
arg msg;
("Voice: "++(~active_voice)++" , LFO (rate): "++msg[1].asFloat.asStringPrec(2)).postln;
~synthInstances[~active_voice-1].set(\lforate, msg[1].asFloat);
},
'/fx/lfo',
);
//Factor --> LFO amount mix
OSCdef.new(
\fx_factor,
{
arg msg;
var value = msg[1].asFloat;
("Voice: "++(~active_voice)++" , Rate (LFO amount mix): "++msg[1].asFloat.asStringPrec(2)).postln;
~synthInstances[~active_voice-1].set(\lfoamount, msg[1].asFloat.linlin(0,1,0,0.95));
},
'/fx/factor',
);
// Sequencer
OSCdef.new(
\seq_trigger,
{
arg msg;
var channel = msg[1].asFloat;
//("Voice: "++(~active_voice)++" , Channel: "++channel).postln;
//~seq_voice= ~active_voice-1;
//sequence by channel number (0 or 1) fixed voices
~seq_voice= channel;
//loop disable
~synthInstances[~seq_voice].set(\loopstatus, 0);
//This task forces transition to start playback from the beginning
b = Task({ //1 time
1.do { arg i;
~synthInstances[~seq_voice].set(\trigvalue, -1);
0.01.wait;
("Trigger").postln;
~synthInstances[~seq_voice].set(\trigvalue, 1);
}
});
b.start;
},
'/seq/trigger',
);
// triggers from any midi input
//MIDIClient.init;
//MIDIIn.connectAll;
~seq_trigger = MIDIFunc.noteOn({ |vel, num, chan|
if(num == 48 && vel==64 ,{ // On / Off
//"---> note % @ velocity %, chan %\n".postf(num, vel, chan);
~osc_server_SuperCollider.sendMsg('/seq/trigger', chan);
});
});
~osc_server_APICultorService.sendMsg("/chat", "Hello. SuperCollider is ready to rock!");
////////////////////////////////////////
//(optional) Startup sounds
if( ~host=="mac", {
//voice 8
~bufferinstances[7]= Buffer.read(s, "/Users/hordia/samples/instrucciones.wav");
//~synthInstances[7] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[7].bufnum, \out, 0, \vol, 0.7]);
~synthInstances[7] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[7].bufnum, \out, 0, \vol, 0.7, \pitchratio, 0.85]);
}
,{
("Default sounds").postln;
//Raspberry pi
//voice1
~bufferinstances[0]= Buffer.read(s, "/home/pi/samples/Basspad.wav");
~synthInstances[0] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[0].bufnum, \out, 0, \vol, 1]); //vol 1
//voice 2
~bufferinstances[1]= Buffer.read(s, "/home/pi/redpanal-wavs/hordia-algorave-algosix-extract-2.wav");
//~bufferinstances[1]= Buffer.read(s, "/home/pi/samples/Ride_01-21.wav");
~synthInstances[1] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[1].bufnum, \out, 0, \vol, 1]); //vol 1
//voice 3
~bufferinstances[2]= Buffer.read(s, "/home/pi/redpanal-wavs/0b6c17d0-55e1-44ec-994c-adfdfebd9f1b-converted_sample4.wav");
//~bufferinstances[2]= Buffer.read(s, "/home/pi/samples/126_sample2.wav");
~synthInstances[2] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[2].bufnum, \out, 0, \vol, 0]); //vol 0
//voice 4
~bufferinstances[3]= Buffer.read(s, "/home/pi/redpanal-wavs/101_004_combinacion_sample1.wav");
//~bufferinstances[3]= Buffer.read(s, "/home/pi/samples/Breezy_sample0.wav");
~synthInstances[3] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[3].bufnum, \out, 0, \vol, 0]); //vol 0
//voice 5
~bufferinstances[4]= Buffer.read(s, "/home/pi/redpanal-wavs/mbaraj-644.wav");
~synthInstances[4] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[4].bufnum, \out, 0, \vol, 0]); //vol 0
//voice 6
~bufferinstances[5]= Buffer.read(s, "/home/pi/redpanal-wavs/mbaraj-439-part1.wav");
~synthInstances[5] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[5].bufnum, \out, 0, \vol, 0]); //vol 0
//voice 7
~bufferinstances[6]= Buffer.read(s, "/home/pi/redpanal-wavs/5_AI_Plays_Guitar_part1.wav");
~synthInstances[6] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[6].bufnum, \out, 0, \vol, 0]); //vol 0
//voice 8 (bank2+v4)
~bufferinstances[7]= Buffer.read(s, "/home/pi/redpanal-wavs/impro-livecoding-tidal-part1.wav");
//~bufferinstances[7]= Buffer.read(s, "/home/pi/samples/instrucciones.wav");
~synthInstances[7] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[7].bufnum, \out, 0, \vol, 0]); //vol 0
//~synthInstances[7] = Synth(\mutantefreeze, [\bufnum, ~bufferinstances[7].bufnum, \out, 0, \vol, 0.7, \pitchratio, 0.85]); //pitch ratio low
});
////////////////////////////////////////
} //end of waitForBoot