Welcome to %s forums

BrainModular Users Forum

Login Register

Multi-Dimensional Arrays - Fastscript

I need help on a Patch
Post Reply
sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 16 Sep 2016, 12:49

Hello!

I was curious if anyone has dabbled with fastscript multi-dimensional arrays.
I am having an exception error that I believe is related possibly to the declaration of my arrays.
Unfortunately the script engine does not catch this.

So I tried to follow the tutorial declaration:
-----------------------------------
type numbers = array [0..7] of integer;
var name : numbers;
etc...

var counting:array of numbers
-------------------------------
The engine takes this however I am not sure this is really right. Actually in my dimensional array I am working with midi, so my type is TMidi.

Also normal pascal seems to show to do this different, but I have not been able to get the scripting engine to accept any of these forms yet...might just be me interpreting wrong when I am doing.

Who knows everytime I post script questions in the forum, I usually figure it out just after...so wish me luck...lol

-s
"Every act of creation is first an act of destruction." -Picasso

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 16 Sep 2016, 19:45

been a while back till used script but if i recall correctly I think used

"array of array of integer" as a declaration

something like
var test: array [0..5] of array [0..4] of integer;

but the way you do seems right also and more apporpiate for different types, i recall using arrays of Tparamenters

there must be some polyphonic scripts using arrays of Tmidi have to check

edit: "midi unpack" in midi tools seems one for example

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests