< Back to IRCAM Forum

Grain cloud envelope

Hello,

I have been playing with the catart-mubu-poly example using MIRA, and it is extremely direct, reliable, fun and useful.

One modification I would like to make to the patch is to give the possibility of an ‘outer’ envelope - so that when changing the x/y position in beat/loop mode, the clouds fade between each other.

As far as I can tell, the mubu.concat~ attack and release apply to the individual segments in any given mode - I would like to be able to run my finger along the surface of the tablet and hear a release trail for that grain cloud, and to be able to set that release trail’s time.

I think that the way the example is set up, this won’t work easily, because the voice is defined ‘per finger’, and I would need an individual voice per x/y point, with an adsr~

Any misconceptions please correct, any help getting started appreciated!

Great idea! I think the way to go would be to have a poly voice being allocated on touch start (with a note message), and ended when the new voice envelope has finished fading out.
You’d need to record the touch id to voice assignment in some external coll or array. Just ask if you have more questions.
It would make for a great contributed example, if you care to share it.

Thank you - I will most certainly share this if I manage to make it!

I think I understand what you mean - basically there are two competing voice assignment conditions - per touch, but also per segment.

What is the reason why touch id would beed to be stored?

This is because after a touch t the voice needs to fade out. When you touch again with the same touch id t during the fade out, you need to allocate a new voice v, but will need to know which one it was to control it when the touch moves, and to end it when the touch off event for t occurs.
Alternatively, you can send touch data to all running voices and filter it to recognise the right touch off id.
Poly~ is tricky for anything beyond simple midi notes. Also check out notemessage which might help in disguising finger touches as midi events…

I see, thank you. It’s an Interesting problem. I think the second option, allocating the touches to all running voices makes the most sense to me. I will crack on and see if I can get it working!