Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (928) Code (86) Doc (150) Help (40) Quark (649) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. PG_05_Math_on_Patterns Help

    ... ary (abs, reciprocal, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite (1, 5, inf ).asStream.nextN(10); // Random integer ...

  2. FFT Overview Help

    ... loc(s,2048,1); ) //// proof of concept ( x = { var inA, chainA, chainB; inA = LFClipNoise .ar(100); chainA = FFT (b, inA); chainB = PV_Copy (chainA, c); IFFT (chainA) - IFFT (chainB); // cancels to zero so silent! }.play(s); ) x.free; // IF ...

  3. Writing-Classes Help

    ... s of expression consistently. eg. variable_ { arg newValue; variable = newValue.clip(minval,maxval); } A setter method should always return the receiver. This is standard OOP practice (outside of SC as well). Do not return the new value fro ...

  4. PG_Cookbook05_Using_Samples Help

    ... ) }, \bufnum , Pfunc ({ |ev| ~midinotes.indexInBetween(ev[ \freq ].cpsmidi) }) .clip(0, ~midinotes.size - 1.001) ).play; ) p.stop; b.do( _ .free); ~baseBuf.free; Previous: PG_Cookbook04_Sending_MIDI Next: PG_Cookbook06_Phrase_Network

  5. SoundFile Help

    ... array must be a FloatArray or Signal, with all values between -1 and 1 to avoid clipping during playback. Example: ( f = SoundFile .new.headerFormat_( "AIFF" ).sampleFormat_( "int16" ).numChannels_(1); f.openWrite( "sounds/sfwrite.aiff" ); ...

  6. Array Help

    ... se are equivalent a[2]; See ArrayedCollection for the principal methods: at put clipAt, wrapAt etc. Literal Arrays can be created at compile time, and are very efficient. See Literals for information. Class Methods *with(... args) Create a ...

  7. SCButton Help

    ... ue = 2; // does action if it results in a change of value b.valueAction = 3; // clips to size of states b.valueAction = -1; // floats no problem b.valueAction = 3.3; //In a musical context, a button-down press is more meaningful than a butt ...

  8. Functions and Sound Help

    ... cillate between 1 and -1. This is a good default as anything bigger would cause clipping and distortion. A mul of 0 would be effectively silent, as if the volume knob was turned all the way down. To make clearer how mul works, here is a gra ...

  9. Color Help

    ... lor. val - Varies the RGB values +- this amount. Default value is 0.1. lo - Low-clips the RGB variation here . Default value is 0.3.. hi - High-clips the RGB variation here . Default value is 0.9. alphaVal - Varies the alpha value +- tis am ...

  10. SCImage Help

    ... rent maximum size of a filtered SCImage is 4096 / 4096. Any larger size will be clipped. by default crop is constrained to the receiver bounds. region - NOTE: supported only in Mac OS 10.5 and later. option to constrain the filter to a spec ...

prev 1 2 3 4

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow