Keyboard Properties by Script
-
Hello there,
I'm back with a tiny issue.I'm trying to set the "HighKey" & "LowKey" of my Keyboard to different notes on the press of a button, but I can't find a way to set those properties.
const var Keyboard = Content.getComponent("Keyboard"); inline function onDrumSetControl(component, value) { if(value) { Keyboard.set("LowKey", 36); Keyboard.set("HighKey", 67); } else { Keyboard.set("LowKey", 41); Keyboard.set("HighKey", 72); } }; Content.getComponent("DrumSet").setControlCallback(onDrumSetControl);
That was my approach (property doesn't exist).
Hope you're doing well and thanks for the help!
-
-
@VorosMusic These are part of the data property. I'll make an example when I'm at my computer.
-
This is how I'd do it:
HiseSnippet 1219.3ocsV80aZbDDeOrOq.sIpQpO0mNwSXIJAbcscZTUwl+jPSrM03312bWtaAV4kcOc2hcnQQJpexxGo9MvclcO3NaiINHEd.cy++M6N6LS2HkOKNVEQbxe5zPFw4ac6MUpG0XDkKIcZRbdh6gzXMKxyx5fogz3XV.wwYsWhLbxuNw76+9sCnBpzmkxhPNSw8YugOlqS41s9q4BQaZ.6T93LZuc8N9JYCkPMAvyZtUIgT+KnCYGQQ0x4Rb1nU.Wqh5ooZVLnyApfo8FotRZ0+LdLuufgD0H8.GYYSZLhKB5NKWiIDm06ll4qYy7u28Pd.eN+zSfuyHvK0hrmAN4VFjp8E.ImLPZcKjdpaO+HdnNUBhmuwsiDtPFPgi5rPwpKImdM2FJPCotxX5Er1Q.wbKJsS0pk8f+17EEJ.G2wZuAB8qYS6qnQAd+p2LSGxzMTiCURfnTwL5TDs7YOy6BY+2ntJwGVh60bqXzR6WUhQwRcjRzfJD8g64RJoUVBeLJbofKYdClH80bkz6VpTxeVDJ6cIULgsYg2WHO35YP8DpbHqTRHADcFpToMKiv8U7gixvCB2GlkVnnz7BoVVhgxSxLiOuuTCE94xsL57UI4ZmDs36D963Xg5pxdi.+XhqP4SEdATMENJxTLfAoTwl.+haVIjFEy1O926c7QkfPluPdzfJ.9.0A6.W9hDduhaYgAvnYVeFO2mk8zQXQKZiIKxbbcjRyNVVx.OH87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