Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (130) Code (3) Doc (37) Help (20) Quark (67) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. SS_SCMIRAudioFileNormalization Quark

    ... settop = offset+normfeatures-1; //find maxItem, minItem, mean, stddev //array = FloatArray.newClear(SCMIR.soundfile.numFrames*normfeatures); maxval = array[offset]; minval = array[offset]; //mean = 0.0; //find stats for(0,numframes-1,{|i| t ...

  2. WFSPathView Quark

    ... \select: { |bt, rect| // \select //var scaleAmt; Pen.width = 1; Pen.lineDash_( FloatArray[ 1,1 ] ); Pen.addRect( rect.insetBy( rect.width * 0.25, rect.height * 0.25 ) ); Pen.stroke; }, \move: { |bt, rect| // \move Pen.width = 0.8; 4.do({ | ...

  3. SampleDescript copy Quark

    ... lename = fileName;}; soundFile = SoundFile.openRead(filename); soundFileArray = FloatArray.newClear(soundFile.numFrames*soundFile.numChannels); soundFile.readData(soundFileArray); sampleRate = soundFile.sampleRate; numChannels = soundFile.n ...

  4. Buffer Help

    ... updated. The function will be passed this Buffer as an argument. s.boot; ( a = FloatArray .fill(44100 * 5.0, {1.0.rand2}); // 5 seconds of noise b = Buffer .loadCollection(s, a); ) // test it b.get(20000,{ |msg| (msg == a[20000]).postln}); ...

  5. UBasicEditView Quark

    ... .black.alpha_(0.05); Pen.strokeColor = Color.black.alpha_(0.25); Pen.lineDash_( FloatArray[4, 4] ); }, \zoom, { Pen.fillColor = Color.black.alpha_(0.05); Pen.strokeColor = Color.black.alpha_(0.25); }); Pen.addRect( rect ).fillStroke; }; }; ...

  6. Spectrum and Spectrogram of a sound file by jcc (jcc) Code

    ... it fft vars fftsize= 2**11; sfSampleRate = 44100; //temporary sr sfDispArray=FloatArray.newClear(512); hwin = Signal.hanningWindow(512); real = Signal.newClear(fftsize); imag = Signal.newClear(fftsize); cosTable = Signal.fftCosTable( ...

  7. Sample Quark

    ... openRead(this.soundFilePath); //Error("Failed to open sound file").throw; sig = FloatArray.newClear(file.numFrames * file.numChannels); file.readData(sig); file.close; if(channel.notNil and: {this.numChannels > 1},{ sig = sig.clump(this.num ...

  8. Sample Quark

    ... openRead(this.soundFilePath); //Error("Failed to open sound file").throw; sig = FloatArray.newClear(file.numFrames * file.numChannels); file.readData(sig); file.close; if(channel.notNil and: {this.numChannels > 1}, { sig = sig.clump(this.nu ...

  9. openbci_gui_timeseries Quark

    ... ance: false, data: [], railed: false, nearRailed: false, uVrms: RingBuffer(100, FloatArray), lastPenPositionY: 0 ) }.dup(board.numChannels); var std= {|arr| //standard deviation var val= 0; var average= arr.mean; arr.do{|a| val= val+pow(a-a ...

  10. Plotter Help

    ... ). See also GUI help. // specify plot layout ( GUI .skin.plot.gridLinePattern = FloatArray [1, 0]; GUI .skin.plot.fontColor = Color (0.5, 1, 0); GUI .skin.plot.gridColorX = Color .yellow(0.5); GUI .skin.plot.gridColorY = Color .yellow(0.5); ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow