Skip to content

Instantly share code, notes, and snippets.

@st01c
Created April 28, 2015 19:15
Show Gist options
  • Select an option

  • Save st01c/4682902cfed6fe00d1ff to your computer and use it in GitHub Desktop.

Select an option

Save st01c/4682902cfed6fe00d1ff to your computer and use it in GitHub Desktop.
Blixa Bargeld Hamlet Maschine sample
# @st01c Signal Culture res Day 2 'Hamlet Maschine' sample
load_sample "/Users/martinzeilinger/Music/LC/blixab.wav"
print sample_duration "/Users/martinzeilinger/Music/LC/blixab.wav"
sd = sample_duration "/Users/martinzeilinger/Music/LC/blixab.wav"
blixab = "/Users/martinzeilinger/Music/LC/blixab.wav"
step = 0.02
stpcnt = 0 #for debug only
startt = 0.5
fint = 0.5
live_loop :blixab do
with_fx :bitcrusher, bits: 7, mix: 0 do
sample blixab, start: startt, finish: fint
startt = startt-(step) if startt > 0.03
fint = fint+(step) if fint < 0.97
stpcnt += 1 #for debug only
print [startt, fint, stpcnt] #for debug only
print (fint-startt)*sd #for debug only
sleep sd*(fint-startt)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment