Unresponsive behaviour with line~ object inside poly~

glamhacker's icon

glamhacker

6月 28 2024 | 11:38 午前

I'm currently trying to create a poly~ object so that a trigger will cause a given voice to play for a random length of time. To do this, I'm using the line~ object to increase the amplitude upon receiving an initial bang, and then to decrease the amplitude once a clocker has elapsed.

However, when I open the poly~ object I created the line object seems to be unresponsive to a bang or even when I click the 0, 1 50 message. line~ seems to work fine in the Tutorial examples. I'm wondering if it's something to do with the presence of buffer objects and wavefaderms, though I can't imagine why.

Any help is greatly appreciated, thank you.

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

glamhacker's icon

glamhacker

6月 28 2024 | 12:05 午後

After some experimentation, I found that swapping the line~ object for adsr~ fixed the issue. Initially the adsr~ wasn't responsive similar to ~line; however, once I added the third inlet of adsr~ to thispoly~ it began working, so I have a feeling the same approach will work if I were to add a mute message when using the line~ approach.