Processing sketch on fire
I just made another little demo in processing. in fact i rewrote a little demo i did 15 years ago in pascal on a dos-box

modularizing chuck files
I wrote a simple chuck script that generates a drum loop and a bass-sequence. later i wanted to reuse the sounds and started to search how to modularize the code.
so i started to convert my instrument declarations in classes. The instrument classes don't get connected to 'dac' directly. They have a "connect"-method that can be used by the main script.
to run the loop all the scripts must be given on the commandline
chuck Bass.ck DrumSet.ck loop.ck
The main script (loop.ck) instanciates a DrumSet and a Bass class and connects them to "dac". Than it generates a walking bass and a simple electronic drum loop.
DrumSet drm;
drm.connect( dac );
Bass bass;
bass.connect( dac );
[ 41, 41, 44, 46] @=> int bline[];
0 => int pos;
0 => int count;
while ( true ) {
drm.hh();
if ( count % 2 == 0 ) { drm.bd(); }
if ( count % 4 == 2 ) { drm.sn(); }
if ( count % 2 == 0 ) { spork ~ bass.bass( bline[ pos % 4 ]); }
if ( count % 2 == 1 ) { spork ~ bass.bass( 12 + bline[ pos % 4 ]); }
1 + count => count;
if ( count % 4 == 0 ) { 1 + pos => pos; }
250::ms => now;
}
read more ...flying with python3.0
I recently installed python3. While scanning through the module directory a package named "antigravity" catched my eye.
when i typed "import antigravity" python opend a browser-window with this link
i really like python - and xkcd :-)
read more ...Visiting the Mailüfterl
Today i was visiting the Technical Museum of Vienna and while
standing in front of favourite exhibit - the Mailüfterl which is
the first european full transistorized computer - i thought it would be cool to see some code
running on this machine.
back home i googled a bit and - tata - someone has written a emulator of the mailüfterl!

note: the image is from Wikipedia and was shot by Florian Staudacher and was licenced under Creative Commons Attribution 3.0 Unported
read more ...

