Welcome to %s forums

BrainModular Users Forum

Login Register

Yet another IML "how does it work?" question

I need help on a Patch
Post Reply
ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 22 Aug 2016, 04:46

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!
Regards,

Scott

shawnb
Member
Posts: 190
Location: San Francisco
Contact:

Unread post by shawnb » 22 Aug 2016, 06:05

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.
Address the process rather than the outcome. Then, the outcome becomes more likely. - Fripp

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 22 Aug 2016, 13:23

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.
Regards,

Scott

shawnb
Member
Posts: 190
Location: San Francisco
Contact:

Unread post by shawnb » 23 Aug 2016, 04:29

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.
Address the process rather than the outcome. Then, the outcome becomes more likely. - Fripp

shawnb
Member
Posts: 190
Location: San Francisco
Contact:

Unread post by shawnb » 23 Aug 2016, 04:35

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.
Address the process rather than the outcome. Then, the outcome becomes more likely. - Fripp

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 23 Aug 2016, 05:00

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.
Regards,

Scott

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 23 Aug 2016, 05:49

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.
Regards,

Scott

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 23 Aug 2016, 12:41

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
"Every act of creation is first an act of destruction." -Picasso

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 24 Aug 2016, 03:29

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?
Regards,

Scott

Post Reply

Who is online

Users browsing this forum: No registered users and 69 guests