Page 1 of 1

Pixel Music

Posted: Tue Feb 16, 2016 2:33 am
by BruceTheGoose
I wrote a small Love2D application that generates sounds based on image data. You can check it out and see how it works. Feel free to edit it and improve it. If you do improve it, please post your edit here!

Challenge:

I dare someone to draw out Twinkle Twinkle Little Star. Best of Luck!

I forgot to apply the volume. To apply simply go into generateNotes.lua and under this line:

Code: Select all

local source = love.audio.newSource(soundData)
Simply add

Code: Select all

source:setVolume(v/10)
So

Code: Select all

local source = love.audio.newSource(soundData)
source:setVolume(v/10)

WARNING:
I RECOMMEND NOT TO USE AN IMAGE LARGER THAN 100x by 100y! I takes a while for the application to process the image and create sound data based on the image data!

Re: Pixel Music

Posted: Tue Feb 16, 2016 5:30 am
by D0NM
Nice. But I hear some clicks between the notes...

Re: Pixel Music

Posted: Tue Feb 16, 2016 7:18 am
by pgimeno
This is the best I could do. Had to apply several fixes. The duration was broken and there were a few off-by-ones. There's no silence, which is a problem for some songs. And no "black notes", which is a problem for some other songs.

(Drawn with GIMP)

Re: Pixel Music

Posted: Tue Feb 16, 2016 1:16 pm
by BruceTheGoose
pgimeno wrote:This is the best I could do. Had to apply several fixes. The duration was broken and there were a few off-by-ones. There's no silence, which is a problem for some songs. And no "black notes", which is a problem for some other songs.

(Drawn with GIMP)
Nice song you got there! Thanks for sharing your fixes!