GithubHelp home page GithubHelp logo

Automation Parameters about mwengine HOT 1 OPEN

igorski avatar igorski commented on June 8, 2024 1
Automation Parameters

from mwengine.

Comments (1)

igorski avatar igorski commented on June 8, 2024

I have actually. But not taking action on anything yet as I have to think the design through, let's use this issue to ponder the implementation:

What I'm thinking is that both BaseProcessor and BaseAudioEvent should implement a handleAutomation( int paramId, float value )-type function where paramId identifies which parameter to automate and value specifies the target value it should move to. Each class can override this method for their specific parameters and behaviour. I'm thinking value should be in the 0.f - 1.0f range - similar to the VST spec - where depending on the paramId this can be scaled to a value in the range appropriate to the parameter that is being automated.

A parameter change can be checked in by using a Sequencer function like:

int addAutomation( int bufferPosition, Automatable* target, int paramId, float value )

Where bufferPosition determines when in the current sequence the change occurs and target defines the object that will be automated. The return can be a token id for the automation (so it can be removed individually).

The Sequencer can then inform the engine when to execute said action.

This leaves me to ponder how to deal with gradual changes, we could specify a range of "automation start" to "automation end" and calculate all changes in between, but this would only work for linear transitions. In the VST spec, the VST host is responsible for sending the parameter change on every step of the transition, we could consider a similar approach (it means that the implementing application has the responsibility for registering all points within a transition, but it comes at the benefit that you can create arbitrary transition functions).

from mwengine.

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.