Replies: 16 comments 4 replies
|
While actually I have not implemented this, the exception was a result of a bug in here: Lines 121 to 129 in 5034910 This was quite a big bug making nearly everything unsettable. This reminds me of testing the setters as well. |
|
Technically it is settable via the huge |
|
Done, implemented in latest commits. New release comming soon 🎉 |
|
Thanks Moreover I don't understant the "end value" And this is the offset value |
|
Start Offset: Length is the length of the item as it is visible to you in the playlist. And the answer to this is, I don't know myself 😄 FLP is a weird format. |
|
@jubabrut Will it possible for you to test PyFLP and find out bugs and suggest new ideas like these? Doing so will be a great help for me and will fasten the release cycle. A stable version will be ready sooner 🤗 |
|
Do you know how the offset value is construct ? Did you notice a full audio clip offset are (-1082130432, -1082130432), so weird For the moment I try PyFLP and discover all features, that's why I find some bugs on different functionnalities. What is your goal with this library? Because it is a huge work |
I need to take a look at it, maybe its incorrectly parsed, maybe it is a float, maybe it is not an absolute value at all.
At first, I aim to make all existing structures parseable and editable. I try to find the representations of various quantities like the I am also looking at the ability to clone or add certain entities like channels or MIDI notes for example. Once things like channels can be cloned, you can play with the values and modify them to your liking. Some particular areas needing work are:
I generally try to add features when I am genuinely sure that the integrity of existing data is not compromised. PyFLP guarantees to not touch the data you didn't modify. FL studio on the other hand, rewrites everything from scratch, since it knows how the format works entirely. PyFLP is not an FL Studio replacement. It can most certainly be used in project file converters and real-world DAWs that aim to support FLP format (if they ever get written in Python 😄) |
|
Ok because I really don't understand how to use offset value. About |
FL has grappled with timing issues since eternity 😄
I think its interpreted incorrectly (might be a float, might be PPQ dependant, dunno). But atleast the start, end values seem to match up with the arrangement. I will take a look at this. You will have better luck if you look at the individual bytes instead of these integers, use int.to_bytes(value, 4, "little") |
|
I really don't understand how to use to_bytes |
|
Yes sorry I meant tuple(int.to_bytes(value, 4, "little"))which will give you something like (1, 2, 3, 4)Now you get 4 numbers instead of one and maybe it can help you find out some relation between the arrangement and them. |
|
do other python libraries provide the same result for offsets? |
|
Wdym? There are no other Python libraries which can parse FLPs to the best of my knowledge. This implementation of playlist item offsets is from MonadGroup's FLParser which parses it as a float or uint32 as well. |
|
I was just thinking about FLParser but I didn't test that library |
|
From my first constatation, the offsets values indicate the time where to cut the sample, by not taking account the arrangement, the general bpm or the time stretching. It is an element to reply to the difference between offset and length. So I need to found a relation between |




Uh oh!
There was an error while loading. Please reload this page.
Describe the feature
When I try to change position or length of an audio clip in the Playlist, with that code
I have this error
pyflp.exceptions.PropertyCannotBeSet: Event(s) () was / were not foundIt will be interesting to be able to change the position, the length and the offset of an audio clip
What version of PyFLP are you using?
last commit (27th oct 22)
Screenshots, Additional info
No response
Code of Conduct
All reactions