Skip to content
← Back to Community
ToneBasic: Programming With Sound!
Profile icon
enchanter

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.

Voters
Profile icon
2maTar
Profile icon
CSharpIsGud
Profile icon
bigtoe0
Profile icon
beemichan
Profile icon
avibeskrowni
Profile icon
bgrubert
Profile icon
moudy
Profile icon
amasad
Profile icon
katavie
Profile icon
katyadee
Comments
hotnewtop
Profile icon
mhxion

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

Profile icon
HappyFakeboulde

the link in the newsletter for the music-based encryption leads to this

Profile icon
enchanter

@HappyFakeboulde Huh, that's weird, looks like they've fixed it now. Thanks for stopping by anyways!

Profile icon
amasad

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.

Profile icon
enchanter

@amasad Thanks, and that’s a great idea! I was thinking it would be cool to make a forum post where people can share their creations. I’ll add this as soon as the challenge ends!

Profile icon
CSharpIsGud

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
Profile icon
enchanter

@CSharpIsGud Nice! Thanks for checking it out :)

Profile icon
bgrubert

Wow(More people should upvote this)! I wonder if you can use certain algorithms to make songs that sound good...

Profile icon
EricCartman8

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.

Profile icon
bgrubert

@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.