ArrayArrayArrayArray BrainModular BrainModular Users Forum 2016-03-03T21:58:04+02:00 https://brainmodular.fr/forums/app.php/feed/topic/5341 2016-03-03T21:58:04+02:00 2016-03-03T21:58:04+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34895#p34895 <![CDATA[help with array input]]> sonically, it is even more interesting !:)

Statistics: Posted by oli_lab — 03 Mar 2016, 20:58


]]>
2016-03-02T23:36:03+02:00 2016-03-02T23:36:03+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34887#p34887 <![CDATA[help with array input]]> Statistics: Posted by oli_lab — 02 Mar 2016, 22:36


]]>
2016-03-02T18:07:50+02:00 2016-03-02T18:07:50+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34885#p34885 <![CDATA[help with array input]]>
I think the "pull out a wire" function only uses the information in the ParamInfo data, so it does not know about the sdkSetEvtSize() on the event.
Anyway arrays are variable size - the array get and set modules ask you how many parameters / faders you want since it does not know.

Regarding the min/max value - I would have thought that should be used with the "pull out a wire" function, but it might depend what option you are selected on the "pull out a wire" menu.

Simon.

Statistics: Posted by sm_jamieson — 02 Mar 2016, 17:07


]]>
2016-03-02T01:41:24+02:00 2016-03-02T01:41:24+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34879#p34879 <![CDATA[help with array input]]>
in my last module, I use an array input that is supposed to take 0 to 255 integers in a table that has a size of 256.

I did this :

// frequency
else if (ParamIndex == 1) {
pParamInfo->ParamType = ptArray;
pParamInfo->Caption = "wave shape";
pParamInfo->MinValue = 0;
pParamInfo->MaxValue = 256;
pParamInfo->DefaultValue = 127;
pParamInfo->Format = DEFAULT_FORMAT_INTEGER;
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->CallBackType = ctImmediate;
}

as well as setting the size of the event in the initialisation :
sdkSetEvtSize(shape, 256);

But, when I pull a wire out of the array input, I get an array of size 16 with 0 to 1 integers...

thanx for your help

Statistics: Posted by oli_lab — 02 Mar 2016, 00:41


]]>
BrainModular BrainModular Users Forum 2016-03-03T21:58:04+02:00 https://brainmodular.fr/forums/app.php/feed/topic/5341 2016-03-03T21:58:04+02:00 2016-03-03T21:58:04+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34895#p34895 <![CDATA[help with array input]]> sonically, it is even more interesting !:)

Statistics: Posted by oli_lab — 03 Mar 2016, 20:58


]]>
2016-03-02T23:36:03+02:00 2016-03-02T23:36:03+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34887#p34887 <![CDATA[help with array input]]> Statistics: Posted by oli_lab — 02 Mar 2016, 22:36


]]>
2016-03-02T18:07:50+02:00 2016-03-02T18:07:50+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34885#p34885 <![CDATA[help with array input]]>
I think the "pull out a wire" function only uses the information in the ParamInfo data, so it does not know about the sdkSetEvtSize() on the event.
Anyway arrays are variable size - the array get and set modules ask you how many parameters / faders you want since it does not know.

Regarding the min/max value - I would have thought that should be used with the "pull out a wire" function, but it might depend what option you are selected on the "pull out a wire" menu.

Simon.

Statistics: Posted by sm_jamieson — 02 Mar 2016, 17:07


]]>
2016-03-02T01:41:24+02:00 2016-03-02T01:41:24+02:00 https://brainmodular.fr/forums/viewtopic.php?t=5341&p=34879#p34879 <![CDATA[help with array input]]>
in my last module, I use an array input that is supposed to take 0 to 255 integers in a table that has a size of 256.

I did this :

// frequency
else if (ParamIndex == 1) {
pParamInfo->ParamType = ptArray;
pParamInfo->Caption = "wave shape";
pParamInfo->MinValue = 0;
pParamInfo->MaxValue = 256;
pParamInfo->DefaultValue = 127;
pParamInfo->Format = DEFAULT_FORMAT_INTEGER;
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->CallBackType = ctImmediate;
}

as well as setting the size of the event in the initialisation :
sdkSetEvtSize(shape, 256);

But, when I pull a wire out of the array input, I get an array of size 16 with 0 to 1 integers...

thanx for your help

Statistics: Posted by oli_lab — 02 Mar 2016, 00:41


]]>