Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (473) Code (27) Doc (143) Help (30) Quark (269) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. GUI Quark

    ... utton, peakIndexView, peakTimeButton, peakTimeView, startButton, startView; var soundfile; ~temp = nil; win = Window.new("Sound Descripter", Rect(140, 800, 1100, 200)).front.alwaysOnTop_(true).background_(colorSet1[2]); //*** Drop Area *** ...

  2. auto-load-samples Quark

    ... led.remove(sound) }; } { // if loading fails, here is a message: "couldn't load soundfile for %\n".format(sound).postln } }; // use the "\notFound" hook in dirt. ~dirt.set(\notFound, { autoLoad.(~s) }); ) // try it out: while playing any ti ...

  3. Player Quark

    Player { var <soundfilepath, <sf, <isPlaying = false, <formatOut= \straight, <bufnum, <server, <numchan, <>outbus, <isScope = false, <isGui = false; var initsoundfilepath, initformatOut, initstarttime, initoutbus, initamp, initxywz, initend ...

  4. extBuffer Quark

    ... ing.not) { "server not running - cannot load sound file.".postln; this.throw }; SoundFile.use(path, { |file| sampleRate = file.sampleRate; numFrames = file.numFrames; numChannels = file.numChannels; }); failed = numFrames == 0; ^if(failed) ...

  5. 2a_bufferLoader Quark

    ... I.dir.userSFExamples +/+ ".."); var bufsName = \global; var hasNoSFs = { |path| SoundFile.collect(globalBufFolder +/+ "*").isEmpty }; NTMI.dir.scSoundfiles = Platform.resourceDir +/+ "sounds"; // buffers should be in global dict q, not in N ...

  6. PlayFileDisk Quark

    ... ut, amp, rate, loop, attack, curve| var file; path= path.standardizePath; file= SoundFile.openRead(path); if(file.notNil, { if(channels.includes(file.numChannels), { //"%: %Ch, %Hz".format(path.basename, file.numChannels, file.sampleRate).p ...

  7. TestBuffer Quark

    ... s expected"); }); o.add; p.add; // Hmm, seems not all systems have the standard soundfile available // s.sendMsg(\b_allocRead, 1, "sounds/a11wlk01.wav"); // So instead we use this from the SoundFile helpfile: sf = SoundFile.new.headerFormat ...

  8. WFSV2 Quark

    ... WFSSpeakerConf.rect( 48, 48, 5, 5 ).makeDefault; GlobalPathDict.put( \wfs, "/WFSSoundFiles" ); GlobalPathDict.put( \resources, String.scDir ); UChain.makeDefaultFunc = { UChain( \bufSoundFile, [ \wfsStaticPoint, [ \point, (5@0).rotate(2pi.r ...

  9. TestSample Quark

    ... aN.not,"beatsize should not be NaN"); } test_gui { var w,c,y,v; w = Window.new("soundfile should be in top left of the blue composite", Rect(200, 200, 800, 400)); //c = SCCompositeView(w,Rect(100,100,700,300)); //c.relativeOrigin = true; c ...

  10. simultaneous-commands Quark

    ... f('filterTrack_1_1').fadeTime = 0.5; ~buffer0 = Buffer.read(s, "<RadiclesFiles>/SoundFiles/Play/0/drums1.wav", bufnum: 0); Ndef('filterTrack_1_1', {arg pitchRatio=1.0 , pitchDispertion=0.0 , timeDispersion=0.0001 , winSize=0.02 ; PitchShift ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow