Morgondag Posted April 7, 2014 Share Posted April 7, 2014 I made a Audio preprocessor with HTML5 Web audio API.Throw this into a node-webkit application add a ogg sound file and it will return a json with the processed data.https://github.com/morgondag/preprocessKeep in mind that this implementation is based on the RequestAnimationFrame so need to tweak if if you have another FPS in your game. I use this in a prototype mobile game where that part of the web audio API is not available in order to create rhythm based gameplay. The node-webkit part is just there to make use if the filesystem. Quote Link to comment Share on other sites More sharing options...
Morgondag Posted April 9, 2014 Author Share Posted April 9, 2014 Maybe this should be posted in the audio subgroup. Updated to support timestamp instead of just an array so it can be used for a "fuzzy" framerate-independent gameloop.Basically you can check musics currentTime against the preprocessed object timestamp.And normalised to regular array data instead of Uint8Array.Using this myself for a HTML5 based iphone game. Quote Link to comment Share on other sites More sharing options...
anissen Posted April 10, 2014 Share Posted April 10, 2014 Very nice! This could definitely come in handy. It would be nice if there was a functional web-based version in addition to the node-webkit version. I tried using 5minfork.com on the repo, but didn't get json output from the inputted ogg-file... Quote Link to comment Share on other sites More sharing options...
Morgondag Posted April 13, 2014 Author Share Posted April 13, 2014 Very nice! This could definitely come in handy. It would be nice if there was a functional web-based version in addition to the node-webkit version. I tried using 5minfork.com on the repo, but didn't get json output from the inputted ogg-file... You could actually use the html file in Chrome.it's using the webkitAudioContex so you could just rewrite the saving part, for that part i'm using node.js FS module(for filesystem saving)You will need some serverside logic for that.Using it for a small iOS game based on rythm right now. this gif is at half framerate thought. stuff spawns/active/animate based on the snare drum. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.