Is it possible to rewind and fast forward a loaded audio file?
-
Rewind and fast forward?
-
@MDobleZ of course, if you load it into an array, you can change the speed to whatever you want. But if you want to jump to a certain position, you do not need rewind or fast forward for that.
In the audio examples is a patch where you can "scrub" through an audio file (if that is what you want)... -
Thanks, Jona. I've managed to get it to work (adapting someone else's code, of course), but only if I include the name of the file in the patch. If I use openpanel, it tells me "readsf: start requested with no prior 'open'". There must be something wrong in the way I'm passing the symbol to the readsf~ atom, but the fact is the file does play; it's only when I want to jump to a specific position that I get the error message. Any thoughts?
-
You need to put "open" in the message before the path. And if you want to play the file with variable speed you should use soundfiler instead of readsf~ and read the array with tabread~ or phasor~.
-
Thanks again, Jona, for your replies. open $ doesn't seem to be holding the variable after the first time it plays and if I "route" the trigger through the "symbol", it keeps starting from the beginning instead of moving to the chosen position.
PS: Keep in mind I'm using PD Vanilla.
-
@MDobleZ You can set an offset argument in samples after open, take a look at the helpfile from readsf~.
Also take a look at the helpfile from soundfiler, tabread4~ and phasor~ and the B section from the audio examples, because i think that is more what you want. -
Thanks, Jona, I will.
-
Sorry if I'm being a bit thick, but I get the impression I haven't explained myself well from the start. The fact is this works:
but this doesn't:
-
If you want to scrub a file it will need to be loaded to ram.
This will do it and then start at the point you choose.......... av-sync.pd
Vanilla or extended....... delete any objects that throw errors in vanilla (if they annoy you...!).
It will scrub video in sync as well if you have GEM, but you need to strip the audio from the video into a wav file.
It works without the video though...... just load a wav file into the audio block, and then use the video block scrub controls.
David.
PS there was a mistake in [av-sync] now corrected. -
Thank you very much! I will try that.
-
I wanted you to know, whale-av and Jona, that I finally got it working, so thank you very much for your help.