Essential- choke / exclusive/ voice note groups
-
@gorangrooves said in Essential- choke / exclusive/ voice note groups:
Compiling of HISE: once everything is setup the way it should be, it happens in a couple of minutes. However, setting it up, figuring out what is wrong when you not a software developer can take a day.
It is handy for people who want to mess around with HISE to have a pre-built installer. But ultimately if you want to export plugins from HISE then you will need to have the correct compile environment set up anyway so at some point you will need to take a day to set this up.
The more options there are that can be achieved by clicking on elements and selecting possible scenarios, as opposed to scripting them, the better.
You'd think that would be the case, but it is not always so (especially for programmers) :)
For example support for vector graphics. Currently, it is an awfully difficult way to implement it. I have to convert an SVG using some tool in JUCE, then strip some tags, end up with inferior monochromatic vector made up of numbers that mean nothing to me. Import into HISE, then mess around with Paint scripting trying to rebuild what I had just undone...crazy! The way it should be is: Add graphic-> select SVG file-> DONE! There is absolutely no need and justification in my mind to jump through these additional hoops of undoing something that was done, just to rebuild it using lines of code. Not practical and makes no sense. If I can simply upload and use an SVG graphic on my website, I don't see a reason why a sophisticated piece of software like HISE should not be able to do that. No need to have all the graphic tools of Illustrator built into HISE- just need to support a simple SVG import. Done.
This I agree would be useful, although I know it's not a simple thing to implement.
Loading a custom font: click, browse to font, select-done. Then, when selecting the fonts for text, the fonts that are most likely going to be supported on end users' machine and those embedded should be separate from fonts only available on the local machine.
This would also be handy
Currently, you have to know about it by reading the manual,
You should read the manual anyway :p
-
Hey @christoph-hart,
I managed to get the open/close hi-hat script working from the HISE snipped you provided. The previous copied script I was trying did not work. One small step for you, a giant leap for me :) Thank you so much!I need to expand on this a little bit, as open hi-hat can be muted by either normal hi-hat sound or foot hats, and I was wondering if you could help, please. Following your example, I created an additional combobox and copied values over from the ones you created. I gave the combobox ID "trigger2".
I also added the following line to the oninit:const var trigger2 = Content.getComponent("trigger2");
What line of code do I need to add to have "trigger2" mute "target", in addition to being muted by "trigger"?
Thank you so much.
-
@gorangrooves
In @Christoph-Hart 's posted snippet above, this line of code identifies the key (or keys) that cause the choke to happen:if(Message.getNoteNumber() == (trigger.getValue()-1))
You would want to use the || operator (which means OR) to add another note number to this IF statement.
if(Message.getNoteNumber() == (trigger.getValue()-1) || Message.getNoteNumber() == (trigger2.getValue()-1))
This would make your IF statement run when trigger OR trigger2 is played.
-
@dustbro Thank you. That makes sense, but unfortunately, it doesn't work. I get the following error:
:! onNoteOn() - Line 3, column 106: Unknown function 'getValue'
Did you manage to get it working for you?
I also thought that just adding something equivalent to OR would do the trick, but the exact syntax is where things usually fall apart. -
@gorangrooves I'll check it tonight
-
There you go (not sure what you did wrong, but the error message is indicating that your component reference didn't work).
Now imagine this being a part of the official codebase. I would have either made it 100x more generic in the first place in order to support every possible use case (what if the next user wants 3 choke targets. What if the next user wants 3 choke targets and 2 choke triggers with different decay times?) Or it would be constantly updated and most likely breaking backwards compatibility.
HiseSnippet 2115.3oc6Y8taabbD+njt5nqwNw.I.4iKbJPnPsTH0+r.DLB+uhPsjELUraQQg6p6VJtPG2k8t8jEarQ6aPeIZeNZe.5GxiR9X+V6uYui7NJQaQED6VTGhgb2a2Yl82N6Lyt6wihz9h3XcjSokOdzPgSoOzs6Hkoey9boxY+VNkti6A7XiHhk1TiQC4wwh.mRkVbOpgRKuji8y2+UM3gbkuHuIGmmpk9hGIGHM4sNr1uRFF1gGHNVNn.2aVaeespoNTm.7rnaEmgb+y3mJNjSrsfqSoeV6.oQG00vMhXmRK0PGLpae8KTo7+TYr7jPA8PUmtPQoM2QGFPHlZ0oYeYXvQim2wNNkbOJ2JrXpU3SbOPFHmzdt03iscvxknn8nzBuI3UsH7pL2vyo.5VJEc.D5fjPtYZjQKGYcH0SuRsuxHTwRynhKW+WEt208Howu+rw6By.uXg5sMdyV7usa6d8D9lbvtjame861U56jBketaWoRXiHs.4SsOydF+bAaOgRDQF02PL428ieL4i8MXzONhqhGpimRwcECjGqUjAIuwuIVzIR7GdBsHWr8lZdzL656+pNXNNSY5xMIQVuk5CzIJyTdGKN2KIyN2PkYkaXo2V4FVb9f2LfToqFgcW2t9Qxgl7dRyb2ru9LAKsuoPSVSK7utka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The script works great. The first line of code was different from I had (and what was in the original). From -1 to +1. Not something I would have figured out in 100 years. :)
If you were providing the hardcoded script in the current form, then yes, you would need a thousand variations. However, there is a much simpler and more practical way to achieve the same.
The way to achieve this (as is the case with most samplers) is to have choke/ voice groups. So, whatever elements are in group 1 (for example), they all mute one another. There is no need to specify trigger and target. Every note in a group is both the trigger and the target or every other note in the same group. So, in the case of hi-hat: open hat is not the only one being choked. A closed hat should also be stopped by open, as you can't play both at the same time in real life. However, because closed hat has such a short duration, muting it becomes unnoticeable. Especially if a decay is set. By the time decay is done, the closed hat sound is finished anyway.So, if you could create that little option, not only will you make it easier on every future drum producer using HISE, but also on yourself, as you don't have to keep on tweaking and customizing code for the same function. Makes sense? :) Take a look at how it is done in Kontakt for example. This is a standard feature on other samplers.
-
Well to be fair a open hi hat sample should not be choked by another open hi hat sample (same as ride cymbals should not kill themselves when retriggered), so this is clearly a compromise due to the choke group logic.
-
@Christoph-Hart No, I don't mean for one note to choke itself. For example, lets take A, B and C notes.
A can choke B and C
B can choke A and C
C can choke A and BBut,
A can't choke A
B can't choke B
C can't choke CSo, each note follows the polyphony of the sampler, but choke group creates monophony only between different notes. Makes sense?
-
@Christoph-Hart After doing some testing, I have discovered a little bug that needs a tweak.
When hi-hat note overlaps in duration another note of the same kind, the second note is not played. The first note is not being treated as a one-shot note. Take a look at the following examples:
- All 4 notes are short and play properly (all closed hats)
- 1st note overlaps all others and the 2nd note does not play (all closed hats)
- 1st note (closed hat) overlaps the others. 2nd note is open hat and it plays, but 3rd note (closed hat) does not
In any combination, the note immediately following the long note (a.k.a. the 2nd note) does not get played.
Can you please take a look at the script you made and revise it, so that all notes get treated as one-shots regardless of their duration?
Thank you so much!
-
@gorangrooves @Christoph-Hart
I've already noted this previously. It's currently impossible to create a drum plugin until it's sorted :( -
Here was my thread
-
@dustbro Oh, man. This is no good. This is an essential feature we can't do without. This is standard on every professional sampler.
@Christoph-Hart How quickly and what will it take to get this resolved, please? -
Alright, I‘ll ramp it up on my priority list then - I think the problem is that the system that assigns the event IDs is not supposed to accept multiple notes at the same time, but it shouldn‘t be too hard to fix this.
-
@Christoph-Hart Thank you so much. I have full confidence that you will nail it. And i promise you that it will be well worth your time. I will be releasing 15 drum instruments this year, as long as i get the first one working 100%. We are almost there!
-
-
Check the develop branch :)
-
Hey @Christoph-Hart, the hi-hat choke script you provided a while back has been working great for the regular hi-hat. I have since created an advanced version for variable hats which has several stages of open and close (tight, close, 25% open, 50%, 75%, 100% open). These are nested containers and I switch between them using CC64 controller. I have altered your original choke script to allows CC64 to choke notes. It works great.
Now, the next step where I am failing is that I am trying to add a choke script on the parent container (that contains 6 child containers) which would choke a note using another note. Basically, the same as what we achieved with your original script. However, it is not working properly. It starts working, then it fails. It gives me a number of warnings, such as:
Shank100 Script:! onNoteOn() - Line 28, column 36: Illegal operation in audio thread: String creation {U2hhbmsxMDAgU2NyaXB0fG9uTm90ZU9uKCl8NzQ0fDI4fDM2}
The line of code in question is:
Synth.addVolumeFade(eventId, decayValue, -100);
This happens for all child containers that get played once I start using the controller. This "choke by controller" script is present in 4 child containers and works great until the parent "choke by note" script is enabled. I am guessing that there is some sort of double volume fade clash, but I don't know how to go around it.
Can you help, please?
Thank you!
-
@gorangrooves Do you have a script you can share for your hi-hat implementation? Or maybe some hints on your experience? I'm updating some of my drum stuff and would like to have better compatibility with e-drum controllers.
-
@Dan-Korneff There is a built in choke group script now, will that do what you need?