I'm working on a keyboard recording/playback program - will post it soon. Had an issue with _LIMIT when used with the PAINT command. Basically I'm using _LIMIT to control the speed of the recording and playback, and allowing the user to control the _LIMIT rate to speed up/slow down song playback speed.
Roughly something like this...
speed = 100
DO
_LIMIT speed * 10
.... allow use to adjust speed value from 40 to 200
...PAINT a key played...etc..
LOOP
Well, it worked sometimes, then not at all -it will get to a point that _LIMIT won't change anymore and stayed on one speed no matter what the speed variable is.
After much bug testing and eliminating lines, I narrowed it down that the PAINT call was the culprit -- when I replaced it with a LINE that does the same thing, the _LIMIT change always worked as it should. Put PAINT back in, it fails. Any idea what could be causing the PAINT/LIMIT to clash? Perhaps my graphics system is the problem?
Anyway, _LIMIT is working fine using LINE command, so I'm beyond the hurdle now, just wondering about it still...
.
- Dav