Skip to content

Instantly share code, notes, and snippets.

@tedthetrumpet
Created July 7, 2016 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedthetrumpet/66f8b57fb72b4c56081610d1ac9e77d7 to your computer and use it in GitHub Desktop.
Save tedthetrumpet/66f8b57fb72b4c56081610d1ac9e77d7 to your computer and use it in GitHub Desktop.
~changesamples = {
|x="hitz01"|
if ( ["hitz01","soh","hamburg", "iowa"].indexOfEqual(x) != nil,
{ var path = "/Users/jsimon/Music/SuperCollider Recordings/" ++ x ++ "/";
Buffer.freeAll;
~bufs = (path ++ "*.aiff").pathMatch.collect({ |i| Buffer.read(s, i)});},
{"that's not a sample folder".error; nil})
};
~changesamples.();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment