Arrangements#
- Arrangement
- Playlist
- Track
- class pyflp.arrangement.Arrangements[source]#
Iterator over arrangements in the project and some related properties.
- __getitem__(i: int | str | slice) Arrangement [source]#
Returns an arrangement based either on its index or name.
- Parameters:
i โ The index of the arrangement in which they occur or
Arrangement.name
of the arrangement to lookup for or a slice of indexes.- Raises:
ModelNotFound โ An
Arrangement
with the specifed name or index isnโt found.
- __iter__() Iterator[Arrangement] [source]#
Yields
Arrangement
found in the project.- Raises:
NoModelsFound โ When no arrangements are found.
- __len__() int [source]#
The number of arrangements present in the project.
- Raises:
NoModelsFound โ When no arrangements are found.
- property current: Arrangement | None#
Currently selected arrangement (via FLโs interface).
- Raises:
ModelNotFound โ When the underlying event value points to an invalid arrangement index.
- property loop_pos: tuple[int, int] | None#
-
Playlist loop start and end points. PPQ dependant.
Changed in version v2.1.0:
ArrangementsID.PLSelection
is used by default whileArrangementsID._LoopPos
is a fallback.
- time_signature: TimeSignature#
Project time signature (also used by playlist).