Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (4875) Code (274) Doc (1418) Help (390) Quark (2775) Plugin (18) SCDoc ↗ Forum ↗ Google ↗
  1. Show a chord in music notation in a sclang window by 56228375 (56228375) Code

    ... t find another way to insert raw lilypond code score = FoscLilyPondFile(["#(ly:set-option 'crop #t)", staff], staffSize:40); // write chord.svg and also chord.cropped.svg svg = score.writeSVG(path:PathName.tmp +/+ "chord.svg", clean:fals ...

  2. Auditory Scene Analysis, a SuperCollider companion (Chapter 1) by mjf352 (mjf352) Code

    ... = SinOsc.ar(500*~partialsA, 0,0.15*~ampA); env = EnvGen.kr(Env.perc(releaseTime: ~rel), doneAction: 2); sig = sig * env; stereo = Splay.ar(sig); Out.ar(0, stereo); }).add; ~b1 = SynthDef(\B1, { var sig, si ...

  3. Example of morphing (interpolating) between two Signals/Wavetables by totalgee (totalgee) Code

    ... eps in the interpolation, but even with 20-50 steps, it seems noise-free) ( // Set things up, and start the Synth s.waitForBoot { SynthDef(\oscplayer,{ arg out = 0, bufnum; var signal; signal = Osc.ar(bufnum, MouseX.kr(60, 300)); ...

  4. Another weird filter distortion by wondersluyter (wondersluyter) Code

    ... _filt, { |outbus, amp = 0.5, amt = 0.5, rate = 10, sig_thresh = 0.001, detect_onsets = 1| var sig, env, wet, env_on, env_tail, chain, trig, onsetenv, filtersig, filterenv; wet = amt; sig = In.ar(outbus, 2); env = Amplitude.a ...

  5. MIDI value recorder by lfsaw (LFSaw) Code

    ... rmat // [msgType, val, ctlNum, chan, src].postln; // for first element, set startTime to current raw seconds q.startTime.isNil.if({ q.startTime = time; }); // for each MIDI message, write an array to data: q.data = ...

  6. kick feedback by 0-2U (grirgz) Code

    ... clip2(1); son = son * amp; son = Splay.ar(son, spread, amp, pan); OffsetOut.ar(out, son); }).add; ); ( Pdef(~name, Pbind( \instrument, ~name, \env0, [ Env.new([0.5, 1, 0.5, 0], [0.005, 0.16, 0.01], [-4, -2, -4]) ], ...

  7. Simple Frequency Modulation SynthDef by deusofnull (deusofnull) Code

    ... = Synth.new(\fm, [\freq, 220]); // how to alter a synth in real time ~fmSynth.set(\freq, 260); // how to liberate the synth ~fmSynth.free; /* design notes input args are mostly self explainatory: freq controls pitch of carrier a ...

  8. In-between, longing by jpdrecourt (jpdrecourt) Code

    ... i = (); // Synth (instruments) t = TempoClock.default; s.sync; // Various setup v[\seed] = 262; // Random seed v[\debug] = false; // Debugging messages v[\mixerOn] = false; // Visual mixer v[\record] = true; // Recording the o ...

  9. Demo of Model-View-Controller design by 0-cM (jamshark70) Code

    ... n sync *without* having to manage exponentially-increasing connections. You can set the model programmatically and all views automatically update. Drawbacks: The model needs to send notifications. Sometimes it's hard to anticipate which ...

  10. Chord Crafter by suhelkeswani (suhelkeswani) Code

    ... ions or inquiry, you can reach me at suhelkeswani@gmail.com */ ( // EDITOR SETUP SHORTCUT: sets Cmd+period as shortcut to stop all MIDI sound (for testing as emergency stop shortcut) CmdPeriod.add({(0..127).do{arg n; m.noteOff(0, n)}} ...

prev 21 22 23 24 25 26 27 28 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow