including large constant array

Discuss the Firewing language

including large constant array

Postby roger » Wed Mar 18, 2015 4:46 pm

I am trying to import large wave files ie constant1.wav renamed as constant1.bas
into a project named BasicSynth

constant1.bas {
0x01,0x03,0x08,0x06,0x05,0x07,0x04,0xfd,
etc etc
}
in the following manner

IMPORTS F:\constant1
but the compiler gives an error message of

[ERROR] BasicSynth.bas(55): 'END' expected

However if I append END to the end of the array I still get the same error.

F: is the drive where the wav file is stored.
The arrays are large so without counting the number of samples I don't know how large an array to declare. The manual does not have an example for large single dimensioned arrays. To what does END refer?

Thanks for any help

roger
roger
 
Posts: 33
Joined: Tue Dec 11, 2012 12:41 pm

Re: including large constant array

Postby David John Barker » Wed Mar 18, 2015 5:53 pm

You need to use the correct syntax in your module. For example,
Code: Select all
module <module-name>
<declarations>
...
...
end module
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x