FORUM

Notifications

Example how to control 2.4SINK with SuperCollider via Open Sound Control (OSC)  

  RSS

Henrik Langer
(@henrix)
Member Admin
Joined: 11 months ago
Posts: 5
19/02/2020 6:54 pm  

SuperCollider ( https://supercollider.github.io/ ) is an open source music live coding application, which can be used to control 2.4SINK's outputs.
This example shows you how to control any output function of 2.4SINK with SuperCollider via OSC.

In factory state 2.4SINK creates a WiFi without password named 2.4SINK (for best performance 2.4SINK should be always used in WiFi Access Point mode). 
Make sure mode toggle switch is set to act (action) mode and your computer is connected to 2.4SINK's WiFi.

Start SuperCollider and execute the following commands:

Connect to 2.4SINK OSC server:

b = NetAddr.new("192.168.5.1", 7771); // on Mac OS hostname 2-4sink.local can be used instead of IP

 

Enable bipolar sine LFO with 3 Hz frequency on output A1:

b.sendMsg("/A/1/lfosine", 3.0);

 

Set control voltage to +7V on output A2:

b.sendMsg("/A/2/cv", 0.7);

 

Enable LFOs with different waveforms and frequency between 0 and 10 Hz on all outputs:

b.sendBundle(0.0, // send OSC bundle for sample accuracy.
["/A/1/lfosine", 10.0.linrand],
["/A/2/lfosaw", 10.0.linrand],
["/A/3/lforamp", 10.0.linrand],
["/A/4/lfotri", 10.0.linrand],
["/A/5/lfosquare", 10.0.linrand],
["/A/6/lfoclk", 10.0.linrand],
["/A/7/lfonoise", 10.0.linrand],
["/A/8/lfosineuni", 10.0.linrand],
["/B/1/lfosine", 10.0.linrand],
["/B/2/lfosawuni", 10.0.linrand],
["/B/3/lforampuni", 10.0.linrand],
["/B/4/lfotriuni", 10.0.linrand],
["/B/5/lfosquareuni", 10.0.linrand],
["/B/6/lfoclk", 10.0.linrand],
["/B/7/lfonoiseuni", 10.0.linrand],
["/B/8/lfosineuni", 10.0.linrand],
);

 

This topic was modified 2 months ago 3 times by Henrik Langer
This topic was modified 1 month ago 2 times by Henrik Langer

Quote
Topic Tags