demberto / demberto/PyFLP

✨ MixerParamsEvent channel_data "type" field or similar

Open
#193 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
212
Forks
30
PR merge metrics
No merged PRs in 30d

Description

### Describe the feature

From my observations, the MixerParamsEvent.channel_data property stores a type field. This is the scope of the of parameter target, where 0 is a channel param, 1 is a mixer param, and 2 is a global project param. I've only worked with encoding them, so the function to encode is as follows (you'll have to adapt it for decoding):
```
(((insertId & 0x7f) << 6) | (slotId & 0x3f) | (type << 13))
```
I used this for my OnlineSequencer.net to FLP converter, which I can provide if you want it (it also has encoders for several plugins, but it's written in JS as to integrate as a userscript).

### What version of PyFLP are you using?

Latest source (v2.2.1+)

### Screenshots, Additional info

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.