# Automation not working in Studio One 3

**URL:** <https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935>\
**Category:** Audio Plugins\
**Created:** [November 16, 2016, 12:55am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935 "2016-11-16T00:55:31Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [November 16, 2016, 12:55am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/1 "2016-11-16T00:55:31Z")

</div>

Has anybody encountered an issue where Studio One 3 won’t play automation for some parameters? I’m not getting any calls into my plugin to set the parameter value. This is only for the AU version of the plugin, VST is fine.

Some of my plugins, all parameters work fine, others some or none work. Anybody run into this before?

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [November 16, 2016, 1:20am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/2 "2016-11-16T01:20:57Z")

</div>

Arg. Studio One 3 won’t automate parameters in AU plugins if generateAUParameterIDForIndex() returns a value greater than 0x7FFF. Any way to work around this without busting everybody’s plugins?

Example of parameter IDs that don’t work for me: “resolution” and “downsample”

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 16, 2016, 9:06am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/3 "2016-11-16T09:06:12Z")

</div>

Yes @t0m noticed this a few days back. We can fix this in JUCE but then all automation data of currently available JUCE plug-ins would become invalid if plug-in vendors update their JUCE version.

We would probably need to introduce yet another preprocessor define to force JUCE to use the current param IDs and - in absence of this define (for new projects) - only use values which are lower than 0x7fff. Just dumb that we already have a preprocessor define which does something very similar `JUCE_USE_FORCE_LEGACY_PARAM_IDS`.

To be honest this seems like a Studio One bug to me.

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [November 16, 2016, 9:12am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/4 "2016-11-16T09:12:17Z")

</div>

perhaps this time the macro could be JUCE\_USE\_SIGNED\_PARAM\_IDS, the fact that it rejects param ids higher than 0x7FFF, looks to me like a problem of rejection of all those that would be negative if interpreted as signed 16-bit int

---

<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 16, 2016, 9:21am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/5 "2016-11-16T09:21:49Z")

</div>

The boundary is actually at 0x7FFFFFFF, and it is indeed a problem with a mismatch of a uint and an int.

The AudioUnit spec allows unsigned 32bit integers so I suspect it’s a problem on Studio One’s side. This doesn’t help us very much though.

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/samuel/32/21_2.png) [@samuel](https://forum.juce.com/u/samuel)\
**Post date:** [November 16, 2016, 10:01am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/6 "2016-11-16T10:01:09Z")

</div>

@fabian, @t0m

while you’re at it, you might also revisit this issue:

> [@Automation issue in Final Cut Pro X](https://forum.juce.com/t/automation-issue-in-final-cut-pro-x/18040):
>
> In Final Cut Pro X the automation curve gets unintentionally changed on playback when the plugin editor is open. JUCE is probably providing unexpected feedback to the host. This does not happen with other non-JUCE based plugins. [http://i.imgur.com/QygWirm.gif](http://i.imgur.com/QygWirm.gif) I’ve already mentioned this a few month ago, but I guess it slipped through because it was not in its own thread ([AAX plugin, automation gets all messy after a while](https://forum.juce.com/t/aax-plugin-automation-gets-all-messy-after-a-while/16813)). An issue with Final Cut Pro X automation was now also confimed by @an…

I haven’t reproduced it with the latest versions of FCPX and JUCE though.

---

<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 16, 2016, 10:05am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/7 "2016-11-16T10:05:39Z")

</div>

I think the changes I made will have fixed this issue too.

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/samuel/32/21_2.png) [@samuel](https://forum.juce.com/u/samuel)\
**Post date:** [November 16, 2016, 10:09am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/8 "2016-11-16T10:09:07Z")

</div>

Great to hear!

I’ll add a note to that thread once I have verified it.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [November 16, 2016, 2:06pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/9 "2016-11-16T14:06:43Z")

</div>

I haven’t released my plugin yet, so an extra define would work for me. I don’t want to add it myself however, and be stuck using a custom version of juce forever.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [November 17, 2016, 1:11pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/10 "2016-11-17T13:11:02Z")

</div>

Does anybody have a developer contact at Presonus?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 17, 2016, 2:18pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/11 "2016-11-17T14:18:34Z")

</div>

I’ve contacted a developer at Presonus. In the meantime there is a fix for this on the develop branch.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [November 18, 2016, 8:30pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/12 "2016-11-18T20:30:43Z")

</div>

I think you have a typo in your VST3 version. You calculate paramHash but down’t use it for anything.

> <https://github.com/WeAreROLI/JUCE/commit/e49022bfba18ae484f892f21bae056c51fed48fa>

---

<div class="post-metadata">

**Author:** ![pflugshaupt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pflugshaupt/32/13206_2.png) [@pflugshaupt](https://forum.juce.com/u/pflugshaupt)\
**Post date:** [November 19, 2016, 8:48pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/13 "2016-11-19T20:48:03Z")

</div>

I just saw the fix on the develop branch and I’m sorry to say I think this is a bad idea. Breaking automation for all hosts just to work around a bug in one host is not reasonable. If I read correctly, this change will be applied automagically unless the developer sees it and chooses to disable it. This bug really should be fixed by the host developer and if you need to make a workaround, please restrict the fix to the faulty host only.

Or admit it was a bad idea to use negative parameter indexes in the first place and name the fix and the ProJucer change better.

just my 2 c

P.S.: I also quite dislike having host-specific fixes show up in ProJucer like that. There are quite a few of those in Juce, but they don’t show up as settings and are only applied to specific hosts.

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 21, 2016, 10:44am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/14 "2016-11-21T10:44:07Z")

</div>

@RolandMR Thanks this is now fixed.

@pflugshaupt I share your pain. I know this is not optimal but it’s hard to come up with anything better. Here’s the problem, if I only enable the fix when the developer explicitly enables it, then experience tells me that no-one will enable it - and even new plug-ins in the future will still be reporting negative parameter ids. This means that there will never be a good time to enable it by default and now is as good as any.

I believe that most plug-in vendors are more likely to test the saving and loading of automation data, than to test a specific DAW (in this case Studio One). Therefore, plug-in vendors who are updating their plug-ins to newer JUCE versions are unlikely to release a plug-in with the workaround enabled anyway. A quick forum search for them will inform them that they need to disable the workaround.

Additionally, many plug-in vendors who already released plug-ins with older JUCE versions will be using the legacy parameter ids anyway. The Studio One problem does not exist for legacy parameter ids, so I think the studio one workaround will not affect that many developers.

You are right that this is a Studio One problem. However, even if they fix it, it will take a while until it’s integrated into a proper release and even then, many customers will be using old versions of Studio One (check the JUCE forum on how many bug reports we have for Ableton Live 8).

BTW: I’ve been trying to contact Presonus for months now (support, direct e-mail, linkedin, …) and I can’t get hold of anyone. If anybody has a contact at Presonus (or works at Presonus), please, kindly ask them to contact me!!

Update: Pesonus team have contacted me and will fix this issue in an upcoming release.

---

<div class="post-metadata">

**Author:** ![pflugshaupt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pflugshaupt/32/13206_2.png) [@pflugshaupt](https://forum.juce.com/u/pflugshaupt)\
**Post date:** [November 21, 2016, 1:06pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/15 "2016-11-21T13:06:00Z")

</div>

Ok… but why don’t you patch only if the host is studio one? I don’t understand why automation in all hosts needs to break because of this fix. Are you worried other hosts might also have issues with negative numbers?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 21, 2016, 2:33pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/16 "2016-11-21T14:33:51Z")

</div>

Well the reason is that it is a bit debatable if this is in fact a Studio One bug - at least for VST3 (the same bug occurs for VST 3 plug-ins). VST3 uses a mostly .COM compatible plug-in interface (see the `COM_COMPATIBLE` define in VST3) and there are methods in VST3 that return a `ParamID` (for example `IParamValueQueue::getParameterId`). However, in .COM, every method’s return value must somehow be able to indicate failure: for pointers, failure is indicated by a null ptr [1], for anything else you should be using the `FAILED` macro [2] which simply tests if the return-value is negative, i.e. tests if the most significant bit is set. Therefore, according to .COM, negative parameter ids would not be valid parameter ids.

On the other hand `ParamID` is defined as a `uint32` indicating that the full range can be used. So it’s a bit unclear if a parameter id with a set signed bit is a valid parameter id. I’d tend to argue that this should be ok as the docs do not mention the sign bit anywhere in VST3 docs. But in any case, I think it is best to avoid negative parameter ids as some DAW developers clearly don’t agree 🙂 - so there is some confusion on what is right here.

[1] This is not strictly allowed by .COM but many variants of .COM use this  
[2] [https://msdn.microsoft.com/en-us/library/windows/desktop/ms693474(v=vs.85).aspx](https://msdn.microsoft.com/en-us/library/windows/desktop/ms693474(v=vs.85).aspx)

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [January 13, 2017, 11:41am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/17 "2017-01-13T11:41:22Z")

</div>

Does anyone have the information, if this is fixed now in Studio One 3?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [January 13, 2017, 12:04pm UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/18 "2017-01-13T12:04:10Z")

</div>

The presonus team have been working on a fix and plan to release it later this year. In the meantime, for new plug-ins, you’ll need to use `JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS=1`

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [March 6, 2017, 10:13am UTC](https://forum.juce.com/t/automation-not-working-in-studio-one-3/19935/19 "2017-03-06T10:13:04Z")

</div>

FYI, the release notes to the latest version of Studio One 3 (3.3.4, released February 21, 2017) seems to mention that they have fixed this:

> [macOS] AU automation broken for large param IDs

I haven’t checked myself though, because I don’t have any plug-in that had problematic param ids.
