Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1299) Code (80) Doc (443) Help (108) Quark (663) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. 5_chantest Quark

    ... urce = { |envir| loop { (0..envir.max).do { |i| envir.dt.wait; "PINK outchan: ".post; q.chantest.pink.play(i.postln); defer { try { q.chantest.butz.do {|but, buti| var butval = (i == buti).binaryValue; but.value_(butval); } } } } } }; q.cha ...

  2. SCPyduino Quark

    ... serial-A1001NeZ" f = SCPyduino .new(d); //wait ~three secs f.firmataVersion; // posts the version of Firmata returned from the microcontroller if //connection is ok f.close; //close the SerialPort connection. Accessing Instance and Class Va ...

  3. DrawIcon Quark

    ... efresh; ) The library of Pen functions is stored in drawFuncs DrawIcon .names.dopostln; // post all available iconNames ( w = GUI .window.new( "drawFuncs" ).front; k = DrawIcon .drawFuncs.keys.asArray .select({ |item| [ '-' , '!' ].includes ...

  4. BufferQueryQueue Quark

    ... s = m.at(2); buffer.numChannels = m.at(3); buffer.sampleRate = m.at(4); " done".postln; // must try here -- if completionFunc fails the queue gets stuck try { completionFunc.value(buffer); } { |error| error.reportError; "Error occurred duri ...

  5. JSONlib Quark

    JSONlib { var <>postWarnings; var <>useEvent; var <>customEncoder; var <>customDecoder; *new { |postWarnings = true, useEvent=true, customEncoder=nil, customDecoder=nil| ^super.newCopyArgs(postWarnings, useEvent, customEncoder, customDecode ...

  6. startup_example_customize Quark

    "startup example - customising Menus.".postln; // choose which server to use, // e.g. for teaching, take internal, so scope works Server.default = s = Server.internal; { try { Server.local.window.close } }.defer(0.5); s.options .numAudioBus ...

  7. RedGIF Quark

    ... ackground)}, //restore background 3, {"TODO disposalMethod==3 restore previous".postln} ); }; if(images.size>1, { //if animated gif Routine({ while({win.isClosed.not}, { //TODO check userinputflag here (images.wrapAt(index).control.duration ...

  8. basicAllProcessSetup Quark

    /////////// EXAMPLE PROCESS SETUP //////////// // // post all found processes: // (q.dir.ntmi +/+ "*processes/*.scd").pathMatch.collect { |path| // path.basename.splitext[0].asSymbol; // }.postcs; // [ 'rjkChaos', 'allArm', 'bleepo', 'brush ...

  9. Period Quark

    ... =argamp; start=0; end=start+argsize; this.size=argsize; if(size==0,{"nuller!!!".postln}); pos=pos; amp=1; rms=0.5;//kann man ausrechnen; peaks=ot*2; delta=0.5//kann man ausrechnen; } init{arg argspbl,argpar,argpos,argstart,arglength,argamp, ...

  10. sound_example_simple_accelerometer Quark

    ... ef(\sines3, {|t_trig= 0| var f= \freq.kr(400!3, 1/25); Timer.kr(t_trig).poll; //post time between updates in seconds LeakDC.ar(Splay.ar(SinOsc.ar(f, 0, 1/3))); }).play(fadeTime: 3); sequencer.accelAction= {|xyz| Ndef(\sines3).set(\freq, xyz ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow