mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
AudioProcessorParameter: Move impl to dedicated file
This commit is contained in:
parent
90b948dffd
commit
1623b63889
25 changed files with 235 additions and 135 deletions
|
|
@ -812,6 +812,7 @@ add_library( ${BINARY_NAME}
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
@ -3474,6 +3475,7 @@ set_source_files_properties(
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
|
||||||
|
|
@ -1029,6 +1029,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1732,6 +1732,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1029,6 +1029,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1732,6 +1732,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -767,6 +767,7 @@ add_library( ${BINARY_NAME}
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
@ -3043,6 +3044,7 @@ set_source_files_properties(
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
|
||||||
|
|
@ -987,6 +987,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1513,6 +1513,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -800,6 +800,7 @@ add_library( ${BINARY_NAME}
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
@ -3229,6 +3230,7 @@ set_source_files_properties(
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
|
||||||
|
|
@ -995,6 +995,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1588,6 +1588,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -995,6 +995,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1588,6 +1588,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -771,6 +771,7 @@ add_library( ${BINARY_NAME}
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
@ -3127,6 +3128,7 @@ set_source_files_properties(
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorListener.h"
|
||||||
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp"
|
||||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h"
|
||||||
|
|
|
||||||
|
|
@ -987,6 +987,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1543,6 +1543,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1003,6 +1003,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1636,6 +1636,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1003,6 +1003,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1636,6 +1636,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -986,6 +986,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -1540,6 +1540,9 @@
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorGraph.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameter.cpp">
|
||||||
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessorParameterGroup.cpp">
|
||||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,7 @@ private:
|
||||||
#include "format/juce_AudioPluginFormat.cpp"
|
#include "format/juce_AudioPluginFormat.cpp"
|
||||||
#include "format/juce_AudioPluginFormatManager.cpp"
|
#include "format/juce_AudioPluginFormatManager.cpp"
|
||||||
#include "format_types/juce_LegacyAudioParameter.cpp"
|
#include "format_types/juce_LegacyAudioParameter.cpp"
|
||||||
|
#include "processors/juce_AudioProcessorParameter.cpp"
|
||||||
#include "processors/juce_AudioProcessor.cpp"
|
#include "processors/juce_AudioProcessor.cpp"
|
||||||
#include "processors/juce_AudioPluginInstance.cpp"
|
#include "processors/juce_AudioPluginInstance.cpp"
|
||||||
#include "processors/juce_AudioProcessorEditor.cpp"
|
#include "processors/juce_AudioProcessorEditor.cpp"
|
||||||
|
|
|
||||||
|
|
@ -1429,139 +1429,4 @@ JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
void AudioProcessorListener::audioProcessorParameterChangeGestureBegin (AudioProcessor*, int) {}
|
void AudioProcessorListener::audioProcessorParameterChangeGestureBegin (AudioProcessor*, int) {}
|
||||||
void AudioProcessorListener::audioProcessorParameterChangeGestureEnd (AudioProcessor*, int) {}
|
void AudioProcessorListener::audioProcessorParameterChangeGestureEnd (AudioProcessor*, int) {}
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
AudioProcessorParameter::~AudioProcessorParameter()
|
|
||||||
{
|
|
||||||
#if JUCE_DEBUG && ! JUCE_DISABLE_AUDIOPROCESSOR_BEGIN_END_GESTURE_CHECKING
|
|
||||||
// This will fail if you've called beginChangeGesture() without having made
|
|
||||||
// a corresponding call to endChangeGesture...
|
|
||||||
jassert (! isPerformingGesture);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudioProcessorParameter::setValueNotifyingHost (float newValue)
|
|
||||||
{
|
|
||||||
setValue (newValue);
|
|
||||||
sendValueChangedMessageToListeners (newValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudioProcessorParameter::beginChangeGesture()
|
|
||||||
{
|
|
||||||
// This method can't be used until the parameter has been attached to a processor!
|
|
||||||
jassert (processor != nullptr && parameterIndex >= 0);
|
|
||||||
|
|
||||||
#if JUCE_DEBUG && ! JUCE_DISABLE_AUDIOPROCESSOR_BEGIN_END_GESTURE_CHECKING
|
|
||||||
// This means you've called beginChangeGesture twice in succession without
|
|
||||||
// a matching call to endChangeGesture. That might be fine in most hosts,
|
|
||||||
// but it would be better to avoid doing it.
|
|
||||||
jassert (! isPerformingGesture);
|
|
||||||
isPerformingGesture = true;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ScopedLock lock (listenerLock);
|
|
||||||
|
|
||||||
for (int i = listeners.size(); --i >= 0;)
|
|
||||||
if (auto* l = listeners[i])
|
|
||||||
l->parameterGestureChanged (getParameterIndex(), true);
|
|
||||||
|
|
||||||
if (processor != nullptr && parameterIndex >= 0)
|
|
||||||
{
|
|
||||||
// audioProcessorParameterChangeGestureBegin callbacks will shortly be deprecated and
|
|
||||||
// this code will be removed.
|
|
||||||
for (int i = processor->listeners.size(); --i >= 0;)
|
|
||||||
if (auto* l = processor->listeners[i])
|
|
||||||
l->audioProcessorParameterChangeGestureBegin (processor, getParameterIndex());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudioProcessorParameter::endChangeGesture()
|
|
||||||
{
|
|
||||||
// This method can't be used until the parameter has been attached to a processor!
|
|
||||||
jassert (processor != nullptr && parameterIndex >= 0);
|
|
||||||
|
|
||||||
#if JUCE_DEBUG && ! JUCE_DISABLE_AUDIOPROCESSOR_BEGIN_END_GESTURE_CHECKING
|
|
||||||
// This means you've called endChangeGesture without having previously
|
|
||||||
// called beginChangeGesture. That might be fine in most hosts, but it
|
|
||||||
// would be better to keep the calls matched correctly.
|
|
||||||
jassert (isPerformingGesture);
|
|
||||||
isPerformingGesture = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ScopedLock lock (listenerLock);
|
|
||||||
|
|
||||||
for (int i = listeners.size(); --i >= 0;)
|
|
||||||
if (auto* l = listeners[i])
|
|
||||||
l->parameterGestureChanged (getParameterIndex(), false);
|
|
||||||
|
|
||||||
if (processor != nullptr && parameterIndex >= 0)
|
|
||||||
{
|
|
||||||
// audioProcessorParameterChangeGestureEnd callbacks will shortly be deprecated and
|
|
||||||
// this code will be removed.
|
|
||||||
for (int i = processor->listeners.size(); --i >= 0;)
|
|
||||||
if (auto* l = processor->listeners[i])
|
|
||||||
l->audioProcessorParameterChangeGestureEnd (processor, getParameterIndex());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudioProcessorParameter::sendValueChangedMessageToListeners (float newValue)
|
|
||||||
{
|
|
||||||
ScopedLock lock (listenerLock);
|
|
||||||
|
|
||||||
for (int i = listeners.size(); --i >= 0;)
|
|
||||||
if (auto* l = listeners [i])
|
|
||||||
l->parameterValueChanged (getParameterIndex(), newValue);
|
|
||||||
|
|
||||||
if (processor != nullptr && parameterIndex >= 0)
|
|
||||||
{
|
|
||||||
// audioProcessorParameterChanged callbacks will shortly be deprecated and
|
|
||||||
// this code will be removed.
|
|
||||||
for (int i = processor->listeners.size(); --i >= 0;)
|
|
||||||
if (auto* l = processor->listeners[i])
|
|
||||||
l->audioProcessorParameterChanged (processor, getParameterIndex(), newValue);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AudioProcessorParameter::isOrientationInverted() const { return false; }
|
|
||||||
bool AudioProcessorParameter::isAutomatable() const { return true; }
|
|
||||||
bool AudioProcessorParameter::isMetaParameter() const { return false; }
|
|
||||||
AudioProcessorParameter::Category AudioProcessorParameter::getCategory() const { return genericParameter; }
|
|
||||||
int AudioProcessorParameter::getNumSteps() const { return AudioProcessor::getDefaultNumParameterSteps(); }
|
|
||||||
bool AudioProcessorParameter::isDiscrete() const { return false; }
|
|
||||||
bool AudioProcessorParameter::isBoolean() const { return false; }
|
|
||||||
|
|
||||||
String AudioProcessorParameter::getText (float value, int /*maximumStringLength*/) const
|
|
||||||
{
|
|
||||||
return String (value, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
String AudioProcessorParameter::getCurrentValueAsText() const
|
|
||||||
{
|
|
||||||
return getText (getValue(), 1024);
|
|
||||||
}
|
|
||||||
|
|
||||||
StringArray AudioProcessorParameter::getAllValueStrings() const
|
|
||||||
{
|
|
||||||
if (isDiscrete() && valueStrings.isEmpty())
|
|
||||||
{
|
|
||||||
auto maxIndex = getNumSteps() - 1;
|
|
||||||
|
|
||||||
for (int i = 0; i < getNumSteps(); ++i)
|
|
||||||
valueStrings.add (getText ((float) i / (float) maxIndex, 1024));
|
|
||||||
}
|
|
||||||
|
|
||||||
return valueStrings;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudioProcessorParameter::addListener (AudioProcessorParameter::Listener* newListener)
|
|
||||||
{
|
|
||||||
const ScopedLock sl (listenerLock);
|
|
||||||
listeners.addIfNotAlreadyThere (newListener);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudioProcessorParameter::removeListener (AudioProcessorParameter::Listener* listenerToRemove)
|
|
||||||
{
|
|
||||||
const ScopedLock sl (listenerLock);
|
|
||||||
listeners.removeFirstMatchingValue (listenerToRemove);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,172 @@
|
||||||
|
/*
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
This file is part of the JUCE framework.
|
||||||
|
Copyright (c) Raw Material Software Limited
|
||||||
|
|
||||||
|
JUCE is an open source framework subject to commercial or open source
|
||||||
|
licensing.
|
||||||
|
|
||||||
|
By downloading, installing, or using the JUCE framework, or combining the
|
||||||
|
JUCE framework with any other source code, object code, content or any other
|
||||||
|
copyrightable work, you agree to the terms of the JUCE End User Licence
|
||||||
|
Agreement, and all incorporated terms including the JUCE Privacy Policy and
|
||||||
|
the JUCE Website Terms of Service, as applicable, which will bind you. If you
|
||||||
|
do not agree to the terms of these agreements, we will not license the JUCE
|
||||||
|
framework to you, and you must discontinue the installation or download
|
||||||
|
process and cease use of the JUCE framework.
|
||||||
|
|
||||||
|
JUCE End User Licence Agreement: https://juce.com/legal/juce-8-licence/
|
||||||
|
JUCE Privacy Policy: https://juce.com/juce-privacy-policy
|
||||||
|
JUCE Website Terms of Service: https://juce.com/juce-website-terms-of-service/
|
||||||
|
|
||||||
|
Or:
|
||||||
|
|
||||||
|
You may also use this code under the terms of the AGPLv3:
|
||||||
|
https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||||
|
|
||||||
|
THE JUCE FRAMEWORK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL
|
||||||
|
WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING WARRANTY OF
|
||||||
|
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace juce
|
||||||
|
{
|
||||||
|
|
||||||
|
AudioProcessorParameter::~AudioProcessorParameter()
|
||||||
|
{
|
||||||
|
#if JUCE_DEBUG && ! JUCE_DISABLE_AUDIOPROCESSOR_BEGIN_END_GESTURE_CHECKING
|
||||||
|
// This will fail if you've called beginChangeGesture() without having made
|
||||||
|
// a corresponding call to endChangeGesture...
|
||||||
|
jassert (! isPerformingGesture);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudioProcessorParameter::setValueNotifyingHost (float newValue)
|
||||||
|
{
|
||||||
|
setValue (newValue);
|
||||||
|
sendValueChangedMessageToListeners (newValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudioProcessorParameter::beginChangeGesture()
|
||||||
|
{
|
||||||
|
// This method can't be used until the parameter has been attached to a processor!
|
||||||
|
jassert (processor != nullptr && parameterIndex >= 0);
|
||||||
|
|
||||||
|
#if JUCE_DEBUG && ! JUCE_DISABLE_AUDIOPROCESSOR_BEGIN_END_GESTURE_CHECKING
|
||||||
|
// This means you've called beginChangeGesture twice in succession without
|
||||||
|
// a matching call to endChangeGesture. That might be fine in most hosts,
|
||||||
|
// but it would be better to avoid doing it.
|
||||||
|
jassert (! isPerformingGesture);
|
||||||
|
isPerformingGesture = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ScopedLock lock (listenerLock);
|
||||||
|
|
||||||
|
for (int i = listeners.size(); --i >= 0;)
|
||||||
|
if (auto* l = listeners[i])
|
||||||
|
l->parameterGestureChanged (getParameterIndex(), true);
|
||||||
|
|
||||||
|
if (processor != nullptr && parameterIndex >= 0)
|
||||||
|
{
|
||||||
|
// audioProcessorParameterChangeGestureBegin callbacks will shortly be deprecated and
|
||||||
|
// this code will be removed.
|
||||||
|
for (int i = processor->listeners.size(); --i >= 0;)
|
||||||
|
if (auto* l = processor->listeners[i])
|
||||||
|
l->audioProcessorParameterChangeGestureBegin (processor, getParameterIndex());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudioProcessorParameter::endChangeGesture()
|
||||||
|
{
|
||||||
|
// This method can't be used until the parameter has been attached to a processor!
|
||||||
|
jassert (processor != nullptr && parameterIndex >= 0);
|
||||||
|
|
||||||
|
#if JUCE_DEBUG && ! JUCE_DISABLE_AUDIOPROCESSOR_BEGIN_END_GESTURE_CHECKING
|
||||||
|
// This means you've called endChangeGesture without having previously
|
||||||
|
// called beginChangeGesture. That might be fine in most hosts, but it
|
||||||
|
// would be better to keep the calls matched correctly.
|
||||||
|
jassert (isPerformingGesture);
|
||||||
|
isPerformingGesture = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ScopedLock lock (listenerLock);
|
||||||
|
|
||||||
|
for (int i = listeners.size(); --i >= 0;)
|
||||||
|
if (auto* l = listeners[i])
|
||||||
|
l->parameterGestureChanged (getParameterIndex(), false);
|
||||||
|
|
||||||
|
if (processor != nullptr && parameterIndex >= 0)
|
||||||
|
{
|
||||||
|
// audioProcessorParameterChangeGestureEnd callbacks will shortly be deprecated and
|
||||||
|
// this code will be removed.
|
||||||
|
for (int i = processor->listeners.size(); --i >= 0;)
|
||||||
|
if (auto* l = processor->listeners[i])
|
||||||
|
l->audioProcessorParameterChangeGestureEnd (processor, getParameterIndex());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudioProcessorParameter::sendValueChangedMessageToListeners (float newValue)
|
||||||
|
{
|
||||||
|
ScopedLock lock (listenerLock);
|
||||||
|
|
||||||
|
for (int i = listeners.size(); --i >= 0;)
|
||||||
|
if (auto* l = listeners [i])
|
||||||
|
l->parameterValueChanged (getParameterIndex(), newValue);
|
||||||
|
|
||||||
|
if (processor != nullptr && parameterIndex >= 0)
|
||||||
|
{
|
||||||
|
// audioProcessorParameterChanged callbacks will shortly be deprecated and
|
||||||
|
// this code will be removed.
|
||||||
|
for (int i = processor->listeners.size(); --i >= 0;)
|
||||||
|
if (auto* l = processor->listeners[i])
|
||||||
|
l->audioProcessorParameterChanged (processor, getParameterIndex(), newValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AudioProcessorParameter::isOrientationInverted() const { return false; }
|
||||||
|
bool AudioProcessorParameter::isAutomatable() const { return true; }
|
||||||
|
bool AudioProcessorParameter::isMetaParameter() const { return false; }
|
||||||
|
AudioProcessorParameter::Category AudioProcessorParameter::getCategory() const { return genericParameter; }
|
||||||
|
int AudioProcessorParameter::getNumSteps() const { return AudioProcessor::getDefaultNumParameterSteps(); }
|
||||||
|
bool AudioProcessorParameter::isDiscrete() const { return false; }
|
||||||
|
bool AudioProcessorParameter::isBoolean() const { return false; }
|
||||||
|
|
||||||
|
String AudioProcessorParameter::getText (float value, int /*maximumStringLength*/) const
|
||||||
|
{
|
||||||
|
return String (value, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
String AudioProcessorParameter::getCurrentValueAsText() const
|
||||||
|
{
|
||||||
|
return getText (getValue(), 1024);
|
||||||
|
}
|
||||||
|
|
||||||
|
StringArray AudioProcessorParameter::getAllValueStrings() const
|
||||||
|
{
|
||||||
|
if (isDiscrete() && valueStrings.isEmpty())
|
||||||
|
{
|
||||||
|
auto maxIndex = getNumSteps() - 1;
|
||||||
|
|
||||||
|
for (int i = 0; i < getNumSteps(); ++i)
|
||||||
|
valueStrings.add (getText ((float) i / (float) maxIndex, 1024));
|
||||||
|
}
|
||||||
|
|
||||||
|
return valueStrings;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudioProcessorParameter::addListener (AudioProcessorParameter::Listener* newListener)
|
||||||
|
{
|
||||||
|
const ScopedLock sl (listenerLock);
|
||||||
|
listeners.addIfNotAlreadyThere (newListener);
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudioProcessorParameter::removeListener (AudioProcessorParameter::Listener* listenerToRemove)
|
||||||
|
{
|
||||||
|
const ScopedLock sl (listenerLock);
|
||||||
|
listeners.removeFirstMatchingValue (listenerToRemove);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace juce
|
||||||
Loading…
Add table
Add a link
Reference in a new issue