Forums > MaxMSP

What's wrong with this ? (very simple help)

October 7, 2013 | 6:52 am

Hey,
i am currently trying, as a practice, to create several drum sounds abstractions. Here is a kick as a start. I want to add a quick fade out but it produces a click instead. I guess something is wrong with my understanding of line~, or with events order. (i never really worked with msp)
if someone would mind taking a quick look, i’d appreciate !

<code>

– Pasted Max Patch, click to expand. –

</code>


October 7, 2013 | 7:32 am

Hi
your click resulted from the instantaneous leap to 1. So, I changed the message to (1. 5. 0. $1), and also the [prepend set] to allow variation of this value. I like the way you’re generating the kick pitch envelope, using curve~ and cycle~ :)

<code>

– Pasted Max Patch, click to expand. –

</code>

Brendan


October 7, 2013 | 7:43 am

Thanks. i don’t really get it.
My wish is to apply the fade out after a certain time, which explains the delay i was using.
Also could you explain what’s the meaning of 1. 5. 0. $1 in the line~ ?


October 7, 2013 | 7:47 am

ok i get it, very fast fade in (5ms) and then goes to 0 in the defined time lapse.
I still find it weird and this doesn’t fit with the idea of delaying the fade out…


October 7, 2013 | 10:31 am

Hi
you can see in my suggested solution that there is no need for a [delay] object; the event order is:

1. open the amplitude envelope
2. bang the kick sound
3. release time changed on next tick.

If you want a variation on that algorithm – for example disconnecting the pitch release from the amplitude release – then try this:

<code>

– Pasted Max Patch, click to expand. –

</code>

I couldn’t resist adding a beater-head click and the usual resonant filter and mild clipping :)

Brendan


October 7, 2013 | 11:48 am

Thank you ! it’s sounds quite cool.
But don’t get me wrong, your amplitude envelope is during the whole sound, not only in a decay phase. Im not sure it’s noticeable, but my goal was to make a fade out only in the end of the kick. I’ll sort it out.


Viewing 6 posts - 1 through 6 (of 6 total)