| 123456789101112131415161718192021222324 |
- // Server configuration
- s = Server.local;
- ServerOptions.devices; // List available audio devices if needed
- // Server boot with status reporting
- (
- s.waitForBoot({
- "SuperCollider server ready!".postln;
- "Available audio inputs: %".format(ServerOptions.inDevices).postln;
- "Available audio outputs: %".format(ServerOptions.outDevices).postln;
- "Sample rate: % Hz".format(s.sampleRate).postln;
- "Audio latency: % ms".format(s.options.blockSize / s.sampleRate * 1000).postln;
- // Run a quick audio test
- {
- var sig = SinOsc.ar(440, 0, 0.2);
- sig = sig * EnvGen.kr(Env.perc(0.01, 1), doneAction: 2);
- sig!2 // Stereo output
- }.play;
- });
- )
- //Server.killAll
|