I've been playing around with this some more and I think I have a slightly more efficient way to do this, it pretty much works in the same way but instead of using a timer callback it uses the knob's control callback. It's important that the min and max values of the knob and panel are the same. Let me know what you think.
HiseSnippet 1076.3ocsV0saaaCElxIrqwcdXEn2saD7URCsdxsMcEHHXtwIYvaMIBwYAanXHfVh1lvRjBTTIwKHOB6cZO.6gYuAYGJJYol3kFugIXXfy+e7vyOzWJBnooBIx5ImLOghr9b7v4b0z9SILNZvtHqGi8kzTpBsy7DRZJMDYYs12qkZsw5n7u+561gDQ3AzJVHzoBV.88rXlphqeuejEEsOIjdBKtl1ut2f.AuuHRjAHYMrGJgDLiLgdHQqVCL5bF8hTjkG9UuribV2Q+1657P9PAYRIkqNELGYgstA9rv6ExTB4PEQQAet9Nhv4CmJtfaB8orT1nHplnKZHfIC68EQg5CulKp+TVTneYxKEAdwuJUtlIU9L7ArP1B9UozuLWfckE0SsVMtO308SCOukAOqZvacC7dJdXfjknpjnw1SvC3JpbLAtMqCKitnF2z.2W.ZvUchIyn6KAhEV37FOumauomm6VsZ1pIbmlprOmHsSHbZj811klNgp5KhSDbfvocBOps1hJ8mwEi9GUeFeTaS.xcaGn3zGRspiEYJFm5LNiGnXBtyD2qZ0zF9L+OQqooHyQMkkpcqS6QSLrZ65tkVqBUGCEpGSCTNe.NQvuJCtfEpl11sNqoT1jop1t+p6VMq4ikENlhFWEv5vSet4zKNknSTN2041eSsHFStDr29qWvBLKi5T5wkcHtqGegIbO7CmArW6tUYJ1VvOTnnGwcbadUyMZdcyaKY73kIRewJEQQT4xjpGNHuGyb3YwinxmCoL3PmqGarcAW6s2Nu7w0jIJp.zeKpVL4Jiwaca4RZhtXxo3p755WQ.Zf1mOt+7QOr9y.SobMEE7Abl5nDZA88OfAUzKn6kKRCfpp7N4unnSdXDKjJQLvIXLzkfxOhkiYc+S+dneZvtDEozIf+fXjPkJl9nXsK8bXnsY7vF3cooyThDX96hlOjUSSHaUN7PmyJhHzFitrZn9fdyqSjWYUw3W5YpqVv4Oj8F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