Hello,
Thanks for creating the Audio FX board! I am excited to start wiring it up in a week or so.
Until then, does it support multiple triggers on a single button?
For instance, I name an OGG file T00.OGG so that a momentary button press on pin 0 will play the sound (basic trigger).
Can I also name a different OGG file T00LATCH.OGG so that holding down the button on pin 0 will play this different sound (latching loop trigger)?
In other words, can one button perform both triggers, depending on how I press or hold it?
Thanks much!
Tom Hammond
Multiple triggers on one button?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: Multiple triggers on one button?
You have to think about code logic here. It will mean that you need to set a minimum time for the loop too start, so that if a press is under 0.2s for example the short one starts, if it goes above, the looping one starts. Which introduces a problem IMO: both tones always have a start delay of that 0.2s (you can try shorter but you also need to hit shorter).
This is why keyboards always have 2 buttons on each key. So they can measure the time between both hits, and always start the sound on the second hit. Timing can be like 1ms between the two to say 100ms, much shorter, and quite realistic, the grand piano also has a short delay from the first touch.
This is why keyboards always have 2 buttons on each key. So they can measure the time between both hits, and always start the sound on the second hit. Timing can be like 1ms between the two to say 100ms, much shorter, and quite realistic, the grand piano also has a short delay from the first touch.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Multiple triggers on one button?
You can only use one kind of trigger per pin, but some triggers like the NEXT and RAND types will play different tracks every time you pull the trigger pin low.
- tominohio
- Posts: 3
- Joined: Wed Nov 25, 2020 12:35 am
Re: Multiple triggers on one button?
Thank you for the clarification!
It would really be nice to support multiple triggers on a button. Doing this would allow one to choose two sounds per button (short press or hold press). Playing random sounds is a nice feature, but sometimes it's better to choose sounds directly. This is especially important for the 16M version of the board where many sounds can be uploaded to it, allowing its 11 buttons to directly control 22 sounds.
My goal is to have three buttons directly play six sounds either by momentary press or hold press. With the remaining eight buttons, I'd like to have them on random trigger, but a hold press on each button could play a chosen sound directly (like a "favorite" sound for that button).
There is already code on the board for discerning a short button press vs. a long-press (hold) of the button, so it should be fairly simple to tweak the code to support this. Is there any way that I could have the source code and add this feature myself?
Thanks,
Tom Hammond
It would really be nice to support multiple triggers on a button. Doing this would allow one to choose two sounds per button (short press or hold press). Playing random sounds is a nice feature, but sometimes it's better to choose sounds directly. This is especially important for the 16M version of the board where many sounds can be uploaded to it, allowing its 11 buttons to directly control 22 sounds.
My goal is to have three buttons directly play six sounds either by momentary press or hold press. With the remaining eight buttons, I'd like to have them on random trigger, but a hold press on each button could play a chosen sound directly (like a "favorite" sound for that button).
There is already code on the board for discerning a short button press vs. a long-press (hold) of the button, so it should be fairly simple to tweak the code to support this. Is there any way that I could have the source code and add this feature myself?
Thanks,
Tom Hammond
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Multiple triggers on one button?
The existing trigger set fills all of the VS1000’s program memory. We had to trim our own wishlist to the set of options most likely to be popular.tominohio wrote:It would really be nice to support multiple triggers on a button. Doing this would allow one to choose two sounds per button (short press or hold press).
Anything beyond those is a job for the Serial control interface. You can use a small microcontroller board like a Trinket M0 or an ItsyBitsy to read the input signals and make the decisions, then tell the VS1000 what tracks to play.
- tominohio
- Posts: 3
- Joined: Wed Nov 25, 2020 12:35 am
Re: Multiple triggers on one button?
Thanks for the explanation, Mike! It was interesting the read the spec sheet on the VS1000. Looks like it can boot from SPI to load code that way as well.
The existing trigger set does 90% of everything I need and that's awesome. Thanks again for such a great product!
Tom
The existing trigger set does 90% of everything I need and that's awesome. Thanks again for such a great product!
Tom
Please be positive and constructive with your questions and comments.