Hi!
As in the title, I am looking to play a wav file, starting after several seconds/samples. In other words: I want to be able to choose where in the file the playback starts.
Does anyone know of any ways to do this?
Thanks!
Play sound file starting in the middle (after x seconds/samples)
Hi!
As in the title, I am looking to play a wav file, starting after several seconds/samples. In other words: I want to be able to choose where in the file the playback starts.
Does anyone know of any ways to do this?
Thanks!
Hi @luna, welcome to the forum!
For that I'd use [soundfiler] to send the audio data into an array and then play it back using [tabread~]. Then using some simple math you can do all sorts of things, like playing only a chunk of the data, or playing backwards, or at different speeds, etc.
Take a look at the end of the chapter 3.4.1.1.2 Buffers and then 3.4.1.2 Playback of saved sound at: http://www.pd-tutorial.com/english/ch03s04.html
Hope this helps, cheers!
Gilberto
Oops! Looks like something went wrong!