Language SuperCollider
(Ugly)
| Date: | 06/21/07 |
| Author: | sutashu |
| URL: | n/a |
| Comments: | 2 |
| Info: | http://supercollider.sourceforge.net/ |
| Score: |
bottlefunction = {arg n;
Post << (n>0).if(n, {"no more"}) << " bottle" << (n>1 or: n==0).if({"s"}, {""}) << " of beer";
};
99.for(1,{arg i;
bottlefunction.value(i);
Post << "on the wall, ";
bottlefunction.value(i);
".".postln;
Post << "Take one down and pass it around, ";
bottlefunction.value(i-1);
" on the wall.".postln;
});
"No more bottles of beer on the wall, no more bottles of beer".postln;
Post << "Go to the store and buy some more, ";
bottlefunction.value(99);
"on the wall".postln;
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