jensKeyboard

a cheap little circuit that reads 10 analog controllers (8 knobs and 1 joystick). i built it for my neighbour jens' portable keyboard project. it's using an atmega88 and a 4051 multiplexer to get 10 analog-to-digital converters. a standard max232 with some caps lets the atmega88 talk to the serial port of the computer.
attached is schematics, avr firmware and a max/msp patch for testing.

RedPDU

livecoding via sms anyone? an expensive and annoyingly hard hobby for sure.
but the RedPDU supercollider class makes this possible in any case. it can decode mobile phone text messages in the pdu format. and with a serial connection to your phone (bluetooth or cable), it is easy to directly download incoming sms from your phone into supercollider and interpret them. no additional hardware required.
the class is available here. (there is also a mxj java version for max/msp called f0.pdu here)

and here's a short demo video where i send a short message to myself...

RedPDU from redFrik on Vimeo.

the code i texted in this video was...

Pbind('degree', Pn(Pseries(0, 2, 5), 4), 'dur', 0.1, 'amp', 0.5).play

and the sc receiver function is in the helpfile. but note: on many phones it is impossible to type characters like {} [] \ | etc. you might want to add some find&replace functionality and use <> meaning curly brackets etc.

sort of unicode support for sc

this is a big ugly hack and gives far from complete support for these special characters. but still it is useful in some situations like for buttons or comment boxes in your gui.

(
w= Window(Umlaut.fix("åäö test"), Rect(100, 200, 150, 150));
Button(w, Rect(10, 20, 130, 40)).states_([[Umlaut.fixAll("schööön")]]);
Button(w, Rect(10, 70, 130, 40)).states_([[Umlaut.fixAll("Tätigkeit heiß")]]);
w.front;
)

all supported characters... (more can be added on request)

Umlaut.fixAll("åÅäÄöÖüÜéÉèÈêÊàÀîÎïÏëËçÇæÆãÃøØñÑßáÁíÍúÚóÓΩ∑∏π∆µ")

update: there is also asciiCorrect in the wslib quark by wouter snoei

reduniverse: mrcm and ifs

two new classes now in my redUniverse quark. both use affine transformations to draw fractal like structures. RedMRCM is a multiple reduction copy machine, and RedIFS a standard iterated function system.

redUniverse: l-system and turtle

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.


(
l= RedLSystem("F", ($F: "F[+F--F]+F"));
6.do{l.next};
RedLTurtle(l, 40, 10, 0.9, 0.1).makeWindow;
)


(
l= RedLSystem("F", ($F: "|[-FFF--F]+F"));
6.do{l.next};
RedLTurtle(l, 20, 20, 0.95, 0.2).makeWindow;
)


(
l= RedLSystem("F", ($F: "|[--F][+F]-F"));
8.do{l.next};
RedLTurtle(l, 400, 20, 0.65, 0.1).makeWindow(initTranslate: Point(0.5, 0));
)


(
l= RedLSystem("F-F-F-F", ($F: "F[F]-F+F[--F]+F-F"));
5.do{l.next};
RedLTurtle(l, 6, 90, 0.9).makeWindow(initTranslate: Point(1, 0));
)

redTie

custom wireless system built for craftwife. the leds are to be sewn into real ties (update 090428: now done - http://www.youtube.com/watch?v=QUGKfC0SYck). there are 6 red leds per slave and each led can be dynamically controlled (pwm 0-255). all slaves run on battery (AA 3.6v lithium) and keep in contact with the master using 2.4ghz wireless transceivers (nordic nRF24L01+). the maximum working distance is about ~80m (line of sight).
the master talks to supercollider via the RedTieMaster and RedTieSlave classes (usb-serial 115200 baud).

schematics, firmware, partlist and sc classes attached below (gnu gpl v2)

redTie-master...

redTie-slaves...

master and slaves...

leds on ribbon cable...

total cable length: 135cm
distance between leds: 4cm

pact - april

april 2009, 30 days, 1hour/day. do something and show the result to your contracting party. similar to our previous live-coding practising sessions (aug2006 and jun2007). 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 sc. 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...
pact - pre

and here follows the code i write for it each day + short mp3 excerpts for the corresponding code is attached below...

redWirelessMaster

update100721: rewrote the firmware and changed a few things. also renamed the project. it was previously called redUniform2-master
update100724: added supercollider classes to the zip archive

this is my all-round master 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 the slave fails during 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 and schematics attached.

redKontroll2-dev

i've finished another controller using the great avr-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 like a standard HID devices and i have coded some simple max 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, partslist and helper classes are available here.

the total cost is about €45 and the major part of that is the buttons and the pots (see partslist).





redinfo ugens

last night i wrote 3 simple ugens for supercollider. they read the sudden motion sensor, ambient light sensors and the battery capacity on portable macs. download from this page. (mac os 10.5 and later).

RedInfoSms from redFrik on Vimeo.

Syndicate content