Long fadeout: how to?


#1

Hello, first message here :slight_smile:

I have axoloti only for some days so excuse the noobness...

Basically what I struggle to do is a long fadeout triggered by the press of a button, so I connected my sound source to an audio input of an xfade and attached an adsr envelope to its "c" input.

But on the adsr parameters I can only go to 3,91 seconds... How to achieve longer fadeouts?

Thanks in advance


#2

You could write the fade out to a table and then trigger table/read only once.


#3

Thank you for your answer,
However, I'm too newbie to apply your advice :slight_smile: I don't know how to write to a table, and to read it only once... can you please point me to some documentation/tutorial/example on how to deal with tables?

Thanks


#4

The second post here explains it pretty well!

Mastering working with tables takes some time, but as a reward you can do a lot of great stuff!

So check out the help patches, have a look how they do it in Pure Data (it works quite similiar) try to hook things up.

Since this will take you some time I've hooked up this for you for in the meantime:
Fade Out.axp (5.5 KB)

It's basicaly an lfo that is being reset by a button and muted once it reaches zero. The lfo is then multiplied with the volume knob.
There is second button to reset the whole thing, in order to go back to tormal operation. You could also replace that button with a logic/change from the volume knob, so once you start doing something with volume knob it will reset everything by itself.


#5

Wow, this is fantastic! And not something I could have come up with by myself... So, many thanks for taking the time to help me, it's very much appreciated. :pray:

I just swapped the test condition with a <= because it did not always reach exactly 0 and in that case continued to a new cycle of the lfo.

I also added a "div 128" between the fade out time dial and the mux, to have finer control on the range below 1 (Hz right? it's not always clear what the units are).

Again thank you very much, Axoloti is a wonderful platform. I'm so glad I have bought one, I'm having lots of fun with it. However, I think I must study a lot to become proficient in programming it.

Regards