Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2676) Code (536) Doc (989) Help (430) Quark (698) Plugin (23) SCDoc ↗ Forum ↗ Google ↗
  1. StaticText Doc

    ... hDef(\Docs_FreqMonitor, { var freq, snd; freq = LFNoise0.ar(2, 400, 650); snd = SinOsc.ar(freq, 0, 0.2); Out.ar(0, snd); Out.kr(b.index, freq); // output the frequency to a control bus }).play; r = Routine { { // Set the value of the Static ...

  2. Debugging-tips Doc

    ... eded to trigger the /tr message to be sent SendTrig.kr(Impulse.kr(4), 0, freq); SinOsc.ar(freq, 0, 0.3) ! 2 }.play; [ /tr, 1000, 0, 1340.8098144531 ] [ /tr, 1000, 0, 1153.9201660156 ] [ /tr, 1000, 0, 966.35247802734 ] [ /tr, 1000, 0, 629.31 ...

  3. rewriteString Doc

    ... ; var env; env = EnvGen.kr(Env.perc(0.01, dur, 0.2), doneAction:2); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) // translating characters in melody ( k = Pseq("ab"); c = [ "a" -> "ba", "b" -> "ca" ]; d = Dictionary[ $a -> 0, $b -> 5, $c ...

  4. GMGuide_FM Doc

    ... rrier, mod; freq = freq * freqMul; freq = [freq * spread, freq / spread]; snd = SinOsc.ar(freq); mod = SinOsc.ar( freq * modFreq, mul: modIndex); carrier = SinOsc.ar(freq * mod); carrier = LeakDC.ar(carrier); snd = Mix.ar([snd, carrier]); s ...

  5. Pdef Doc

    ... .kr(Env.perc(0.01, sustain), 1, doneAction: Done.freeSelf); Out.ar(out, Pan2.ar(SinOsc.ar(freq, 0.5pi, amp * env), pan)); }).add; ) // event pattern as an argument Pdef(\x, Pbind(\instrument, \Pdefhelp, \note, Pbrown(0, 6, 0.1, inf), \dur, ...

  6. HOATest Doc

    ... 1), // pitch of the flies LFSaw.ar(~flyAz,0, 360), // azimut speed of the flies SinOsc.ar(~flyEle,0, -180, 90), // elevation speed of the flies plane_spherical:1, radius:SinOsc.ar(~flyDist,0, 5, 6) ).sum; // sum all b formats together HOADe ...

  7. Gammatone Doc

    ... r(WhiteNoise.ar) }.play; //test sweeping frequency of sine input { Gammatone.ar(SinOsc.ar(MouseX.kr(100,2000)),1000.0,500.0) }.play; //create gammatone filterbank with filters centred on 88 piano keys ( var outereargain, freqs, bandwidths; ...

  8. Other_event_and_pattern_shortcuts Doc

    ... n // define SynthDef SynthDef(\x, { |out = 0, freq = 440, amp = 0.05| Out.ar(0, SinOsc.ar(freq, 0, amp) * EnvGate.new) }).add // run synth, audible beats with equal temperature, pitches given as notes ('n') (i: \x, n: [0, 4, 7], d: 3).on // ...

  9. CVCenter Doc

    ... sp NodeProxy: -cvcGui . ( SynthDef(\simpleSine, { |freq=220, amp=0.3| Out.ar(0, SinOsc.ar([freq, freq+1], mul: amp)) }).add // SynthDefs *must* be 'added' or 'stored' ) x = Synth(\simpleSine).cvcGui; x.free; CVCenter.removeAll; // remove wi ...

  10. Updater Doc

    ... prep s = Server.local; n = SynthDef("Updater-help", {|out, freq| var sin; sin = SinOsc.ar(freq, 0.5)*EnvGen.kr(Env.triangle(4,1), doneAction:2); Out.ar(out, sin); }).send(s); ) ( //create a new synth node on the server n = Synth.new("Update ...

prev 81 82 83 84 85 86 87 88 89 90 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow