enable Midi select
-
I've searched for a way to control the "Enable MIDI selection" that is present in the sampler module, but I have not found anything about it
Is it possible to enable/disable this function via scripting?
My goal is to, in a ScriptProcessor, automatically create a selection of the played sample in a sampler.
Or maybe there is an another way to create the selection?
Any information is appreciated -
@ulrik said in enable Midi select:
Or maybe there is an another way to create the selection?
Yeah you can create selections using all kinds of parameters with these functions
-
@d-healey said in enable Midi select:
@ulrik said in enable Midi select:
Or maybe there is an another way to create the selection?
Yeah you can create selections using all kinds of parameters with these functions
Yes, I use createSelection("") a lot.
but then I need to collect LoKey and HiKey for each sample in the map and then iterate over them to find which correspond to the pressed key, it would be easier to be able to control "enable MIDI selection" since it's already a built in function.Maybe the "createSelectionWithFilter" is the way to go, but I don't understand how it's working and I can't find any example of it.
Can you give an example? -
@ulrik said in enable Midi select:
I can't find any example of it.
Forum search brought this up
Load from Purge
Alright, I've added the feature using the first option as this is most convenient for the standard use case. I've also thought a bit about the option of purg...
Forum (forum.hise.audio)
-
@d-healey Thank you David!
-
@ulrik Here's a working example (velocity values might need refining slightly).
HiseSnippet 1337.3ocyXstaSbDEdV6LoXS.AHTU+SkVgpPNUnHemDQSqIWIBLX4M.8engcGaOJqmY0ryl1TDuK8QnOB8QpuAsmY201yt1J3XtT7Oh741b9lyYNWb5IEtzvPgDYU9zKBnHqMvNWvUi1eDgwQmb.x5l3tjPEUZmvZuKBHggTOjkUwi0LrJsFJ9y+7K6Q7IbW5LVHzqDLW5yXiYpYb604oLe+iHdzSYiMztYmSbE78E9hH.OEwUQAD2yHCoOmnUq.F8DR3Hj0OhaUugaSuG5UudqcZ6RZS2Y.YvfZM7Z1r816TqwNjla2lVsExZ8C8XJgzQQTzP3P2S3cgyHwuwSbvqXgr25S0D0PNfmSXi1eDy2q2jfSHBYg6MKTULITcWbWlGaJ+YgraEKvdlElAMqBWFjpcEfjkAjVKAR2F63JYApYRz3453S3PFb.AxMlPIQWTg+r.deAnAWs0XxYzij.wTKpztZ0GXC+YyGUtrjNz1GdN7T5E16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