Awesome and yip swiss solos example will work on the top level but I cant see it working as I descend down through the levels so just to clarify what Exactly I was hoping for is something which does the following
//----- TL (Top Level ) TYPE
TYPE SEQUENCE
SELECTED as integer
BPM as integer
BARS as integer
RESOLUTION as integer
TOTAL_STEPS as integer
ROW as ROWS[]
COL as COLUMNS[]
SOUND_LIB as LIBRARY[]
ENDTYPE
//LL TYPE ( "Lower Level" ) to be encapsulated by TL Type ( SEQUENCE )
TYPE ROWS
TopOf# as float
BottomOf# as float
//an array of ID's that relate to ROW[index] allowing access to manipulate the sprite
//without ever knowing the sprites index value (eg. POINTER to SPRITE ID )
SprID as integer[]
//The ID of sound that has been loaded into the sequence and assigned to this row
//by using the LL_ASSIGN_SOUND_TO_ROW(soundID,RowID) ---
SoundID as integer
SELECTED as integer
ENDTYPE
//LL TYPE
TYPE COLUMNS
LeftSide# as float
RightSide# as float
BeatIndex as integer
ENDTYPE
//LIBRARY TYPE USED TO HOLD INFORMATION FROM SOUND FILES LOADED BY USER
//TO BE ENCAPSULATED BY SEQ
TYPE LIBRARY
//to inherit the sequenceID that owns this library
OwnerID as integer
SoundID as integer[]
//which row it has been loaded into
AssignedRowID as integer
ENDTYPE
And so I have created an array of TYPE SEQUENCE
GLOBAL SEQ AS SEQUENCE[]
and one of the Possible paths down into the lower levels could possibly look like this
SEQ[index].ROW[rowID].SprID[2] = CreateSprite(1,1)
and in theory I would be descending through the levels each time coding it out like that OR even using a function to Get the "index" of each Level required , but what I'm actually asking in the original post is.... is it possible to create a pointer from the path given
eg:
MyRef as Pointer
MyRef = SEQ[index].ROW[rowID].SprID[2]
so that each time I need to access it rather than writing out the entire path to the bottom level I would just pass MyRef to my functions and have them operate at that level as at the moment I am currently using a GET function to point me there where as I beleieve pointers would solve this problem with the Overall objective of using LESS lines of code to get to the index rather than manipulating global indexes and rather than using memblocks which would be defeating the purpose of using less code , pretty simple solution to a pretty simple problem, but like I say I am coding it in this fashion and it is working , I would just like to take shortcuts haha
Native Technology