-
... unixCmdGetStdOut; if (debug) {output.postln}; filename; }; }; ) // example usage ( ~rr = "dQw4w9WgXcQ"; ~file = "/tmp/rr.wav"; ("downloading:" + ~file).postln; ~ytdl.(~rr, ~file); ("download complete:" + ~file).postln; ...
-
This example shows how to record 4 output channels *as separate mono files*. Also shows how to pick a custom path and file name for the files. File type chosen is "wav" (instead of default "aiff"). // ===================================== ...
-
... rpolating between multiple wavetables. This code is based off of a similar code example by totalgee: http://sccode.org/1-4V1 It was only after coding this example that I realized the UGens VOsc and VOsc3 are specifically designed for ...
-
A more simple example using the shared memory interface to get the current status of a bus, and also setting a bus from the GUI. The circle turns red depending on the oscillator value, and the oscillator frequency and amplitude are control ...
-
an exact port of a pd (pure-data) example patch. //additive synthesis bell //port of the pure-data example: D07.additive.pd ( s.waitForBoot{ SynthDef(\risset, {|out= 0, pan= 0, freq= 400, amp= 0.1, dur= 2, t_trig= 1| var amps= #[1, ...
-
a learning example where you can control patterns with running ugens via control bus. acid-like. ( SynthDef(\acid, { arg out, freq = 1000, gate = 1, pan = 1, cut = 4000, rez = 0.8, amp = 1, sustain = 1, release = 0.5; var sig, env; ...
-
... eq) ); snd = Splay.ar(snd); Out.ar(0, snd); }).add; ) // Example 1 - hihat only ( Pbind( \instrument, "hihat", \dur, Pseq([ 1/8, 1/8, 1/8, 1/8, // beat 1 1/8, 1/8, ...
-
Simple example showing how to listen for MIDI control messages // connect will connect to all midi in devices // if you need to specify one, // check the sources at: MIDIClient.sources // and connect using MIDIIn.connect( source_index ) ...
-
... e listener. Please not that, unlike the (exceptionally excellent) previous examples from Bregman and Ahad, this SuperCollider code is not organized by auditory phenomena. Rather, it works as a true reading companion, following "Auditor ...
-
A short, silly example of using if in a SynthDef. Using Select is generally a better thing to do. ( { var noise, out; noise = LFNoise0.kr(8); out = if( noise > 0.0, if(noise > 0.5, if(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60 ...