A Pop-Up 2D MIDI Value Selection Widget for Y'All
-
This is based on wonderful core code that @d-healey wrote during his live stream. I've adapted it as a pop-up for selecting MIDI values (0-127).
Click the "OPEN SELECTOR" to open the pop-up. After making your selection, the label is updated. You can then close the box with either the original button, or the window button in the top-left corner.
The full code is a sample implementation. Includes a custom LAF for a checkbox with lots of parameters, and "withBrightness" helper function that dims or brightens (if you're into that sort of thing). Enjoy!
HiseSnippet 4235.3ocya08jZbjjuYjvqAe9tUQ3G1Gt3h5HtaEngACij05XwxqX3CMrdlABfQebJTLQOcW.kUS0Dc2HFVGSD99W4d3dXeb+CXed+6vOrOuuuOrWlUU8WPyH.MxwM1QH5pxLqLyJyeUVU0cWGaCpqqsiVpLCVLkpk5eJc+Ebuw0Gqy3Zsank5Noqnczho5ttTSsTotyyvNRk4tZh+9a+tizsz4FzvlzzdtMyfdBaByKr0tO86XVVszMoCXShP8idZaCadcaK6YN3fUVaptwa0GQOSGIauzZo9jllLOam9d5dTWflirMWzer8btj9mybYWZQkZZePPxl0pOlYY102.c0zRc2tgl6cjl6Wj9TlIKn8Py9WJ5fDxQTePp8tIUpxVnRohnR2UpR2KceCG1TuvdP84yR2l6QcFpCt5nphjVs89SkRW2Fnf6UZh9aosbfGB3H+iKWtH4gkKWnZ1re4M8GYPmNm7csGPp24r9Cpc1f9jaj9rh+mbPz+HMntBshYyU8OXL0kRfIZWOctmKQ2gRlAV.YnsCYxLKl2TKJYNybDE5kwIdioDOaaq2x7JIkws3eYWUkOtc+lj595mffFzgLNU1SflWJq3mjWztwyZN3BvE0avKIOgTtZBc7JniJK0A7OCNFZ+vkZ+3lse1wCfNdHLEEY3MoC0mY4AZ.lgr732nYqZmexfKFz7kCtndmS5bdOTYtpUsVh+pFUTW5vFM1iCwTDcyuelq2D5pVzQ8P83rl86eQsF+9y6O3zlmM3hS6bd+lcddSgzKU9vup5lvEpUcZ0B34fxkprQrznc+ZGcRyFOqWstG2ttj0xOdq3EGVIi+lk0yA8pcV+t0507r5uJIV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