ToneBasic: Programming With Sound!
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.
the link in the newsletter for the music-based encryption leads to this
@HappyFakeboulde Huh, that's weird, looks like they've fixed it now. Thanks for stopping by anyways!
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
@CSharpIsGud Nice! Thanks for checking it out :)
Wow(More people should upvote this)! I wonder if you can use certain algorithms to make songs that sound good...
It wouldn't hurt to download a special application to measure decibels, such as Decibel Pro, I downloaded myself a long time ago, because if you regularly get used to normal decibel you can go deaf. It's not a myth anymore, it's a reality, now a lot of people listen to music loudly all the time, with headphones, and this can lead to damage to the eardrum. So here decibel chart read more about what everyday sounds can also negatively affect your health. I've learned a lot for myself.
@EricCartman8 Yeah not that this is related to my original comment, but I feel like people should be more mindful of how persistent loud noise can damage your hearing.
This week's newsletter for "First Ever music-based encryption" leads to this page. The correct link https://repl.it/talk/challenge/Muse-Key-The-Music-Based-Encryption-Service/16898