Created
May 20, 2016 12:08
-
-
Save Sciss/368210bf23d2228b3440c97163d81177 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 N = 1 | |
| val b = Buffer.alloc(s, numFrames = 32768, numChannels = N) | |
| b.write(path = (userHome/"Music"/"work"/"_killme3.aif").path, sampleFormat = io.SampleFormat.Int24, | |
| numFrames = 0, leaveOpen = true) | |
| val x = play { | |
| val in = PhysicalIn.ar(0, numChannels = N) | |
| DiskOut.ar(b.id, in) | |
| () | |
| } | |
| x.free(); b.close(); b.free() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment