Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (79) Code (1) Doc (77) Quark (1) SCDoc ↗ Forum ↗ Google ↗
  1. TGrains Doc

    ... Instance Methods Inherited instance methods Examples s.boot; b = Buffer.read(s, ExampleFiles.child); ( { var trate, dur, rate; trate = MouseY.kr(2, 200, 1); dur = 4 / trate; rate = Dseq([10, 1, 1, 0.5, 0.5, 0.2, 0.1], inf); TGrains.ar(2, Im ...

  2. Non-Realtime-Synthesis Doc

    ... sing here is almost instantaneous. ( var server, inputFile = SoundFile.openRead(ExampleFiles.child); inputFile.close; // doesn't need to stay open; we just need the stats server = Server(\nrt, options: ServerOptions.new .numOutputBusChannel ...

  3. MFCC Doc

    ... bands by 1 and summing // assumes hop of half fftsize, fine d = Buffer.read(s, ExampleFiles.child); ( x = { var in, fft, array; // in = PlayBuf.ar(1, d, BufRateScale.kr(d), 1, 0, 1); in = SoundIn.ar(0); fft = FFT(LocalBuf(1024), in); // fo ...

  4. BeatTrack2 Doc

    ... oad something useful for testing, like a one minute pop song b = Buffer.read(s, ExampleFiles.child); // very feature dependent ( SynthDef(\help_beattrack2_1, { |out, vol = 1.0, beepvol = 1.0, lock = 0, bufnum| var in, kbus; var trackb, trac ...

  5. Pproto Doc

    ... a = Pproto({ ~newgroup = (type: \group).yield; ~sf1 = (type: \allocRead, path: ExampleFiles.apollo11).yield; }, Pbind(*[ instrument: \help_playbuf, dur: Pseg([0, 0, 0.25, 0.5, 0.75, 1], 10).linexp(0, 1, 0.01, 2), legato: 4, startPos: Pn(Ps ...

  6. Sync-Async Doc

    ... .load(s); y = Synth.basicNew("help-Buffer"); // not sent yet b = Buffer.read(s, ExampleFiles.child, action: { arg buffer; // synth send its s_new msg to follow // after the buffer read completes s.sendBundle(nil, y.newMsg(s,[\bufnum,buffer] ...

  7. recursive_phrasing Doc

    ... rom, to, sustain) * BufFrames.kr(bufnum) ) * env ) }).add; ) b = Buffer.read(s, ExampleFiles.child) ( Pdef(\poch, { arg sustain=1.0, from=0.0, to=1.0, n=3; var step; sustain = sustain.value; step = (to - from) / n; Pbind( \instrument, \play ...

  8. Plotter Doc

    ... 357]) * SinOsc.ar([400, 476]) * 0.2 }.plot; // Buffer { var b = Buffer.read(s, ExampleFiles.sinedPink); s.sync; b.plot }.fork(AppClock); // Env Env.perc(0.4, 0.6).plot; ⧉ ✔ plotGraph (n, from, to, ...) { |x| sin(x) }.plotGraph(300, 0, 2*pi ...

  9. Tour_of_UGens Doc

    ... buffer number, rate, trigger, start pos, loop // read sound b = Buffer.read(s, ExampleFiles.child); { SinOsc.ar(800 + (700 * PlayBuf.ar(1,b, BufRateScale.kr(b), loop:1)),0,0.3) }.scope(1); // loop is true { PlayBuf.ar(1,b, BufRateScale.kr( ...

  10. MultiSliderView Doc

    ... tion = { |ex| b.gap = (ex.value * 4) + 1 }; file = SoundFile.new; file.openRead(ExampleFiles.child); file.numFrames.postln; file.readData(c); // file.inspect; file.close; minval = 0; maxval = 0; f = Array.new; d = Array.new; c.do({ |fi, i| ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow