Skip to content

Instantly share code, notes, and snippets.

@corbett
Last active August 29, 2015 13:56
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 corbett/8814722 to your computer and use it in GitHub Desktop.
Save corbett/8814722 to your computer and use it in GitHub Desktop.
s = Server.local;
TempoClock.default.tempo_(100/60);
s.recSampleFormat = "int16";
s.recChannels = 2;
(
var clock, sf1, sf2, cut1, cut2, group;
clock=ExternalClock(TempoClock.default);
clock.play;
sf1= BBCutBuffer("/Users/corbett/Music/Corbett/space.wav",40);
sf2= BBCutBuffer("/Users/corbett/Music/Corbett/deploy.wav",8);
s.waitForBoot({
s.sync;
s.prepareForRecord("HilbertSpaceIsABigPlace.wav");
s.record;
group = CutGroup(CutBuf3(sf1, 0.2));
cut1 = BBCut2(group, BBCutProc11(8, 4, 2, 2, 0.2)).play(clock); // dicing up
30.wait;
cut2 = BBCut2(CutBuf3(sf2, 0.2), BBCutProc11(30, 16, 8, 4, 0.2)).play(clock);
5.wait;
group.add(CutComb1.new); // a bit of sound effects
5.wait;
group.removeAt(2);
5.wait;
cut2.pause;
15.wait;
cut2.play;
15.wait;
cut2.pause;
cut1.stop;
cut2.play;
1.wait;
cut2.play;
1.wait;
cut2.play;
1.wait;
s.stopRecording;
});
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment