Now added RedLSystem and RedLTurtle to my redUniverse quark. RedLSystem is a fairly standard string rewrite class. One special feature is that it saves the structure/tree/recursion depth of the rewrite process. RedLTurtle either plot L-systems or standard strings. It comes with a set of default drawing functions, but you can easily add your own commands.
A custom wireless system built for Craftwife. The LEDs are to be sewn into real ties. There are 6 red LEDs per receiver and each led can be dynamically controlled (PWM 0-255). All receivers run on battery (AA 3.6V lithium) and keep in contact with the transmitter using 2.4GHz wireless transceivers (Nordic nRF24L01+). The maximum working distance is about ~80m (line of sight).
The transmitter talks to SuperCollider via the RedTieMaster and RedTieSlave classes (USB-Serial 115200 baud).
April 2009, 30 days, 1hour/day. Do something and show the result to your contracting party. Similar to our previous live-coding practising sessions (Aug 2006 and Jun 2007). This time I battle Marcus Fjellström. Follow his daily work here.
My rules are: on the last day of March, code a single SynthDef in SuperCollider that I'll force myself to make music with all throughout the month. I'm not allowed to use any other SynthDefs! If I need to change the synth definition during the 30 days, all the music written up to that point will be affected. These constraints are both quite strict and quite silly I know, but I imagine it'll help me focus my 1hour work on controlling the synth instead of rewriting the synthesis part all the time (bad habit). Of course, it is not the optimal way to make music in SuperCollider. Normally one would opt for smaller SynthDefs that do less and are interconnect via busses. See that as a warning and don't copy my SynthDef below. It's a big ugly beast.
So here's first the SynthDef. Coded on March 31st...
This is my all-round receiver for wireless controllers like redUniform and redThermoKontroll. It's a rebuild of my previous redUniform-master. I generalised it, added some buttons, switches and LEDs and put it into a proper box. I also removed the on-chip ceramic antenna on the Mirf transceiver and replaced it with a socket + a 4inch duck antenna. Now the range of the system is much greater.
The buttons I will use either as additional controllers or as backup controllers if a transmitter fails during the performance. The 4 LEDs are independently controlled and I imagine using them for visual feedback. Usually, I perform with the laptop hidden in the back and the laptop screen turned off. The LEDs will help to discretely show the status of the piece (form, section, sensor activity etc).
Version3 firmware attached below.
Updates:
100721: rewrote the firmware and changed a few things. Also renamed the project. It was previously called redUniform2-master
100724: added SuperCollider classes to the zip archive
I've finished another controller using the great V-USB from Obdev. This version has 16 pushbuttons, 1 switch, 1 light sensor, 4 pots and 1 slider. Just like the previous redKontroll it shows up as a standard HID devices and I have coded some simple MaxMSPJitter patches and SuperCollider classes to parse the data.
Of the 16 buttons, 12 are arranged as a full octave on a piano (black&grey instead of white&black), divided into 2 groups (cde/fgab). The remaining 4 as additional buttons on top of each group to form small pyramids. All this to later make it easier to remember what functions I assigned to which button.
Schematics, firmware, parts list and helper classes are available on the hardware page.
The total cost is about €45 and the major part of that is the buttons and the pots (see parts list).
Last night I wrote three simple UGens for SuperCollider. They read the sudden motion sensor, ambient light sensors and the battery capacity on portable mac laptops. Download from the page: /code/sc/#plugins. (macOS 10.5 and later).
RedInfoSms - sudden motion sensor data sonified in SuperCollider
Ideas:
RedInfoBat - read the battery's current capacity (perhaps use it as reference tuning instead of 440? Laptops are also instruments :-)
RedInfoLmu - read data from the left or right side ambient light sensors (low-pass filter global effect to match the venue's mood-light :-)
RedInfoSms - read data from the Apple sudden motion sensor (very sensitive 3D accelerometer. Tap-tempo analysis while typing on the keyboard :-)
Note: new Apple laptops with SSD do not use sudden motion sensor (the hard drive no longer have any moving parts). So this example will only work with older laptops from ~2010. (battery and light sensor UGens still work though.)
Soldering is such a nice relief from coding. For years I've had an old PC-joystick laying around (thank you, Abe). I knew I wanted to build something from it - something that would produce lovely noise - and yesterday I finally got around to hack it. The joystick now contains a slightly modified micro_noise synth circuit (based on a design by SGMK mechatronicart.ch). It also holds a 9V battery and the PC-connection cable now serves as sound output cable with standard 1/4 jack.
I used the switches and potentiometers that the joystick had and it was very quick to build and cost me virtually nothing. I just cut some cables and soldered them onto a tiny circuit board together with a few components. See the schematics below. The only visible change is the jack output and the LED I mounted in the case.
Based on micro_noise by SGMK. Slightly modified by /f0 090218
This is a tiny project from about 1 year ago. I wanted to add extra IR-light for my DV camera's night shot mode. Very useful when playing in dark and smoky clubs.
I bought 10 Osram high power IR LEDs (SFH4550) and found 5 small resistors (47 Ohm). I run it off two 1.5V batteries.