Session slack_1771658740989019

Practice Journal

SynthDef(\test, { |freq = 440, amp = 0.5, dur = 1| var env = EnvGen.ar(Env.perc(0.01, dur), doneAction: 2); var sig = SinOsc.ar(freq) * env * amp; Out.ar(0, sig ! 2); }).store;

p = Pbind( \instrument, \test, \dur, 0.25, \degree, Pseq([0, 2, 4, 7], inf), \amp, 0.6 );

p.asScore(8).recordNRT( outputFilePath: “~/test.wav”.standardizePath, headerFormat: “WAV”, sampleFormat: “int16”, sampleRate: 44100, duration: 8 );

Understood. I’ll generate SuperCollider audio code with optional MAP-Meta frames as we proceed. Let’s begin.

testing

Here’s a basic test pattern:

// Test SynthDef
SynthDef(\test, { |freq = 440, amp = 0.5, dur = 1|
    var env = EnvGen.ar(Env.perc(0.01, dur), doneAction: 2);
    var sig = SinOsc.ar(freq) * env * amp;
    Out.ar(0, sig ! 2);
}).store;

// Test pattern
p = Pbind(
    \instrument, \test,
    \dur, 0.25,
    \degree, Pseq([0, 2, 4, 5], inf),
    \amp, 0.4
);

// Test NRT render
p.asScore(4).recordNRT(
    outputFilePath: "~/test_output.wav".standardizePath,
    headerFormat: "WAV",
    sampleFormat: "int16",
    sampleRate: 44100,
    duration: 4
);

Would you like to:

  1. Proceed with this test
  2. Adjust any parameters
  3. Change the structure
  4. Add specific elements
  5. Include MAP-Meta frames in the output