Documentation
¶
Index ¶
- Constants
- type Arp
- func (a *Arp) AddNote(key, velocity uint8)
- func (a *Arp) Close() error
- func (a *Arp) ControlChannel() int8
- func (a *Arp) Lock(by string)
- func (a *Arp) RLock()
- func (a *Arp) RUnLock()
- func (a *Arp) RemoveNote(key uint8)
- func (a *Arp) Reset()
- func (a *Arp) Run() error
- func (a *Arp) SetNoteDistance(dist float64)
- func (a *Arp) SetNoteVelocity(key, velocity uint8)
- func (a *Arp) SetStartNoteVelocity(velocity uint8)
- func (a *Arp) SetStyleLegato()
- func (a *Arp) SetStyleNonLegato()
- func (a *Arp) SetStyleStaccato()
- func (a *Arp) SetSwing(percent float32)
- func (a *Arp) SetTempo(bpm float64)
- func (a *Arp) Silence() (did bool)
- func (a *Arp) StartWithNote(key, velocity uint8)
- func (a *Arp) Stop()
- func (a *Arp) StopWithNote(key uint8)
- func (a *Arp) SwitchDirection(down bool)
- func (a *Arp) Unlock(by string)
- func (a *Arp) WriteMsg(msg midi.Message) error
- func (a *Arp) WriteNoteOff(key uint8) error
- func (a *Arp) WriteNoteOn(key, velocity uint8) error
- type Option
- func CCDirectionSwitch(controller uint8) Option
- func CCStyle(controller uint8) Option
- func CCTimeInterval(controller uint8) Option
- func ChannelIn(ch uint8) Option
- func ChannelOut(ch uint8) Option
- func ControlChannel(ch uint8) Option
- func NoteDirectionSwitch(key uint8) Option
- func NotePoolOctave(oct uint8) Option
- func NoteStyle(key uint8) Option
- func NoteTimeInterval(key uint8) Option
- func Tempo(bpm float64) Option
- func Transpose(halfnotes int8) Option
Constants ¶
View Source
const ( C note = 0 Cis = iota D Dis E F Fis G Gis A Ais B )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arp ¶
func New ¶
New returns a new Arp, receiving from the given midi.In port and writing to the given midi.Out port
func (*Arp) ControlChannel ¶
func (*Arp) RemoveNote ¶
func (*Arp) SetNoteDistance ¶
func (*Arp) SetNoteVelocity ¶
func (*Arp) SetStartNoteVelocity ¶
TODO maybe remove
func (*Arp) SetStyleLegato ¶
func (a *Arp) SetStyleLegato()
func (*Arp) SetStyleNonLegato ¶
func (a *Arp) SetStyleNonLegato()
func (*Arp) SetStyleStaccato ¶
func (a *Arp) SetStyleStaccato()
func (*Arp) StartWithNote ¶
func (*Arp) StopWithNote ¶
func (*Arp) SwitchDirection ¶
func (*Arp) WriteNoteOff ¶
func (*Arp) WriteNoteOn ¶
type Option ¶
type Option func(a *Arp)
func CCDirectionSwitch ¶
CCDirectionSwitch sets the controller for the direction switch
func CCTimeInterval ¶
CCTimeInterval sets the controller for the time interval
func ControlChannel ¶
ControlChannel sets a separate MIDI channel for the control messages
func NoteDirectionSwitch ¶
NoteDirectionSwitch sets the key for the direction switch
func NotePoolOctave ¶
NotePoolOctave sets the octave that defines the note pool, instead of the starting note
func NoteTimeInterval ¶
NoteTimeInterval sets the key for the time interval
Click to show internal directories.
Click to hide internal directories.