Created
November 5, 2012 09:10
-
-
Save moxuse/4016192 to your computer and use it in GitHub Desktop.
Load Binary File To Buffer
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
( | |
f = File("PATH TO YOUR FILE","rb"); | |
a = []; | |
240000.do({arg i; | |
a = a.add( f.getInt8 ); | |
}); | |
b = Buffer.loadCollection(s, a.normalize); | |
f.close; | |
a.plot | |
) | |
x = { PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1).dup() * 0.25 }.play; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment