Skip to content

Instantly share code, notes, and snippets.

@moxuse
Created November 5, 2012 09:10
Show Gist options
  • Save moxuse/4016192 to your computer and use it in GitHub Desktop.
Save moxuse/4016192 to your computer and use it in GitHub Desktop.
Load Binary File To Buffer
(
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