Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (513) Code (102) Doc (171) Help (75) Quark (148) Plugin (17) SCDoc ↗ Forum ↗ Google ↗
  1. PartConv Doc

    ... rsion }.fork; } ) ~target = Buffer.read(s, ExampleFiles.child); ( { var input = PlayBuf.ar(1, ~target, loop: 1); PartConv.ar(input, ~fftsize, ~irspectrum.bufnum, 0.5) }.play ) // convolve with live input ( { var input = SoundIn.ar(0); PartC ...

  2. PitchShiftPA Doc

    ... read(s, Platform.resourceDir +/+ "sounds/a11wlk01-44_1.aiff"); ( x = { var in = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1); PitchShiftPA.ar( in, Pitch.kr(in)[0], //pitch tracking - we take just the frequency MouseX.kr(0.5, 2), //pitchRat ...

  3. TGrains3 Doc

    ... ctave up, 0.5 is one octave down. -1.0 is backwards normal rate ... etc. Unlike PlayBuf , the rate is multiplied by BufRate, so you needn't do that yourself. centerPos the position in the buffer in seconds at which the grain envelope will r ...

  4. Pproto Doc

    ... 0, amp: 0.1]) Example 1, loading and granulating a sound file. ( SynthDef(\help_playbuf, { |out = 0, bufnum = 0, rate = 1, startPos = 0, amp = 0.1, sustain = 1, pan = 0, loop = 1| var audio; rate = rate * BufRateScale.ir(bufnum); startPos = ...

  5. AutoTrack Doc

    ... beepvol=1.0, lock=0; var trackb,trackh,trackq,tempo; var source, beep; source= PlayBuf.ar(1,b.bufnum,1.0,1,0,1); #trackb,trackh,trackq,tempo=AutoTrack.kr(source, lock); beep= SinOsc.ar(1000,0.0,Decay.kr(trackb,0.1)); Out.ar(0,Pan2.ar((vol* ...

  6. Buffer Doc

    ... using Buffers for sound playback and recording. Buffers are commonly used with PlayBuf , RecordBuf , DiskIn , DiskOut , BufWr , BufRd , and other UGens. (See their individual help files for more examples.) Buffers can be freed or altered e ...

  7. PG_06g_Data_Sharing Doc

    ... c. (Pproto is another way; see Pattern Guide 06f: Server Control .) ( SynthDef(\playbuf, { |bufnum, start, dur = 1, amp = 0.2, out| var sig = PlayBuf.ar(1, bufnum, BufRateScale.ir(bufnum), 0, start); sig = sig * amp * EnvGen.kr(Env.linen(0. ...

  8. KMeansRT Doc

    ... aintrig, features, kbuf, classif, centroid, resynth; // sig = AudioIn.ar; sig = PlayBuf.ar(1, b, loop: 1); chain = FFT(LocalBuf(512), sig); chaintrig = chain > -0.001; features = [SpecCentroid.kr(chain)]; // just one 1D feature here classif ...

  9. BufFiles Doc

    ... SynthDef SynthDef(\polybuf_sampler,{|out=0, amp=0.5, buffer, rate=1| var sig = PlayBuf.ar(numChannels:2, bufnum:buffer, rate:rate * BufRateScale.kr(buffer), trigger:1.0, startPos:0.0, loop:0.0, doneAction:2); Out.ar(out, sig) }).add ) // P ...

  10. Exercise_14_HOA_NRT_decoding_script Doc

    ... e conversion for us SynthDef(\hoaDecoder,{ arg buffer; var playFile; playFile = PlayBuf.ar(~hoaNumChannels.asInteger, buffer, startPos:0, loop:0, doneAction:2); OffsetOut.ar(0, HOADec5_0.ar(~order.asInteger, playFile, lf_hf: lowfreq_highfre ...

prev 11 12 13 14 15 16 17 18 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow