Created
August 31, 2014 15:04
-
-
Save thormagnusson/89b6507d3562a71f432e to your computer and use it in GitHub Desktop.
Temporal Recursion in SuperCollider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// recursion | |
f = {arg a; | |
a = a+1; | |
a.postln; | |
if(a<10, { thisFunction.value(a) }) | |
}; | |
f.(2) | |
// temporal recursion | |
f = {arg a; | |
fork{a = a+1; | |
a.postln; | |
0.1.wait; | |
if(a<10, { thisFunction.value(a) }) | |
}}; | |
f.(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool thanks!