Change audio file dynamically

edited April 2017 in Arduino

Hi guys, I was wondering if anyone has any ideas on how to switch between audio files so that a new audio plays when triggered (not by any mouse or key events).

Context: I am working on a project using both Arduino and Processing where a video switches from playing forward and backwards in time based on incoming data from the Arduino sensors. My current method is to have 2 different audio files (one is the original sound and the other is the same sound but reversed) and using the Minim library, somehow have the audio player to change between these two files dynamically with the video...? Any suggestions would be great (doesn't have to follow my method or use the Minim library).

Note: I'm still sort of a beginner when it comes to coding and Processing so I'm hoping there's a solution that isn't super complicated...

Tagged:
Sign In or Register to comment.