Hi, im fairly new to pd and have run into some issues that I can't find any answers to online. Basically I am creating a program that takes the output of a python script in the form of a number (1-5) and adjusts the sound dimensions (volume, pitch, speaker channel) accordingly. The program loops a sound file continuously when started and should not require any interaction with pure data from the user.
I've currently hit a brick wall however and have two main issues with my program: firstly when the bangs that change the volume are received and the volume changes, the looped file restarts itself before finishing resulting in a skip. The looped file should continuously loop uninterrupted.
The 2nd issue is I can't figure out how to switch speaker channel via a conditional statement, i.e. the output of [readsf~] can't be routed through a [moses], a [moses] can't be placed between the [dac~] and [*~], a [moses] can't be placed between the [readsf~] and [open file.wav] either as the loop doesn't play. Again I would need the channel to switch without interrupting or restarting the looped file.
Hopefully you understand what I am trying to accomplish, let me know if you need more information.
Perhaps I am misunderstanding Pure Data's data flow, any pointers or tips would be greatly appreciated.