Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller は、MIDIに類似するインタフェースで Chip のレジスタをコントロールします。
func NewController ¶
func NewController(opts *ControllerOpts) *Controller
NewController は、新しい Controller を作成します。
func (*Controller) FlushMIDIMessages ¶
func (ctrl *Controller) FlushMIDIMessages(until int)
FlushMIDIMessages は、蓄積されたMIDIメッセージを処理します。
func (*Controller) PushMIDIMessage ¶
func (ctrl *Controller) PushMIDIMessage(typ MIDIMessage, timestamp, midich, data1, data2 int)
PushMIDIMessage は、処理すべきMIDIメッセージを追加します。
type ControllerOpts ¶
type ControllerOpts struct { Registers ymf.Registers Library *smaf.VM5VoiceLib MuteIfPCNotFound bool ForceMono bool PrintStatus bool IgnoreMIDIChannels []int SoloMIDIChannel int }
ControllerOpts は、 NewController のオプションです。
type MIDIMessage ¶
type MIDIMessage int
MIDIMessage は、MIDIメッセージの種類を表す列挙子型です。
const ( // MIDINoteOn は、MIDIメッセージの種類 NoteOn を表す列挙子です。 MIDINoteOn MIDIMessage = iota + 1 // MIDINoteOff は、MIDIメッセージの種類 NoteOff を表す列挙子です。 MIDINoteOff // MIDIControlChange は、MIDIメッセージの種類 ControlChange を表す列挙子です。 MIDIControlChange // MIDIProgramChange は、MIDIメッセージの種類 ProgramChange を表す列挙子です。 MIDIProgramChange // MIDIPitchBend は、MIDIメッセージの種類 PitchBend を表す列挙子です。 MIDIPitchBend )
Click to show internal directories.
Click to hide internal directories.