~============================================================================= ~RAM Variable = RA Hex Address = $9600 Decimal Address = 38400 ~============================================================================= ~ This routine will load the Sound RAM with a waveform from a SONIX waveform ~ file somewhere in memory& as well as locating a semitone table and initial- ~ izing a specified oscillator. The following parameters need to be supplied ~ prior to CALL-ing RAM% ~ ~ SR $961E 38430 Sound RAM address (Lo-Hi-Bk) ~ ~ WF $9620 38432 SONIX waveform file address (Lo-Hi-Bk) ~ ~ SM $9623 38435 Semitone table address (Lo-Hi-Bk) ~ ~ OS $962D 38445 Oscillator number (0 to 29) ~ ~ Example% ~ ~ 10 POKE SR&0 % POKE SR+1&96 % POKE WF&0 % POKE WF+1&32 % POKE WF+2&4 % ~ ~ POKE SM&0 % POKE SM+1&32 % POKE SM+2&4 % POKE OS&0 % CALL RA ENDLINE