class

GB::Channel2

Inherits GB::VolumeEnvelopeChannel < GB::SoundChannel < Reference < Object

Constants

RANGE = 65302..65305
WAVE_DUTY = Slice[[0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 1, 1, 1], [0, 1, 1, 1, 1, 1, 1, 0]]

Instance methods

===(other) : Bool

Used so that channels can be matched with case..when statements

Source
[](index : Int) : UInt8
Source
[]=(index : Int, value : UInt8) : Nil
Source
frequency_timer

Calculate the frequency timer

Source
get_amplitude
Source
schedule_reload(frequency_timer : UInt32) : Nil
Source
step_wave_generation

Called when @period reaches 0

Source