Documentation
¶
Index ¶
- Variables
- func Euclid(params []string, helper Helper) (res []*items.Event, err error)
- func From(params []string, helper Helper) (res []*items.Event, err error)
- func Merge(params []string, helper Helper) (res []*items.Event, err error)
- func Mirror(params []string, helper Helper) (res []*items.Event, err error)
- func Negative(params []string, helper Helper) (res []*items.Event, err error)
- func Rabbit(params []string, helper Helper) (res []*items.Event, err error)
- func Reverse(params []string, helper Helper) (res []*items.Event, err error)
- func Slice(params []string, helper Helper) (res []*items.Event, err error)
- func Until(params []string, helper Helper) (res []*items.Event, err error)
- type Command
- type Helper
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Euclid ¶ added in v1.0.1
$euclid(numTotal,numExposed,duration) generates a pattern of numTotal placeholders, where numExposed placeholders are #2 and the others #1. The distance between each placeholder is duration (in fraction of 4 beats, e.g. 0.25 would be a beat
func Negative ¶ added in v1.0.1
negative harmony This concept is derived, from the Theory of Harmony by Swiss composer Ernst Levy (1895 – 1981). $negative(=patt,mirrorNote)
func Rabbit ¶ added in v1.0.1
$rabbit(=patt,startNote,factor,percentage,num) by the formula x(n+1) = x(0)*factor * (1-p) where p is the percentage as decimal e.g. $rabbit(=patt,c#',2.5,80%,10) rabbit generates num notes starting by startNote growing by factor, limited by percentage simulating a rabbit population growth. The generated notes are passed to patt as parameters maybe it should be changed to generate a chord of number items that would than be passed as parameter to a pattern, e.g. =patt($rabbit(c#',2.5,80%,10)...)