Units in Audio Plugin Interface

Is there any way to set up the decimal precision to be shown in a audio plugin interface? Eg I don´t want the value of a parameter displayed as 3.7277 dB but 3.7 dB.
Thanks
Pablo

 Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Nov. de 2019

0 votos

If you do a classdef yourself like is shown in https://www.mathworks.com/help/audio/ref/audioplugininterface.html#d117e26333 then you can define your own display() method for that class.

4 comentarios

Pablo Panitta
Pablo Panitta el 10 de Nov. de 2019
Thanks Walter. The class is inherited from audioPlugin but as the result is an output of the audioPluginInterface , I don´t figure out how to control it. I´ll keep investigating this. Thanks again
Walter Roberson
Walter Roberson el 10 de Nov. de 2019
Could you link to the context that is doing the displaying?
Pablo Panitta
Pablo Panitta el 11 de Nov. de 2019
When slider or knob moves, the value corresponding to the position is displayed. Issue is value is coming from audioPluginInterface function (I guess), where I don´t have any option to set up what I want to control.
Walter Roberson
Walter Roberson el 11 de Nov. de 2019
When I use the example at https://www.mathworks.com/help/audio/ug/plugin-gui-design.html then the relevant portion appears to be the call to parameterTuner . That in turn is a method inside ParameterTunable.m . The important step that takes a built-up description of an interface and builds the interface, is createParameterTuningController . Unfortunately that is a .p file. The operation of the interface is hidden inside .p files, so I do not know how to change the behavior.
You will need to open a technical support request with Mathworks.

Iniciar sesión para comentar.

Más respuestas (1)

Pablo Panitta
Pablo Panitta el 27 de Nov. de 2019

0 votos

Answer from TS is "int" definition in audioPluginInterface works only inside Matlab environment (eg audioTestBench as Matlab Code or parameterTuner). When creating a vst (eg trough audiotestBench as VST or generateAudioPlugin command) the definition is lost (at least for display purpose). This will be raised to development team to be considered in future rel.

Categorías

Más información sobre Audio Plugin Creation and Hosting en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 7 de Nov. de 2019

Respondida:

el 27 de Nov. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by