control

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) PrintInfo added in v1.0.0

func (k *Knob) PrintInfo()

func (*Knob) Storex

func (k *Knob) Storex() string

Storex is part of core.Storable

func (*Knob) Value

func (k *Knob) Value() any

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, while core.Condition, at time.Time) time.Time

Play is part of core.Playable

func (*Listen) PrintInfo added in v1.0.0

func (l *Listen) PrintInfo()

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

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) Equals added in v1.0.0

func (o *OnOff) Equals(other *OnOff) bool

func (*OnOff) IsPlaying added in v1.0.0

func (o *OnOff) IsPlaying() bool

func (*OnOff) Play

func (o *OnOff) Play(ctx core.Context, cond core.Condition, at time.Time) time.Time

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, while core.Condition, at time.Time) time.Time

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) Inspect added in v0.51.0

func (r *Recording) Inspect(i core.Inspection)

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, while core.Condition, at time.Time) time.Time

func (*Recording) PrintInfo added in v1.0.0

func (r *Recording) PrintInfo()

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, while core.Condition, at time.Time) time.Time

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