/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
length1 = int(fadefactor_left * left) length2 = int(fadefactor_right * right) #p < 0 = to left, p > 0 = to right if index < length: sound.set_left(samp,length1) if index >= length: sound.set_right(samp,length2) return new_snd4