Change inputs on spat5.hoa.encoder for mc

Hello!

After setting @inputs X, is there no way to change this value using attrui? I’m trying to set up a routine using mc and spat5.grids before encoding into HOA and need control over the number of channels on the multichannel thread.

Also, if I have @mc set to 1, then this is not listed in the status window.

Hi Ulf,

No, the @intpus attribute cannot be dynamically changed (via message or attrui or inspector).

However you can have a look at the “spat5.tuto-mc-2” patcher for hint about scripting (especially useful when using MC).

I could add @mc in the status window, but I don’t think that’s really helpful. Is it ?

Best,
T.

Ah, ok, thanks, I’ll check that one out!
The status window is not that important, but sometimes it is helpful to use it for an overview. No worries.

The scripting function works very well, for all objects! Great tip, thanks!
But when setting up a new patch tonight with [spat5.hoa,encoder~] it crashes Max. Played around with this a few days ago with the encoder and it worked fine.


----------begin_max5_patcher----------
641.3ocsU0zaaCCC8r8uBA00adA9i3Xm0K4POOfcdnHPwVMQE1RFRxYYnn62
9jnrcSmcyGsXH.NfzTj583izO66g2HNPUXz2P+D448rumG3x5vqy1CWSNTTQ
TPXXda8FpDG3dknUWQ05e2Pc4.iCP3MD9VL5gtPZH5hcL910RZg1EUT3x7Yg
An3nL6eogfQ7rvgCYpBiaxLTynNmrR3FH17zWiwCYWRpoZpbMkS1TAWivWSh
69AYI157Eee6ifKDr0Tkhrk1WLM8.f.LkWHJM0TUHYMZzWhde93z7PdL.8kK
lkFXLmeZhHdLQjjgmDsQe.zxo+xjxQfU0HYb8inNvJoMUjBJ5VExb.5ATn4W
bXHJJFoLfLc1NAYVGC8GzJFuoUqP2VhVIjFWnTzpRVMkqXBNJ4dzp5Bz.AVw
3zBQKWeLd+XrZRbhkUmGkBVoWCql+emU06XJ3xelgoSC0nbXPZdHf3EYW8fT
zxoQZOonH66uM27c684M2aD9N6ia9g8IkW57fd3SSS6IRtYtdhgsIjmuqlKJ
7hzbi3851JMqXGgyoUJ1VNo5rchzrDPkszI1Vjb0chrzy2IJWahzTy0DsVx1
zpc6t8F3zoWHBxVau33LMjhSjr8jpVp3wd289OtJL9dlh0WnfwATI3aG5kia
V3INhZmPpuxyz29RbuBTe8+0IEgVArg4e9hGzOs9eq9TIZkE8Zhtu5fdsgVR
UZFmnMRpihwtP1Fzji.WZgr6eNakrite9JkcIXJeTkbbIooYOUp5hFJhYp9I
gzZlG.lLtyDzFXI0JWbwCemFSjlYIsQT2Jc86CKlicG01r4srNILnewvFCq1
vHKbHAVr3+h+e06WqLG
-----------end_max5_patcher-----------

Thanks for the report.
This is curious (I don’t quite understand the reason for the crash), but I’ll investigate…
I’ll keep you posted.
Best,
T.

OK, I finally understand: the crash is due to parameter mode being enabled on spat5.hoa.encoder~.
I’m not sure if that really makes sense for this object (it’s mostly appropriate for GUIs).
You should try to disable it.
Anyway, this crash is fixed for the next release.
Thanks.
T.

Ah, yes, that fixes it. Strange.
Anyways, thanks!