ArrayArrayArrayArray
BrainModularBrainModular Users Forum2016-09-10T14:58:36+02:00https://brainmodular.org/forums/app.php/feed/topic/54982016-09-10T14:58:36+02:002016-09-10T14:58:36+02:00https://brainmodular.org/forums/viewtopic.php?t=5498&p=35825#p35825 Yes Creating your own types/records does work i will try to take some time in near future to update scripting wiki. So when you create a record you have to then create a variable attached to that record name. Like below the record name is (state) so you have to do something like (var loop:state;) then when you access the sub-records you say (loop.start:=45);
type state = record start:single; pos:integer; last:integer; max:integer; end;
var loop:state; ---------------------------------------------------------- loop.start:=45;
Statistics: Posted by sephult — 10 Sep 2016, 14:58
]]>2016-09-07T23:48:57+02:002016-09-07T23:48:57+02:00https://brainmodular.org/forums/viewtopic.php?t=5498&p=35787#p35787Statistics: Posted by ahonoe — 07 Sep 2016, 23:48
anyone have any better solutions, or know of any deficiencies with using this Default? -s
Statistics: Posted by sephult — 02 Sep 2016, 02:52
]]>2016-09-02T02:37:55+02:002016-09-02T02:37:55+02:00https://brainmodular.org/forums/viewtopic.php?t=5498&p=35740#p35740 I was curious and trying to find a solution. I was wondering how you know the default values of a Record or Custom Type such as TMidi?
Also is there a way to clear a Record. I know you could probably create a function to do this, however I am not sure if there is a way to read how many parameters, nor access the parameters generically to do this in a custom function.
-s
Statistics: Posted by sephult — 02 Sep 2016, 02:37
]]>BrainModularBrainModular Users Forum2016-09-10T14:58:36+02:00https://brainmodular.org/forums/app.php/feed/topic/54982016-09-10T14:58:36+02:002016-09-10T14:58:36+02:00https://brainmodular.org/forums/viewtopic.php?t=5498&p=35825#p35825 Yes Creating your own types/records does work i will try to take some time in near future to update scripting wiki. So when you create a record you have to then create a variable attached to that record name. Like below the record name is (state) so you have to do something like (var loop:state;) then when you access the sub-records you say (loop.start:=45);
type state = record start:single; pos:integer; last:integer; max:integer; end;
var loop:state; ---------------------------------------------------------- loop.start:=45;
Statistics: Posted by sephult — 10 Sep 2016, 14:58
anyone have any better solutions, or know of any deficiencies with using this Default? -s
Statistics: Posted by sephult — 02 Sep 2016, 02:52
]]>2016-09-02T02:37:55+02:002016-09-02T02:37:55+02:00https://brainmodular.org/forums/viewtopic.php?t=5498&p=35740#p35740 I was curious and trying to find a solution. I was wondering how you know the default values of a Record or Custom Type such as TMidi?
Also is there a way to clear a Record. I know you could probably create a function to do this, however I am not sure if there is a way to read how many parameters, nor access the parameters generically to do this in a custom function.
-s
Statistics: Posted by sephult — 02 Sep 2016, 02:37