Arrangement
Arrangement
Bases: _FLObject
Represents an arrangement. FL 12.89 introduced support for multiple
arrangements. Every arrangement has its own Track
and TimeMarker
objects as well as a Playlist
.
Source code in pyflp/arrangement/arrangement.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
name: Optional[str] = _StrProperty()
class-attribute
index: Optional[int] = _UIntProperty()
class-attribute
EventID
Bases: enum.IntEnum
Events used by Arrangement
.
Source code in pyflp/arrangement/arrangement.py
44 45 46 47 48 49 50 51 52 |
|
Name = TEXT + 49
class-attribute
See Arrangement.name
. Default event stores Arrangement.
New = WORD + 35
class-attribute
Marks the beginning of an arrangement. See Arrangement.index
.
playlist()
property
The Playlist
of an arrangement.
Source code in pyflp/arrangement/arrangement.py
64 65 66 67 |
|
timemarkers()
property
A list of TimeMarker
objects an arrangement contains.
Source code in pyflp/arrangement/arrangement.py
69 70 71 72 |
|
tracks()
property
A list of Track
objects of an arrangement contains.
Source code in pyflp/arrangement/arrangement.py
59 60 61 62 |
|
Playlist
Bases: _FLObject
Source code in pyflp/arrangement/playlist.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
|
EventID
Bases: enum.IntEnum
Events used by Playlist
.
Source code in pyflp/arrangement/playlist.py
56 57 58 59 60 61 62 63 64 65 |
|
Events = DATA + 25
class-attribute
See Playlist.items
.
items()
property
Source code in pyflp/arrangement/playlist.py
68 69 70 |
|
TimeMarker
Bases: _FLObject
Represents a time marker or a time signature stamp.
Source code in pyflp/arrangement/timemarker.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
denominator: Literal[2, 4, 8, 16] = _UIntProperty(_OneOfValidator((2, 4, 8, 16)))
class-attribute
name: str = _StrProperty()
class-attribute
Name; e.g. 4/4
could be time signature, Chorus
could be marker.
numerator: int = _IntProperty(min_=1, max_=16)
class-attribute
Min: 1, Max: 16.
position: int = _UIntProperty()
class-attribute
Position in the playlist, from the start and proportional to PPQ.
EventID
Bases: enum.IntEnum
Events used by TimeMarker
Source code in pyflp/arrangement/timemarker.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
Denominator = 34
class-attribute
See TimeMarker.denominator
.
Name = TEXT + 13
class-attribute
See TimeMarker.name
.
Numerator = 33
class-attribute
See TimeMarker.numerator
.
Position = DWORD + 20
class-attribute
See TimeMarker.position
.
Track
Event information
Size: 66 (as of FL 20.8.3)
Structure:
Parameter | Offset | Type |
---|---|---|
number | 0 | I |
color | 4 | i |
icon | 8 | i |
enabled | 12 | bool |
height | 13 | f |
locked_height | 17 | f |
locked_to_content | 21 | bool |
motion | 22 | I |
press | 26 | I |
trigger_sync | 30 | I |
queued | 34 | I |
tolerant | 38 | I |
position_sync | 42 | I |
grouped | 46 | bool |
locked | 47 | bool |
Bases: _FLObject
Source code in pyflp/arrangement/track.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
|
color: Optional[colour.Color] = _ColorProperty()
class-attribute
enabled: Optional[bool] = _BoolProperty()
class-attribute
Whether in enabled state or not.
grouped: Optional[bool] = _BoolProperty()
class-attribute
Whether grouped with above or not. Default: False.
height: Optional[float] = _FloatProperty(min_=0.0, max_=18.4)
class-attribute
Min: 0.0 (0%), Max: 18.4 (1840%), Default: 1.0 (100%).
icon: Optional[int] = _IntProperty()
class-attribute
locked: Optional[bool] = _BoolProperty()
class-attribute
Whether in locked state or not. Default: False.
locked_height: Optional[int] = _IntProperty()
class-attribute
locked_to_content: Optional[bool] = _BoolProperty()
class-attribute
motion: Optional[Motion] = _EnumProperty(Motion)
class-attribute
Performance settings -> Motion. See Motion
. Default: Motion.Stay
.
name: Optional[str] = _StrProperty()
class-attribute
number: Optional[int] = _IntProperty(min_=1, max_=500)
class-attribute
Min: 1, Max: 500.
Earlier versions of FL 20 didn't dump unused tracks. Now, all 500 are dumped regardless of their use.
press: Optional[Press] = _EnumProperty(Press)
class-attribute
Performance settings -> Press. See Press
. Default: Press.Retrigger
.
tolerant: Optional[bool] = _BoolProperty()
class-attribute
Performance settings -> Tolerant. Default: True.
trigger_sync: Optional[Sync] = _EnumProperty(Sync)
class-attribute
Performance settings -> Trigger sync. See Sync
. Default: Sync.Off
.
queued: Optional[bool] = _BoolProperty()
class-attribute
Performance settings -> Queued. Default: False.
EventID
Bases: enum.IntEnum
Events used by Track
.
Source code in pyflp/arrangement/track.py
121 122 123 124 125 126 127 128 129 |
|
Data = DATA + 30
class-attribute
See TrackDataEvent
.
Name = TEXT + 47
class-attribute
See Track.name
. Default event does not exist.
Press
Bases: enum.IntEnum
Used by Track.press
.
Source code in pyflp/arrangement/track.py
131 132 133 134 135 136 137 138 |
|
HoldMotion = 2
class-attribute
HoldStop = 1
class-attribute
Latch = 3
class-attribute
Retrigger = 0
class-attribute
Motion
Bases: enum.IntEnum
Used by Track.motion
.
Source code in pyflp/arrangement/track.py
140 141 142 143 144 145 146 147 148 149 150 |
|
ExclusiveRandom = 6
class-attribute
MarchStay = 3
class-attribute
MarchStop = 4
class-attribute
MarchWrap = 2
class-attribute
OneShot = 1
class-attribute
Random = 5
class-attribute
Stay = 0
class-attribute
Sync
Bases: enum.IntEnum
Used by Track.position_sync
and Track.trigger_sync
.
Source code in pyflp/arrangement/track.py
152 153 154 155 156 157 158 159 160 161 162 |
|
Auto = 6
class-attribute
Beat = 3
class-attribute
FourBeats = 5
class-attribute
HalfBeat = 2
class-attribute
Off = 0
class-attribute
QuarterBeat = 1
class-attribute
TwoBeats = 4
class-attribute
items()
property
Source code in pyflp/arrangement/track.py
213 214 215 |
|