Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (747) Code (14) Doc (370) Help (95) Quark (257) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. DMX Quark

    ... et, maxch; ^super.new.init( offset, maxch ); } init{ arg offset, maxch; mode = \float; channeloffset = offset ? channeloffset; maxchannels = maxch ? maxchannels; data = Array.fill( this.size, 0 ); } size{ ^(maxchannels-channeloffset); } // ...

  2. ArdourOSC Quark

    ... ete/forget last take stop_forget { a.sendMsg("/stop_forget" ) } // where s is a float ranging from -8.0f to 8.0f: set_transport_speed { arg s; a.sendMsg("/set_transport_speed".post, s) } // Adds 1.5 times to transport speed to maximum +8 ti ...

  3. Readme Quark

    ... n bytes into a string. If the value is negative, it is kept as such. If it is a float, it is rounded. **Arguments** | Name | Type | Description | |---------|----------|--------------------| | value | `number` | Value in bytes | | options | ...

  4. 01_GuidedTour Quark

    ... mmon useful Objects in SC: *********** // // Numbers (Integers = whole numbers, Float = fractions, ... others) 1 1.618034 pi 0.5pi // question - add floats and integers? 1 + [ 2, 1.5 ]; // Numbers understand many math operations: 1 + 2; // ...

  5. LoudnessModel Quark

    ... the functions and data to calculate loudness countours and masking. They return floats and arrays of floats. *calc(freq, spl) Returns the phon value for a certain frequency in Hz and intensity in dB SPL // examples LoudnessModel .calc(1000, ...

  6. TestSETOServer Quark

    ... , "6 should equal 6"); this.assertEquals( 9, 9 ,"9 should equal 9"); this.assertFloatEquals( 4.0 , 1.0 * 4.0 / 4.0 * 4.0, "floating point math should be close to equal"); */ var name, format; var ids = [ ['2Dobj' ,"ixyaXYAmr"], ['3Dobj' ,"i ...

  7. 1a_Butz Quark

    ... derFormat_(%);".format(s.recHeaderFormat.cs), "/// one of: 'int16', 'int24', , 'float'", "s.recSampleFormat_(%);".format(s.recSampleFormat.cs), ].join("\n") ); nil; }); WinBounds.addMake(\scope, { var w = s.scope.window; w.name_(\scope); }) ...

  8. SatieJson Quark

    ... { ^str.asSymbol; }; } *tryNumberConversion { |str| var isNumber = false; var isFloat = false; var chars; // if last digit is not 0-9 return early if(str.last.isDecDigit.not) { ^nil; }; // make an array of indicies from 0 to str.size-1 char ...

  9. OssiaCustomTypes Quark

    ... es | ^super.new.init(sz, values) } init { | sz, v | v.do({ | item | if ((item.isFloat.not) && (item.isInteger.not)) { Error("OSSIA: Error! Arguments are not of Float type").throw }; } ); am_val = v; m_sz = sz; } at { | i | ^am_val[i] } put ...

  10. AtkTests Quark

    ... the test. AtkTests { classvar <>report = false, <>order = 3, // for HOA tests <>floatWithin = 1e-8; // float error tolerance // Run all HOA tests *run { |verbose = false, hoaOrder| report = verbose; hoaOrder !? { order = hoaOrder }; [ // li ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow