Setting Custom Knob Ranges
-
@d-healey Lol. Getting ahead of myself. Thanks, will check it out tomorrow.
-
@trillbilly But if that's what you want, with simple maths you'll be able to do :
When Knob1 moves from 0 to 1, Knob2 moves only from 0 to 0.5...
-
@trillbilly so as a hint: in psudo code:
range1 = knob1.max - knob1.min
percent1 = range1/100
knob1currentprecent = (range1.value - range1.min)/percent1now you know what percentage of its possible value Knob1 is currently set to...
-
@trillbilly Or just use
getValueNormalized
andsetValueNormalized
, they are made for this use case.
The conversion is automatically made for you, free of charge :)This way they are always exchanging 0-1 based values, hence the term normalised.
Note that you have to set the middle point to something else than
-1
or Hise will complain...HiseSnippet 1198.3ocsWEraiaCDkxwLcsSS1jz.zC8hvdxAcqgs2sYaQPQRriSaZ1jHDkMXusfQh1lHRjpRTowsXA1S86neA82nW6sdseB8OncnjrkbhrirQqNH.NCey7H4LCGZ3KrnAABejVkKG5QQZeL1bHWNny.BiiN9Pj1Z3SIARpudrn1C8HAATajl1ReqRfVkxnnu+du1DGB2hlJBgtRvrnul4xjoRM1+DliyQDa5kL2Ly9k6erkf2Q3HBA9rDtAxiXcCoO8LhZZkvHsk6ZyjBeSIQRCf4zVXOzbf3G4wy+JV.6ZGpZPSjIXnXwnNCXN1FiVqAHjVYizU9Rwq7svmxrYikmtCrdjB8TDY2CzJMIkJOAkZNMJcjvwVYfoPuRYnW4X5sA1zxm4IS0n31J3i4vgSOBrsmkVwyEU5WJg6HfYvk0cI2POxGFLFQscZz345vus2sZUXqOPpeKwW+Dt35l5ei9Hf8oxNBWOAGFT6YQZeFfXR.slIfVJ.Uqx3NLNUuWH2RxDbcAOxZJb9BmZVi.8bvrNgzsq9yUqDAud.UdkRzYBeWhC6mn1oyV4u6qbaveIPsFP38Uh1s562sZjCUlKwocHNNWCgY0ljKQzcJ7s0ix2lKNealCeaMc91ZB9lgnmIjzy40hnT02WU+9p50KWcIlyg5mqZUBq+r.ViG5dM0O6FhZhPT7joIKWrzDq3HpLSTvOlyjm6QSFmlH0LmDITRHoJkJggvTkQITqkjPY5vro9HFXjOBGcDfhHeRgoOr0u8m6gJL3V2G7uuG5MGeHQR.NnkPGfhdTeISsSncH8VnFYbRdE7gzfajBuH9lDufzvOJiuabYzOP1eXZMU19tLaaGpgHfoNoR07WpE0XOr7itrR8vuJKlG9i8bI2MgCeXQ2UwG36Q62mQjIUzVKqjlSVqcoYU9uYwK+mIr3Sl1Ia6PoDVMpsf0vwrHQT1C33uBXiUwWPgr3IMAValvybJ7T7YgtlRpWhrwFnbAMvJXE5HNLGKfLFX8HCXdC6ATPqfaAfED9xSnCm+MxIWHdTpsJnLkBqjG30S.Cg4WKZKtKB9lXS5ODRg1TFKtXKjLTXU74VRxszKTEpm+yxJXyAg854PWrHoUvc4DHL+RFcZTubL3Mmv2FvsFQFXKXKvkcIj4mQwXK8Ovmspbk1mgatS87+lCecE0QXwjCKju584sOnd8u9jCqW+EgFwiKru1D+ZJuubPw7zMJOc02Cd5sBi3wELDZCLzaHmScLoNTKUcqYGAkqQ9T74gRuP4+AlZC7oFcgZh9iLVpQJUXi7TkQ5xsefIVufgkKi+N3p3bBoeXqrPC0B6PGUA9rcYqdNQhB08HYq7qZYkC2uLL6yMliVuajaq241wPAo6FXClzZP97sTN7U0Bx+y7c7cpc60ChlRIaY7QucQe0xbPkKDgRFu+oDoOCt3O5JK3sbPo13fpfQgjIiaLppoIka2XTZZhxliRBTJaNRIxkX4KdmUb7n5oROIRBvIdzqDq.OWEFqOtINLtQ8FHnGE16rrTaEeAv87wzZAv7hE.yKW.Le4BfYmE.yqV.Le0Lwnd77AgRgabZBHvnaT+vZZwWjEEQh9W7WjjpB
-
-
@d-healey
lie in what way? (limited English warning :) )EDIT oh sorry I didn't see the GET isn't there...
-
@d-healey I'll have a look to correct this in a moment...
-
@ustk Thanks! I can get the snippet to work with your 2 knobs, but when I create my own they no longer work. I'll keep trying.
When you say "middle position set to -1" what do you mean? I am looking at the knobs you created and in the Property Editor your knobs both have different values than -1. Am I missing something?
-
Am I missing something?
@trillbilly Re-read what @ustk wrote...
-
@d-healey yes, I see it now. I checked out your videos and the advice of others here and was able to get the knobs working using the "setValueNormalized" function.
Now working on getting different fx modules to work together correctly.
For example, I have a Tempo Synced Delay and Reverb. The "Master Knb" is set to control both the Delay R and L Time (Tempo Synced) and the Reverb Room Size + Wet Knob. The knobs all work correctly unless I change the range of the knobs being controlled to something less than half of the full range, then they no longer work. Also, they are kind of jumpy and do not slide at the same rate (which isn't the biggest issue but would be nice).
Sorry, my explaining is horrible.
I know, getting ahead of myself again. I will continue with your videos and scouring the forum/documents for demo materials.
Thanks again.
-
@trillbilly It will be hard without a snippet