train~ help for a noob

robmoth's icon

Apologies in advance - I'm new to this.
I have tried to search for help on here and haven't managed to find anything!

I'm sure what I am trying to achieve has a fairly simple explanation.

I'm using the train~ object to try and replecate a heart monitor with a ventilator (hospital sound effects).
I've used the train~ object to get the beep - no problem.

The ventilator sound is being generated with pink noise going through a filter which sounds great, but I wanted to add a smaller burst of pink noise at the end of the first which is filtered differently. Hard to put into words but quite simply -

Can I trigger a train~ object from the previous train~ object stopping?
I'm sure there's a way to do this...

Max Patch
Copy patch and select New From Clipboard in Max.

Here's ma patch -

Thanks in advance!

Rob

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

used edge~ to detect 1-to-zero transition from train, then used a 1, delay, zero to gate the other noise. note use of slide~ to soften abrupt on-off transitions (new objects are yellow)

robmoth's icon

Terry thank you so much it sounds great! I was going to try and work out a way to soften the abruptness of the on/off so thank you for also including that!

Rob