event

package
Version: v2.0.0-pre1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlChangeEvent

type ControlChangeEvent struct {
	Channel enums.Channel `json:"channel"`
	CC      enums.CC      `json:"cc"`
	Value   int           `json:"value"`
}

func (*ControlChangeEvent) GetChannel

func (e *ControlChangeEvent) GetChannel() enums.Channel

func (*ControlChangeEvent) ShiftChannel

func (e *ControlChangeEvent) ShiftChannel(n int)

func (*ControlChangeEvent) String

func (e *ControlChangeEvent) String() string

type DurationEventPair

type DurationEventPair struct {
	Duration int   `json:"duration"`
	Event    Event `json:"event"`
}

DurationEventPair は、次の演奏イベントと、そのイベントまでの待機時間のペアを格納する構造体です。

type Event

type Event interface {
	fmt.Stringer
	GetChannel() enums.Channel
	ShiftChannel(n int)
}

func CreateEvent

func CreateEvent(rdr io.Reader, rest *int, ctx *SequenceBuilderContext) (Event, error)

func CreateEventHPS

func CreateEventHPS(rdr io.Reader, rest *int, ctx *SequenceBuilderContext) (Event, error)

func CreateEventSEQU

func CreateEventSEQU(rdr io.Reader, rest *int, ctx *SequenceBuilderContext) (Event, error)

type ExclusiveEvent

type ExclusiveEvent struct {
	Exclusive *subtypes.Exclusive `json:"exclusive"`
}

func (*ExclusiveEvent) GetChannel

func (e *ExclusiveEvent) GetChannel() enums.Channel

func (*ExclusiveEvent) ShiftChannel

func (e *ExclusiveEvent) ShiftChannel(n int)

func (*ExclusiveEvent) String

func (e *ExclusiveEvent) String() string

type FineTuneEvent

type FineTuneEvent struct {
	Channel enums.Channel `json:"channel"`
	Value   int           `json:"value"`
}

func (*FineTuneEvent) GetChannel

func (e *FineTuneEvent) GetChannel() enums.Channel

func (*FineTuneEvent) ShiftChannel

func (e *FineTuneEvent) ShiftChannel(n int)

func (*FineTuneEvent) String

func (e *FineTuneEvent) String() string

type NopEvent

type NopEvent struct {
}

func (*NopEvent) GetChannel

func (e *NopEvent) GetChannel() enums.Channel

func (*NopEvent) ShiftChannel

func (e *NopEvent) ShiftChannel(n int)

func (*NopEvent) String

func (e *NopEvent) String() string

type NoteEvent

type NoteEvent struct {
	Channel  enums.Channel `json:"channel"`
	Note     enums.Note    `json:"note"`
	Velocity int           `json:"velocity"`
	GateTime int           `json:"gate_time"`
}

func (*NoteEvent) GetChannel

func (e *NoteEvent) GetChannel() enums.Channel

func (*NoteEvent) ShiftChannel

func (e *NoteEvent) ShiftChannel(n int)

func (*NoteEvent) String

func (e *NoteEvent) String() string

type OctaveShiftEvent

type OctaveShiftEvent struct {
	Channel enums.Channel `json:"channel"`
	Value   int           `json:"value"`
}

func (*OctaveShiftEvent) GetChannel

func (e *OctaveShiftEvent) GetChannel() enums.Channel

func (*OctaveShiftEvent) ShiftChannel

func (e *OctaveShiftEvent) ShiftChannel(n int)

func (*OctaveShiftEvent) String

func (e *OctaveShiftEvent) String() string

type PitchBendEvent

type PitchBendEvent struct {
	Channel enums.Channel `json:"channel"`
	Value   int           `json:"value"`
}

func (*PitchBendEvent) GetChannel

func (e *PitchBendEvent) GetChannel() enums.Channel

func (*PitchBendEvent) ShiftChannel

func (e *PitchBendEvent) ShiftChannel(n int)

func (*PitchBendEvent) String

func (e *PitchBendEvent) String() string

type ProgramChangeEvent

type ProgramChangeEvent struct {
	Channel enums.Channel `json:"channel"`
	PC      int           `json:"pc"`
}

func (*ProgramChangeEvent) GetChannel

func (e *ProgramChangeEvent) GetChannel() enums.Channel

func (*ProgramChangeEvent) ShiftChannel

func (e *ProgramChangeEvent) ShiftChannel(n int)

func (*ProgramChangeEvent) String

func (e *ProgramChangeEvent) String() string

type SequenceBuilderContext

type SequenceBuilderContext struct {
	// contains filtered or unexported fields
}

func NewSequenceBuilderContext

func NewSequenceBuilderContext() *SequenceBuilderContext

NewSequenceBuilderContext は、新しい SequenceBuilderContext を作成します。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL