Last active
August 29, 2015 13:56
-
-
Save corbett/8814722 to your computer and use it in GitHub Desktop.
Code used to create https://soundcloud.com/messier-etoiles/hilbert-space-is-a-big-place
This file contains 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
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