Lower Sample Volume while Volume goes up
-
@d-healey the gain 0 to -20 and the drive 0 to 30
I forget something that's what I have
SimpleGain1.setAttribute(SimpleGain1.Gain, -20 - value); PolyshapeFX. setAttribute(PolyshapeFX.Drive, 30 - value);
-
@treynterrio said in Lower Sample Volume while Volume goes up:
the gain 0 to -20 and the drive 0 to 30
I thought you just have 1 knob to control both?
-
@d-healey I have only 1 knob but I don't know how to set the minimum value and max value of the knob so that gain goes from 0 to -20 and drive goes from 0 to +30
-
@treynterrio What do you want the knob on your UI to display to the user?
-
@treynterrio said in Lower Sample Volume while Volume goes up:
@d-healey I have only 1 knob but I don't know how to set the minimum value and max value of the knob so that gain goes from 0 to -20 and drive goes from 0 to +30
use this:
ScriptSlider.getValueNormalized()
and this:
ScriptSlider.setValueNormalized(double normalizedValue)
-
@Lindon could you give me an example how I use this?
-
@d-healey when the user turns the knob up the gain should go down from 0 to -20 and the drive goes up from 0 to +30
-
@treynterrio I understand that, but what do you want the knob on your UI to display to the user? Is it 0-100%?
-
@d-healey yes when it's off it's 0 when it's on 100% (drive 30dB and the gain -20dB)
at the moment the gain works from 0dB to -20dB like it should but the drive goes only from +10dB to 30dB and not back to 0dB
-
myGainKnob.setValueNormalized(myDriveKnob.getValueNormalized());
-
@Lindon I don't think that's what he's after. He only has one UI knob and it needs to set the two effects parameters to different values.
-
@d-healey ```
code_textHiseSnippet 1410.3oc2X80aSbDD+N6bPrKEAHdnuToSQ7fiZHxFBPkhZwINInnhIVwo.8Izl6Vauh818zd6khaEem5Gg7goe.3aP6L2e7sm4H0IEPDxCQdlYmc+syL6uc1afR5QihjJK6FGMMjZYeMmgSE5I8lPXBq82wx95N8IQZpxMU01SCIQQTeKa65OAUX2XIqj+d2i2lvIBOZgJKqmKYdzmxBX5BsC59KLNeOhO8HVfwn2n69dRQOIWFC3otSaqPh2qIioOifCqlik8U10mokpgZhlFYYuz1R+oCmH+cQ53eNKhcLmhBcrFBSTp58jbeDw3us5Mgw8GjuuirrrcFTDEpmFEts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u9NmT35hjbtecbOY8uhtm7b7ZsZFXY4brXz.eBVJqwDT8hUmjRctUzz.rZ2ivKTlz8eQ77m6Nes6A3MFHuXoqhNWw8NKbbegqugy5Hv+xpxd4YeQgYuKKK4X7PsynGlMNcGJmTp59ELe8jBE+V2J5xYeftSog7OQM+Yi5er3cVZgO.iaoKODN3cFPH+xDfSJIt7.3a3.MZ8E.bOTFqAJr7NZcf1dGBs56QMa9sF1PcpbaTFAzPpvOQ3ef+xL1IuSYzXmbiKZH45YOnwE1gJ8W34uq4jzBtK9houlycd4SEr2x9cx2VwtNUfc4m7RcN79ItICaD7XPDRvMoeVPY.wSIekW52MBw5xIZ.TJR9lwMb5ixtcx+XQNNsWuM9AYXuxyC6Y4tPDtZet2Evm6eA7YiKfOO3B3yCu.97nKfO+3Y5C9htsh0xfT1OPwfcSKrr2cVgUcq+Uj4.YE
-
Oh wait I see what Lindon was getting at. Yeah that's a good approach if you don't mind a couple of extra hidden knobs. I'll post a snippet.
-
HiseSnippet 1530.3oc2YrsSabDcVaFRvMkjfhp5KUZUTpDHEEgARRUqZvfAhrRLXgIooOEMr6X6oL6LqlcVZbqxGR6WQesuwmR+DxeP6Y1KdufCXbIW8CHeNm4Lm6WFSGkzgFDHUHq4NXnOEYcMb2gB8flCHLAp0VHq4wsIAZpxNF0lC8IAATWjkU0GaPXM2LnnOuY8MIbhvglgBgdtj4PeJyioyv1owSXb9NDW5ALubmdsFsbjhlRtLDzmp3kQ9DmiH8o6RLGqBFYM61tLsT0USzz.3LaJcG1cf7WEwm+4r.1gbpAnNpKbQwnQMGv3tcRs0.DxB2IyxqFa42B2l4xFgOyCbiHB1Ybj2GXU4rTo5W.UxJmJMSrJcSbWGEyWmQwnOeAtk.BH8HfqNupDeVTkuuBtoDNgPeOOxQzcT.vHNV7AKu7csg+rzOTqF3tCz1GST1OQHObE6ezNkw9TcSomuT..Kd6Hp2F3nHCqdlLrpggZLAmIn18BENZlTXKEFZ0Mroj7EcR44tvsxCoKU62qMWj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y83MqJ4j+USk+nsa.wZje48cxqJMCUGG2yaifgdlbYGBOCY7tP4VKqbl4dlV8lFZElgbg7vWRYrKDu31+qb0Ylr.w47ZwSGStVR6lGm8yVUXm729FGvSPnbRgj2eh4pGjg3maLlcRZAcvTZHrSTkS8qdYEXlYhqOMlzGWwkyIQx3x+TRgiRI9zQguAFVK5i.0ceYnF5akt+IFVRsKrXtCM+ppULq+FCurA1nPcoB2Hf+E9jPrd5dsFh0SINotj4Sd9gMXgJ8GgSYuFNZIYayaZdepduOhQNoWEXOIeO5WKypJUXdSPz6j4vqZ3i6mrAFS9dQK8HNJ4Kch+U.M55Uiv.ZoH5+.wb31FX65m92NzCdIvKcbJdUmhwUlVFWcZYbsokw6OsL9fokwGNsL9cmOilGpsQnV5E2MDgZ2Y63DPqsGk.VE8e.y83zG
-
This post is deleted! -
@d-healey said in Lower Sample Volume while Volume goes up:
Oh wait I see what Lindon was getting at. Yeah that's a good approach if you don't mind a couple of extra hidden knobs. I'll post a snippet.
the "unhidden" knob might need to have isMetaParameter set to true....
-
-
@treynterrio I'm sure you could have figured this out, but here you go
HiseSnippet 1490.3oc2XE0aSbDDdO6bgDCkBHTUeoRmPTIGIJJNI.UpsjKwNAYANwJNPoOg1b2Z6sr2tm1auTbq3GBu0eB809V9ozeB7Onc16N6auCGhSTnDvODkYlc14alc1Yla6JEdjnHgDYs39iBIHqqX2aDWMr4PLkiZ2BYcU6N3HEQ5jxZyQg3nHhOxxp5izLrVbNTxu2t9lXFl6QxYgPOSP8HOgFPU4b659XJisM1mrOMvX0q411SvaJXhX.OUsWFEh8dId.YGrdYUrQVyukOUIj8TXEIBYM2lB+Q8FJ9Md55eFMhd.inIZf5AaTJ6sELeMh0bQMGRY9cG62QHjkc27nP0znvMs6P8oS3mGMtVh.mbMLiGVUJBupEfWCS3srA7lBjrLfzboP55187jzPUtDMdtrcaNb3zGCgcSnjtVTkerhcSArBt5tA3WR1VBDSzn98Wd463.+YoenVMHzGobNDKcdLWbvJN+jy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