Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (304) Code (46) Doc (105) Help (39) Quark (105) Plugin (9) SCDoc ↗ Forum ↗ Google ↗
  1. onset-and-pitch Quark

    ... post == Ndef('mod1', {arg thresh=0.1, in=1, mul=1, add=0; var sig, chain; sig = SoundIn.ar( (in-1).max(0) ); chain = FFT(LocalBuf(512), sig); ((Onsets.kr(chain, thresh, \rcomplex) * 2 - 1 ) * mul).range(0.0, 1.0) + add;}); Ndef('block1').xs ...

  2. Fracture Quark

    ... ions; collectRoutines.do (_.play(SystemClock)); record = { arg running = 1; var soundin, trig = 1, pos = 0, amp, freq, hasFreq, bufLength, cycle; soundin = if (in.isInteger) {SoundIn.ar(in)} {In.ar(in)}; //pos = Phasor.ar(0, BufRateScale.kr ...

  3. Live Granulation Quark

    ... tudes ! To reduce feedback I've built in tanh, LPF and delay into examples with SoundIn, though better use headphones to avoid feedback at all. For tips on reducing feedback or creative use of feedback see Nathaniel Virgo's Feedback quark. ...

  4. wfsMasterIn Quark

    ... |bus = 0| var input; input = ((..Udef.numChannels - 1) + bus).collect({ |item| SoundIn.ar( item ) }); input = input.collect({ |input| input * if( bus > (NumInputBuses.ir - 1), 0, 1 ); }); UOut.ar( 0, input ); } ).setSpec( \bus, PositiveInt ...

  5. 01_GuidedTour Quark

    ... nnecting to the world: ///// 1 - Microphone - use headphones or get feedback! { SoundIn.ar * 0.2 }.play; // or more flexible with JITLib-style object, Ndef Ndef(\mic).clear; Ndef(\mic, { SoundIn.ar * 0.2 ! 2 }).play; Ndef(\mic).gui; // comb ...

  6. wfsServerIn Quark

    ... putBusChannels; }; def = MultiChannelUdef( \wfsServerIn, { |bus = 0| // same as soundIn, but only plays on servers var input; input = ((..Udef.numChannels - 1) + bus).collect({ |item| SoundIn.ar( item ) }); input = input.collect({ |input| i ...

  7. auxIn Quark

    ... l' mode the auxIn receives audio from an external input. This is similar to the soundIn Udef. bus: the aux bus to read from (0-31) type: \internal or \external -- this is an Udef definition file part of the Unit lib default Udefs set */ ( v ...

  8. buffers-and-loops Quark

    ... == Ndef('recblock1', {arg recLevel=1 , preLevel=0 , fade=0.01 ; var sig; sig = SoundIn.ar(0); sig = sig * Env.linen(fade, (30.0-(fade*2)), fade, 1, 'sin').kr; RecordBuf.ar(sig, ~buffer0.bufnum, 0, recLevel, preLevel, loop: 0); }); == radpo ...

  9. amplitudeTracker Quark

    ... itudeTracker] = Ndef(\amplitudeTracker); Ndef(\amplitudeTracker, { Amplitude.ar(SoundIn.ar(0)); }); Ndef(\amplitudeTracker); // return value

  10. live-input Quark

    >> in 1 1 == radpost == Ndef('block1', {arg bus=1 , mul= 1 ; SoundIn.ar((bus.round(1)-1).max(0), mul);}); Ndef('block1').xset('bus', 1); == radpostcont == (none) >> st 1 == radpost == Ndef('block1').source = nil; == radpostcont == (none)

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow