wave - a sound manager with audio parsing and rhythm functionalities

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by Ulydev »

Sulunia wrote:The problem is when the song ends and loops back to the beggining, or the next beat with the offset? :monocle:
Oooh, I got it! I had to change

Code: Select all

self.beatTime = (self.bpm / 60) * self.time / 1000
to

Code: Select all

self.beatTime = (self.bpm / 60) * ((self.time + (self.offset or 0)) % (self.duration*1000)) / 1000
so, yeah, source:setOffset() is now working! :awesome:
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by Ulydev »

Fixed an issue that caused the library to lag on mobile devices.

Thanks to Sulunia for helping out! :awesome:
User avatar
whitebear
Citizen
Posts: 86
Joined: Sun Mar 15, 2009 1:50 am

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by whitebear »

I've recently messed with this lib and some of my own audio scripts.
BUG: Using this along with love's own audio stuff has some conflicts (I got crash when I tried to use :play() function of normal love.audio source)
SUGGESTION: Built in key change. I wrote it into my own script but thought it might be useful to have in the lib. Basically function to pitch shift by key. (multiply pitch by twelth root of two)
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by Ulydev »

whitebear wrote:I've recently messed with this lib and some of my own audio scripts.
BUG: Using this along with love's own audio stuff has some conflicts (I got crash when I tried to use :play() function of normal love.audio source)
SUGGESTION: Built in key change. I wrote it into my own script but thought it might be useful to have in the lib. Basically function to pitch shift by key. (multiply pitch by twelth root of two)
Thanks for the bug report, I just fixed it. Key and octave changes have also been added.

Code: Select all

music:setPitch( music:octave(2) )

music:setPitch( music:tone(-4) )
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by Ulydev »

Update! I implemented a beat detection algorithm for wave.

Code: Select all

-Added music:detectBPM()


This feature is very experimental and might not work for every song. Feel free to try it and contribute to improving it!
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by undef »

Awesome! :D
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: wave - a sound manager with audio parsing and rhythm functionalities

Post by zorg »

Neat code, i can't even understand what it does exactly. :D
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest