Documentation
¶
Index ¶
- Variables
- func AddDynamic(orig, dynAdd string) (nu string)
- func CalcNoteDelay(resolution smf.MetricTicks) (delay int32)
- func CentsToPitchbend(cents float64, _range uint8) int16
- func DynamicToVelocity(dyn string, min, max, randomness, step, center int8) (vel int8)
- func ExponentialGlide(distance int64, noteDiff int64, callback func(pos uint, val float64))
- func ExponentialTempoChange(distance int64, diff float64, callback func(step uint, val float64))
- func FindEventThatIsNotRest(start int, evts []*Event) (found int)
- func FindNextPos(i int, forward int, evts []*Event) int
- func ForwardBars(bars []*Bar, diff uint)
- func FreqRatioToCent(num, denom uint8) float64
- func GetQNNumberFromPos(pos string) (qnnumber uint, rest string)
- func HalfTonesToPitchbend(halftones float64, _range uint8) int16
- func IsLoop(it Item) int
- func KeyToNote(key uint8) (letter, augmenter string, octave int)
- func Length32ths(num, denom uint8) uint
- func LinearGlide(distance int64, noteDiff int64, callback func(step uint, val float64))
- func LinearTempoChange(distance int64, diff float64, callback func(step uint, val float64))
- func MultiHasNote(me *MultiItem) bool
- func NtupleHasNote(me *NTuple) bool
- func Pos32thToString(pos uint) string
- func PositionTo32th(lastBeatNo uint, pos string) (completed string, num32th uint, err error)
- func PrintBars(text string, bars ...*Bar)
- func PrintEventStream(message string, ess ...*EventStream)
- func PrintEvents(message string, evts []*Event)
- func ReplaceParams(s string, params []string) string
- func VelocityToDynamic(vel uint8) (dyn string)
- type Bar
- type BarRepeater
- type BarRepeaterES
- type Columner
- type Command
- type DefaultES
- type EuclideanRhythm
- type Event
- func ApplyLyrics(events []*Event, lyrics []string) (applied []*Event)
- func ForwardEvents(ins []*Event, diff uint) (outs []*Event)
- func GetEventsInPosRange(from, to uint, evts []*Event) (res []*Event)
- func MoveBySyncFirst(ins []*Event) (out []*Event)
- func RollTheDice(events []*Event) []*Event
- func SliceEvents(slice [2]int, all []*Event, projectedBarEnd uint) (evs []*Event, absoluteEnd uint)
- type EventSequence
- func (s EventSequence) Call(mod *eventSequenceModifier) EventSequence
- func (s EventSequence) ChangeDynamic(mod *eventSequenceModifier) (evs EventSequence)
- func (s EventSequence) DiatonicTranspose(steps int8) EventSequence
- func (s EventSequence) Len() int
- func (s EventSequence) Less(a, b int) bool
- func (s EventSequence) MircoTimingShift(shift int8) EventSequence
- func (s EventSequence) Override(over EventSequence) EventSequence
- func (s EventSequence) Slice(mod *eventSequenceModifier) (evs EventSequence)
- func (s EventSequence) StartSync(position int64) EventSequence
- func (s EventSequence) Swap(a, b int)
- func (s EventSequence) Transpose(halftones int8) EventSequence
- func (s EventSequence) TransposeOctave(octave int8) EventSequence
- type EventSequenceGetter
- type EventSequenceItem
- type EventSequenceMiddleWare
- type EventSequencer
- type EventSequencerFunc
- type EventStream
- func MergeEventStreams(mixed []*EventStream, endPos uint) (es *EventStream)
- func NewEventStream(syncFirst bool, start, end uint, isTemplate bool, events ...*Event) *EventStream
- func NewEventStreamOverride(syncFirst bool, start, end uint, isTemplate bool, events ...*Event) *EventStream
- func PipedEventStream(p Columner, start uint, endPos uint, evts []*Event) (*EventStream, error)
- type GlideStart
- type Include
- type Item
- type ItemGroup
- func (s ItemGroup) Call(params Params) ItemGroup
- func (s ItemGroup) ChangeDynamic(diff int8) ItemGroup
- func (s ItemGroup) DiatonicTranspose(steps int8) ItemGroup
- func (s ItemGroup) MircoTimingShift(shift int8) ItemGroup
- func (s ItemGroup) Slice(from, to int) ItemGroup
- func (s ItemGroup) ToParams() Params
- func (s ItemGroup) Transpose(halftones int8) ItemGroup
- func (s ItemGroup) TransposeOctave(octave int8) ItemGroup
- type ItemGroupMiddleWare
- type ItemGrouper
- type ItemGrouperFunc
- type Lyric
- type LyricsTable
- type MIDIAftertouch
- type MIDICC
- type MIDINote
- type MIDIPitchbend
- type MIDIPolyAftertouch
- type MIDIProgramChange
- type Mode
- type MultiItem
- func (m MultiItem) Dup() Item
- func (p *MultiItem) GetES(c Columner, ev *Event, start, endPos uint) (x []*EventStream, err error)
- func (m MultiItem) IsHold() bool
- func (m *MultiItem) Parse(data string, posIn32th uint) (err error)
- func (i *MultiItem) Reset()
- func (m *MultiItem) SetDynamic(dyn string)
- func (m MultiItem) String() string
- type NTuple
- type Note
- type OSCMessage
- type Override
- type Params
- type PartRepeat
- type PartRepeatES
- type Pattern
- func (p *Pattern) AddDynamic(orig string) (nu string)
- func (c *Pattern) Dup() Item
- func (c *Pattern) GetES(p Columner, ev *Event, start, endPos uint) (mixed []*EventStream, err error)
- func (p *Pattern) GetEventStream(column Columner, start, end uint) (*EventStream, error)
- func (p *Pattern) GetOverrideEventStream(column Columner, start, end uint) (*EventStream, error)
- func (p *Pattern) Parse(call string, positionIn32th uint) (err error)
- func (p *Pattern) String() string
- func (p *Pattern) Unroll(column Columner, start, until uint) (evt []*Event, end uint, err error)
- type PipedPatternCommands
- type Placeholder
- type Rabbit
- type RandomChooser
- type RandomProbability
- type Scale
- type ScaleDefinition
- func (s *ScaleDefinition) All(basenote uint8) (notes []uint8)
- func (s *ScaleDefinition) Name() string
- func (s *ScaleDefinition) NoteToStep(basenote, note uint8) (step int8)
- func (t *ScaleDefinition) Parse(name string, def string) error
- func (s *ScaleDefinition) StepToNote(basenote uint8, step int8) (note uint8)
- type Token
- func (t Token) Dup() Item
- func (c *Token) GetES(p Columner, ev *Event, start, endPos uint) (mixed []*EventStream, err error)
- func (t *Token) GetEventStream(column Columner, start, until uint) (*EventStream, error)
- func (t *Token) GetOverrideEventStream(column Columner, start, until uint) (*EventStream, error)
- func (t *Token) Parse(data string, positionIn32th uint) (err error)
- func (i *Token) Reset()
- func (t *Token) String() string
- type Tuning
- type TuningCents
- type TuningRatio
- type UnrollGetter
Constants ¶
This section is empty.
Variables ¶
var Aeolian = mode{ // contains filtered or unexported fields }
var DEBUG bool = false
var Dorian = mode{ // contains filtered or unexported fields }
var DottedLengths = map[string][2]uint32{ ":": [2]uint32{1, 16}, "::": [2]uint32{1, 32}, ":::": [2]uint32{1, 64}, }
var End = end{}
var GlideExponential = GlideStart(true)
var GlideLinear = GlideStart(false)
var Hold = hold{}
var Ionian = mode{ // contains filtered or unexported fields }
var Locrian = mode{ // contains filtered or unexported fields }
var Lydian = mode{ // contains filtered or unexported fields }
var Major = mode{ // contains filtered or unexported fields }
var Minor = mode{ // contains filtered or unexported fields }
var Mixolydian = mode{ // contains filtered or unexported fields }
var Modes = map[string]Mode{ "dorian": Dorian, "phrygian": Phrygian, "lydian": Lydian, "mixolydian": Mixolydian, "aeolian": Aeolian, "locrian": Locrian, "ionian": Ionian, "minor": Minor, "major": Major, }
var Phrygian = mode{ // contains filtered or unexported fields }
var RepeatLastEvent = repeatLastEvent{}
var Rest = rest{}
var TemplateReg = regexp.MustCompile(regexp.QuoteMeta("#") + "([0-9]+)")
Functions ¶
func AddDynamic ¶ added in v1.0.3
func CalcNoteDelay ¶
func CalcNoteDelay(resolution smf.MetricTicks) (delay int32)
func CentsToPitchbend ¶
func DynamicToVelocity ¶
if returned vel is < 0, then it has not been set and is drived from the previous velocity always return such that rand.Intn(4) can be added or substracted
func ExponentialGlide ¶
func ExponentialTempoChange ¶
func FindEventThatIsNotRest ¶ added in v1.0.3
func FindNextPos ¶ added in v1.0.3
findNextNotEmptyPos finds the next non empty position in evts and adds forward to it
func ForwardBars ¶ added in v1.0.4
func FreqRatioToCent ¶
func GetQNNumberFromPos ¶
func HalfTonesToPitchbend ¶
func LinearGlide ¶
func LinearTempoChange ¶
func MultiHasNote ¶ added in v1.0.3
func NtupleHasNote ¶ added in v1.0.3
func Pos32thToString ¶
func PositionTo32th ¶
lastBeatNo is the number of the beat in the bar, starting with 1 if lastBeatNo = 0, then there is no lastBeatNo given
func PrintEventStream ¶ added in v1.0.4
func PrintEventStream(message string, ess ...*EventStream)
func PrintEvents ¶ added in v1.0.4
func ReplaceParams ¶ added in v1.0.3
func replaceParams(s string, params []interface{}) string {
func VelocityToDynamic ¶
Types ¶
type Bar ¶ added in v1.0.4
type Bar struct { TempoChange float64 TimeSigChange [2]uint8 Position uint // number of 32th from start of Piece No int // real time sig (inherited or changed) TimeSig [2]uint8 JumpTo string Scale *Scale Tilde string Include *Include Comment string Part string InnerTempoChanges map[uint]float64 InnerScales map[uint]*Scale }
func GetBarsInPosRange ¶ added in v1.0.4
func (*Bar) Length32th ¶ added in v1.0.4
type BarRepeater ¶
func (BarRepeater) Dup ¶
func (b BarRepeater) Dup() Item
func (*BarRepeater) NewUnrollGetter ¶ added in v1.0.4
func (b *BarRepeater) NewUnrollGetter(evts []*Event, nextEv *Event) UnrollGetter
func (BarRepeater) String ¶
func (b BarRepeater) String() string
type BarRepeaterES ¶ added in v1.0.4
type BarRepeaterES struct { Item *BarRepeater Evts []*Event NextEv *Event }
func (*BarRepeaterES) GetES ¶ added in v1.0.4
func (p *BarRepeaterES) GetES(c Columner, ev *Event, start, endPos uint) (x []*EventStream, err error)
type Columner ¶ added in v1.0.4
type Columner interface { Call(until uint, syncFirst bool, params ...string) (evts []*Event, absoluteEnd uint, err error) //IsSyncFirst() bool EndPosition() uint UnrollPattern(start uint, until uint, cc *Pattern) (evt []*Event, diff uint, end uint, err error) ModifyToken(tk *Token) (Item, error) ApplyLyricsTable(lt *LyricsTable, evts []*Event) ([]*Event, error) ParseEvents(syncfirst bool, data []string) (es *EventStream, err error) GetToken(origName string, params []string) (val string, err error) GetBarIdxOf(pos uint) int GetPart(partname string) (part [2]uint, has bool) GetBar(idx int) *Bar GetEventsInBars(start, end int, evts []*Event) []*Event UnrollAndMerge(es *EventStream, params []string) (mix *EventStream, err error) RepeatBars(repevts []*Event, diff uint) (evts []*Event, absend uint) }
type Command ¶ added in v1.0.3
func (Command) GetInclude ¶ added in v1.0.3
type EuclideanRhythm ¶
type Event ¶
type Event struct { Item Item Position uint PosShift int // 0 = no, +n = laidback by n 64th, -n = ahead of time by n 64th }
func ApplyLyrics ¶ added in v1.0.3
applyLyrics applies the lyrics to the items of the pattern
func ForwardEvents ¶ added in v1.0.3
func GetEventsInPosRange ¶ added in v1.0.3
func MoveBySyncFirst ¶ added in v1.0.3
func RollTheDice ¶ added in v1.0.3
func SliceEvents ¶ added in v1.0.3
sliceEvents slices the events according to the template call slice definition
func (*Event) AbsPosTicks ¶
AbsPosTicks returns the absolute Position in ticks
type EventSequence ¶ added in v1.0.2
type EventSequence []*Event
func (EventSequence) Call ¶ added in v1.0.2
func (s EventSequence) Call(mod *eventSequenceModifier) EventSequence
func (EventSequence) ChangeDynamic ¶ added in v1.0.2
func (s EventSequence) ChangeDynamic(mod *eventSequenceModifier) (evs EventSequence)
func (EventSequence) DiatonicTranspose ¶ added in v1.0.2
func (s EventSequence) DiatonicTranspose(steps int8) EventSequence
func (EventSequence) Len ¶ added in v1.0.2
func (s EventSequence) Len() int
func (EventSequence) Less ¶ added in v1.0.2
func (s EventSequence) Less(a, b int) bool
func (EventSequence) MircoTimingShift ¶ added in v1.0.2
func (s EventSequence) MircoTimingShift(shift int8) EventSequence
func (EventSequence) Override ¶ added in v1.0.2
func (s EventSequence) Override(over EventSequence) EventSequence
func (EventSequence) Slice ¶ added in v1.0.2
func (s EventSequence) Slice(mod *eventSequenceModifier) (evs EventSequence)
func (EventSequence) StartSync ¶ added in v1.0.2
func (s EventSequence) StartSync(position int64) EventSequence
func (EventSequence) Swap ¶ added in v1.0.2
func (s EventSequence) Swap(a, b int)
func (EventSequence) Transpose ¶ added in v1.0.2
func (s EventSequence) Transpose(halftones int8) EventSequence
func (EventSequence) TransposeOctave ¶ added in v1.0.2
func (s EventSequence) TransposeOctave(octave int8) EventSequence
type EventSequenceGetter ¶ added in v1.0.2
type EventSequenceGetter struct { Original string // contains filtered or unexported fields }
func (EventSequenceGetter) Dup ¶ added in v1.0.2
func (e EventSequenceGetter) Dup() Item
func (*EventSequenceGetter) Get ¶ added in v1.0.2
func (e *EventSequenceGetter) Get() *EventSequenceItem
func (*EventSequenceGetter) Parse ¶ added in v1.0.2
func (e *EventSequenceGetter) Parse(data string, posIn32th uint) error
func (*EventSequenceGetter) String ¶ added in v1.0.2
func (e *EventSequenceGetter) String() string
type EventSequenceItem ¶ added in v1.0.2
type EventSequenceItem struct { EventSequence EventSequence Original string }
func (EventSequenceItem) Dup ¶ added in v1.0.2
func (e EventSequenceItem) Dup() Item
func (*EventSequenceItem) Parse ¶ added in v1.0.2
func (e *EventSequenceItem) Parse(data string, posIn32th uint) error
func (*EventSequenceItem) String ¶ added in v1.0.2
func (e *EventSequenceItem) String() string
type EventSequenceMiddleWare ¶ added in v1.0.2
type EventSequenceMiddleWare []func(in EventSequence) EventSequence
func (EventSequenceMiddleWare) Get ¶ added in v1.0.2
func (mw EventSequenceMiddleWare) Get() (es EventSequence)
first function must retrieve the eventsequence (receives nil)
type EventSequencer ¶ added in v1.0.2
type EventSequencer interface {
Get() EventSequence
}
type EventSequencerFunc ¶ added in v1.0.2
type EventSequencerFunc func() EventSequence
func (EventSequencerFunc) Get ¶ added in v1.0.2
func (e EventSequencerFunc) Get() EventSequence
type EventStream ¶ added in v1.0.3
type EventStream struct { Start uint // start position of the sketch column Events []*Event // the events (each character is an event) IsOverride bool // simulates wether the sketch column call is an override IsTemplate bool End uint Repeat uint }
eventStream simulates a column of events
func MergeEventStreams ¶ added in v1.0.3
func MergeEventStreams(mixed []*EventStream, endPos uint) (es *EventStream)
func NewEventStream ¶ added in v1.0.3
func NewEventStream(syncFirst bool, start, end uint, isTemplate bool, events ...*Event) *EventStream
func NewEventStreamOverride ¶ added in v1.0.3
func NewEventStreamOverride(syncFirst bool, start, end uint, isTemplate bool, events ...*Event) *EventStream
func PipedEventStream ¶ added in v1.0.4
func (*EventStream) GetEvents ¶ added in v1.0.4
func (c *EventStream) GetEvents(placementPos uint) (res []*Event)
func (*EventStream) Length32ths ¶ added in v1.0.4
func (c *EventStream) Length32ths() uint
func (*EventStream) Normalize ¶ added in v1.0.4
func (c *EventStream) Normalize()
func (*EventStream) SetEnd ¶ added in v1.0.4
func (c *EventStream) SetEnd(end uint)
SetEndToEndEvent sets the PosEnd to the first End item and returns the position. If there is no End item, 0 is returned
func (*EventStream) SetStart ¶ added in v1.0.4
func (c *EventStream) SetStart(syncFirst bool, start uint)
func (*EventStream) String ¶ added in v1.0.3
func (p *EventStream) String() string
type GlideStart ¶
type GlideStart bool
func (GlideStart) Dup ¶
func (g GlideStart) Dup() Item
func (GlideStart) String ¶
func (g GlideStart) String() string
type Item ¶
func RollTheDiceForAnItem ¶ added in v1.0.3
type ItemGroup ¶ added in v1.0.2
type ItemGroup []*Item
func (ItemGroup) ChangeDynamic ¶ added in v1.0.2
func (ItemGroup) DiatonicTranspose ¶ added in v1.0.2
func (ItemGroup) MircoTimingShift ¶ added in v1.0.2
func (ItemGroup) TransposeOctave ¶ added in v1.0.2
type ItemGroupMiddleWare ¶ added in v1.0.2
func (ItemGroupMiddleWare) Get ¶ added in v1.0.2
func (mw ItemGroupMiddleWare) Get() (es ItemGroup)
first function must retrieve the ItemGroup (receives nil)
type ItemGrouper ¶ added in v1.0.2
type ItemGrouper interface {
Get() ItemGroup
}
type ItemGrouperFunc ¶ added in v1.0.2
type ItemGrouperFunc func() ItemGroup
func (ItemGrouperFunc) Get ¶ added in v1.0.2
func (e ItemGrouperFunc) Get() ItemGroup
type LyricsTable ¶ added in v1.0.2
func (*LyricsTable) ApplyLyrics ¶ added in v1.0.4
func (c *LyricsTable) ApplyLyrics(column lyricser, evts []*Event) ([]*Event, error)
func (*LyricsTable) Dup ¶ added in v1.0.2
func (c *LyricsTable) Dup() Item
func (*LyricsTable) Parse ¶ added in v1.0.2
func (p *LyricsTable) Parse(call string, positionIn32th uint) error
func (*LyricsTable) String ¶ added in v1.0.2
func (p *LyricsTable) String() string
type MIDIAftertouch ¶
func (MIDIAftertouch) Dup ¶
func (m MIDIAftertouch) Dup() Item
func (*MIDIAftertouch) Parse ¶
func (at *MIDIAftertouch) Parse(data string, posIn32th uint) (err error)
func (MIDIAftertouch) String ¶
func (m MIDIAftertouch) String() string
type MIDINote ¶
type MIDINote struct { Note int8 Dynamic string Dotted string PosShift int // 0 = no, 1 = laidback, -1 = ahead of time NoteOn bool NoteOff bool }
func (*MIDINote) SetDynamic ¶ added in v1.0.3
type MIDIPitchbend ¶
func (MIDIPitchbend) Dup ¶
func (m MIDIPitchbend) Dup() Item
func (*MIDIPitchbend) Parse ¶
func (pb *MIDIPitchbend) Parse(data string, posIn32th uint) (err error)
func (MIDIPitchbend) String ¶
func (m MIDIPitchbend) String() string
type MIDIPolyAftertouch ¶
func (MIDIPolyAftertouch) Dup ¶
func (m MIDIPolyAftertouch) Dup() Item
func (*MIDIPolyAftertouch) Parse ¶
func (pt *MIDIPolyAftertouch) Parse(data string, posIn32th uint) (err error)
func (MIDIPolyAftertouch) String ¶
func (m MIDIPolyAftertouch) String() string
type MIDIProgramChange ¶
type MIDIProgramChange struct {
Value uint8
}
func (MIDIProgramChange) Dup ¶
func (m MIDIProgramChange) Dup() Item
func (*MIDIProgramChange) Parse ¶
func (at *MIDIProgramChange) Parse(data string, posIn32th uint) (err error)
func (MIDIProgramChange) String ¶
func (m MIDIProgramChange) String() string
type MultiItem ¶
type MultiItem struct { Events []*Event // contains filtered or unexported fields }
func (*MultiItem) SetDynamic ¶ added in v1.0.3
type NTuple ¶
func ReplaceNtupleTokens ¶ added in v1.0.4
func (*NTuple) SetDynamic ¶ added in v1.0.3
type Note ¶
type Note struct { Letter string Octave int Augmenter string Dynamic string GlissandoStart bool GlissandoExp bool Dotted string IsScaleNote bool ScaleNote int8 PosShift int // 0 = no, 1 = laidback, -1 = ahead of time NoteOn bool NoteOff bool }
func (*Note) SetDynamic ¶ added in v1.0.3
type OSCMessage ¶
type OSCMessage struct { Path string Args []interface{} }
func (OSCMessage) Dup ¶
func (m OSCMessage) Dup() Item
func (OSCMessage) String ¶
func (m OSCMessage) String() string
type PartRepeat ¶
func (*PartRepeat) Dup ¶
func (pr *PartRepeat) Dup() Item
func (*PartRepeat) NewUnrollGetter ¶ added in v1.0.4
func (pr *PartRepeat) NewUnrollGetter(evts []*Event) UnrollGetter
func (*PartRepeat) String ¶
func (pr *PartRepeat) String() string
type PartRepeatES ¶ added in v1.0.4
type PartRepeatES struct { Item *PartRepeat Evts []*Event }
func (*PartRepeatES) GetES ¶ added in v1.0.4
func (c *PartRepeatES) GetES(p Columner, ev *Event, start, endPos uint) (mixed []*EventStream, err error)
type Pattern ¶ added in v1.0.2
type Pattern struct { Name string Params []string Slice [2]int SyncFirst bool DynamicAdd string ScaleMove int8 // 0: force to scale (take next note in scale if not exact matching, no movement for in scale notes), n >0 || n < 0: move by n steps along the scale ScaleMoveMode int8 // 0: no scale movement, 1: move only scale notes, 2: move only scale notes or non scale notes depending on the first item FirstNoteIsScaleNote int // 0: not set, 1: true, 2: false FirstNoteAbsKey uint8 PosShift int // 0 = no, 1 = laidback, -1 = ahead of time Repeat uint Lyrics *LyricsTable Exploded bool // e.g. when token is (a b c) then =patt(token...) becomes =patt(a,b,c) // contains filtered or unexported fields }
func (*Pattern) AddDynamic ¶ added in v1.0.2
func (*Pattern) GetEventStream ¶ added in v1.0.4
func (p *Pattern) GetEventStream(column Columner, start, end uint) (*EventStream, error)
func (*Pattern) GetOverrideEventStream ¶ added in v1.0.4
func (p *Pattern) GetOverrideEventStream(column Columner, start, end uint) (*EventStream, error)
type PipedPatternCommands ¶
type PipedPatternCommands struct {
Cmds []*Command
}
func (*PipedPatternCommands) Dup ¶
func (p *PipedPatternCommands) Dup() Item
func (*PipedPatternCommands) Parse ¶
func (p *PipedPatternCommands) Parse(data string, pos uint) error
func (*PipedPatternCommands) String ¶
func (p *PipedPatternCommands) String() string
type Placeholder ¶
type Placeholder int
func (Placeholder) Dup ¶
func (v Placeholder) Dup() Item
func (Placeholder) String ¶
func (l Placeholder) String() string
type Rabbit ¶
type Rabbit struct {
// contains filtered or unexported fields
}
type RandomChooser ¶
func (RandomChooser) Dup ¶
func (r RandomChooser) Dup() Item
func (*RandomChooser) Parse ¶
func (r *RandomChooser) Parse(data string, posIn32th uint) (err error)
func (RandomChooser) String ¶
func (r RandomChooser) String() string
type RandomProbability ¶
func (RandomProbability) Dup ¶
func (r RandomProbability) Dup() Item
func (*RandomProbability) Parse ¶
func (rp *RandomProbability) Parse(data string, posIn32th uint) (err error)
func (RandomProbability) String ¶
func (r RandomProbability) String() string
type ScaleDefinition ¶
type ScaleDefinition struct { Original string // contains filtered or unexported fields }
func (*ScaleDefinition) All ¶
func (s *ScaleDefinition) All(basenote uint8) (notes []uint8)
func (*ScaleDefinition) Name ¶
func (s *ScaleDefinition) Name() string
func (*ScaleDefinition) NoteToStep ¶
func (s *ScaleDefinition) NoteToStep(basenote, note uint8) (step int8)
func (*ScaleDefinition) StepToNote ¶
func (s *ScaleDefinition) StepToNote(basenote uint8, step int8) (note uint8)
type Token ¶ added in v1.0.2
type Token struct { Name string // contains filtered or unexported fields }
func (*Token) GetEventStream ¶ added in v1.0.4
func (t *Token) GetEventStream(column Columner, start, until uint) (*EventStream, error)
func (*Token) GetOverrideEventStream ¶ added in v1.0.4
func (t *Token) GetOverrideEventStream(column Columner, start, until uint) (*EventStream, error)
type Tuning ¶
func ParseTuning ¶
type TuningCents ¶
func (*TuningCents) CentsFor ¶
func (m *TuningCents) CentsFor(midinote uint8) float64
func (*TuningCents) Parse ¶
func (t *TuningCents) Parse(name, def string) error
type TuningRatio ¶
func (*TuningRatio) Parse ¶
func (t *TuningRatio) Parse(name, baseFreq, def string) (err error)
func (*TuningRatio) RatioFor ¶
func (m *TuningRatio) RatioFor(midinote uint8) [2]uint8
type UnrollGetter ¶ added in v1.0.4
type UnrollGetter interface {
GetES(c Columner, ev *Event, startPos, endPos uint) ([]*EventStream, error)
}
Source Files
¶
- bar.go
- barrepeater.go
- command.go
- end.go
- es.go
- euclidean_rhythms.go
- event.go
- event_sequence.go
- event_stream.go
- glide.go
- helpers.go
- hold.go
- include.go
- item_group.go
- items.go
- lyrics.go
- lyrics_table.go
- midiaftertouch.go
- midicc.go
- midinote.go
- midipitchbend.go
- midipolyaftertouch.go
- midiprogramchange.go
- mode.go
- multiitem.go
- note.go
- ntuple.go
- oscmessage.go
- override.go
- parse.go
- partrepeat.go
- pattern.go
- pipedpatterncommands.go
- placeholder.go
- rabbit.go
- random.go
- repeatlastevent.go
- rest.go
- scale.go
- scale_definition.go
- sketch_lyrics.go
- sketch_pattern.go
- sketch_token.go
- token.go
- tuning.go