Page 1 of 1

Posted: 22 Aug 2016, 04:46
by ahonoe
Hi again. Can anyone tell me why the following IML doesn't connect the output of audio bus module to the input of the vuMeter?

SET_TARGET_PATCH SENDER_PATCH
CREATE_MODULE VU 81 100 0
CREATE_MODULE InBus 284 0 0
SET_STRING_VALUE InBus name InBus
RENAME_MODULE InBus
SELECT_MODULE InBus
CREATE_LINK InBus 1 VU 1

Thanks!

Posted: 22 Aug 2016, 06:05
by shawnb
What error message?

Sometomes, when doing these, it really helps to have the console open. Do the actions by hand, and watch/learn from the iml that is generated.

Posted: 22 Aug 2016, 13:23
by ahonoe
Thanks for getting back to me Shawn.

Yes, the console is always open on my machine. HH is waaay too much of a black box to expect that something will run as planned.

The error is that it can't find module InBus. (Silly me. I just assume y'all would run the code, or that my mistake was something obvious.)

Thanks again.

Posted: 23 Aug 2016, 04:29
by shawnb
I wasn't at my computer, just my phone. I was debating whether to point you to thread or not, in which I had similar issues:
http://www.sensomusic.com/forums/viewtopic.php?id=4547

I had found that 'var not found' messages were erroneous and could be safely ignored.

Some of my issues went away with HH2 & some were specifically with subpatches.

Still, you may find something helpful in that thread.

Posted: 23 Aug 2016, 04:35
by shawnb
By, the way, the much simpler version works:
CREATE_MODULE VU 81 100 0
CREATE_MODULE InBus 284 0 0
CREATE_LINK InBus 1 VU 1

You still get the erroneous 'Var not found' messages though.

Posted: 23 Aug 2016, 05:00
by ahonoe
Thanks again Shawn. It seems that something in my more complex script causes it to fail.Now I gotta figure out which step breaks it.

Edit: so it seems that issuing the RENAME_MODULE InBus command before the CREATE_LINK InBus 1 VU 1 command causes the "InBus not found" error.

Onwards and upwards.

Posted: 23 Aug 2016, 05:49
by ahonoe
While I'm asking about IML, does anyone know the syntax for creating a matrix audio mixer? I can see from the console that it is object ID 95 however there seems to be more to it than this. Creating a 95 module results is some weird object being created.

Thanks as always.

Posted: 23 Aug 2016, 12:41
by sephult
Maybe since its an external module, if you look into the resources module folder its actually a usr instead of a plg.

Possibly try another usr and see if you have the same problem. I wonder if there is no current solution for a usr, or possibly the implementation in the specific usr isnt directing it as module 95.

Maybe there is another method the actual application is loading the usr instead of IML?

-s

Posted: 24 Aug 2016, 03:29
by ahonoe
Thanks sephult. Your suggestion was a good one. I located the audio-matrix usr patch in the resources folder. Then reading the wiki page on IML I saw a reference to the CREATE_MODULE modulename id x y [filename] command. I modified the example code and got the audio matrix to load however, as when you load it from the module browser, it prompts for the number of inputs and outputs. Is there any way to set this parameter automatically using IML?