Nano
interface Nano extends Instrument {
uuid: string
label: string
enabled: boolean
minimized: boolean
audioUnit: InstrumentAudioUnit
icon: string
key: 'Nano'
sample: Nullable<Sample>
volume: number
octave: number
tune: number
rootKey: number
attack: number
release: number
sampleStart: number
sampleEnd: number
loop: boolean
loopFade: number
loopStart: number
loopEnd: number
remove(): void
}Minimal sampler
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: 'Nano'
Overrides key
Always "Nano"
sample: Nullable<Sample>
The sample (null = none)
- See:
volume: number
Volume in dB (default -3)
octave: number
Octave shift (-3 to 3, default 0)
tune: number
Fine tune in cents (-1200 to 1200, default 0)
rootKey: number
The MIDI note that plays the sample at its native rate (0 to 127, default 60)
attack: number
Attack in seconds (0.001 to 5, default 0.003)
release: number
Release in seconds (0.001 to 8, default 0.1)
sampleStart: number
Region start as a fraction of the sample (default 0). A start past the end plays backwards.
sampleEnd: number
Region end as a fraction of the sample (default 1)
loop: boolean
Cycle the loop range while a note holds (default false)
loopFade: number
Loop crossfade in seconds (0.001 to 1, default 0.05)
loopStart: number
Loop start as a fraction of the sample, clamped inside the region (default 0)
loopEnd: number
Loop end as a fraction of the sample, clamped inside the region (default 1)
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