Documentation ¶
Index ¶
- func NewWindow(title string, w, h float64) *pixelgl.Window
- type Button
- type Controls
- func (c *Controls) AddOutputChannel(outputChannel chan signals.Signal)
- func (c *Controls) Compose()
- func (c *Controls) DrawTo(imd *imdraw.IMDraw)
- func (c *Controls) InitButtons()
- func (c *Controls) InitDials()
- func (c *Controls) ListenToInputSessionChannel()
- func (c *Controls) ResetDials()
- func (c *Controls) RespondToInput(win *pixelgl.Window)
- func (c *Controls) SendToOutputChannels(signal signals.Signal)
- type Dial
- type Grid
- func (g *Grid) Compose()
- func (g *Grid) DrawTo(imd *imdraw.IMDraw)
- func (g *Grid) ListenToInputBeatChannel()
- func (g *Grid) ListenToInputCtrlChannel()
- func (g *Grid) ListenToInputSessionChannel()
- func (g *Grid) Play()
- func (g *Grid) RespondToInput(win *pixelgl.Window)
- func (g *Grid) SetPlayheadPosition()
- func (g *Grid) SetScale(scaleIndex int)
- func (g *Grid) Stop()
- func (g *Grid) Toggle()
- func (g *Grid) TurnAllNotesOff()
- func (g *Grid) TurnNotesOff()
- func (g *Grid) TurnNotesOn()
- type Note
- type Playhead
- type Typography
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Button ¶
type Button struct { Imd *imdraw.IMDraw Rect pixel.Rect Label string // contains filtered or unexported fields }
func (*Button) SetEngaged ¶
func (*Button) SetGrouped ¶
func (*Button) SetPressed ¶
type Controls ¶
type Controls struct { Rect pixel.Rect W, H float64 Dials []*Dial Buttons []*Button ModeButtons []*Button Imd *imdraw.IMDraw ImdBatch *imdraw.IMDraw Typ *Typography InputSessionChannel chan signals.Signal OutputChannels []chan signals.Signal SessionData *session.SessionData }
func NewControls ¶
func NewControls(r pixel.Rect, sessionData *session.SessionData) *Controls
func (*Controls) AddOutputChannel ¶
func (*Controls) InitButtons ¶
func (c *Controls) InitButtons()
func (*Controls) ListenToInputSessionChannel ¶
func (c *Controls) ListenToInputSessionChannel()
func (*Controls) ResetDials ¶
func (c *Controls) ResetDials()
func (*Controls) RespondToInput ¶
func (*Controls) SendToOutputChannels ¶
type Dial ¶
type Dial struct { ImdStatic *imdraw.IMDraw Imd *imdraw.IMDraw Rect pixel.Rect Radius float64 Label string Value float64 ValueFrmt string IsUnread bool // contains filtered or unexported fields }
func (*Dial) JustPressed ¶
type Grid ¶
type Grid struct { Rect pixel.Rect W, H float64 Imd *imdraw.IMDraw Matrix [][]uint32 InputBeatChannel chan signals.Signal InputCtrlChannel chan signals.Signal InputSessionChannel chan signals.Signal BeatIndex uint8 Notes []Note NotesToStrike []uint8 Scale []uint8 NoteNames []string MidiWriter *writer.Writer MidiOutput midi.Out Playhead *Playhead Typ *Typography IsPlaying bool SignalReceived bool SessionData *session.SessionData }
func (*Grid) ListenToInputBeatChannel ¶
func (g *Grid) ListenToInputBeatChannel()
func (*Grid) ListenToInputCtrlChannel ¶
func (g *Grid) ListenToInputCtrlChannel()
func (*Grid) ListenToInputSessionChannel ¶
func (g *Grid) ListenToInputSessionChannel()
func (*Grid) RespondToInput ¶
func (*Grid) SetPlayheadPosition ¶
func (g *Grid) SetPlayheadPosition()
func (*Grid) TurnAllNotesOff ¶
func (g *Grid) TurnAllNotesOff()
func (*Grid) TurnNotesOff ¶
func (g *Grid) TurnNotesOff()
func (*Grid) TurnNotesOn ¶
func (g *Grid) TurnNotesOn()
type Playhead ¶
func NewPlayhead ¶
type Typography ¶
func NewTypography ¶
func NewTypography() *Typography
Click to show internal directories.
Click to hide internal directories.