Category Archives: Algorithms

R2D2 Pitch Detection project 2

I’ve just uploaded an attempt at extracting pitch from human voice to GitHub. It’s a Processing sketch that uses the following classes: PitchProject.pde – main sketch file. AudioSource.pde – gets audio from wav files or microphone. ToneGenerator.pde – creates an output tone with a triangle wave. PitchDetectorAutocorrelation.pde – an audio listener that uses Autocorrelation to [...]

Roulette wheel selection for procedural content generation 7

There are times when you need to give your code the ability to choose among many options that have different frequencies or probabilities of being selected. Whether you need to create a random power-up or decide the next enemy encounter, here’s a tool that you will find useful: the Roulette Wheel selection algorithm, or Fitness [...]