Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thanks for playing and the feed back, glad you stuck with the music, i can imagine it got a bit tedious after a while

The math for the frequency was actual  very simple because it didn't had an offset. I knew the target and i knew the current at any moment.
than for a simple score i could just do

var amp_diff = abs(amplitude - target_amplitude)
var freq_diff = abs(frequency - target_frequency)
score = 100.0 - (amp_diff + freq_diff * 100.0)