Implementing a Listener on a knob with broadcaster
-
Hello everyone
I am trying to implement a broadcaster on a knob to track the changes in values consistently.
The method used is the "attachToComponentValue".
However, after setting the knob id and metadata as string, I get this error:
"If you want to attach a broadcaster to value events, it needs two parameters (component, value)"Secondly. How does the "valueCallback" function work? does it come after calling the broadcaster or before?
My goal is to have something that consistently tracks the changes of the knob, so that if the value of itself goes beyond a certain threshold, then something will be triggered.
Any help is appreciated.
-
@Sawer Can you post a snippet of what you have so far?
-
@d-healey Hello, here you go. Thanks
HiseSnippet 1169.3ocsV0zaaTDFd1jrs0KzJJp23xn8jiH0wtsTPEAwwNNkkF+gx5FgDBUMd2w1Cd2YVs6rowMDINvuG9KvuEtvYNyE3clc850A2zhkvGr7679w779Lue3AwBOZRhHFYTY37HJx3CMcmykSaOkv3HmiPFehYqXAw2ijHowXmvn.ZHURjLAG0ZdDIIg5iLL194JGLprCR+4OOnEIfv8nKOBgNSv7nmvBYxkmNn4KXAAGS7oCYgkr9IMc7D71h.QJ.tsMqihHdyHSn8HJy1xDYbqN9LoH1E.CMAYrSKg+b2ohWyyr+LVBaT.UIz.4BAJ63iEA9JDqNE0dJKvevBRHAAQYvRJY6LJ4AlcY9rhyWRMejVAdoGk4CisVEdauB7Z71f2ZfjQIHsSFjtuoqWLKRtTiBOefoCGdjFS.ZuLTxrEs0mtsYaAXAWVKjLidbLHT3Q0mVu9dX3qc+RKq82u8IG555zF6zcvIc51o2vCG5zuGt5PmtcNE2u021o8vcsfmnDI9bRL9EbwnF3uBu3BlPksEgQBNHT0Vq0Fh7RGNgLhF718HSsxEKKk4yfHnpPhAO5vmv3zZdwTfZ0G1ezOR8jUUVWXXsDpT+i1jffQPwS0wobOUca0cuzphUEUXkSomQBRoPT0XTgB8APrvJiJL3qw0wGjiZUnqZKoWHs2CaOLlMYBMl5auK9Yq0hdzTYLIPkMUrtRmSkfojDmAzpOVS9.625z9GdT6CcGBb8pu.YrwHuqSCkZRqhuzl4aCXwFpOhnwx4Xno1iFqvhmtkx9Y3G1XOqJK9XShmj.G98f972.kwQ49q984JZv9GtRmDVVi7pQjRh2zghhmsLlSSjfC8iTjsNsw382+a.JByRvgywPXgR+vZ0ps3IAK38DRZe3swR83bkE95pFOds5TkOwhf.HuWm5Lh8FbrJOMbDMdOrN+JLDZ0Vs+8Vue8udYUykLTvc3LY+HZt7MO.Bk2Nn56yQHXpT20eu7td2.lOMFwffbaSMaizfu7rVzKcNhHIKBCDw7ZAlJYLNhdNLKNaXREyinIyjhHXrZwSIbauyK8hkWney4EB+LoYhbthZtk1PTHy2OfNPjvzaMVtj32fx0HW1azH+xG7qO+2eyubPX48HHTH4hxqURRGOlcgdAvXVPXhDvlSHrW.Y7wluLgh8oiIoARbxLHNAL9Lp+Pg19Wy7kSQFlF+EDooT1joRkz8LzrdQde6r79t44steVm12wLq2tTd2jVJuw+Tyhq3OV4JNFjTyBTbc9r.Xy2+ZpNrOQ3mFPjqtjQsYMWw0W5pldyAZcdYJ5+vlm523lm2WHdeyALo2z0iwsVCFgpx+OvX9956Z1Y7XXcvR.ti4we2ltb9cb8mJRkL9jtDnPDpKL6kF5ByW8nvsy4zfD06+VpJrL45JYEC3R49Zg+F9jqrgR1HWYiEJgV.uXwq7xlFn9GA2QeBfIt9OCUwrqRFWLFvzrds5p1N1q77To+CafPq2mGsA973MvmmrA97YafOOcC74y2.e9hazG0+K7vToHLqc.NXPG83XCiNbBTYoqBQ+CL44izH
-
@Sawer I changed this to only 2 arguments
"args": ["component", "value"]});
HiseSnippet 1124.3ocsV01aaSDG+baMrXXHlDui2bxuJcpKMgMFngf5lzTHrlGVcVERHzzE6KIG09NqyW5V1nREI9fwGkwq4M7M.9emchc5RGnHVdQU++7u6+idfTDPSSERjUkgySnHqOz1eNWMs0TBii5bDx5SsaJEjv.RphJwchShnwTEQwDbTy4IjzTZHxxZ6uUafUkcPle+0AMIQDd.sfEBclfEPOgEyTEbG38XVTzwjP5PVbIsefWm.AukHRLC.2110QIjfyISn8HZ01xFY8dsCYJgzG.C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