Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (243) Code (19) Doc (75) Help (19) Quark (129) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. screenSize_guiTest Quark

    /* Test main window for multiple screen sizes, e.g.: Tdef(\guiTest).getHalo(\allExtents) remaining problem: in 4/3 ratio, the pads are very wide and the mviews not wide enough // test all these in a row: Tdef(\guiTest).set(\winExtent, nil). ...

  2. 03_shared_coding_sound Quark

    ... s always accessible again, // we can have "shared state" - e.g. always using // Tdefs, Ndefs, Pdefs, we can all see what is currently running, // and write code that changes what is already there. ////// if you start a sound like this: // { ...

  3. clock Quark

    ... lock and gui /////// Clock display shows how long something has been running /* Tdef(\clocK).gui; Tdef(\clocK).set(\isRunning, true); // jumps back to zero when stopped Tdef(\clocK).set(\isRunning, false); // watch some Tdef to see how long ...

  4. grids_gui Quark

    ... )); }).add; ) ( // setup a clock t = TempoClock.default; t.tempo = 130/60.0; // tdefs to play patterns Tdef(\hh, {|env| inf.do({|i| var level = ScGrids.calculateLevel( instrument: \hihat, curBeat: i, x: env.x, y: env.y, ); if(level>=(1-(env ...

  5. tdefNdef Quark

    /* uncomment top and bottom comment to try this ... /*** EXAMPLE FOR TDEF-NDEF-COMBO THAT WORKS IN NTMI SETUP ****/ /*** // TESTS: // Ndef starts tdef, tdef sounds Ndef('tdefNdef').play; // Tdef sounds controlled by Ndef vol Ndef('tdefNdef' ...

  6. TdefPreset Quark

    TdefPreset storing and morphing between presets for Tdefs. superclass: ProxyPreset. see also NdefPreset , and soon, PdefPreset // just raw examples, not fully tested yet! ( Tdef(\a).set(\dt, 0.5, \plong, [12, 24]); Tdef(\a, { |envir| loop { ...

  7. chanTest Quark

    ( Ndef(\chanTest).prime({ PinkNoise.ar(\amp.kr(0.25, 0.5)) }); Tdef(\chanTest).addSpec(\timeStep, [0.2, 5, \exp, 0.01]); Tdef(\chanTest).addSpec(\numChans, [2, 100, \lin, 1]); Tdef(\chanTest).set(\timeStep, 1); Tdef(\chanTest).set(\numChans ...

  8. 2e_presetPilot Quark

    Tdef(\presetPilot).addSpec(\preProb, [0, 1, 4.4]); Tdef(\presetPilot).addSpec(\sndProb, [0, 1, 4.4]); Tdef(\presetPilot).set(\preProb, 0.1); Tdef(\presetPilot).set(\sndProb, 0.05); Tdef(\presetPilot, { |e| inf.do { |i| 1.wait; if (e.sndProb ...

  9. Push-lightshow Quark

    ... tion = {|el| q.dt = el.value.linexp(0, 1, 0.005, 0.1); }; q.taskPlaying = true; Tdef(\player).quant = 0; m.elementAt(\btCtl, \play).action = {|el| (el.value > 0).if{ q.taskPlaying = q.taskPlaying.not; el.value = q.taskPlaying.asInteger; q.t ...

  10. TdefPreset_MoreTests Quark

    ( x = Tdef(\x).set(\dt, 0.1, \freq, 440, \bend, 4, \sustain, 0.05); e = TdefPreset(x); x.addSpec(\dt, [0.03, 3, \exp]); x.addSpec(\bend, [-24, 24, \lin]); e.checkSpecsMissing; // e.checkSpecsMissing(dialog: true); x.addSpec(\sustain, [0.003 ...

1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow