I'm using Raspberry Pi 2.
I have folder with 20 or so audio files.
I have one button that I'm reading via Arduino into Pure Data
I want that when pressing the button it will play track 1. another press will start track 2 even if track 1 did not finished and so on.
So basically one button to toggle between al track that are inside the folder.
If track finished it will stop and system will wait for next press.
What is the smartest way of doing so?
thanks