Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AGK Developer
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 1st Feb 2020 02:42 Edited at: 1st Feb 2020 02:44
As part of my work on this project, I needed to improve the beat detection on OGG/MP3 music, as it was easy to add audio cues to MOD tracks for this, but we have a lesser library of source material there.
So, I added a FFT function to my plugin and managed to get a first effort FFT spectrum. The function can take a param for the amount of bands and it returns peaks for each band. Unfortunately, I have to call the function for every band because I can't pass data back to AppGameKit memblocks or even return a string, so it has to be one band at a time for now.
I think this is a good first effort and will suffice for isolating certain frequencies which I was initially interested in.

The top boxes are stereo peaks, which was all I was working with on this. I should be able to get some more fidelity now.

Retired Moderator
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Feb 2020 02:49
Well done
MerryChristmas Everyone
fubarpk on Itch...………...
fubarpk on googleplay..
AGK Developer
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 1st Feb 2020 02:54
There's a lot of potential for this. A lot of games these days are based on music.
FPSC Reloaded TGC Backer
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 19th Feb 2020 10:51
nice music beats
Bored of the Rings
User Banned
Posted: 19th Feb 2020 14:12
congrats on this project, really good stuff
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
DBPro Master
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Feb 2020 03:57
Can you write into memory and pass a pointer back to agk?
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2023-06-03 08:54:12
Your offset time is: 2023-06-03 08:54:12