Git Product home page Git Product logo

Comments (2)

ttaschke avatar ttaschke commented on July 19, 2024

@demberto
I tried looking into Fruity Blood Overdrive, but I am confused about how to interpret the plugin parameters.

blood_overdrive_parameters

blood_overdrive_ui

Based on this and looking at FruityFastDist as an example I planned to create the parameters "pre_band", "color", "pre_amp", "x100", "post_filter", "post_gain" with all of them StructProp[int], except of x100 which probably will be an enum.IntEnum (0,1).

However, when looking at the parameter values with FLPEdit this does not look at all like what I expected.

blood_overdrive_minimum

First of all, I have no idea what the 3 represents, as I expected this to be the value for pre_band which should have been 0 or some similar minimum value.
I also expected the other values to be 0, 128, 512 or anything similar representing minimum or maximum values as per the current plugin settings.

I also tried to set all knobs to 100% to get a feeling for the range, but these values also do not make immediate sense to me.

blood_overdrive_maximum

In comparison to this Fruity Fast Distortion's parameters fit very neatly with their values interpreted as int.
fast_dist

I have the feeling I am missing something fundamental about event values here. πŸ€”
Any pointers for how to interpret this would be a great help.

from pyflp.

demberto avatar demberto commented on July 19, 2024

Ahh I remember Fruity Blood Overdrive, I had tried implementing it once earlier. IL probably made the representations closer to the one used by VST plugins.

VST plugins store an 8 or 10 (to indicate they are a VST) in the first 4 bytes. I think redesigned native plugins store a 3.

That's the reason it never changes. Why they did it, IDK. The internal name "Fruity Wrapper" is enough to indicate a VST plugin is loaded, same goes for native plugins.

I also tried to set all knobs to 100% to get a feeling for the range, but these values also do not make immediate sense to me.

Yes the values will be like that. If you check the docstrings on the minimum, maximum and default values of plugin parameters, you will find out that ranges like 128, 256 and 1024 are used a lot. Its indeed a space waste to use a 4 byte integer for such small values.

Match the list of parameters to the values you got starting from the first [16, 39, 0, ... and you will immediately notice that you have cracked it πŸ˜‰. All knobs have the same range and x100 being a button is stored as a 0 or 1 but in a space of 4 bytes. Hence remaining bytes will be empty.

To get a 4 byte integer, you do:

image

So, finally 36 bytes are divided into:

  • 4 bytes "native plugin marker", always 3 (the next time you see a 3 at top, just ignore it)
  • 6 params - 4 bytes each = 24 bytes
  • Remaining 4 bytes will always be zero ig, maybe they are used when used in Patcher, but that's another topic.

I hope I helped. This is a time consuming job.

I misjudged the proportions this issue might reach, I am converting it to a discussion.

from pyflp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.