Documentation ¶
Index ¶
- func CheckDynamic(emphasis string) error
- func DecomposeSequence(s core.Sequence) core.Sequenceable
- type AtIndex
- type Dynamic
- type DynamicMap
- type Fraction
- type FractionMap
- type Group
- type IfCondition
- type Join
- type JoinMap
- type Merge
- type NoteMap
- type Octave
- type OctaveMap
- type Probability
- type RandomInteger
- type Repeat
- type Replace
- type Resequencer
- type Reverse
- type Rotate
- type Serial
- type Stretch
- type Transpose
- type TransposeMap
- type Trim
- type Undynamic
- type VelocityMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDynamic ¶
func DecomposeSequence ¶ added in v0.45.0
func DecomposeSequence(s core.Sequence) core.Sequenceable
Types ¶
type AtIndex ¶
type AtIndex struct { Target core.Sequenceable Index core.HasValue }
func NewAtIndex ¶
func NewAtIndex(index core.HasValue, target core.Sequenceable) AtIndex
type Dynamic ¶
type Dynamic struct { Target []core.Sequenceable Emphasis core.HasValue }
func (Dynamic) Replaced ¶
func (d Dynamic) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced returns a new Dynamic in which any occurrences of "from" are replaced by "to".
type DynamicMap ¶
type DynamicMap struct { Target []core.Sequenceable IndexDynamics []index2dynamic }
func NewDynamicMap ¶
func NewDynamicMap(slist []core.Sequenceable, dynamics string) (DynamicMap, error)
func (DynamicMap) Replaced ¶
func (d DynamicMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
func (DynamicMap) S ¶
func (d DynamicMap) S() core.Sequence
func (DynamicMap) Storex ¶
func (d DynamicMap) Storex() string
type Fraction ¶
type Fraction struct { Target []core.Sequenceable Parameter core.HasValue }
func NewFraction ¶
func NewFraction(parameter core.HasValue, target []core.Sequenceable) Fraction
func (Fraction) Replaced ¶
func (d Fraction) Replaced(from, to core.Sequenceable) core.Sequenceable
Return a new Fraction in which any occurrences of "from" are replaced by "to".
type FractionMap ¶
type FractionMap struct {
// contains filtered or unexported fields
}
func NewFractionMap ¶
func NewFractionMap(fraction core.HasValue, target core.Sequenceable) FractionMap
func (FractionMap) Replaced ¶ added in v0.44.0
func (f FractionMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Return a new FractionMap in which any occurrences of "from" are replaced by "to".
func (FractionMap) Storex ¶ added in v0.44.0
func (f FractionMap) Storex() string
type Group ¶
type Group struct {
Target core.Sequenceable
}
func (Group) Replaced ¶
func (p Group) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type IfCondition ¶
type IfCondition struct { Condition core.HasValue Then core.Sequenceable Else core.Sequenceable }
func (IfCondition) Replaced ¶
func (i IfCondition) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
func (IfCondition) S ¶
func (i IfCondition) S() core.Sequence
func (IfCondition) Storex ¶
func (i IfCondition) Storex() string
type Join ¶
type Join struct {
Target []core.Sequenceable
}
func (Join) Replaced ¶
func (j Join) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type JoinMap ¶
type JoinMap struct {
// contains filtered or unexported fields
}
func (JoinMap) Replaced ¶
func (j JoinMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Merge ¶
type Merge struct {
Target []core.Sequenceable
}
func (Merge) Replaced ¶
func (m Merge) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type NoteMap ¶
type NoteMap struct { Target core.HasValue Indices []int // contains filtered or unexported fields }
func NewNoteMap ¶
NewNoteMap returns a NoteMap that creates a sequence from occurrences of a note. The format of indices can be one of: 1 2 4 ; each number is an index in the sequence where the note is present; rest notes are placed in the gaps. ! . ! ; each dot is a rest, each exclamation mark is a presence of a note.
func (NoteMap) Replaced ¶
func (n NoteMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Octave ¶
type Octave struct { Target []core.Sequenceable Offset core.HasValue }
func (Octave) Replaced ¶
func (o Octave) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type OctaveMap ¶
type OctaveMap struct { Target core.Sequenceable IndexOffsets []int2int // one-based }
func NewOctaveMap ¶
func NewOctaveMap(target core.Sequenceable, indices string) OctaveMap
func (OctaveMap) Replaced ¶
func (o OctaveMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Probability ¶
type Probability struct {
// contains filtered or unexported fields
}
*
prob(0.8,note('c')) = a sequence with 80% chance of playing C
*
func NewProbability ¶
func NewProbability(chance, target core.HasValue) *Probability
func (*Probability) S ¶
func (p *Probability) S() core.Sequence
type RandomInteger ¶
type RandomInteger struct { From core.HasValue To core.HasValue // contains filtered or unexported fields }
func NewRandomInteger ¶
func NewRandomInteger(from, to core.HasValue) *RandomInteger
type Repeat ¶
type Repeat struct { Target []core.Sequenceable Times core.HasValue }
func (Repeat) Replaced ¶
func (r Repeat) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Replace ¶
type Replace struct { Target core.Sequenceable From, To core.Sequenceable }
Replace will replace a Sequenceable upon creating a Sequence.
type Resequencer ¶
type Resequencer struct { Target core.Sequenceable Indices [][]int Pattern core.HasValue }
func NewResequencer ¶
func NewResequencer(s core.Sequenceable, pattern core.HasValue) Resequencer
func (Resequencer) Replaced ¶
func (p Resequencer) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
func (Resequencer) S ¶
func (p Resequencer) S() core.Sequence
func (Resequencer) Storex ¶
func (p Resequencer) Storex() string
type Reverse ¶
type Reverse struct {
Target core.Sequenceable
}
func (Reverse) Replaced ¶
func (r Reverse) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Serial ¶
type Serial struct {
Target []core.Sequenceable
}
func (Serial) Replaced ¶
func (a Serial) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Stretch ¶
type Stretch struct {
// contains filtered or unexported fields
}
func NewStretch ¶
func NewStretch(factor core.HasValue, target []core.Sequenceable) Stretch
func (Stretch) Replaced ¶
func (s Stretch) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Transpose ¶
type Transpose struct { Target core.Sequenceable Semitones core.HasValue }
func (Transpose) Replaced ¶
func (p Transpose) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type TransposeMap ¶
type TransposeMap struct { IndexOffsets []int2int // one-based Target core.Sequenceable }
func NewTransposeMap ¶
func NewTransposeMap(target core.Sequenceable, indices string) TransposeMap
func (TransposeMap) Notes ¶
func (p TransposeMap) Notes() [][]core.Note
func (TransposeMap) Replaced ¶
func (p TransposeMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
func (TransposeMap) S ¶
func (p TransposeMap) S() core.Sequence
type Trim ¶ added in v0.43.0
func (Trim) Replaced ¶ added in v0.43.0
func (t Trim) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
type Undynamic ¶
type Undynamic struct {
Target core.Sequenceable
}
type VelocityMap ¶
type VelocityMap struct { Target core.Sequenceable IndexVelocities []int2int // one-based }
func NewVelocityMap ¶
func NewVelocityMap(target core.Sequenceable, indices string) VelocityMap
func (VelocityMap) Notes ¶
func (v VelocityMap) Notes() [][]core.Note
func (VelocityMap) Replaced ¶
func (v VelocityMap) Replaced(from, to core.Sequenceable) core.Sequenceable
Replaced is part of Replaceable
func (VelocityMap) S ¶
func (v VelocityMap) S() core.Sequence
func (VelocityMap) Storex ¶
func (v VelocityMap) Storex() string
Source Files ¶
- at.go
- decomposer.go
- dynamic.go
- dynamic_map.go
- fraction.go
- fraction_map.go
- if.go
- join.go
- joinmap.go
- merge.go
- notemap.go
- octave.go
- octave_map.go
- parallel.go
- probability.go
- random.go
- repeat.go
- replace.go
- resequence.go
- reverse.go
- rotate.go
- serial.go
- stretch.go
- transpose.go
- transposemap.go
- trim.go
- undynamic.go
- util.go
- velocity_map.go