-
-
Save hecanjog/1970f78a51779d18fac239a540c0b2e9 to your computer and use it in GitHub Desktop.
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
from pippi import dsp, pluck, tune | |
freqs = tune.chord('I11', octave=2) | |
length = 60 | |
out = dsp.buffer(length=length) | |
pos = 0 | |
count = 0 | |
while pos < length: | |
p = pluck.PluckedString( | |
freq=freqs[count % len(freqs)] * 2**dsp.randint(-1,4), | |
pick=dsp.rand(0.1, 0.9), | |
pickup=dsp.rand(0.1, 0.9), | |
amp=0.35).play(dsp.rand(0.5, 1)).taper(dsp.MS*2) | |
out.dub(p.pan(dsp.rand()), pos) | |
pos += 0.25 | |
count += 1 | |
out.write('pluck.wav') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment