You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
610 B
Plaintext
40 lines
610 B
Plaintext
(
|
|
// global variables
|
|
~out = 0;
|
|
|
|
// allocate busses
|
|
s.newBusAllocators;
|
|
~grainbus = Bus.audio(s, 2);
|
|
~grainampbus = Bus.control(s, 1);
|
|
|
|
MIDIIn.connectAll;
|
|
|
|
MIDIdef.cc(\name0, { arg vel, num; });
|
|
MIDIdef.cc(\name1, { arg vel, num; });
|
|
MIDIdef.cc(\name2, { arg vel, num; });
|
|
|
|
s.waitForBoot({
|
|
|
|
SynthDef(\name, {
|
|
// code goes here
|
|
}).add;
|
|
SynthDef(\name, {
|
|
// code goes here
|
|
}).add;
|
|
SynthDef(\name, {
|
|
// code goes here
|
|
}).add;
|
|
|
|
Buffer.read(s, "path0.wav");
|
|
Buffer.read(s, "path1.wav");
|
|
Buffer.read(s, "path2.wav");
|
|
|
|
s.sync;
|
|
|
|
// initial groups and synths go here
|
|
Synth(\reverb, [dec: 4]);
|
|
|
|
|
|
|
|
});
|
|
) |