AudioSurf like game....is it possible with Corona?

Hey guys,

I have an idea for a game which uses music to “make” the levels, kind of like AudioSurf for PC. Im wondering if something similar to this would be possible with Corona. Mainly could I take a audio file, use Fast Fourier Transform FFT (if thats even how its done, if not please correct me) and generate a level using the data. Also im not sure if this is possible either but how would I go about reading music from the users device to make these levels?

Any information on this topic will be greatly appreciated as I really want to get started with this project, but am unsure if it is even possible with Corona or for mobile devices at all.

Thanks for your time! [import]uid: 141138 topic_id: 26561 reply_id: 326561[/import]

Sorry, I don’t think there is enough native access in Corona for what you want to do.
First, you can’t at the user’s media library directly. When feature request voting becomes available, you might want to vote for it. However, I’m not sure how easy or portable this will be to use/expose.

On iOS, the original native API gives you play-only access and you can’t read any data from the files. There is a newer API that gives you the ability to copy files out and access data, but the APIs are harder to use. I don’t know if Android gives you any access or not.

Second, there is no direct FFT implementation you can access. The tuner example does FFT stuff behind the scenes, but to give you access to the full arrays of data might be too much data to push constantly through Lua and expect any reasonable performance.
If you are determined, you might be able to pull this off yourself using your own music files (either bundled or downloaded), or if Android permits direct access via the file system. You would still have to process the data yourself. You would have to manually open the files yourself and interpret the data. I don’t know how fast a Lua-based FFT would be (though if you are clever, there may be other techniques you can apply to analyze/interpret song data). [import]uid: 7563 topic_id: 26561 reply_id: 107858[/import]

Hi ewing,

Although that isnt exactly what i was wanting to hear =P, thank you very much for taking the time to inform me. I am very determined to get this game concept on devices for everyone to enjoy no matter what it takes. I was hoping to allow users to upload their own music to it to make for limitless play, but I have also explored the other route of including premade “levels” with songs and then updating the paid version with more songs periodically. I am really wanting this to be on iOS and Android so I dont really want to give one more access than the other if Android even supports direct access…

Again thanks for taking the time I truely appreciate it! [import]uid: 141138 topic_id: 26561 reply_id: 107916[/import]

If you need more native access in Corona, you might inquire about Enterprise.
http://www.anscamobile.com/corona/enterprise-solutions/

[import]uid: 7563 topic_id: 26561 reply_id: 107930[/import]