Expand description
Shared helper utilities for YM2149 register math.
These functions are used by downstream crates (CLI, Bevy plugin, visualization) to derive channel periods and frequencies in a consistent way.
Functionsยง
- channel_
frequencies - Convenience helper returning the three channel frequencies for the default clock.
- channel_
frequencies_ with_ clock - Compute the frequency of each channel for a given master clock.
- channel_
period - Compute the 12-bit tone period from register low/high bytes.
- period_
to_ frequency - Convert a tone period into a frequency using the default 2MHz master clock.
- period_
to_ frequency_ with_ clock - Convert a tone period into a frequency for a specific master clock.