Hi, I've been using this script for a while to play wavefiles backwards and forwards, but realized that it just isn't doing what it should do. Basically, I have a message that specifies 0.0666537 for forwards and a message that specifies -0.0666537 for backwards (as an example). however, if i get sent a 2 bar or a 1 bar wavefile, these will result in, well, very low-tempo playback.
loadbang
|
symbol $1
|
read -resize $1 $1-L $1-R(
|
soundfiler
|
numberbox
cold inlet)
*~
|
tabread4~ $1-L
|
| tabread4~ $1-R
| |
outlet~
outlet~
second go:
loadbang
|
0.0666527 (
|
hslider
|
number
|
sig~
|
phasor~
hot inlet)
*~
sorry, not sure how to use the forum to explain such a (to me) complex script. anyway, i hope the .pd itself will make some sense.
basically, i have to slightly detune the loop to get forward / backward playback, and this is causing some issues. i'm not entirely sure how to read the samplesize filesize so that it can be used by the message-boxes for banging forward / backward playback..
if anyone has any ideas, please do let me know.