ToneBasic: Programming With Sound!
Hi, everyone! For my submission I decided to create my own version of the BASIC language, along with an editor that allows you to run it online. ToneBasic has one cool twist, it makes it easy to create programs that make sound! Currently on repl.it the only repls that can make sounds are the ones that use HTML, CSS, and JS. ToneBasic allows you to make sounds using the simple BASIC language. If you're creative enough, you can even make music, all through programming!
So how can I get started?
Head on over to the editor (best viewed in chrome) and either start programming, or try out one of the examples on the right. If you get stuck, you can take a look at the quick reference guide I wrote up for BASIC, or ask me a question!
What libraries did you use?
The main focus of this submission was to demonstrate the BASIC interpreter I made, so I went ahead and used the Open-Source Ace editor for text editing in the interface. I made the rest of the code from scratch for the competition.
This is really cool. It would be awesome if there is a way to save the user program. You can have a save button that simply base64 encodes the program and puts it in the URL.
Im a year late but I found this while searching through repl talk.
tone 420, 0.35 tone 320, 0.35 tone 420, 0.35 tone 470, 0.35 tone 400, 0.35 tone 320, 0.35 tone 400, 0.35 tone 420, 0.35 tone 360, 0.35 tone 320, 0.35 tone 320, 0.35 tone 280, 0.35 tone 280, 0.35 tone 270, 0.35 tone 250, 0.35 tone 230, 0.35