@whale-av Enjoy dinner.
I have added the marked object and it solved it
-
playing multiple audio files with sf-play2~
-
@KMETE Well done! It must have been the order of connections from the old [t b f]...... little things.....
David. -
Another thing I'm trying to do:
I setup rotary encoder and a button on the arduino and I'm using the rotary encoder to change the track which work just fine. I would like that the button will act as a pause play button.the data I'm when pressing the button is transient between 1 >> 0 so I need to make toggling between two state of constant 1 and constant o (meaning 1 press will output 1 and another press will output 0)
I try to use [cycle 2] to toggling between states but it did not worked well. Any recommendations?
-
@KMETE Yes.......
Send the button data into [sel 1]
Connect a bang to its left outlet.
It will only bang when the button is pressed (1)........ not when it is released (0)
Feed the bang into a [toggle] that will then output 1 or 0 for each bang it receives..You can set the toggle to always be on or off as the patch opens using the "init" button in its properties window.....
If that is also unreliable then it will be because of switch bounce.
You can debounce using a [delay] to stop data within a time window.
There are a number of ways to do that....... https://forum.pdpatchrepo.info/topic/12092/debouncing-was-measure-time-between-two-bangs-events
David.