%% Investigate Parameter/Property Mapping
% Parameter display values are related to normalized parameter values by
% unknown mapping rules internal to the plugin. You can investigate the
% relationship between the normalized parameter values and
% the displayed values by creating a sweeping function. You can use the
% sweeping function to map parameter values to their displayed output.
%
% The properties display mode of hosted plugins uses a similar approach
% to enable you to interact directly with the real-world (displayed)
% values, instead of the normalized parameter values.
%

%%
% Save the |displayParameterMapping| function in your current folder. This
% function performs a simplified version of the parameter sweeping used to
% create the property display mode for hosted plugins.
%
% <include>displayParameterMapping.m</include>

%%
% Load the |readelay-standalone.dll| plugin into MATLAB(R). Call the
% |displayParameterMapping| function with the hosted plugin and a parameter
% index.
hostedPlugin = loadAudioPlugin('readelay-standalone.dll');
displayParameterMapping(hostedPlugin,1);

%%
% If you use the |displayParameterMapping| function with a nonnumeric
% parameter, the relationship displays in the Command Window:
displayParameterMapping(hostedPlugin,3)

%% 
% Copyright 2012 The MathWorks, Inc.