Pattern
26 nodes
On this page 26
Arpeggiate
FunctionEvery chord - notes that start and end together - played one note after another across its own time, as Strudel's arp.
Arpeggiate(Pattern: Pattern, mode: Arpeggio Mode) -> Pattern
Pattern Arpeggiate(
Pattern Pattern,
ArpeggioMode mode = ArpeggioMode.Up)Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| mode | Arpeggio Mode | Up |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Degrade
FunctionSteps dropped at random with a probability, the same steps every time for the same seed, as degradeBy.
Degrade -> Pattern
Pattern: Pattern
probability: Number
seed: IntegerPattern Degrade(
Pattern Pattern,
double probability = 0.5,
int seed = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| probability | Number | 0.5 | |
| seed | Integer | 0 |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Equals
FunctionThis node carries no documentation.
Overload 1 of 2
Equals(Pattern: Pattern, obj: Any) -> Truth
bool Equals(Pattern Pattern, object obj)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| obj | Any | — |
Returns
| result | Truth |
Overload 2 of 2
Equals(Pattern: Pattern, other: Pattern) -> Truth
bool Equals(Pattern Pattern, Pattern other)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| other | Pattern | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Every
FunctionEvery Nth cycle - the first, then n later - Instead plays in its place, as every with a whole pattern for the function.
Every(Pattern: Pattern, n: Integer, instead: Pattern) -> Pattern
Pattern Every(Pattern Pattern, int n, Pattern instead)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| n | Integer | — | |
| instead | Pattern | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Fast
FunctionThe pattern played Factor times in each cycle.
Fast(Pattern: Pattern, factor: Duration) -> Pattern
Pattern Fast(Pattern Pattern, Duration factor)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| factor | Duration | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Get Hash Code
FunctionThis node carries no documentation.
GetHashCode(Pattern: Pattern) -> Integer
int GetHashCode(Pattern Pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Iter
FunctionEach cycle starts a further 1/N of the way into the pattern, as iter: four steps walk round one place a cycle.
Iter(Pattern: Pattern, n: Integer) -> Pattern
Pattern Iter(Pattern Pattern, int n)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| n | Integer | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Off
FunctionThe pattern with a copy of itself laid over it, Time cycles later and moved by Semitones, as off: an echo a fifth up, a canon.
Off -> Pattern
Pattern: Pattern
time: Duration
semitones: IntegerPattern Off(Pattern Pattern, Duration time, int semitones = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| time | Duration | — | |
| semitones | Integer | 0 |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Palindrome
FunctionForwards one cycle and backwards the next, as palindrome.
Palindrome(Pattern: Pattern) -> Pattern
Pattern Palindrome(Pattern Pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Ply
FunctionEvery step played Times times in its own time, as ply.
Ply(Pattern: Pattern, times: Integer) -> Pattern
Pattern Ply(Pattern Pattern, int times)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| times | Integer | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Query
FunctionThe steps that start in [from, to), in cycles, in time order.
Query -> ImmutableArray<Pattern Event>
Pattern: Pattern
from: Duration
to: DurationImmutableArray<PatternEvent> Query(
Pattern Pattern,
Duration from,
Duration to)Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| from | Duration | — | |
| to | Duration | — |
Returns
| result | ImmutableArray<Pattern Event> |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Reverse
FunctionEach cycle played backwards, as TidalCycles' rev: a step that started a quarter of the way in ends a quarter of the way from the end.
Reverse(Pattern: Pattern) -> Pattern
Pattern Reverse(Pattern Pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Scale
FunctionThe pattern's notes read as degrees of a scale from Tonic: 0 is the tonic, 1 the next degree, 7 the octave in a seven-note scale - Strudel's n("0 2 4").scale("C:major"), so a pattern of numbers becomes a tune in any key. Drums are left alone.
Scale -> Pattern
Pattern: Pattern
tonic: Integer
mode: Scale ModePattern Scale(Pattern Pattern, int tonic, ScaleMode mode)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| tonic | Integer | — | |
| mode | Scale Mode | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Shift
FunctionThe pattern moved later by some cycles - earlier for a negative amount - as ~>.
Shift(Pattern: Pattern, cycles: Duration) -> Pattern
Pattern Shift(Pattern Pattern, Duration cycles)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| cycles | Duration | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Slow
FunctionThe pattern spread over Factor cycles.
Slow(Pattern: Pattern, factor: Duration) -> Pattern
Pattern Slow(Pattern Pattern, Duration factor)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| factor | Duration | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Swing
FunctionSwing: in every 1/Subdivision of a cycle, a step in the second half is pushed later by Amount of the subdivision, as swingBy.
Swing -> Pattern
Pattern: Pattern
amount: Duration
subdivision: IntegerPattern Swing(
Pattern Pattern,
Duration amount,
int subdivision = 4)Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| amount | Duration | — | |
| subdivision | Integer | 4 |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
To Music
FunctionThe first Cycles cycles as music, a cycle lasting Cycle Length - a whole note, one bar of 4/4, unless said otherwise. Drums are marked as percussion.
ToMusic -> Music
Pattern: Pattern
cycles: Integer
cycleLength: Optional DurationMusic ToMusic(
Pattern Pattern,
int cycles = 1,
Duration? cycleLength)Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| cycles | Integer | 1 | |
| cycleLength | Optional Duration | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
To String
FunctionThe pattern as notation.
ToString(Pattern: Pattern) -> Text
string ToString(Pattern Pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Transpose
FunctionEvery note moved by some semitones; drums stay where they are.
Transpose(Pattern: Pattern, semitones: Integer) -> Pattern
Pattern Transpose(Pattern Pattern, int semitones)
Parameters
| name | type | default | description |
|---|---|---|---|
| Pattern | Pattern | — | |
| semitones | Integer | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Alternate
FunctionPatterns played one a cycle in turn.
Alternate(patterns: IEnumerable<Pattern>) -> Pattern
Pattern Alternate(IEnumerable<Pattern> patterns)
Parameters
| name | type | default | description |
|---|---|---|---|
| patterns | IEnumerable<Pattern> | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Euclid
FunctionA step spread over some steps by Euclid's algorithm, turned left by Rotation, as (3,8,2) in the notation.
Euclid -> Pattern
step: Pattern
hits: Integer
steps: Integer
rotation: IntegerPattern Euclid(
Pattern step,
int hits,
int steps,
int rotation = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| step | Pattern | — | |
| hits | Integer | — | |
| steps | Integer | — | |
| rotation | Integer | 0 |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Op Equality
FunctionThis node carries no documentation.
op_Equality(left: Pattern, right: Pattern) -> Truth
bool op_Equality(Pattern left, Pattern right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Pattern | — | |
| right | Pattern | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Op Inequality
FunctionThis node carries no documentation.
op_Inequality(left: Pattern, right: Pattern) -> Truth
bool op_Inequality(Pattern left, Pattern right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Pattern | — | |
| right | Pattern | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Parse
FunctionReads a pattern written in mini-notation.
Parse(text: Text) -> Pattern
Pattern Parse(string text)
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Sequence
FunctionPatterns sharing each cycle in turn, one step each.
Sequence(patterns: IEnumerable<Pattern>) -> Pattern
Pattern Sequence(IEnumerable<Pattern> patterns)
Parameters
| name | type | default | description |
|---|---|---|---|
| patterns | IEnumerable<Pattern> | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music
Stack
FunctionPatterns played together.
Stack(patterns: IEnumerable<Pattern>) -> Pattern
Pattern Stack(IEnumerable<Pattern> patterns)
Parameters
| name | type | default | description |
|---|---|---|---|
| patterns | IEnumerable<Pattern> | — |
Returns
| result | Pattern |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pattern
- Package
- Music