Limit movement range of a knob
-
Hi, had a search but couldn’t find anything about this but please point me in the right direction if it’s already been discussed.
Can you limit a knobs movement in the ui?
Like make it so it only moves between say 10 and 2 o’clock?
Thinking something like the waveform knobs on an ms20 where it has x amount of position but they’re only between a certain range of movement, not the whole range of a knob… if that makes sense.
Thanks
Chris
-
@bfaudio You need to
createLocalLookAndFeel()
for your knob. This way you can draw it the way you want:HiseSnippet 1017.3ocsVstaZbDEdVr2zBsMpQpO.i7uVmRvb0FK2nZaLzhhsC03FEIKqngcGXmxryflcvtnpH0Go7Ljmn929q1yL6hYoXYmfTWIf8b46bNy41POkzmFGKUHmBWNaBE470t8mIzgsBILAp6IHmm5dFIVSU3DVGOaBINlFfbb13mLLbxuIx97W+3wDNQ3SWvBgdij4SOkEwzK316vWw37Nj.5krnLZW+vt9RQKIWNEhmMbKilP7GSFQOmXTKmK5mIwgHmm6VqQ.Y+lD5dMnCZFrWPyF6NfTtYsgCpUYHsd8fZ6Ue+JjcQNOoc.SKU80DMMFL5wxfY8Ck2JRbvaXwrAbpgnBpO34D1nVgLdPu4ImXDxYydKRUajjp9N2yXAr63uHk8sVA3EHxlzbx8PgTkOiPxISHsYRH8L299J1D8BIl34qb6JfJ3PBTaxFJI5hx824baIAMD5RQjwzNJf3NDdUKWtHF9Z6CJT.pOwZ7MDE9UB4fJ3WhmCbDU2RFMQJ.BusrR2xfHCjw.ySOpSFP9JJjDNU5S3mJkiORDzgR4dFboJWRQGwLseclJ70Lovaq.E41KjZhZVeNKfp1pHd3bgiJhkC9ssK7GExa7HA7EPWh.94fB4KjeToXSbZ5v7LBFLJg.7HHaHzV1lyYShodjDVKqNSSiRHqts0dVmHFwoW.eSAucFQGVpW2cpd.dmcvbSiOVCAKOQM3c79k+3GRPFCGB8QV9uD+hE1IEsULlnwundiO9Ar2PkLBqCMFYx1ImFkzzE4kwPee13441S+MD9TZQ7Ujqpd8NUKhIWUC985Em4KULKHuqp1nHFp1UretFdujor+dSA4AKzl7zJkwzRH.dd8AKEmK0zWK7rknBuu.9+JZ3v6Ulw6JImSU2qXyhD0CAzSLMZ.UUDaSF2oHL3r7z3S9zlF8SRFYTTJ5JX5WOglR2QxCLSYl2Wc1EklMMSwoQHnp1NC+zzY3jtaDCLxW3ZyyHavmciK5W6dBQSlaFvhfWlPUZl4v3bB8FX8axpg7tmPiGCsNVcSKfvA9Qc5uemC+ye4vYYItkEng8wtN+.PGRYiB0yoPqtaB1JJClxI5kWUZtDIU.TwVZ+jYGjHlomk8H+Yr+r7Ct+7SMDelaOl1O79iwb2SLBUi+Ohwzac9F21CGR80KBvMc67108JlGw8WHmpYhQvVMEC5CbOeZTeX6mOE7tPP4wl5cNS+bBcYCsICzmJBrD+C7jJrhg1IUXk4BQQDek7c9ISAl609RKGHlD168yC+ADfFuR6OBEAWy9Ne+kM0J.qtt.qst.qut.art.2ccAt25Br4iCz7ufNZpVFkL1fPm0qscckiSaAA5.scqn+UDLhed
-
@bfaudio Here's a new one with 4 positions (the range 0 to 3 has been set in the property editor of the knob itself. You can set it to the range you like, since the custom LAF uses the normalised value (0 to 1)
HiseSnippet 1149.3ocsVstaaaCElJIZK1aqXEXO.D4WJcN9tyEDTzb0aFMI0KNqn.AAEzRTVbghTfjNtdCEXOR8YnXOP6MX6PI6X4F21AiUA3KmKe77wy4vCUWkzmp0RExo3UiSnHmu0s2XgI53HBSf5bBx4QtmSzFpBmo5nwIDslFfbbV8mrJbJrFJ84ue1QDNQ3SmoBgdoj4SOiEyLyz18fmy371j.5Ur3bd27fN9RwwRtbHvmUcqhRH92RFPufXcaEWzOSzQHmm31nU.YucIzcZQ6uavNA61Z69jp61HreiZgzlMCZrSy8pQ1F47UmFvLRUOCwP0Hm0NRFLtWjbjHK.ujoY84TqPMTOHxYpaK4A1snUK53HFOn6zDkFAqR2YosUyRa+f64r.185mk999TC3YHxm.cVYd5s5bzqVd5UMG8V.kbxQo0xnzic64qXIlYVr74ab6HfpYHApS4oRlunU9qUcOVBdHLkiI2Raq.g6Q3UuZ0R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