Sampler#
- class pyflp.channel.Sampler[source]#
Bases:
_SamplerInstrument
Represents the native Sampler, either as a clip or a channel.
- arp#
Miscellaneous functions -> Arpeggiator
- cut_group#
Cut group in the form of (Cut self, cut by).
Miscellaneous functions ‣ Group
Hint
To cut itself when retriggered, set the same value for both.
- delay#
Miscellaneous functions -> Echo delay / fat mode
- property envelopes: dict[Literal['Panning', 'Volume', 'Mod X', 'Mod Y', 'Pitch'], pyflp.channel.Envelope] | None#
An
Envelope
each for Volume, Panning, Mod X, Mod Y and Pitch.Envelope / instruement settings
- insert#
The index of the
Insert
the channel is routed to according to FL.“Current” insert = -1, Master = 0 and so on… till
Mixer.max_inserts
.
- level_adjusts#
Miscellaneous functions -> Level adjustments
- property lfos: dict[Literal['Panning', 'Volume', 'Mod X', 'Mod Y', 'Pitch'], pyflp.channel.SamplerLFO] | None#
An
LFO
each for Volume, Panning, Mod X, Mod Y and Pitch.Envelope / instruement settings (page)
- property pitch_shift: int | None#
-4800 to +4800 (cents).
- Raises:
PropertyCannotBeSet – When a
ChannelID.Levels
event is not found.
- polyphony#
Miscellaneous functions -> Polyphony
- property sample_path: Path | None#
Absolute path of a sample file on the disk.
Sample settings (page) ‣ File
Contains the string
%FLStudioFactoryData%
for stock samples.
- stretching: TimeStretching#
Sample settings (page) ‣ Time stretching
- time#
Miscellaneous functions -> Time
- class pyflp.channel.Content[source]#
Used by
Sampler
.- declick_mode: DeclickMode | None#
-
Defaults to
DeclickMode.OutOnly
.
- class pyflp.channel.Envelope[source]#
-
A PAHDSR envelope for various
Sampler
paramters.See also
- amount: int | None#
Linear. Bipolar.
Type
Value
Representation
Min
-128
-100%
Max
128
100%
Default
0
0%
- attack_tension: int | None#
-
Linear. Bipolar.
Type
Value
Representation
Min
-128
-100%
Max
128
100%
Default
0
0%
- decay_tension: int | None#
-
Linear. Bipolar.
Type
Value
Mix (wet)
Min
-128
-100%
Max
128
100%
Default
0
0%
- predelay: int | None#
Linear. Defaults to minimum value.
Type
Value
Representation
Min
100
0%
Max
65536
100%
- class pyflp.channel.FX[source]#
Pre-computed effects used by
Sampler
.See also
- crossfade: int | None#
Linear. Defaults to minimum value
Type
Value
Representation
Min
0
0%
Max
256
100%
- length: float | None#
Min = 0.0, Max = 1.0. Defaults to minimum value.
Named SMP START in FL’s interface.
- ringmod: Tuple[int, int] | None#
Ring modulation returned as a tuple of
(mix, frequency)
.Limits for both:
Min
Max
Default
0
256
128
- class pyflp.channel.Playback[source]#
Used by
Sampler
.
- class pyflp.channel.Reverb[source]#
-
Precalculated reverb used by
Sampler
.- property type: ReverbType | None#
- class pyflp.channel.SamplerLFO[source]#
-
A basic LFO for certain
Sampler
parameters.See also
- amount: int | None#
Linear. Bipolar.
Type
Value
Representation
Min
-128
-100%
Max
128
100%
Default
0
0%
- predelay: int | None#
Linear. Defaults to minimum value.
Type
Value
Representation
Min
100
0%
Max
65536
100%
- class pyflp.channel.TimeStretching[source]#
-
Used by
Sampler
.- mode: StretchMode | None#
Properties obtained from a
construct.Struct
.
Enums#
- class pyflp.channel.DeclickMode[source]#
- Crossfade = 5#
- Generic = 3#
- OutOnly = 0#
- Smooth = 4#
- Transient = 2#
- TransientNoBleeding = 1#
- class pyflp.channel.ReverbType[source]#
Used by
Reverb.type
.- A = 0#
- B = 65536#