EuclidEffect
interface EuclidEffect extends MIDIEffect {
uuid: string
label: string
enabled: boolean
minimized: boolean
index: number
audioUnit: AnyAudioUnit
key: 'Euclid'
pattern: number
length: number
rate: 0 | 1 | 2 | 3 | 4
lanes: readonly EuclidLane[]
remove(): void
move(index: number): void
addLane(props?: DeepPartial<Omit<EuclidLane, 'uuid' | 'remove'>>): EuclidLane
}Plays notes on Euclidean rhythms, one lane per note, made for the Playfield. Incoming notes pass through.
- See:
Hierarchy
Properties
uuid: string
Inherited from uuid
Unique id
label: string
Inherited from label
Custom label
enabled: boolean
Inherited from enabled
Enable or bypass the device
minimized: boolean
Inherited from minimized
Collapse the device editor in the studio
index: number
Inherited from index
Position in the effect chain (0 = first)
audioUnit: AnyAudioUnit
Inherited from audioUnit
The audio unit this effect belongs to
key: 'Euclid'
Overrides key
Always "Euclid"
pattern: number
The playing pattern (-1 = off, 0 to 7, default 0), a change takes over at the next bar
length: number
Every lane restarts after this many steps of 1/16 at the global rate (0 = never, up to 128, default 0)
rate: 0 | 1 | 2 | 3 | 4
Global rate (0 to 4): ÷4, ÷2, ×1, ×2, ×4 (default 2)
lanes: readonly EuclidLane[]
All lanes in list order
- See:
Methods
remove(): void
Inherited from remove
Remove this device from its host
Returns
void
move(index: number): void
Inherited from move
Move this effect to another position in its chain
Parameters
index(number)
Returns
void
addLane(
props?: DeepPartial<Omit<EuclidLane, 'uuid' | 'remove'>>,
): EuclidLane
Add a lane (at most 127)
Parameters
props(DeepPartial<Omit<EuclidLane, "uuid" | "remove">>, optional)
Returns
Example
const euclid = unit.addMIDIEffect("Euclid")
euclid.addLane({note: 38, rhythms: [{steps: 16, pulses: 2, rotate: 4}]})- See: