control

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

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

func NewKey

func NewKey(deviceID int, channel int, note core.Note) Key

func (Key) Channel

func (k Key) Channel() int

func (Key) DeviceID

func (k Key) DeviceID() int

func (Key) Inspect

func (k Key) Inspect(i core.Inspection)

Inspect is part of Inspectable

func (Key) Note

func (k Key) Note() core.Note

func (Key) Storex

func (k Key) Storex() string

Storex is part of core.Storable

type Knob

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

func NewKnob

func NewKnob(deviceID, channel, number int) *Knob

func (*Knob) ControlChange

func (k *Knob) ControlChange(channel, number, value int)

func (*Knob) Inspect

func (k *Knob) Inspect(i core.Inspection)

Inspect is part of Inspectable

func (*Knob) NoteOff

func (k *Knob) NoteOff(channel int, n core.Note)

func (*Knob) NoteOn

func (k *Knob) NoteOn(channel int, n core.Note)

func (*Knob) Storex

func (k *Knob) Storex() string

Storex is part of core.Storable

func (*Knob) Value

func (k *Knob) Value() interface{}

func (*Knob) VariableName

func (k *Knob) VariableName(yours string)

VariableName is part of NameAware

type Listen

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

func NewListen

func NewListen(ctx core.Context, deviceID int, variableName string, target core.HasValue) *Listen

func (*Listen) ControlChange

func (l *Listen) ControlChange(channel, number, value int)

func (*Listen) Inspect

func (l *Listen) Inspect(i core.Inspection)

Inspect implements Inspectable

func (*Listen) IsPlaying

func (l *Listen) IsPlaying() bool

func (*Listen) NoteOff

func (l *Listen) NoteOff(channel int, n core.Note)

NoteOff is part of core.NoteListener

func (*Listen) NoteOn

func (l *Listen) NoteOn(channel int, n core.Note)

NoteOn is part of core.NoteListener

func (*Listen) Play

func (l *Listen) Play(ctx core.Context, at time.Time) error

Play is part of core.Playable

func (*Listen) SetTarget

func (l *Listen) SetTarget(c core.HasValue)

SetTarget is for replacing functions

func (*Listen) Stop

func (l *Listen) Stop(ctx core.Context) error

func (*Listen) Storex

func (l *Listen) Storex() string

Storex is part of core.Storable

func (*Listen) Target

func (l *Listen) Target() core.HasValue

Target is for replacing functions

type OnOff

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

func NewOnOff

func NewOnOff(deviceID int, channel int, note core.Note) OnOff

func (OnOff) Play

func (o OnOff) Play(ctx core.Context, at time.Time) error

Play implements Playable

func (OnOff) Stop

func (o OnOff) Stop(ctx core.Context) error

Stop implements Playable

func (OnOff) Storex

func (o OnOff) Storex() string

Storex is part of core.Storable

type Play

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

Play represents play() and sync()

func NewPlay

func NewPlay(ctx core.Context, list []core.Sequenceable, playInSync bool) Play

func (Play) Evaluate

func (p Play) Evaluate(ctx core.Context) error

Evaluate implements Evaluatable performs the set operation

func (Play) Play

func (p Play) Play(ctx core.Context, at time.Time) error

Play is part of core.Playable

func (Play) Storex

func (p Play) Storex() string

Storex implements Storable

type Recording

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

func NewRecording

func NewRecording(deviceID int, variableName string, bpm float64) *Recording

func (*Recording) ControlChange

func (r *Recording) ControlChange(channel, number, value int)

ControlChange is ignored

func (*Recording) GetTargetFrom

func (r *Recording) GetTargetFrom(other *Recording)

func (*Recording) IsPlaying

func (r *Recording) IsPlaying() bool

func (*Recording) NoteOff

func (r *Recording) NoteOff(channel int, n core.Note)

func (*Recording) NoteOn

func (r *Recording) NoteOn(channel int, n core.Note)

func (*Recording) Play

func (r *Recording) Play(ctx core.Context, at time.Time) error

func (*Recording) S

func (r *Recording) S() core.Sequenceable

func (*Recording) Stop

func (r *Recording) Stop(ctx core.Context) error

Stop is part of Stoppable

func (*Recording) Storex

func (r *Recording) Storex() string

type SetBPM

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

func NewBPM

func NewBPM(bpm core.HasValue, ctx core.Context) SetBPM

func (SetBPM) Evaluate

func (s SetBPM) Evaluate(ctx core.Context) error

Evaluate implements Evaluatable performs the set operation

func (SetBPM) Inspect

func (s SetBPM) Inspect(i core.Inspection)

Inspect implements Inspectable

func (SetBPM) S

func (s SetBPM) S() core.Sequence

S has the side effect of setting the BPM unless BPM is zero

func (SetBPM) Storex

func (s SetBPM) Storex() string

Storex implements Storable

type SyncPlay

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

func NewSyncPlay

func NewSyncPlay(list []core.HasValue) SyncPlay

func (SyncPlay) Evaluate

func (s SyncPlay) Evaluate(ctx core.Context) error

func (SyncPlay) IsPlaying added in v0.44.0

func (s SyncPlay) IsPlaying() bool

IsPlaying implements Stoppeable

func (SyncPlay) Play

func (s SyncPlay) Play(ctx core.Context, at time.Time) error

Play implements Playable

func (SyncPlay) S

func (s SyncPlay) S() core.Sequence

func (SyncPlay) Stop added in v0.37.0

func (s SyncPlay) Stop(ctx core.Context) error

Stop implements Stoppeable

func (SyncPlay) Storex

func (s SyncPlay) Storex() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL