I'm still plugging away on the straight key for Project TouCans. It's still a tossup at this point how many of the keying issues are my keying speed, and how many are due to various delays in the system. I got a nice little boost from ChatGPT over the weekend though!
It cranked out a straight key enabling web page that it took me about two hours to massage into what I wanted. You can see the finished code here. You'll notice that the sidetone uses a .wav file. There wasn't a more simple way to get JavaScript to generate a tone that I could find than using a .wav file. (Remember when computers beeped when you told them to beep? Sigh...) But, that meant I needed a constant tone .wav file. I, of course, did not have one. I asked ChatGPT to create one for me and the direct results were underwhelming. It produced nothing that I could easily use.
Then! I noticed the analysis button on the chat results. I clicked there and was presented with the Python code that ChatGPT was using. That code, when run locally, produced a .wav file perfectly. That's the code the page is now using. I need to add on code to call to the TouCans keyer, but I'm most of the way there! (At least for slow key speeds.)
Comments
Post a Comment
Please leave your comments on this topic: