< Back to IRCAM Forum

Two ways of exciting simultaneous?

Hi,

I am exploring the modalys possibilities so I am sorry to bother you so often. I was looking for an example of an instrument that is excited with two different methods and could not find it. For example striking a plate using a mallet but at the same time having a sound source pulling the plate.

I would expect the patch to look something like in the attached code but building the instrument gives me the error:

*** ERROR: undefined variable ‘MixHybrid_access_in_2’ in line: ‘MixHybrid_access_in_2’


Is this possible at all?

Best, Hans.


----------begin_max5_patcher----------
1796.3oc6Z0ziaaCD8r2eEB9r8BRpu6ozfhjdHAM.8PODTrf1l1KSjkT0GId
aP5u8NbnjkrVsqokk2jfr9fVQJQNjy6wYdjZ+xUSltHYmHep0uX8dqIS9xUS
lfUopXRU4IS2x2sLhmiu1zXwmSV7goyzOpPrq.qNJguZAOdS8CR4EKuUFu4l
LwxBc+yn9WSlYQ8CT+wkntxfqV+cUaRJKhDEE2kJzMXJ1g6erbEZIv5yo901
YcRbQt7ewVPUcot53xsxXnyvwLsoRsIz0pp7qWck5xryaxuM5t7qSSjwEykw
okEVuX4s73XQjE05Ew7sBKrZ5i3bbXtJ+gm60tJuh6wcN85XrcOhiYYRTRlt
GnJaPt1iR88baeGskY60Qp5a0zBM6ulI4QS62EWUaN+ShU2.iOX5dCunHStn
rPS6lr2SCiMsSqUKmLcCWFiUTOC.aTa4JmJVMBjiIblK2DyipfOcACvu.eE9
QsYCE+79AF+12k0tqKCxjljKKjIwUXya4Qv38cUUdbHhRBQLxmNPLxgXNFQt
l55E3Yqfm.0EWmPB66.HpWuF31pq.dGRyRtOKjatsnZc3kAUWKhf3lxXv77n
40iCHdpEompAOf0bv4d.G3UPWT24QxXwxjxXzBriSJbsw.uddpR1zSmTP+wk
T7JRq.JgMChIS4Qo2xUOzqgKHRykQ0LD25Z6A35vg5CCUuhBFI5eTvOPody5
mr1BdAxCurp+U+B0+7c72+7akK+XrPS7TuUsMb7cB8eB404.eKRLGUGb.a0f
HU.OTEoxcnYSbXmBozal9BRC9VwE4KWBfFvdl2kurmi1hdpeYvZF81aSi5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9MuUDWpy+Byp0bHA7gthEaVKih1Kcqct7ZwG
UB6Z1RWaYdgNTJtIakHOFJ3yFtw0EAkCZCstQNUeDc3NOFraU7t.lsK9Y1Ic
ZFqwVDZn1BUBIU2AUQm04qGpDgfRC8augtrjzjrliUwd+tz3kEIax3qjB8QZ
b3AtLqhIkAOEc6Zgi5paTzzg4sGL9MsW2hRUhrrdWhRVm7wfj1Z4Teoyq2y4
FogxacdyoZ+1JY0G+yAjfGFXTGCy9l2V446OP643OCGfml7i4LcNcfnoIq82
utn+kx19dN93j2N.1mG5Pb5rbbfqhM1wOn09UKweD3Z5Af4ZdcBC5Xif7c9l
PVeFsFm.xeXwByWuD97xEyWtLJvyGyijffm+RoF5wvoteN9CtLRiE8Q77xnR
wiGiUcF4wEGf.1TETim+0d0NgUn+XO.eclPDexiP7Cg4Zq9oti5E.hwF0AW4
1EhrWCI8N4wlxQQ7Z+saTeigV72Se.pkpiGemZDlmVEPGOkuq95U+ObNZtEL
-----------end_max5_patcher-----------

Hi, again !

It’s possible to have several connexion at the same time. Actually, I looked your patch and fund an error : the two plates involved in the hybrid must have the same number of inputs/outputs ; so if you write <mlys.plate 2 1 …> it will work !

All the best,

Jean

Ah, of course. Stupid. Thanks!!!

Hello Hans and Jean !!

Hans, your very last quoted patch from Nov '19 does not work neither. It still get:
*** ERROR: undefined variable ‘MixHybrid_access_in_2’ in line: ‘MixHybrid_access_in_2’

Jean, I do not understand:
“so if you write <mlys.plate 2 1 …> it will work !”
There is no such “mlys.plate”.

Thanks !!

I understand Jean to mean that both plates needs to be initialized with 2 inputs, and that’s exactly how I got my patch working.

However, I notice that in my hybrid instrument both excitation methods are sounding on both of the plates simultaneously — for example, the mono-two-mass strike is heard no matter what the value of MeltHybrid@position is, and the same goes for the signal input force, which is always present as well — instead of achieving clear separation of the excitation methods on separate plates:


----------begin_max5_patcher----------
2282.3oc6as0aiaiE94jeEB5Y6.RJpa6SYaWztKPC1AaKZwhfhAx1zNZFYIu
RTIwaQ6u8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cLBh5kwa
TjjaOgIxPETefoJsYXRREyeRAERGIAc1r2igiGtOtC3wXJgoWPBkWTzMZ2tG
Y4UTjjBAX97IEgjfYxGiSUOJoRZmydzPoRR7vNJGXcvA9Ak4JN.O6oVfrbK7
ySKk6tJ9Zwz6ZwkEXexgE5qIYVtJN6G4Q7xhOdGKsTQh.lUqiJS3sMEK1rNN
IwPepIcjJ5LZxU0mxQSRvgvZ6jmaifBLQsF7pE407jQfuC1vOybSGol0HRCH
NtNyZeqPjeMRsrP3PkDzzrEeBZp8UkTuU0pyGo4oXjmsKKulCkSno+k7rM4Q
qhYpcKrM6pYZOob3sRythGrp45889.OOCX7OTVcKLVv525CYBhhwmBRZthj6
abBHilpbG8GtT42wZYtu0pYLcwDxcfexwwNw4nN9yvWgkF89blNGet4X088+
9FEHtPTtdZ2mLFlnotS.3nufyvmBf0NKsQzYGdGudUw98FKdUYLlhDC2E8re
ebV+pcebr6+v2ei7acyinp.mQYrFkvPz4R12g1ed07SKVz+zfgeMSvarG4mj
URX4HzahKTu0qOWjDCbO+EAwzSoXGd68Z8qQRW1xJJh1v9ljR1zjj704eguv
+e7LwbZ87PzP5aBuV0t4JviSm3SbKqR4W1+mmFQE7a2GkdwJHhD5RUafruii
5ZnFPvXry3qfeOvo7hUPeyAdVcyCE2TsFtMioBlyXuBSnT4bD+HUNOwwAN9J
2+g8JLdlJMXyM4DAq9jDN952+kkjj8zEqhADWr5.kBvAX0Y5AtjcbxoMR7SD
cBgBFqIP41Er7uTbOU6zh7vjDZXwNcgP4YNc8ue8eBrJsMWM
-----------end_max5_patcher-----------

I see Hans has given additional attributes to mlys.signal and other externals, like @name, but I’m not sure how this could be used to make only one plate inside the hybrid object receive the signal input. Could someone describe how to achieve a situation where input access 1 routes only to input object 1, and input access 2 routes only to input access 2? I tried this with the mix-hybrid object but did’t get any closer…

Thanks very much —
Louis