Skip to main content

composite_voltage

Function composite_voltage 

Source
pub fn composite_voltage(index: usize, emphasis: usize, phase: usize) -> f32
Expand description

Compute the raw composite voltage (relative to sync) for one subcarrier phase (0..12) of NES palette index (0..=63) under emphasis (0..=7, bit0 = red, bit1 = green, bit2 = blue).

This is the un-normalized chip output: the chosen LEVELS entry, times the emphasis attenuation when any set emphasis bit’s hue region overlaps phase.