previous up next
Patterns, motifs, pattern modifiers, and time contexts



(pattern-add p a1 a2 ...)

Adds the activities a1, a2, ... to the pattern p.



(pattern-remove p a)

Removes activity a from the pattern p.



(pattern-remove-all p)

Removes all activities from the pattern p.



(pattern-duplicate p)

Creates a new pattern, clones all the activities in pattern p and adds them to the new pattern.



(set-time-model! p tm)

Sets the time model of pattern p to tm.



(get-time-model p)

Returns the time model of pattern p.



(add-modifier p m)

Adds pattern modifier m to the pattern p.



(remove-modifier p m)

Removes pattern modifier m from the pattern p.



(motif pos dur p)

Creates a new motif with position pos, and duration dur. The motif obtains its contents from the pattern p.



(motif-add m a1 a2 ...)

Adds the activities a1, a2, ... to the pattern of motif m. It is short for (pattern-add (get-sub-pattern m) a1 a2 ...))



(sound-motif pos dur p)

Creates a new sound motif with position pos, and duration dur. The motif obtains its contents from the pattern p. The difference between sound motifs and regular motifs is that sound motifs have a frequency and amplitude parameter that can be used by the modifiers.



(get-sub-pattern m)

Returns a reference to the pattern that organizes the contents of motif m.



(variation m)

Creates a new motif with the same pattern as motif m. It is short for (motif 0 (get-duration m) (get-sub-pattern m))).



(duplicate m)

Creates a new motif with a duplicate of the pattern of motif m. It is short for (motif 0 (get-duration m) (pattern-duplicate (get-sub-pattern m))))



(sequence-pattern)

Creates a sequence pattern.



(make-sequence dur)

Creates a motif with duration dur with an empty sequence pattern. It is short for (motif 0 dur (sequence-pattern))).



(sequence dur a1 a2 ...)

Creates a motif with duration dur with a sequence pattern. The activities a1, a2, ... are added to the pattern.



(parallel-pattern)

Creates a parallel pattern.



(make-parallel dur)

Creates a motif with duration dur with an empty parallel pattern. It is short for (motif 0 dur (parallel-pattern))).



(parallel our a1 a2 ...)

Creates a motif with duration dur with a parallel pattern. The activities a1, a2, ... are added to the pattern.



(portamento-modifier)

Creates a new portamento modifier.



(vibrato-modifier freq amp)

Creates a new vibrato modifier.



(context-get-start c)

Returns the start of time context c.



(context-get-duration c)

Returns the duration of time context c.

previous up next