🎹 Patterns#

Contents:

class pyflp.pattern.Patterns[source]#
__getitem__(i: int | str | slice) Pattern[source]#

Returns the pattern with the specified index or Pattern.name.

Parameters:

i – A zero-based index, its name or a slice of indexes.

Raises:

ModelNotFound – A Pattern with the specified name or index isn’t found.

__iter__() Iterator[Pattern][source]#

An iterator over the patterns found in the project.

__len__() int[source]#

Returns the number of patterns found in the project.

Raises:

NoModelsFound – No patterns were found.

property current: Pattern | None#

Returns the currently selected pattern.

play_cut_notes: bool | None#

Whether truncated notes of patterns placed in the playlist should be played.

Located at Options -> Project general settings β€£ Advanced under the name Play truncated notes in clips.

Changed in FL Studio v12.3 beta 3: Enabled by default.

Enums#

class pyflp.pattern.PatternsID[source]#
PlayTruncatedNotes = 30#
CurrentlySelected = 67#