Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (79) Code (1) Doc (77) Quark (1) SCDoc ↗ Forum ↗ Google ↗
  1. Resize Doc

    ... ) .action_({ arg sbs; a.resize_(sbs.value+1); }); f = SoundFile.new; f.openRead(ExampleFiles.child); a = SoundFileView(w, Rect(10,40, 700, 180)) .soundfile_(f) .readWithTask(0, f.numFrames, showProgress: false ) .resize_(1); w.front; ) ⧉ ✔ ...

  2. Sweep Doc

    ... 500, 0, 0.2) }.play; ) // using sweep to index into a buffer b = Buffer.read(s, ExampleFiles.child); ( { var trig; trig = Impulse.kr(MouseX.kr(0.5, 10, 1)); BufRd.ar(1, b, Sweep.ar(trig, BufSampleRate.ir(0))) }.play; ) // backwards, variabl ...

  3. PG_Cookbook05_Using_Samples Doc

    ... urce file that loops in a musically sensible way. For this example, we will use ExampleFiles.child from ExampleFiles because it's readily available. Empirically, we can find that the segment from 0.404561 to 3.185917 seconds produces a rhyt ...

  4. PartConv Doc

    ... data anymore, just needed spectral version }.fork; } ) ~target = Buffer.read(s, ExampleFiles.child); ( { var input = PlayBuf.ar(1, ~target, loop: 1); PartConv.ar(input, ~fftsize, ~irspectrum.bufnum, 0.5) }.play ) // convolve with live input ...

  5. GrainBuf Doc

    ... ds Inherited instance methods Examples s.boot; ( var winenv; b = Buffer.read(s, ExampleFiles.apollo11); // a custom envelope winenv = Env([0, 1, 0], [0.5, 0.5], [8, -8]); z = Buffer.sendCollection(s, winenv.discretize, 1); SynthDef(\buf_gra ...

  6. Loudness Doc

    ... stance methods Examples // assumes hop of half fftsize, fine d = Buffer.read(s, ExampleFiles.child); // analyse loudness and poll result ( { var in = PlayBuf.ar(1, d, BufRateScale.kr(d), 1, 0, 1); var chain = FFT(LocalBuf(1024).clear, in); ...

  7. BufRd Doc

    ... = Server.local; // note: not *that* columbia, the first one b = Buffer.read(s, ExampleFiles.child); ) // use any AUDIO rate ugen as an index generator { BufRd.ar(1, b, SinOsc.ar(0.1) * BufFrames.ir(b)) }.play; { BufRd.ar(1, b, LFNoise1.ar( ...

  8. PG_06f_Server_Control Doc

    ... es that are worth reading. Here is just one simple case that loads the standard ExampleFiles.child sound file and plays fragments from it. ( SynthDef(\playbuf, { |bufnum, start, dur = 1, amp = 0.2, out| var sig = PlayBuf.ar(1, bufnum, BufRa ...

  9. plot Doc

    ... velopes Env.adsr(0.4, 0.4, 0.8, 0.9).plot // Buffers s.boot; b = Buffer.read(s, ExampleFiles.child); b.plot; // +-1 range b.plot(minval: nil, maxval: nil); // auto range b.plot(minval: 0, maxval: nil); // semi-auto range // UGen functions { ...

  10. SoundFileView Doc

    ... , 100)); a = SoundFileView.new(w, Rect(20, 20, 700, 60)); f = SoundFile.new; // ExampleFiles helps locate audio files used in examples p = ExampleFiles.child; // peek at the path to see location and the format of a path p.postln; f.openRead ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow