# New way of adding parameters to AudioProcessorValueTreeState not sufficient for many, identical parameters

**URL:** <https://forum.juce.com/t/new-way-of-adding-parameters-to-audioprocessorvaluetreestate-not-sufficient-for-many-identical-parameters/29887>\
**Category:** Audio Plugins\
**Created:** [October 16, 2018, 5:09pm UTC](https://forum.juce.com/t/new-way-of-adding-parameters-to-audioprocessorvaluetreestate-not-sufficient-for-many-identical-parameters/29887 "2018-10-16T17:09:52Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [November 14, 2018, 4:32pm UTC](https://forum.juce.com/t/new-way-of-adding-parameters-to-audioprocessorvaluetreestate-not-sufficient-for-many-identical-parameters/29887/24 "2018-11-14T16:32:43Z")

</div>

See this post for a more comprehensive way fo doing it:

> [@AudioProcessorValueTreeState Improvements](https://forum.juce.com/t/audioprocessorvaluetreestate-improvements/29872/11):
>
> Sure, I was just suggesting something that was easy to fit into the initialization list. AudioProcessorValueTreeState::ParameterLayout createParameterLayout() { std::vector\<std::unique\_ptr\<RangedAudioParameter\>\> params; // Add your other parameters programmatically auto param = std::make\_unique\<AudioParameterInt\> ("intParam", "Int Param", 2, 7, 5); yourIntParam = param.get(); params.push\_back (std::move (param)); return { params.begin(), params.end() }; } YourProcess…

---

_[View the full topic](https://forum.juce.com/t/new-way-of-adding-parameters-to-audioprocessorvaluetreestate-not-sufficient-for-many-identical-parameters/29887)._
