Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created May 20, 2016 12:08
Show Gist options
  • Select an option

  • Save Sciss/368210bf23d2228b3440c97163d81177 to your computer and use it in GitHub Desktop.

Select an option

Save Sciss/368210bf23d2228b3440c97163d81177 to your computer and use it in GitHub Desktop.
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