Language SAOL
Date: | 04/20/05 |
Author: | Anonymous |
URL: | n/a |
Comments: | 0 |
Info: | http://sound.media.mit.edu |
Score: | ![]() |
SAOL is the music-synthesis language which is part of the MPEG-4 standard. There's a homepage for SAOL at http://sound.media.mit.edu Orchestra (beer.saol) : global { srate 1000; // sip rate krate 100; // beer rate } instr beer() { ksig drink; drink = kline(99,1,1); if (drink == 0) { kdump("No bottles of beer on the wall."); kdump("Everybody's drunk!"); turnoff; } else { if (drink == 1) { kdump(drink," bottle of beer on the wall."); kdump(drink," bottle of beer."); } else { kdump(drink," bottles of beer on the wall."); kdump(drink," bottles of beer."); } kdump("Take one down, pass it around,"); if (drink-1 == 1) { kdump(drink-1," bottle of beer on the wall."); } else { kdump(drink-1," bottles of beer on the wall."); } kdump(); } } ------------ Score (beer.sasl) : 0 beer 1
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments