class

GB::Channel1

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

Constants

RANGE = 65296..65300
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_calculation

Calculate the new shadow frequency, disable channel if overflow 11 bits https://gist.github.com/drhelius/3652407#file-game-boy-sound-operation-L243-L250

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
sweep_step
Source