Skip to content

Instantly share code, notes, and snippets.

@capital-G
Created March 17, 2022 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capital-G/8244b6cecc8358897b6c35860bdeb42f to your computer and use it in GitHub Desktop.
Save capital-G/8244b6cecc8358897b6c35860bdeb42f to your computer and use it in GitHub Desktop.
Sourcecode for "Monotonie ist schön"
(
var server = Server(\nrt,
options: ServerOptions.new
.numOutputBusChannels_(1)
.numInputBusChannels_(1)
);
~duration = 60*60*6;
a = Score([
[0.0, ['/d_recv',
SynthDef(\NRTsine, {
Out.ar(
0,
SinOsc.ar(
freq: EnvGen.kr(
Env.new([73, 700], [~duration], curve=\exp),
doneAction: Done.freeSelf,
),
mul: 0.5
)
)
}).asBytes
]],
[0.0, (x = Synth.basicNew(\NRTsine, server, 1000)).newMsg()],
//[1.0, x.freeMsg]
]);
a.recordNRT(
outputFilePath: "~/glis_2.wav".standardizePath,
headerFormat: "wav",
sampleFormat: "int16",
options: server.options,
duration: ~duration,
action: { "done".postln }
);
server.remove;
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment