The Save Song

User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

The Save Song

Unread post by pgimeno »

I don't know if I'm the first one who has done this. I'd like to think so.

:D
 
Attachments
song.tap.zip
(607 Bytes) Downloaded 213 times
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: The Save Song

Unread post by pgimeno »

I've received some PMs about how it was made. I wrote a love2d program to investigate how different bit patterns sounded. As I was finding suitable ones, I hardcoded them into the program. Then I wrote a Lua program to generate the song out of a score using these bit patterns.

Run with:
love savepatterns.zip
unzip gen.zip and run: lua gen.lua output.bin
Attachments
gen.zip
(1.1 KiB) Downloaded 165 times
savepatterns.zip
(1.62 KiB) Downloaded 169 times
ash2fpga
Posts: 237
Joined: Tue May 26, 2020 6:20 pm
Has thanked: 62 times
Been thanked: 28 times

Re: The Save Song

Unread post by ash2fpga »

Neat! I had not heard of love2d. I am a big fan of lua since I started using it a few years ago.
Post Reply