Surgeon
interface Surgeon extends Instrument {
uuid: string
label: string
enabled: boolean
minimized: boolean
audioUnit: InstrumentAudioUnit
icon: string
key: 'Surgeon'
tune: number
volume: number
slot: number
pattern: number
live: SurgeonValues
patterns: readonly SurgeonValues[]
remove(): void
grooveOf(pattern: number): Nullable<AnyGroove>
setGroove(pattern: number, groove: Nullable<AnyGroove>): void
select(pattern: number): void
}Plays metallic FM themes for raw techno by itself, from loops that mutate and patterns fired on the bar. live holds the editor's controls, they are the selected pattern. An automated live value replaces that value in every pattern.
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
audioUnit: InstrumentAudioUnit
Inherited from audioUnit
The audio unit this instrument belongs to
icon: string
Inherited from icon
Icon name (see IconSymbol)
key: 'Surgeon'
Overrides key
Always "Surgeon"
tune: number
Centre pitch in Hz (20 to 2000)
volume: number
Volume in dB (up to 0)
slot: number
The pattern that plays (0 to 7), -1 is off. A change takes over at the next bar
pattern: number
The selected pattern (0 to 7), the one the live values are. Change it with select
live: SurgeonValues
The editor's controls, the values of the selected pattern
- See:
patterns: readonly SurgeonValues[]
The eight patterns
- See:
Methods
remove(): void
Inherited from remove
Removes the whole audio unit. Use InstrumentAudioUnit.setInstrument to swap the instrument. An instrument inside an InstrumentCompositeLayer removes that layer instead
Returns
void
grooveOf(pattern: number): Nullable<AnyGroove>
The groove a pattern (0 to 7) plays through, null for none
Parameters
pattern(number)
Returns
setGroove(pattern: number, groove: Nullable<AnyGroove>): void
Sets the groove a pattern (0 to 7) plays through: a groove of the project, or null for none
Parameters
pattern(number)groove(Nullable<AnyGroove>)
Returns
void
- See:
select(pattern: number): void
Selects a pattern (0 to 7): it plays from the next bar and the live values become its values
Parameters
pattern(number)
Returns
void