-
s.boot; MIDIClient.init; // check the array of midi destinations for the device you are using, and then create a MIDIOut // at the index of the destination you plan on using // in the case that the midi destination you are using is ...
-
... bindef(\w, \amp, 0.4 * Pseries(25, -1, 26)/25) // fadeout, x still running // useful bits SynthDescLib.global.at(\mate) Pbindef(\w).asCompileString.newTextWindow // series of amplitude values for a basic snare pattern 2312.asBinaryD ...
-
Simple amplitude trigger using Onsets, Amplitude and SendReply for sending triggers to sclang from SoundIn. ( // Simple amplitude trigger SynthDef(\ampTrigger, { |in| var snd = SoundIn.ar(in); var chain = FFT(LocalBuf(512), snd); ...
-
A random pad generation thing. Every time you click EXECUTE, a pad with a certain number of melodic lines is generated using the parameters in the GUI. Use it -> study the code -> modify it -> ? -> profit! P.S. sorry for my mediocre eng ...
-
some missing string operations: split on regex; replace regex; between regex by 56228375 (56228375) Code
some useful string operations which appear to be absent in sclang // note: first install quark https://github.com/shimpe/scstringext // using Quarks.install("https://github.com/shimpe/scstringext"); // then you should be be able to r ...
-
An improved version of the modality toolkit description file for the akai mpk mini mk2 To be used with modality toolkit installed on supercollier, and the akai mpk mini mk2 // contributed by gil fuser // rework to add layout and full supp ...
-
A common GUI requirement is a scrollable list of similar items. If the list consists of strings, it's easy -- use ListView. If, for example, each "line" should have a pop-up menu, a text field and a toggle button, there's ScrollView. We als ...
-
( SynthDef(\ctlPoint, { |outbus, value, time, curve| var start = In.kr(outbus, 1); ReplaceOut.kr(outbus, EnvGen.kr(Env([start, value], [time], curve), doneAction: 2)); }).store; // can't Pchain the resulting patter ...
-
function for working with xenakis' sieves made of residual classes/modules function takes a set of arguments for modulus, shifter and number of digits to compute, and returns a set, which can be used to construct sieves // https://research ...
-
One answer to the question "how to use the SynthDef's default argument in an Event?" // This question comes up sometimes. // one way to do it is to define an event type: ( Event.addEventType(\dnote, { |server| var instrument = ~ ...