Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for common operations

Functions§

db_to_linear
Convert dB to linear gain
freq_to_midi
Convert frequency to MIDI note
is_power_of_two
Check if a value is a power of two
linear_to_db
Convert linear gain to dB
midi_to_freq
Convert MIDI note to frequency
next_power_of_two
Round up to the next power of two
samples_to_seconds
Convert samples to seconds
seconds_to_samples
Convert seconds to samples