[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving binary files to /RAM



"Simon Williams" <email@DELETE_THIS.luddite.no-ip.com> wrote in message 
news:1gr5zon.d2hs7hoiep0yN%email@DELETE_THIS.luddite.no-ip.com...
> On a tangent, but still related:
>
> Just so you know why this matters, I'll explain what I'm up to: I'm
> trying to put together another drum sequencing program using DAC522 a la
> TIMELORD. I thought that by using /RAM to store the samples I could make
> use of more/bigger samples thus extending the programs capabilities
> however:
>
> I have 16 samples named "A"..."P", each 3072 bytes copied to
> /RAM/SAMPLES/
>
> I'm using this code to play them in order:
>
> 160 FOR F = 65 TO 80
> 170 PRINT CHR$(4)"BLOAD /RAM/SAMPLES/" CHR$(F) ",A$2000"
> 180 CALL 35840 : REM DAC522
> 190 NEXT F
>
> What happens, oddly enough, is that the first 12 samples play
> back-to-back as one would hope, but then there is a noticeable delay
> between the last four. I've tried this on a IIe, IIgs and IIc+ with the
> same result...
>
> Any ideas...?

Not really but I'd try a couple of things for experimentation in the name of 
humor me.
Add a semicolon before and after chr$(F)

170 PRINT CHR$(4)"BLOAD /RAM/SAMPLES/" ; CHR$(F)  ; ",A$2000"

The root directory can handle I think 50 or 51 files. There is a slight 
delay in decoding the subdirectory though that should be a constant.

Move the samples to /ram alone.

Lastly type TRACE before RUN just to see if that shows anything. NOTRACE to 
stop.