C++ Code Samples

Circular Buffer
  • Excerpt of circular buffer implementation from Delay Intervals (full implementation)
  • Shown here are functions for adding and getting samples, and a function for summing samples with pre-existing data in the output buffer
EQ Visualization
  • A function used for visualizing the frequency response of an EQ with multiple individual filters, used in my plug-in Split EQ
  • Combines the filter's responses, translates amplitude values into gain, and creates a path to be drawn on the screen

C# (Unity) Code Samples

Volume Audio Emitter
  • Simple simulation of an arbitrary-shape volume emitter using 3 point-source emitters
  • Emitters are placed at weighted averages of world-space points within the volume
  • Used in my ambience system for the river sounds
Dynamic Bird Calls
  • Used in my ambience system for creating bird calls from individually recorded chirps
  • Plays a sequence of SFX with randomized volume, pitch, and delay between sounds
  • Each parameter's randomization range can be set for the start, middle, and end of the sequence. Values interpolate between these ranges