Giter Club home page Giter Club logo

Comments (5)

falkTX avatar falkTX commented on June 14, 2024

Seems like the plugin is completely ignoring parameter changes
https://github.com/mtytel/helm/blob/master/src/plugin/helm_plugin.cpp#L178

EDIT: that's incorrect. that function is a message callback, not the function that is called when a parameter changes.

from helm.

falkTX avatar falkTX commented on June 14, 2024

Ok, going through the code...

helm uses the new juce api to handle plugins:
https://github.com/mtytel/helm/blob/master/src/plugin/helm_plugin.cpp#L38

with that the plugin class doesn't need to handle parameter changes directly.
in helm's case it uses this class/code for parameters:
https://github.com/mtytel/helm/blob/master/src/plugin/value_bridge.h#L24

when a parameter is changed by the host the 'setValue' function is called:
https://github.com/mtytel/helm/blob/master/src/plugin/value_bridge.h#L42

as we see in this line, the listener is registered:
https://github.com/mtytel/helm/blob/master/src/plugin/helm_plugin.cpp#L36

so the parameter value does get changed and parameterChanged is called.
(ie this https://github.com/mtytel/helm/blob/master/src/plugin/helm_plugin.cpp#L178)

so perhaps 'setValue' is never called?
tbh this is a first time I see an opensource juce plugin that uses the new api.

btw, parameterChanged is calling gui functions and allocating string data, which is really awful for realtime.
Automating a value while the UI is open will result in xruns.

from helm.

mtytel avatar mtytel commented on June 14, 2024

Hmmmm.... Going to have a look at this over the weekend. Maybe I should refactor this a bit so it doesn't use strings.

from helm.

mtytel avatar mtytel commented on June 14, 2024

Well I finally got around to this bug, but it's actually working for me.
I just open Helm with generic UI and set the amp_release parameter really high. Not sure if I'm missing something here..

Also, the listener callback is just to alert the GUI that a value was changed from the host. The actually value used in synthesis is set here: https://github.com/mtytel/helm/blob/master/src/plugin/value_bridge.h#L47
Don't know why I have a return statement there though..

from helm.

mtytel avatar mtytel commented on June 14, 2024

Going to mark this done because it worked for me?

from helm.

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.