Hello dears developpers!
First I'm not a C/C++ programmer, so... I can't do it myself (C# ok but C++.. Not possible for me..).
Here I come with a new idea of a brand new exciting extension for MMF2 (standard and developper).
So here we can all say MMF2 isn't really able to build game like AudioSurf or BeatHazard (etc..)
This is essentially caused by the fact we haven't yet an extension which can be able to decompose and analyze Audio Spectrum/Bitrate/BPM/Audio channels and other informations from Audio file.
Now I submit a real start-of for build those kind of amazing extension.
Imagine:
Creating an extension which can use the excellent FModEx (old system, but can be sufficient!) or FMod Studio: Please login to see this link.
-- Analyze some audio parts will be then DOABLE if the written extension for MMF2 send the file name to the FModEx API which will analyze Audio spectrum, bitrate, bpm.. of the audio track.
-- It's a requirement that the extension will be able to keepin MMF2 free but aware from changement at any steps after send the file for analyze with the FModEx API. (If not.. MMF2 cannot handle it! And never get the resulted report of analyze).
-- Edit 1: I know the License of FMod is free for ANY no commercial use, and if we want using it in a commercial application, then it cost some cash to spend of for it directly to the FMod Developers (firelight). But hey, for free2play applications/freewares applications it will be amazing!
So..
This is how I see the extension working (CONDITION/ACTIONS):
¤For analyze:
- CONDITION ## extension:MMF2FModEx isn't analysis audio
- CONDITION ## Value of variable "AudioAnalysed" is "NOTOK"
- ACTION ## extension:MMF2FModEx-> Send file Apppath$ + "game_musics\AudioPlay1.mp3" for spectral analyzing and report as TXT file in Apppath$ + "game_musics\audio_analyzed.txt", (wait-while-analyzing: true, after-analyze: set AudioAnalysed to OK).
¤After analyze:
- CONDITION ## extension:MMF2FModEx has finished to analysis audio
- CONDITION ## Value of variable "AudioAnalysed" is "OK"
- ACTION ## MMF2 Open file Apppath$ + "game_musics\audio_analyzed.txt".
** At that step we now can be able to create ourselves a parser within our MMF2 application for analyzing datas contents in TXT file for create Audio-Based games.
** The report is the file generated after analyze by the FModEx API and then loaded as TXT file in MMF2 with (default action of MMF2: extension:File->load file Apppath$ + "game_musics\audio_analyzed.txt").
** This will be a way to get BPM, Spectrum analyze (integers, float at seconds/minutes based in a track).
Something like :
Contents of Apppath$ + "game_musics\audio_analyzed.txt"
Second 1: BPM=XX, Spectrum Values=[XX,XX,XX,XX] etc..
Second 2: BPM=XX, Spectrum Values=[XX,XX,XX,XX] etc..
Second 3 .... etc
It's an idea I thinking and finally since my tought is that it's a potentially ever-great extension as Audio one...
Then I post here!
What do you think of it?