I copied your source files to my TI-99/4A where I assembled them and loaded the object file to my HSGPL card. I also watched your you tube demo. Now I have to sit down and try and understand what you have done. Nice work.
Jacques
[/quote]
Well this will help say you plug in the values from a CALL SOUND like in the demo. Use the Soundtable Basic program.
CALL SOUND( 400,330,2,131,6)
Generator #? 1 is the first one.
Duration ? 400
Frequency ? 330
Volume ? 2
BYTE >03,>83,>15,>91,>18,>00
Now the second half.
Generator#? 2
Duration ? 400
Frequency ? 131
Volume ? 6
BYTE >03,>A6,>35,>B3,>18,>00
Combine them like this:
>03+>03=>06, throw away the first >18 (Duration) and >00 then make a new list:
BYTE >06,>83,>15,>91,>A6,>35,>B3,>18,>00
The >06 is number of bytes to play not counting the Duration byte of >18 and >00 is the value to tell it to stop playing.
But we still have one more problem and that is it will never stop playing the last note per Generator so Tursi gave me this list:
>8x xx - Channel 1 frequency
>9x - Channel 1 volume
>Ax xx - channel 2 frequency
>Bx - channel 2 volume
>Cx xx - channel 3 frequency
>Dx - channel 3 volume
>Ex - Noise type
>Fx - noise volume
Now with this in hand we can add in new Volumes to turn then off (mute).
BYTE >06,>83,>15,>91,>A6,>35,>B3,>18
BYTE >02,>9F,>BF,>00
We took away the >00 to end the list and added a new list of >02 bytes >9F mute Gen#1 and >BF mute Gen#2, then >00 to stop playing.
Edited by RXB, Thu May 26, 2011 4:07 PM.