Pixel Music

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
BruceTheGoose
Citizen
Posts: 76
Joined: Sat Sep 20, 2014 2:54 pm

Pixel Music

Post 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!
Attachments
PixelMusic.zip
(1.97 KiB) Downloaded 104 times
Last edited by BruceTheGoose on Tue Feb 16, 2016 1:34 pm, edited 2 times in total.
"I don't know."
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: Pixel Music

Post by D0NM »

Nice. But I hear some clicks between the notes...
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
pgimeno
Party member
Posts: 3687
Joined: Sun Oct 18, 2015 2:58 pm

Re: Pixel Music

Post 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)
Attachments
PixelMusicMod.love
(2.03 KiB) Downloaded 127 times
User avatar
BruceTheGoose
Citizen
Posts: 76
Joined: Sat Sep 20, 2014 2:54 pm

Re: Pixel Music

Post 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!
"I don't know."
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests