Monday, November 10, 2008

omnet




For a course that I'm taking, CSC 546 : Operations Research

OMNet++
omnet docs
OMNeT++ in a Nutshell
FIFO
omnet user manual
omnet API



zeros and ones



getc




getc and termios
while getchar



select




select() is your friend.



wiimote



marlpc




MarLPC - The best part of this app is that it takes Open Sound Control (OSC) messages as input. It uses Qt to do this, and is a little funky, but not in a good way. I'm looking to do something similar with liblo instead.





wiiosc




wiimote + osc. Uses cwiid. Sweet.



Central Molecular Zone








Sunday, November 09, 2008

knuth








gsr




A mouse that measures Galvanic Skin Response.





rain music




A wall that makes music when it rains:





Thursday, November 06, 2008

ascii7




I was having big problems with 'pdftotext' producing wacky characters that were making life difficult when I would edit the file. The trick is to set the encoding to ASCII7:


pdftotext -enc ASCII7 file.pdf


I added a line to my .zshrc with the following alias


alias pdftotext='pdftotext -enc ASCII7'





Tuesday, November 04, 2008

somba2




Emilia is 35 years old and is a choreographer and has her own
modern dance company. She has been commissioned to produce a new
dance piece for the opening of the newly refurbished Chisenhale
Dance Space in London. She wants to incorporate new media and
music into the performance, and has decided to use the SOMba system
to make the music for the dancers.

She first contacts a local Brazilian musician, Ayrton, to obtain
music for a few different types of samba rhythms. Ayrton provides
her sheet transciptions of these rhythms for each of 10 different
Brazilian percussion instruments. Aryton has a large collection of
percussion instruments, and records samples of each of them for
Emilia.

Emilia then uses the SOMba system to generate audio files for each
of the parts in the samba rhythms, using the transcribed music and
the recorded samples, both provided by Ayrton. She then uses the
SOMba system to produce a Self-Organized Map of the audiofiles.
She then tries out the different SOMs by using the graphical SOM
browser in the SOMba system. The first few maps she produces do
not fit in with her desired choreography, so she generates SOM maps
until she finds one she is happy with.

Emilia then choreographs and practices with the dancers in her
dance company, trying out different dance techniques, and different
timings for when the dancers show and hide their infrared glowing
orbs. The performance is a rousing success, and Emilia is invited
to Berlin to stage another performance.




somba




Keti is a new music composer based in New York. She currently has
writers block in writing a new piece of music to be performed at
the Julliard School. Keta is at the stage of having a variety of
musical motifs that she is happy with, but is having trouble
putting all these pieces of music together into a unifed whole.

She first creates audiofiles of the various motifs in her score,
breaking these motifs into small one bar measures. Some of the
motifs are rhythmical, some are melodic segments and some are
environmental sounds. She then uses the SOMba system to create
three different Self-Organizing maps, one for rhythm, one for
melody, and one for the environmental sounds.

She then loads up three different instances of the SOMba GUI
browser, and starts placing the icons at different points in the
three different self organizing maps. She adjusts the volume of
each of the clips on the screen, and moves the clips around until
she finds a pleasing arrangement of sounds.

She then takes her 8 sound orbs and puts them on the floor of her
studio apartment, in roughly the places that she had on the
graphical user interface. Keti then moves around space, moving
audio clips slightly to produce exactly the timbres and
juxtapositions of music she is interested in producing.

Somewhere along this process she has the realization that she could
produce this music in real time, on stage by moving the sound orbs
herself. She develops her symphony now with this idea in mind.
When she performs it, the audience is initally shocked by the
composer moving around the stage, but soon begins to appreciate it,
and the performance ends to thunderous applause.




Sunday, November 02, 2008

(Rock Paper Scissors)^2








spicules








sweet




Awesome, I love it when my work is already done: wiiosc, is a tiny Linux program to use the Nintendo Wii Controller as a control device for music programs. Excellent, one step closer.



Saturday, November 01, 2008

flash osc




Flash and OSC. I think I am going to do this in haXe, but it might be a lot of work.



wii




I'm setting up the wii mote on Linux to do my project for CSC 589 here at UVIC. Here's some useful links:

cwiid - a collection of Linux tools written in C for interfacing to the Nintendo Wiimote.
ubuntu wii
Sending simulated mouse events using uinput
wminput
wiimote
wiimote driver
libwiimote
Control X.Org cursor with Wiimote
Tracking Your Fingers with the Wiimote


I personally found the cwiid project to work the best for me. The other big project, libwiimote is cool but doesn't seem to read the IR sensors correctly, and that's what I need.

I'm currently extracting code from wmdemo to have a small little program to send out OSC messages for the data for the IR leds on the wiimote.

Now, with two wiimotes I can track 8 dancers in real time for my SOMba project. It is gonna be sweet.