r/supercollider • • Jan 31 '22

I NEED HELP WITH SUPERCOLLIDER

0 Upvotes

When I try to start server it automatically exits

This is the error...

SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'

could not initialize audio.

Server 'localhost' exited with exit code -1073740791.


r/supercollider • • Dec 17 '25

Claude Code Collider

Thumbnail
youtube.com
2 Upvotes

r/supercollider • • Sep 28 '25

Supercollider Book

0 Upvotes

r/supercollider • • Apr 05 '26

Claude Collider DAWless Jam

Thumbnail
youtube.com
0 Upvotes

r/supercollider • • Jan 24 '25

Any guides for connecting ChatGPT to Supercollider?

1 Upvotes

I tried to get this going but hit snags along the way.

Does anyone have a guide or a quick tutorial?

It would be much appreciated!


r/supercollider • • Dec 16 '25

I used Claude to teach Claude how to live code SuperCollider

Thumbnail
youtu.be
6 Upvotes

r/supercollider • • Jan 05 '26

Journey of Chakras

Thumbnail
youtube.com
0 Upvotes

7 Synth, 21 Voice Live Codable Program File

Voice parameters can be modulated individually

Fairly new with SuperCollider / Seasoned Programmer / Music Amateur

~500 lines of code


r/supercollider • • Jun 26 '22

Generating code from existing music

2 Upvotes

Hi guys, i got some idea but i dont have any idea about algomusic. If there is a way for generating music from code, it should be possible to generate code from existing sound/music etc. Do you think its possible or not?


r/supercollider • • Mar 07 '26

Why does the IDE suck?

7 Upvotes

It would be nice if it would flag errors like non defined variables or typos in function calls, but I at least want it to tell me when I'm missing brackets, semi colons, etc. It feels like I'm coding in notepad


r/supercollider • • Apr 09 '26

Just made a tower defense prototype

0 Upvotes

r/supercollider • • Mar 20 '26

Composing with GLM-4.7: Challenge #1

2 Upvotes

r/supercollider • • Mar 08 '26

Supercollider - Machine

Thumbnail
open.spotify.com
0 Upvotes

r/supercollider • • Sep 02 '24

Help for coding…

0 Upvotes

hello everyone; I want to make a code that maps text to musical notes. Pitches specifically, then be able to make contrapuntal transformation matrices with the resulting ones and be able to send it to lilypond to print. Could you guide me on the direction to take? Thanks!!!


r/supercollider • • Jul 23 '21

Musical Sound Design In Supercollider: 19 - MIDI driven granular phrase ...

Thumbnail
youtube.com
0 Upvotes

r/supercollider • • Aug 05 '23

I NEED HELP

0 Upvotes

r/supercollider • • 24d ago Bravo

Beads Port SuperCollider UGen

4 Upvotes

https://github.com/Calebcrittenden/mi-UGens.git

When I read the news that Beads is open source now I jumped on the opportunity to port it with vibecoding. I own the Eurorack module and think its super underrated considering the love clouds gets. I'm intrigued to try and make alt firmware next so maybe beads can grow like clouds did.

Anyway I know that clouds makes a bit more sense in modular but I have used the SuperCollider port and know others do too. I think people will find that this beads port is a bit better suited for SuperCollider's workflow because of the longer buffer length and greater control of granulation. For me I always felt the lofi buffer of the clouds port doesn't make sense in SuperCollider considering its an arbitrary limitation for the ugen to have a lofi buffer in SuperCollider as the limitation is originally in place due to the modules limitations but your computer running SuperCollider does not have those same limitations.

Please let me know what you think and if you find any bugs

Here is code to test the UGen with some fm synthesis sounds for a simple demo:

// MiBeads demo: a small FM synth played through Beads

//

// Beads is Émilie Gillet's design for Mutable Instruments, and every sound

// MiBeads makes comes from her original code (MIT license).

//

// Block 1: server options and SynthDefs. Block 2: sequencer and GUI.

// Evaluate Block 1, wait for "MiBeads demo ready", then evaluate Block 2.

// ---------- Block 1 ----------

(

s.options.memSize = 65536; // MiBeads needs about 1 MB of real-time memory per instance

s.options.sampleRate = 48000; // at 48 kHz, quality 0 and 2 run Beads without any resampling

// Windows WASAPI: name the output device explicitly, for example

// s.options.outDevice = "Windows WASAPI : Realtek HD Audio 2nd output (Realtek(R) Audio)";

s.waitForBoot {

// Two-operator phase modulation voice. It also writes a 10 ms gate to a

// trigger bus, which Beads reads on its SEED input.

SynthDef(\\fmNote, { |out = 0, trig = 0, freq = 220, ratio = 2, index = 3,

	decay = 0.6, amp = 0.2, pan = 0|

	var env, idx, mod, sig;

	env = EnvGen.ar(Env.perc(0.004, decay, curve: -4), doneAction: 2);

	idx = index \* EnvGen.ar(Env.perc(0.002, decay \* 0.6, curve: -6));

	mod = SinOsc.ar(freq \* ratio) \* idx;

	sig = SinOsc.ar(freq, mod) \* env \* amp;

	Out.ar(out, Pan2.ar(sig, pan));

	Out.ar(trig, EnvGen.ar(Env(\[1, 1, 0\], \[0.01, 0\])));

}).add;



// Beads, fed by the FM bus, with the FM note gates patched into SEED.

// With SEED patched, seed_btn chooses how grains are triggered:

//   1 held:     internal generator, same as the module with nothing patched

//   2 latched:  clocked by the notes (density picks a divider or a probability)

//   0 released: one grain per note when density sits at 0.5

// In delay mode (size above 0.99) the notes act as tap tempo for the delay.

SynthDef(\\beadsDemo, { |out = 0, inBus = 0, trigBus = 0, amp = 0.8, trim = 1,

	pitch = 0, pitch_rnd = 0, time = 0.15, time_rnd = 0, size = 0.5, size_rnd = 0,

	shape = 0.5, shape_rnd = 0, density = 0.75, fb = 0, drywet = 0.7, rvb = 0.3,

	freeze = 0, seed_btn = 1, quality = 0, in_gain = 1, synth = 0|

	var src, seed, sig;

	src = In.ar(inBus, 2);

	seed = In.ar(trigBus, 1);

	sig = MiBeads.ar(src,

		pitch: pitch, pitch_rnd: pitch_rnd,

		time: time, time_rnd: time_rnd,

		size: size, size_rnd: size_rnd,

		shape: shape, shape_rnd: shape_rnd,

		density: density, fb: fb, drywet: drywet, rvb: rvb,

		freeze: freeze, seed: seed, seed_btn: seed_btn,

		quality: quality, in_gain: in_gain, synth: synth);

	// safety net for demos in a room, Beads already limits its own output

	sig = Limiter.ar(sig \* (amp \* trim).lag(0.05), 0.95, 0.01);

	Out.ar(out, sig);

}).add;



s.sync;

"MiBeads demo ready, evaluate Block 2".postln;

};

)

// ---------- Block 2 ----------

(

var fmState, fmSpecs, beadsSpecs, rowLabel, win, srcGroup, fxGroup, fmBus, trigBus;

// re-running this block replaces the previous demo

Pdef(\fmSeq).stop;

if(~beadsWin.notNil and: { ~beadsWin.isClosed.not }) { ~beadsWin.close };

// Each run of this block owns its own groups and buses. The cleanup in

// onClose frees exactly these, because Qt closes an old window a moment

// later, after a new run may already have replaced the ~ globals.

~fmBus = fmBus = Bus.audio(s, 2);

~trigBus = trigBus = Bus.audio(s, 1);

~srcGroup = srcGroup = Group.head(s);

~fxGroup = fxGroup = Group.after(srcGroup);

~beads = Synth(\beadsDemo, [\inBus, fmBus, \trigBus, trigBus], fxGroup);

// ----- FM sequencer -----

~fmDefaults = (rate: 4, octave: 4, ratio: 2, index: 3, decay: 0.6, fmAmp: 0.25, spread: 0.6);

~fm = ~fmDefaults.copy;

fmState = ~fm;

Pdef(\fmSeq, Pbind(

\\instrument, \\fmNote,

\\group, srcGroup,

\\out, fmBus,

\\trig, trigBus,

\\scale, Scale.minorPentatonic,

\\degree, Pbrown(0, 12, 3, inf),

\\octave, Pfunc { fmState\[\\octave\] },

\\dur, Pfunc { 1 / fmState\[\\rate\] },

\\ratio, Pfunc { fmState\[\\ratio\] },

\\index, Pfunc { fmState\[\\index\] },

\\decay, Pfunc { fmState\[\\decay\] },

\\amp, Pfunc { fmState\[\\fmAmp\] },

\\pan, Pfunc { fmState\[\\spread\].rand2 }

));

Pdef(\fmSeq).play(quant: 0);

// ----- Window -----

~beadsWin = win = Window("MiBeads demo: FM through Beads", Rect(40, 40, 1130, 760));

~beadsWin.view.decorator = FlowLayout(~beadsWin.view.bounds, 10@10, 8@8);

rowLabel = { |text|

\~beadsWin.view.decorator.nextLine;

StaticText(\~beadsWin, 1100@22).string_(text).font_(Font.default.size_(14).boldVariant);

\~beadsWin.view.decorator.nextLine;

};

// ----- FM knobs -----

rowLabel.("FM synth");

fmSpecs = [

\[\\rate, ControlSpec(0.25, 40, \\exp, 0, 4), "notes/s"\],

\[\\octave, ControlSpec(1, 8, \\lin, 1, 4), "octave"\],

\[\\ratio, ControlSpec(0.01, 20, \\exp, 0, 2), "ratio"\],

\[\\index, ControlSpec(0, 40, \\lin, 0, 3), "index"\],

\[\\decay, ControlSpec(0.01, 8, \\exp, 0, 0.6), "decay"\],

\[\\fmAmp, ControlSpec(0, 1, \\amp, 0, 0.25), "fm level"\],

\[\\spread, ControlSpec(0, 1, \\lin, 0, 0.6), "pan spread"\]

];

~fmKnobs = IdentityDictionary.new;

fmSpecs.do { |row|

var key = row\[0\];

\~fmKnobs\[key\] = EZKnob(\~beadsWin, 130@110, row\[2\], row\[1\],

	{ |ez| \~fm\[key\] = ez.value }, row\[1\].default, layout: \\vert2);

};

// ----- Beads knobs -----

rowLabel.("Beads");

beadsSpecs = [

\[\\pitch, ControlSpec(-84, 84, \\lin, 0.01, 0)\],

\[\\pitch_rnd, ControlSpec(-1, 1, \\lin, 0.001, 0)\],

\[\\time, ControlSpec(0, 1, \\lin, 0.001, 0.15)\],

\[\\time_rnd, ControlSpec(-1, 1, \\lin, 0.001, 0)\],

\[\\size, ControlSpec(0, 1, \\lin, 0.001, 0.5)\],

\[\\size_rnd, ControlSpec(-1, 1, \\lin, 0.001, 0)\],

\[\\shape, ControlSpec(0, 1, \\lin, 0.001, 0.5)\],

\[\\shape_rnd, ControlSpec(-1, 1, \\lin, 0.001, 0)\],

\[\\density, ControlSpec(0, 1, \\lin, 0.001, 0.75)\],

\[\\fb, ControlSpec(0, 1, \\lin, 0.001, 0)\],

\[\\drywet, ControlSpec(0, 1, \\lin, 0.001, 0.7)\],

\[\\rvb, ControlSpec(0, 1, \\lin, 0.001, 0.3)\],

\[\\in_gain, ControlSpec(0.05, 40, \\exp, 0, 1)\],

\[\\amp, ControlSpec(0, 1, \\amp, 0, 0.8)\]

];

~beadsDefaults = ();

~beadsKnobs = IdentityDictionary.new;

beadsSpecs.do { |row|

var key = row\[0\];

\~beadsDefaults\[key\] = row\[1\].default;

\~beadsKnobs\[key\] = EZKnob(\~beadsWin, 130@110, key.asString, row\[1\],

	{ |ez| \~beads.set(key, ez.value) }, row\[1\].default, layout: \\vert2);

};

// ----- Switches -----

rowLabel.("Switches");

~playBtn = Button(~beadsWin, 130@40)

.states_(\[\["FM playing", Color.black, Color.green\], \["FM stopped"\]\])

.action_({ |b| if(b.value == 0) { Pdef(\\fmSeq).play(quant: 0) } { Pdef(\\fmSeq).stop } });

~freezeBtn = Button(~beadsWin, 130@40)

.states_(\[\["freeze off"\], \["FROZEN", Color.white, Color.blue\]\])

.action_({ |b| \~beads.set(\\freeze, b.value) });

~trigMenu = PopUpMenu(~beadsWin, 268@40)

.items_(\["grains: free running", "grains: one per FM note", "grains: clocked to FM notes"\])

.action_({ |m|

	\~beads.set(\\seed_btn, \[1, 0, 2\]\[m.value\]);

	if(m.value == 1) { \~beadsKnobs\[\\density\].valueAction_(0.5) };

});

~qualityMenu = PopUpMenu(~beadsWin, 200@40)

.items_(\["0 hi-fi 48k 16-bit", "1 vintage 32k 12-bit", "2 clean tape", "3 dirty tape"\])

.action_({ |m| \~beads.set(\\quality, m.value) });

~synthBtn = Button(~beadsWin, 130@40)

.states_(\[\["processor"\], \["wavetable synth", Color.white, Color.black\]\])

.action_({ |b| \~beads.set(\\synth, b.value) });

~randBtn = Button(~beadsWin, 130@40)

.states_(\[\["randomize Beads"\]\])

.action_({

	\~beadsKnobs.keysValuesDo { |key, ez|

		if(key != \\amp) { ez.valueAction_(ez.controlSpec.map(1.0.rand)) };

	};

});

~recBtn = Button(~beadsWin, 130@40)

.states_(\[\["record"\], \["RECORDING", Color.white, Color.red\]\])

.action_({ |b| if(b.value == 1) { s.record } { s.stopRecording } });

// ----- Scenes -----

// Each scene starts from the defaults, so it always sounds the same.

// A scene without \quality keeps the current quality, because changing

// quality empties the Beads buffer (as on the module).

~scenes = [

("1 dry FM" -> (beads: (drywet: 0), quality: 0)),

("2 soft cloud" -> (

	beads: (time: 0.12, size: 0.55, shape: 0.7, density: 0.85, pitch_rnd: 0.08,

		rvb: 0.55, drywet: 0.75),

	quality: 0)),

("3 octave shimmer" -> (

	beads: (pitch: 12, pitch_rnd: 0.35, time: 0.25, size: 0.65, shape: 0.6,

		density: 0.9, rvb: 0.75, drywet: 0.8),

	quality: 0, fm: (rate: 3, decay: 1.2))),

("4 clocked grains" -> (

	beads: (time: 0.05, time_rnd: 0.3, size: 0.3, shape: 0.2, density: 0.12,

		drywet: 0.8, rvb: 0.25),

	quality: 0, trig: 2, trim: 2.2, fm: (rate: 8, decay: 0.25, index: 6))),   // sparse grains, so lift the level

("5 dirty tape" -> (

	beads: (pitch: -12, time: 0.3, size: 0.5, density: 0.8, fb: 0.45,

		rvb: 0.4, drywet: 0.8, in_gain: 2),

	quality: 3)),

("6 tape delay" -> (

	beads: (size: 1, time: 0.4, shape: 0.65, density: 0.6, fb: 0.6,

		rvb: 0.3, drywet: 0.5),

	quality: 2)),

("7 frozen scatter" -> (

	beads: (time: 0.5, time_rnd: 1, pitch_rnd: -0.7, size: 0.35, size_rnd: 0.5,

		density: 0.95, rvb: 0.6, drywet: 1),

	freeze: 1)),

("8 wavetable synth" -> (

	beads: (pitch_rnd: 0.3, shape: 0.4, density: 0.2, rvb: 0.6),

	synth: 1, trig: 2, trim: 0.35))   // the synth mode is much louder than the processor

];

~applyScene = { |index|

var scene = \~scenes\[index\].value;

var fmVals = \~fmDefaults.copy.putAll(scene\[\\fm\] ? ());

var beadsVals = \~beadsDefaults.copy.putAll(scene\[\\beads\] ? ());

beadsVals\[\\amp\] = \~beadsKnobs\[\\amp\].value;   // keep the current volume

if(scene\[\\quality\].notNil) { \~qualityMenu.valueAction_(scene\[\\quality\]) };

\~trigMenu.valueAction_(scene\[\\trig\] ? 0);

\~freezeBtn.valueAction_(scene\[\\freeze\] ? 0);

\~synthBtn.valueAction_(scene\[\\synth\] ? 0);

\~beads.set(\\trim, scene\[\\trim\] ? 1);

fmVals.keysValuesDo { |key, val| \~fmKnobs\[key\].valueAction_(val) };

beadsVals.keysValuesDo { |key, val| \~beadsKnobs\[key\].valueAction_(val) };

("scene " ++ \~scenes\[index\].key).postln;

};

rowLabel.("Scenes");

~scenes.do { |assoc, i|

Button(\~beadsWin, 130@40).states_(\[\[assoc.key\]\]).action_({ \~applyScene.(i) });

};

~beadsWin.view.decorator.nextLine;

StaticText(~beadsWin, 1100@60).string_(

"Beads by Émilie Gillet (Mutable Instruments), open source under the MIT license. " ++

"Freeze needs a few seconds of recorded audio first. Changing quality or synth mode " ++

"empties the buffer, like on the module. Call \~applyScene.(0..7) to switch scenes from code."

);

win.onClose_({

// only stop the sequencer if no newer run of this block has taken over

if(\~beadsWin === win) {

	Pdef(\\fmSeq).stop;

	if(s.isRecording) { s.stopRecording };

};

// notes already sent ahead (server latency) must land before their group goes

SystemClock.sched(s.latency + 0.3, {

	srcGroup.free; fxGroup.free; fmBus.free; trigBus.free;

	nil

});

});

~beadsWin.front;

)


r/supercollider • • Jan 29 '26

Built my ideal shooter, enemies break apart perfectly!

0 Upvotes

r/supercollider • • Feb 28 '26

Building a reliable AI for SuperCollider code; has anyone done this?

Thumbnail reddit.com
0 Upvotes

r/supercollider • • 19d ago

Infinite DJ created using SuperCollider

5 Upvotes

I created an 'infinite generative DJ' using SuperCollider.
Have fun with it:

https://jorisesch.github.io/supercollider/
https://github.com/jorisesch/supercollider

The code and the artifacts have the unmistakable fingerprint of AI: I used codex extensively to build this.


r/supercollider • • Jun 13 '19

How do YOU use supercollider?

5 Upvotes

just wondering how a lot of people in this sub use SC? I just got into it a while a go and I'm very excited about it. wrote down an idea for a composition on the train today. I would like to use sc in a compositional way, but eventually I want to get comfortable enough to do some live coding stuff. One of the things that excites me about supercollider is that I feel like it handles multichannel audio really well and am really excited about doing more multichannel work ( i recently bought an interface with multiple outs and a couple extra speakers for a diy quad set up)

anyway, how do you like to use SC? compositions? live coding? building playable synths that you play as part of a large ensemble / band? sound design?


r/supercollider • • Nov 25 '20

Need Help

1 Upvotes

(PLEASE READ!!!! so I started this assignment and at which point am i supposed to hear sound? how am i supposed to change this example and meet the assignment requirements? i've tried copying it line for line and even changed a few things but i get error messages. no i am not trying to get you to do my homework. I am trying to understand this so I can do it on my own. i've already watched youtube videos and still dont understand

Create a new SuperCollider document and complete each of the following exercises in it.

Make sure you are always TYPING your code and NO copying and pasting.

Leave plenty of comments that explain what is happening

Exercise 1

/*

Adding an "amp" argument as an amplifier for your sound.

Make a SynthDef that has an 'amp' argument equal to 1.

Use any noise or oscillator source for the output sound of the SynthDef.

In your SynthDef, multiply the sound source by the 'amp' argument before outputing the sound

Test your SynthDef by creating a Synth and setting the 'amp' argument to 0 to mute and back to 1 for full volume.

Remember to always name your SynthDefs and variables with unique names. DO NOT use the same names as in the example.

*/

Example:

(

//run this first

SynthDef(\amplifier, {

arg amp = 1;
\~soundSource = [GrayNoise.ar](https://GrayNoise.ar)() ;
\~amplifiedSound = \~soundSource \* amp;
[Out.ar](https://Out.ar)(0, \~amplifiedSound);

}).add

)

//Then run this to create, play and store the Synth into 'x'

x = Synth(\amplifier);

//These lines should mute and unmute your sound

x.set(\amp, 0);

x.set(\amp, 1);


r/supercollider • • Nov 12 '20

Dirt Room - Jacks Progress. Plunderphonics in SuperCollider

Thumbnail
youtube.com
1 Upvotes

r/supercollider • • Dec 08 '19

Trying to Incorporate Rand Function into code

1 Upvotes

I am trying to incorporate Rand into my code, not successfully. Any suggestions welcome.

( a = SynthDef(\Synth1, { arg out = 0; Out.ar(out, , SinOsc.ar( Rand(100, 1000) 0 Line.kr(0.2, 0, 1, doneAction:Done.freeSelf)) ) }).add; ) a.play;


r/supercollider • • Sep 16 '21

ERROR: failed to open UDP socket: address in use.

Post image
1 Upvotes

r/supercollider • • Jul 18 '26

Opus 4.8 performs Low Tide

22 Upvotes

Claude Collider is an MCP server that controls SuperCollider. You can use it to live code, or record and playback sclang (the SuperCollider code) all in plain language.

This is a little ambient jam that was composed and arranged via conversation with Claude Opus 4.8 (medium thinking). The file format consists of two .scd files, one for the synthdefs and one for the arrangement, and then a third markdown file with LLM-friendly metadata about the track.

Check out the repository and jam on your end with your LLM of choice. You can find this recording and more in the tapes/ directory:

https://github.com/jeremyruppel/claude-collider