Session slack_1771912006792329
Practice Journal
Here’s a dark, heavy piece using detuned Pulse oscillators with resonant filtering:
// 1. Define SynthDef and write to disk
SynthDef(\darkHeavy, { |freq = 55, amp = 0.7, gate = 1|
var env = EnvGen.ar(Env.asr(0.1, 2, 0.5), gate, doneAction: 2);
var sig = Pulse.ar(freq, 0.1) * env * amp;
var filtered = Resonz.ar(sig, 55, 1.5);
Out.ar(0, filtered \! 2);
}).writeDefFile;
// 2. Build Score with explicit OSC messages
Score([
[0.0, [\s_new, \darkHeavy, 1001, 0, 0, \freq, 55, \amp, 0.7]],
[1.0, [\s_new, \darkHeavy, 1002, 0, 0, \freq, 60.5, \amp, 0.6]],
[2.0, [\s_new, \darkHeavy, 1003, 0, 0, \freq, 50, \amp, 0.7]],
[3.0, [\n_set, 1001, \freq, 65]],
[4.0, [\n_set, 1002, \freq, 55]],
[5.0, [\n_set, 1003, \freq, 58]],
[7.0, [\n_set, 1001, \gate, 0]],
[7.5, [\n_set, 1002, \gate, 0]],
[8.0, [\n_set, 1003, \gate, 0]],
[10.0, [\c_set, 0, 0]]
]).recordNRT(
outputFilePath: "~/dark_heavy.wav".standardizePath,
headerFormat: "WAV",
sampleFormat: "int16",
sampleRate: 44100,
options: ServerOptions.new.numOutputBusChannels_(2),
duration: 10,
action: { 0.exit }
);
This creates a dark, heavy texture with detuned pulses and resonant filtering. The rhythm is sparse to emphasize the weight of the sound. What do you think? Should we adjust the resonance or density?