Momentary effects?


#1

Hi, completely new here.

I am building a simply audio effects box. Audio in - different eftects - audio out.

I would like to be able to turn on different effects momentarily when i hold down a physical button.

What objects would I use to make that happen? A best case would be something that allows me to use the AB object momentarily, but that seems to be only toggle?

Hope any of this makes sense as I am just starting.

Best


#2

Hello, I'm not so much of a pro user of Axoloti and there might be more straightforward way to achieve it, but here is how I would do it quickly:

I have taken a sine as audio source, but this can be your audio input. I have also used the axoloti button there but you can change these to any gpio pin your buttons are connected to.
Basically, the dry signal, the processed signal n°1 and processed signal n°2 are going to a mux. When no button is pressed, only the dry signal goes to the output. When button1 is pressed, the object last_rising outputs a value of 1 to the mux so it will take i1 and outputs it. When button2 is pressed, the object last_rising outputs a value of 2 to the mux so it will take i2 and outputs it.
I have used klab/logic/last_rising which is a custom object from the community library, there is a version with 8 inputs if you need more.


#3

Cool! I will try that - thanks alot :slight_smile:


#4

This is a simple version where the switching of audio source is sudden, but i'm sure there is some crossfade effect that can be achieved between signal.


#5

yes there are several objects i think to soften the switching. dont remember the name now but should be easy to find.


#6

I don't remember who, but someone shared this with me and it works (run into demux)

pulse sets length between latching (shorter than pulse length) and momentary (longer).

object:
momentary switch.axp (2.7 KB)