Last active
September 5, 2015 21:54
-
-
Save Sciss/0ecec4f0e3be39319d17 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| val buf = Buffer.alloc(s, 32768, 2) | |
| buf.write((userHome / "Music" / "MyHeart_199_iter1_no475s.aif").path, numFrames = 0, leaveOpen = true) | |
| val rec = play(addAction = addToTail) { | |
| DiskOut.ar(buf.id, In.ar(0, 2)) | |
| () | |
| } | |
| // ... | |
| rec.free() | |
| buf.close(); buf.free() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment