So lately I have been testing out the vex speaker, it seems to handle the RTTTL quite nice as seen in these videos
[LIST]
*]Mission Impossible (Robot C sample RTTTL)
*]He’s a Pirate (not very good)
*]Super Mario Bros
[/LIST]
I have done some tests with .Wav files but the only ones I can get to work are the sample ones that I got from robot c, not sure why they wont play, they download to the cortex perfectly fine but when I try to play them they dont work
The wav files need to be 8bit mono at perhaps 11kHz, something like that.
There is also a bug in the ROBOTC RTTTL converter (V3.08 tested) where notes above B5 are shifted down by two, for example A5 is 880Hz (correct) but D6 also converts to 880Hz (wrong).
I don’t know if the speaker can connect to just a digital output port instead of the speaker port, and if it can, how can you program it? I don’t know about EasyC, but ROBOTC only gives you a resolution of up to 1 millisecond, and the sound functions are restricted to one port. I suppose you could use a closed while loops to get a higher resolution, but I don’t know how effective that would be.
EDIT: Didn’t see someone already pointed this out.
Ok so I have downloaded ‘Still alive’ and converted it to an 8-bit .Wav file, but its still to big so im gonna shorten the song and see how much of it I can play