PDA

View Full Version : [AS3] computeSpectrum based game questions...


x0b
11-14-2007, 08:53 PM
Hi,

I am researching making a game for my degree at university that is based around the new computeSpectrum functionality in AS3. I have read a lot and tried out a few tutorials but hopefully would like some clarification from the clever people here on whether things could be possible.

I have a basic/moderate understanding of AS2, I have not yet made anything with AS3...

My game is likely to be a platform based game within which the content/obstacles are generated by the frequency data. So I'd have say 4 platforms, with platform 1 being moved by frequencies from 40hz to 150hz. platform 2 by frequencies from 200hz to 500hz, platform 3 by frequencies from 2000hz to 5000hz and platform 4 by 8000hz to 16000hz.

I have a few questions:

1) From my own observation and through reading comments by others I have noticed that the spectrum that is output is not displayed as well as it should/could be. The frequencies towards the left side of the spectrum (assuming it is displayed in a bar style horizontal manner) represent a vast amount of the frequency range, rather than just the low end frequencies occupied by basslines and kick drums etc. Does anyone know of a way of working with this so it could be more accurate? I guess what I'd need is to be able to restrict or filter the data output to contain only frequencies within a specific range.

2) Following on from this, would I then be able to have mutliple outputs that each send different data to affect multiple platforms?

3) Assuming the previous 2 questions could be satisfied, is it feasible for me to have a player controlled character interact with the obstacles controlled by the computeSpectrum output?

Sorry if this is hard to grasp, I haven't explained my needs very well!

Thanks so much for anyone that can give me pointers ;)

Alex

x0b
11-16-2007, 09:50 PM
does anyone know what i'm talking about here?

sorry to bump but i really need to decide if what i want to do is possible, i have to present my idea in under two weeks and don't want to present something that i am not able to make!

basically i need to know if i can access specific sections of the data output by the computespectrum command.

thanks