Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Interpreting encoded musical times #75

Open
demberto opened this issue Oct 8, 2022 · 0 comments
Open

✨ Interpreting encoded musical times #75

demberto opened this issue Oct 8, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@demberto
Copy link
Owner

demberto commented Oct 8, 2022

Many fields containing time and position information (as well as start / end offsets) have been discovered already. They are exposed to as-is, no conversions from the uint32 or whatever to a human readable representation consisting of beats, bars and divisions.

😎 What I already know

Time / position fields are most of the time dependant on the PPQ of the project (and not the tempo!),

For example, at a PPQ of 96, a length of 96 means that the entity's musical length is a quarter or, a beat or, 1/4th of a bar.

Using the PPQ as a runtime dependency for calculation is already possible, but the part where problems begin are time signatures.

⏰ What's with time signatures?

The above calculations work only for a time signature of 4/4. If while measuring the length, a time signature occurs in the playlist or in a pattern, the formula probably changes and not accounting for this would mean all further calculations will go wrong.

👀 Where to look for?

The FLP format is very close to MIDI in terms of many things. I think, the MIDI format already has something of this kind and I would like to get insight from somebody who has experience in MIDI or how musical timings are represented in DAWs.


Achieving this would be a great feat 🥳, its one of those features that would make PyFLP 10x more useful that its right now.

@demberto demberto added enhancement New feature or request help wanted Extra attention is needed labels Oct 8, 2022
demberto added a commit that referenced this issue Oct 25, 2022
@demberto demberto changed the title ✨ Converting binary representations of musical timings to human readable ones ✨ Interpreting encoded musical times Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant