Questions tagged [supercollider]

SuperCollider is an environment and programming language for real time audio synthesis and algorithmic composition. It provides an interpreted object-oriented language which functions as a network client to a state of the art, realtime sound synthesis server.

SuperCollider is an environment and programming language originally released in 1996 by James McCartney for real-time audio synthesis and algorithmic composition.

Since then it has been evolving into a system used and further developed by both scientists and artists working with sound. It is an efficient and expressive dynamic programming language which makes it an interesting framework for acoustic research, algorithmic music and interactive programming.

There are currently not many SuperCollider questions on Stack Overflow, so please consider also consulting the following useful sources:

126 questions
1
vote
1 answer

supercollider arduino serial communication

I am working on an arduino uno + supercollider 3 project. Basicly: I have an arduino set up with potentiometers, a sensor and some buttons. I put the data of inputs in an array and send it to my computer trough serial. Currently, my output in the…
Nic
  • 11
  • 2
1
vote
1 answer

How to send buffer to audio file in Supercollider?

I'm working on a simple Supercollider patch (my first), designed to swap samples in a file to get a stuttering, granular synthesis sort of sound. What I'm trying to do is make a new audio file that's the length of the input file. It should run a…
TurtleOrRodeo
  • 63
  • 1
  • 11
1
vote
1 answer

Connecting multiple stages of parallel synths, with array of buses, in superCollider

When I have 2 stages of multiple parallel synths, I am able to connect it with an array of buses. (Thanks to Dan S for the answer to a previous question). When there is a 3 stage, this doesn't seem to work. ( SynthDef(\siny, { arg freq, outBus=0;…
Rithesh
  • 199
  • 7
1
vote
1 answer

Array of buses in superCollider

I have a Synth generated with a do: ( SynthDef(\siny, { arg freq, outBus=0; Out.ar( outBus, SinOsc.ar(freq!2,0,0.2) ) } ).send(s); SynthDef(\filter, { arg cFreq,q=0.8, inBus; Out.ar( 0, BPF.ar(In.ar(inBus), cFreq!2, 1/q ) ) }…
Rithesh
  • 199
  • 7
1
vote
1 answer

SuperCollider access sample rate in a synthdef

how to find/get the samplerate number that SuperCollider is running into a patch as a variable?
Dan Stowell
  • 4,618
  • 2
  • 20
  • 30
1
vote
1 answer

No sound from SuperCollider with Jack2

Note: similar but not the same as SuperCollider not audible on headphone, because my issue is not restricted to headphones, and the fix for that question (remapping to system:playback_{3,4}) does not apply to my situation I am trying to use…
ajp
  • 1,723
  • 14
  • 22
1
vote
0 answers

Do Web Audio Api and Supercollider work together?

Is it possible to load a SuperCollider SynthDef as a source into Web Audio API? Say, if I have an Apache Server running on port 8888, can I set SC to the same server and do the trick on real time? Thanks.
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
1
vote
2 answers

Why does this non-returning envelope not get retriggered?

I'm trying a use a non-returning envelope (i.e. the segments in it do not return to 0). I'm finding that the envelope env cannot be triggered more than once in the following code: ( SynthDef(\stupidSynth, { |t_trig| var env,…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
2 answers

Recording a WAV file using SuperCollider

I wrote the following code to define a SynthDef that records a sound into the buffer passed as one of the parameters. ( SynthDef(\recordTone, { |freq, bufnum, duration| var w = SinOsc.ar(freq) * XLine.ar(101,1,duration,add: -1) / 100; …
1
vote
1 answer

Is there a SuperCollider (or similar realtime synthesis system) interface for the C language (preferably in DLL form)?

I'm interested in using SuperCollider's various plugins within a game engine. But the FFI in my programming language (SwiftForth) only supports plain old C-language DLL files. I know that for starters I need some kind of OSC interface. Then,…
Roger Levy
  • 105
  • 1
  • 1
  • 9
1
vote
1 answer

Why can't I do an equality test of a synth parameter?

I'm mystified. In this code: SynthDef(\acid, { |out, gate = 1, freq, myParam, amp, cutoff, resonance, filtEnvAmt| var env, audio, filtEnv; if (myParam == \something, { freq = 200; }); env = Linen.kr(gate, 0, 1, 0,…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
1 answer

How do I add a random offset to values in a Pseq?

Given a Pseq similar to the following: Pseq([1, 2, 3, 4, 5, 6, 7, 8], inf) How would I randomise the values slightly each time? That is, not just randomly alter the 8 values once at initialisation time, but have a random offset added each time a…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
3 answers

Why does it matter how I execute this code?

I have built the following simple synth structure which creates a synth and routes its output through an effects unit: b = Bus.audio(numChannels: 2); SynthDef( "mySynth", { |freq, amp, gate = 1| var vol = 0.5; var…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
2 answers

Supercollider: automatic sustain in events with envelope

( SynthDef(\testEvt,{ arg out, gate = 1; var sint = Blip.ar(440) * Linen.kr(gate,doneAction:2,releaseTime:0.8); Out.ar(out, Pan2.ar(sint, 0)); }).add(); Synth(\testEvt) (instrument: \testEvt, freq:220, sustain: inf).play; (instrument:…
MrBloom
  • 91
  • 6
1
vote
2 answers

How do I downsample a control rate variable to a scalar value?

In SuperCollider: How do I downsample a control rate variable to a scalar value? For instance, I have a scalar global called ~delay and a few functions care about that value. They assume it is a scalar. I wanted to set a envelope generator on that…
Hapus
  • 13
  • 2
1 2 3
8 9