Skip to content

🔎 FL Studio 21 PlaylistEvent #108

@demberto

Description

@demberto

Discussed in #107

Originally posted by YihaoChen96 December 10, 2022
Hi!
When I was trying to parse one of my flp files, I encountered the following warning:

D:\Anaconda3\lib\site-packages\pyflp\_events.py:477: UserWarning: Cannot parse event 233 as event size is not a multiple of struct size
  f"Cannot parse event {id} as event "

It breaks my code, which works fine on some other FLP files.

Does anyone know what the event is that cannot be parsed and why it is the case?

Thank you!

class PlaylistEvent(ListEventBase):
STRUCT = c.Struct(
"position" / c.Int32ul, # 4
"pattern_base" / c.Int16ul * "Always 20480", # 6
"item_index" / c.Int16ul, # 8
"length" / c.Int32ul, # 12
"track_rvidx" / c.Int16ul * "Stored reversed i.e. Track 1 would be 499", # 14
"group" / c.Int16ul, # 16
"_u1" / c.Bytes(2) * "Always (120, 0)", # 18
"item_flags" / c.Int16ul * "Always (64, 0)", # 20
"_u2" / c.Bytes(4) * "Always (64, 100, 128, 128)", # 24
"start_offset" / c.Float32l, # 28
"end_offset" / c.Float32l, # 32
).compile()

Metadata

Metadata

Assignees

Labels

arrangement-playlistChannel and Pattern playlist itemsunknownUndiscovered, new or unused fields in structs

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions