Channel Rack#

class pyflp.channel.ChannelRack[source]#

Represents the channel rack, contains all Channel instances.

__getitem__(i: str | int | slice) Channel[source]#

Gets a channel from the rack based on its IID or name.

Parameters:

i – Compared with Channel.iid if an int or slice or with the Channel.display_name.

Raises:

ChannelNotFound – A channel with the specified IID or name isn’t found.

__iter__() Iterator[Channel][source]#

Yields all the channels found in the project.

__len__() int[source]#

Returns the number of channels found in the project.

Raises:

NoModelsFound – No channels could be found in the project.

property automations: Iterator[Automation]#

Yields automation clips in the project.

fit_to_steps: int | None#

Properties bound directly to one of fixed size or string events.

property groups: Iterator[DisplayGroup]#
height: int | None#

Window height of the channel rack in the interface (in pixels).

property instruments: Iterator[Instrument]#

Yields native and 3rd-party synth channels in the project.

property layers: Iterator[Layer]#

Yields Layer channels in the project.

property samplers: Iterator[Sampler]#

Yields samplers and audio clips in the project.

swing: int | None#

Global channel swing mix. Linear. Defaults to minimum value.

Type

Value

Mix (wet)

Min

0

0%

Max

128

100%

class pyflp.channel.RackID[source]#
Swing = 11#
_FitToSteps = 13#
WindowHeight = 133#
exception pyflp.channel.ChannelNotFound[source]#