Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (924) Code (27) Doc (315) Help (54) Quark (524) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. function vars/args as dictionary by vividsnow (vividsnow) Code

    shortcuts to get function variables/arguments state as dictionary // variables ({ var aa = 3, bb = aa + 1, cc = 5; { |d v| d.inject((), { |a i k| a[i] = v[k] }) }.(thisFunctionDef.varNames, this.getBackTrace.vars); }.()) // argumen ...

  2. ilisp Quark

    ... ray(arguments).ilisp }); if(arguments.size == 1 and: { arguments.first.isKindOf(Dictionary) },{ // accept keyword arguments arguments = arguments.first.ilisp },{ arguments = arguments.collect(_.ilisp) }); ^operator.asInstr.valueArray(argume ...

  3. ilisp Quark

    ... ray(arguments).ilisp }); if(arguments.size == 1 and: { arguments.first.isKindOf(Dictionary) }, { // accept keyword arguments arguments = arguments.first.ilisp }, { arguments = arguments.collect(_.ilisp) }); ^operator.asInstr.valueArray(argu ...

  4. extSequenceableCollection_2 Quark

    ... (((args.size == 0) || (args.size == this.size)) && args.every { |x| x.isKindOf(Dictionary) and: { x.keys.isSubsetOf(sVarGuiArgs) } }).not.if { SimpleInitError("Args of method aSequenceableCollection.sVarGui must be Dictionaries." ++ " Thei ...

  5. SCLOrkSynths Quark

    SCLOrkSynths { classvar <window, bankPathsArray, patternPathsArray, <synthDictionary, <folderPath; // add all SynthDefs (checks if server is on) // optional: force reboot server to ensure right memSize and stuff? *initClass { /* Creates a D ...

  6. MixerUI Quark

    ... extView.new.string_(orbit.get(\label)).fixedHeight_(30); var newOrbitElements = Dictionary.newFrom([ \orbitLabel, Dictionary.newFrom([\element, orbitLabelView]) , \contextMenuLabel, Dictionary.newFrom([\element, contextMenuLabelView]) , \pa ...

  7. SCMMIDIInSelectorView Quark

    ... lectedMIDIInName, <midiIn; classvar dependants, midiIns; *initClass { midiIns = Dictionary(); dependants = Set(); this.refresh(); } *refresh { MIDIIn.connectAll(); MIDIClient.init(); midiIns.clear(); MIDIClient.sources do: { |midiEndPoint| ...

  8. FuzzySet Quark

    FuzzySet random lookup dictionary with singular elements superclass: FuzzyDictionary put(key, obj) put an object into the dictionary. If there is already an object at that key, the new object is added to the list of choices. If the object e ...

  9. SCMMIDIOutSelectorView Quark

    ... ut, selectedMIDIOutName; classvar dependants, midiOuts; *initClass { midiOuts = Dictionary(); dependants = Set(); this.refresh(); } *refresh { MIDIClient.init(); midiOuts.clear(); MIDIClient.destinations do: { |midiEndPoint| var endPointNam ...

  10. AbstractSInstrument Quark

    ... tractSInstrument { var <controllers; //list with dictionaries var <arguments; //dictionary with current arguments var grp; //audio group for everything here var bus; //numChannels audio bus for internal routing *new {|numChannels= 2, target ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow