Mellow banner

Mellow

3 devlogs
2h 47m 46s

Mellow is a programming language that can be used to create music on the fly!

This project uses AI

Used ChatGPT for debugging, getting ideas on how to implement stuff, Copilot to do a review of the code at the end, README scaffold.

Demo Repository

Loading README...

Snxhit_

Shipped this project!

Hours: 2.8
Cookies: 🍪 34
Multiplier: 12.32 cookies/hr

Mellow

Mellow is a music programming language that I’m writing from scratch in the beautiful Golang.
Mellow allows you to write and compose music, but with logic and code!
Everything from the parser to interpreter is written from scratch (Though, I’ve written a language before)!

Status

This project is in a very primitive stage right now.

What was challenging

Working on live updates was the hardest part (Reflection of changes made to music files while the sound is playing.)
This involved delaying the playback a little, and then queueing notes.
Not only was it hard, it didn’t even work out in the end! This is because of how code editors work.

What are you proud of?

I’m proud of the fact that it works, lol.

Thank you for playing :D

Snxhit_

Hola!

Coming back to Mellow after quite a while, and I don’t really remember how a lot of the stuff works. Regardless, I’ve made some final touches, added a proper README with instructions, details, etc, though I still don’t think this is enough. Oh well, we shall see! I made Copilot go over the project and fix whatever was crash prone because I remember leaving this project in a broken state. Then I made it go over the README I wrote, and it removed all the whimsical parts. Stupid Copilot. Anywayssssss, gonna work on a logo now!

CIAO!

Attachment
1

Comments

Praco
Praco 5 days ago

HES BACK

Snxhit_

Hola!

I managed to implement actual sounds! Though, a lot of the logic was directed by ChatGPT cuz I couldn’t figure out what to do lol.
Anyways, the program can now play sounds, from the file that you give it!
Live reloading is also implemented, though it’s crashing and also a little buggy because of how text editors work.
I implemented a very small “toy” parser for now for testing purposes. It works, so that’s enough, lol.
Here is an example of a test track written in a .me (Mellow) file.

Explanation:

Each line plays the notes that it mentions in the duration that it mentions, forever!

Attachment
0
Snxhit_

Hello!

This is the first devlog on this project!
In the past hour, I basically set up the entire structure of the project, implemented ASTs, a parser (that doesn’t do anything rn), a runtime and a scheduler!
This project is a little different from actual programming languages because it requires an actual loop, running constantly and looking for updates on the code file, while also playing music after parsing the file!
So far, I’ve managed to get a structure working to create loops that execute after a set duration. I’m soon going to implement actually playing the sounds.
I haven’t yet made a GitHub repo for this either.
I do wonder… How am I supposed to devlog music?
Ciao!

Attachment
0