< Back to IRCAM Forum

Stop processing within modalys~ modules?

Dear list,

I cannot find a good helpfile or similar for this and now I am a bit confused. I tried to start and stop processing of modalys modules. Using the nonlinear_cymbal I experimented a bit.

When I use freeze and unfreeze on the modalys~ object I can see that when I stop the model (here: ‘freeze cymbal’) there is still processing going on. Using ‘freeze Strike1’ or ‘freeze SignalController’ will totally stop the processing but it gives a few error messages:

*** ERROR: invalid argument type for function


*** ERROR: expected a modalys object


Using ‘unfreeze cymbal’ starts processing again in all situations, so this would be useable. I have the feeling though that this is not the way I am supposed to do this… I expected execute 1 or 0 to start and stop all processing but that does nothing.

In itself the fact that the cymbal stays in the situation it has been left in with freeze is totally ok. Rebuilding the instrument gave some loud sounds and I guess that it also takes some computing power, so that is not my preference.

A second question concerns clicks while changing pitch. I tried to use mlys.melt-hybrid with two identical plate configurations changing the pitch on the side that is not active and then use MeltHybrid@position to ‘smooth over’ to that transposed side. I get clicks and artefacts though. when using mlys.mix-hybrid I only get the clicks but it is still not very nice. Alternating two separate plates going back and forth works but it might not be the most elegant way and it misses the glisandi.

Best and thanks in advance, Hans.

Hi Hans,

To stop Modalys processing, you can put <modalys~> in a <poly~> object and its done.

Concerning clicks with hybrid, did you use a smooth time like 0.01 after the value of the hybrid position ?

And patch will help !

All the best,

Jean

Hi Jean,

Thanks for the (quick) answers

I already use modalys within Dynamicdsp~ from Alexander Harker so that would be two layers of poly~ kind of stacking. Maybe it can be an option though. What is wrong with using freeze except for the error messages?

I did not use a smooth time. How do I know whether a parameter has a ‘smooth’ option? Just add it as an extra parameter? Or is it specific to the hybrid position function?

I have made a simple patch to show what I am doing. I am following my Trumpet sound using yin~. The smooth option does get rid of the clicks it seems. The artefacts stay though and are pretty loud ‘squeaks’ or tweetery sounds.

Original Trumpet sound in one channel and result in the other channel.

There is also a FTM object in the patch I should warn.

Best, Hans.


----------begin_max5_patcher----------
6763.3oc68j1iaajket8uBBEOyZOa2ZYU7dmfANGHYBPL1.j.rXg8hFTRrUy
XJRMjTscuCF+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CohXDbJXugVph7FMYxQ0uDbjeIUnRMvvkJZMl8urg9brYtReYi4XyEU9xl5
ywV4FpXEgs2DHkXnBPBfSwWxVEl2I4KoxFaf4gvoxm1XVL21TwMkN9LMm3G.
5.wylNjGcMK+aijdXpB27TvLqhFevj7gT4KYZOAeIGU1aog82SDCkReZn2bH
FAUwgho.8pjNIiVeHZ3.ZzqEveiF8XgF8Wg18VAw8Ugl8TAx4.1nu+Sg0N52
+MZrlLLAmFqaQLi32a+GRe8ef8z+A19c42.cE2G+EzC+Kh6y0uPbCCsdyBsJ
imR8oe9jDQcY6IaoT1C9E+8k2g4GY2k+j.gphoOoPp9b.oEcOW0gwifmJh+M
6m18uWZOTA4A0CsUV7udZUHnu2eB3Ua0a6Gtl5uvIUSBduruz+r7xXkW3zi4
GM4ocujmOcRg9G+nWKs6S77WKCs2vOQKvZ8.dkWgc022G+hqU+cW40lR8z89
s.olpKnGj8h+0K9+AdzaJgB
-----------end_max5_patcher-----------

Hi,

I finally find same time to answer to your question…

I did some modifications to your patch. It was a good idea to use an hybrid to change the pitch of the instrument but the pitches of the two objects should not change during the synthesis.

So instead, it’s better to use the hybrid position to change the pitch. I fund a way to do it with plate but don’t ask me why, I fund the good formula by chance !

Best regards,

Jean
HansPatch.maxpat (73.5 KB)

Thanks a lot!!!

I will try it in a few weeks when I will be patching modalys again. :wink:

Best, Hans.