Eos Question
Posted: Sat Mar 07, 2020 5:18 pm
Hi Eos/coding Milovanians!
I am working on a tease that involves interacting with music, and I've run into a bit of a roadblock. I would like to either stop or pause a sound file and store (in a variable etc.) the number of seconds of the track that have elapsed. The music is on an infinite loop until stopped, and the tease is constantly moving between pages. The point in the track that the audio is stopped at is different every time, and I cannot predict it ahead of time.
A bit of background:
I have two audio files with the same song, except one of them is slightly sped up (1.25x speed). I do this so that at a given point I can increase the speed of the song that is currently playing. I would like to be able to keep the song playing and change the speed without the song restarting from the beginning (as if I was changing the playback speed on a YouTube video). I think I can do this if I can somehow store where the song is in one track and do a bit of math to determine where to seek in the new track. At this point though, the best I can do is restart the song from the beginning with a faster or slower speed.
If anyone can think of a way to make this work, I would be very appreciative!
I am working on a tease that involves interacting with music, and I've run into a bit of a roadblock. I would like to either stop or pause a sound file and store (in a variable etc.) the number of seconds of the track that have elapsed. The music is on an infinite loop until stopped, and the tease is constantly moving between pages. The point in the track that the audio is stopped at is different every time, and I cannot predict it ahead of time.
A bit of background:
I have two audio files with the same song, except one of them is slightly sped up (1.25x speed). I do this so that at a given point I can increase the speed of the song that is currently playing. I would like to be able to keep the song playing and change the speed without the song restarting from the beginning (as if I was changing the playback speed on a YouTube video). I think I can do this if I can somehow store where the song is in one track and do a bit of math to determine where to seek in the new track. At this point though, the best I can do is restart the song from the beginning with a faster or slower speed.
If anyone can think of a way to make this work, I would be very appreciative!