«first  …9 10 11 12 13 14 15 last»

More SC Twitter

2012-05-14 16:25:12 supercollider

More audio recordings of my twitter sctweets. See twitter.com/redFrik and the previous post /f0blog/tweets/.

Normally you run these lines of code (140 characters) in SuperCollider and it will play you some kind of generative music or soundscape (also graphics in rare cases). Here I've recorded a few for those who are too lazy to install SuperCollider.



This one is using the built-in .fib (as in fibonacci) method to generate pitches (\degree) for the Pbind. The Pbind in it self is quite boring to listen to, so by playing it out on audio bus 8 and then making a small distortion+echo effect synth reading from bus 8, we get a much more interesting sound.



Again using the built-in fibonacci method to generate patterns. Here every 8th bar the pattern is scrambled (Dshuf), and in every 8th bar period the first 2 bars are transposed by a strange trick running the melody pattern (i.e. the frequencies) through a CombN.



Here is something that sounds a bit like a couple of trombones playing a riff in a reverberant room. The riff just goes on and on and is made from a pair of slowly changing LFPar oscillators, scaled, offset and rounded to the nearest 50 Hz.



Sounds a bit like punk rock in 6/8 time signature. The crispness comes from the > BrownNoise combo and the rhythms from the Pulse. Overall melody is the slowly running LFPar oscillator stored in variable f. Note that this tweet only works in SuperCollider version 3.5 and above.



An ever rising tone cluster with some clicks. This is built using a LocalIn/LocalIut feedback chain. There are plateaus where one thinks the maximum frequency is reached, but those are only temporary and after a while the tone starts to rise again.



Here the cutoff frequency of a BRF (band reject filter) is modulated with a SinOsc. The cutoff varies between 1 and 99 Hz in the left channel, and 1 and 100 Hz in the right channel. The BRF goes wild and outputs totally crazy sounds when modulated in this matter - just like the BPF used to behave in old SuperCollider versions (3.3 and earlier).



A deep fat bass. It sounds as lovely in a big speaker system as it sounds poor in laptop speakers. The patch is mainly doing phase modulation on a SinOsc with tanh distortion.



This tweet sounds much like a field recording. The noise comes from an exploding BRF (band reject filter) that is wrapped in a Limiter so that it keeps in range. Last a GVerb is adding a metallic quality reverb to the overall sound.



This was coded, believe it or not, within a 5min time limit and under water pistol threat (part of sc2012 keynote talk in London). Again it's a BRF misbehaving run through a comb delay with short modulated delaytime (from 0 to 0.1).



A quite poor tweet. The rhythms are not so interesting and it also have the problem of running out and stopping after a few seconds. Anyway, the principle is that a BRF is generating strange sounds that phase modulate a SinOsc, that in turn goes through a ringing filter (Ringz). I only wanted to record it so that when someone fixes the BRF in some upcoming SuperCollider version, I can go back and listen to how it could sound.


Pbind(\freq,Pseq("SUPERCOLLIDER".ascii,inf)*Pstutter(64,Pseq([3,4,5],inf))*[1,2.045],\dur,0.03,\amp,Pseq([0,0.1],inf)).play// #SuperCollider

Super annoying little thing. It is using the values of the ASCII characters in the string "SUPERCOLLIDER" which is [83, 85, 80, 69, 82, 67, 79, 76, 76, 73, 68, 69, 82]. This is played in sequence and transposed and detuned. Maybe a candidate for the official SuperCollider theme song?



Very intense sounding tweet.



An even more intense sounding tweet.



This patch is heavy on the CPU. It consists of a synth with nested GVerbs all with random settings for roomsize and reverberation time. Synths play for 6 seconds and then fades out over 5 seconds as another synth, with different reverb settings start. The result is overlapping sounds and quite dense texture.


a=LFTri;play{CombN.ar(SinOsc.ar(Saw.ar(3,128,128),Saw.ar([3,4],a.ar(a.kr(0.1,0,8,12),0,32,128)).sin)/4,1,1/6,a.kr(1/32)+1)}// #SuperCollider

A rhythmic tweet. Gets a bit annoying after a while but there are some nice details in there.



Phasing melody in left and right channels. Every 7th note has a slightly different timbre (the 0!6++500 part) and every time one starts this tweet the melody changes (the Dshuf((0..7) part). The phasing is done with two Saw oscillators running at 9 and 9.01Hz. They are in turn used as triggers for the timbre and melody sequences (the two Demand UGens).

redShift Excerpt

2012-05-11 09:20:32 supercollider

A short excerpt from a rehearsal. It is made with the patch I played at the SuperCollider Symposium 2012 club night (Corsica studios, London).

It's controlled with my custom controller redThermoKontroll

One Reason Why I Love SC

2012-05-08 14:37:00 supercollider

140 characters...


If we run this line in SuperCollider we hear this...

and using Rohan Drape's great rd_dot quark and swap play{} with draw{} in the line above, this mess gets revealed...


So with a single line of code - short enough to fit in a twitter tweet - we've built this amazingly complex sound synthesis patch. I can not imagine a system with greater code-to-noise ratio than SuperCollider.

And this one is pretty fun to .draw as well...


A heavily recursive patch that looks almost fractal. The PDF file generated from this line of code is 300kB! The number 6 in the code means recursion depth and 60 is the base frequency.

To run the rd_dot quark in SuperCollider on a mac you'll need Graphviz (I use 2.28 on my OSX 10.6.8). You also need to make sure the resulting .dot files open automatically in Graphviz and not Photoshop, Word or something. (Get info on a .dot file in Finder and change all filetypes to open with graphiviz. You'll find the .dot files from rd_dot in your hidden /tmp directory)


Analogue Video In/Out on a Recent MacBook Pro

2012-04-22 11:35:33 other

For a project, I needed to take in and send out realtime analogue (composite) video. Analogue video input has always been a problem, but on recent laptops, Apple even removed the video output via DVI adapter option (i.e. there is no DisplayPort to video/s-video adapter).

So after experimenting and going through some old hardware I had laying around, I found a solution using two devices that I last used around 10 years ago.

  • dfg1394 bus-powered s-video/composite video to uncompressed firewire converter from The Imaging Source (firewire version no longer available).
  • Mac OSX drivers for the dfg1394 from Outcastsoft. Works with MaxMSPJitter etc.
  • an old TView Gold scan converter from Focus enhancements. Used in combo with a 5V power from USB hack and a DisplayPort to VGA adapter.



2011-10-03 14:02:22 electronics

Wireless sensor for embroidery.

The sensor is a tilt-compensated compass i.e. a 3D accelerometer in combo with a 3D magnetometer. Compared to my other wireless boxes, this one runs on 3.0V (two AAA batteries) and not 3.6V. This due to the LSM303DLH sensor's lack of onboard voltage regulators and 1.8V I2C data lines.

The ATmega168 has an Arduino sketch loaded as firmware and is using the internal 8 MHz oscillator. So the circuit is pretty minimal.

As part of the project knyppel with Ann Rosén. Also, see this post.

broderi photo1broderi photo2

Schematics, Arduino firmware, parts list, MaxMSPJitter patches, SuperCollider class attached.


Soft Modem

2011-09-29 16:42:50 electronics, supercollider

This summer I build 8 small circuits that can control a bunch of LEDs (6 channels PWM) from basically any iDevice or Android phone. The circuit connects to the audio jack of the phone and uses the right channel to send data commands (in the form of a modem signal).

We use rjdj (and Pdlib, SuperCollider, etc) to generate the data signal on the phone in realtime. And it's relatively easy to connect for example the built-in accelerometer in the phone to control some LEDs, or to run amplitude/pitch tracking on the microphone and let that flash some LEDs.

The circuits will be used in the rhyme research project as well as in the upcoming e-textile workshop in Oslo (Oct 2011).

softModem photo1softModem photo2softModem photo3softModem photo4

The design is based on SoftModem by arms22. Attached below are my schematics, Pd FSK abstraction and Arduino firmware.

The modem signal is generated using Frequency-shift keying and here's how to do that in SuperCollider...

c= "how are you?";
{var t= 1/1225; var m= Duty.ar(Dseq([t*100]++t.dup(11*c.size)), 0, Dseq([1]++c.ascii.collect{|cc| [0]++(cc.asBinaryString.ascii-48).reverse++[1, 1]}.flat), 2); SinOsc.ar(m*(7350-4900)+4900)!2}.play(fadeTime:0);

This will send the characters "how are you?" at a baud rate of 1225. This is of course not a valid command for the circuit above, just something to demonstrate how it sounds. below is an MP3...



2011-06-29 23:11:26 electronics

Wireless lace pillows. In collaboration with Ann Rosén.

See knyppel.se.

knyppel photo1knyppel photo2

Schematics, firmware, parts list, MaxMSPJitter patches, SuperCollider class attached.


  • 110928: removed light sensor and added 2 more sliders, added SuperCollider class

«first  …9 10 11 12 13 14 15 last»