Changing Hise Legato To only 2 Octaves???
-
@natan Why not? Show what you've tried
-
@lalalandsynth updated the legato script so when switching note priority while pressing more than 1 note, it will update sounding note to the relevant priority.
HiseSnippet 2101.3oc6Y8uaibaDdks2lH051j1fh9mLBAERI9jkrud4GNNm+cNiXemfk6kBXbHfdWJsDlhTYWJqS3fd25iPeTxaP6Lj6pcWq0xJNNWaBpfgsWxYH+32v4iyR0NT4whhTgNkJe93ALmR+N2Nik5f8CnboywG3T5CcOg0ipUjNdg7AZxHxy38BNQMpcHWEx0ic1a7.ZTDy2oTok+ZzsRkWww74Gd5dTAU5wRaxw4kJtG6DdetNs0167Mbg3HpO6bd+LV+3cN1SI2WITCAHtraSmATuqn8XOmhlsjqSoeyg9bsJrilpYQNkVYOk+3NApQRq8ujGwuTvvGZ4zAFHayGoD9HhwVc1OfK7amPEQNNkbamRLKaIlOv8TtOeZ6oDz6Y5fj5QV9nzR4g2x4fWqrvqYF3MKjbxfnUrHBlXk+PADaxgFLDD2AWIyglikZlLBiYYBQu0g3661lq8BJFiKU.Fg.xOGXLNvtp6gc6x7zo.bE2i9G+7GE+81o+251gKYljNyj+mMOS9V50LxWyjrPj7ZMmjr+0hljMXgSxdgmFl9yCoxnApnbCbGVe94JIxBoM92iXGEx99yvnY112WQCKrqe3oGAKxB8oCUOLzrsX29pgRctsAKOuj8V2yj8U9etj8RklMU58csBvo8f34ccEF04b3vZnyR8+StPfMRStlFRP45NivDOx1j8UXVltQOldeU+AP7TpqUM0jp02Z0JqVIj0iDvD9OWAqGvsKd0V1FGHniYllgVezm+4aUwzbefaNgCS31jCk8fHbCuPFvEmF2ds5aUIwlFcgMi0.eg1foZ80K2cnzCi6QD3zFu.l2Uj.3nFFLd+UhPMB+GDMDILuFO.3WPGbo.yfRFNBX0IFiP7Vq9pUdypUJKTdTAQ.Hs0FeJrpJC+zUERpIIbY5hFrtLZdYI4KAqepwCI4KHUqhNMw5XHC1yJIBnoIqVYJzRP+7w1yrVMK3v.UyEBZeEX6SM1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UpAEhF1ucHCecxugMNpVcH8nYbkOKftUF.Ex5qtlk.oerwVvszX5OMotrpZ3RXgpsBSCLFZ4RxUrwoaTQByNJa+fkALcvuysuyVE1hUD1sTC1bp9xvV2V0TFFJyKfiLTJ6D60CC+rf7RAUasnEacq0ZMmprLuOzsWzDtkM2s.LyVnoNu8CqN5cxTEVd0BWc0sWbUV8vanq8fnsOi3RFqlQ2yb0T2T3KtzMAJWgReUlTI6aHhWNZw8j7FiRiVW1WWDMzozJ4u9O2E61I8r2EWFCUxikb8KFvj21cV5DeAd3cud7ATMEuyv31.6Fvf5MQHT5.10bOl8FDK6d.K5JsZfw13W50oz6niuF736WDuaHGtO9UAkpo575z6g8i1Yb1GFg2NvzF9mWtSf4NARM4q1AJfVMJoLZ.V+A2cEBRZC+B3K2H2UxVNAic38GHXGJulI.R2fw+HvxcoCE5jVye28mpjpAAJI2K6EaeFSGx60iElE6Etf1UqAJKskOXmyXBFM6kz+Q6bBWxng.OwtmbQqezWOcgwq+hqEtDLmh7K2uTpk+08WJk8Zd6cJE1DB44tPsbcTCC8XvrKA0.TKqzRnpi84l3y1uLHou4g+M7ItyV3ykh6rURmuUli9TuP024YUow8ouqoEXcKMecwkcOEelzxwnbC941rQSG7fmuyyCo3GAhsE6yF2Ce17d3yiuG972tG97j6gOe58vmOat9fewP6NTq5aS4fFZen43rRkNTRgculc5N+Gx+YKiB
-
This works !! wow , awesome !
In terms of analog synth synth behaviour , one would need a way to not retrigger the envelope , or have a choice of whether to do that or not..
-
@ulrik said in Changing Hise Legato To only 2 Octaves???:
@natan Why not? Show what you've tried
I Just Added The Line
Message.makeArtificial();
After If Statements,
It Just make The Notes Sustainable, and Stocking -
@natan Why do you need it legato for only 2 octaves , just curious ?
-
@natan like this?
if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73) { Message.makeArtificial(); if (Synth.isLegatoInterval()) { if (eventId != -99) { Synth.addVolumeFade(eventId, 10, -100); heldNotes.push(lastNote); } } eventId = Message.getEventId(); lastNote = Message.getNoteNumber(); }
-
@ulrik
Similar To This, Let me Check Yours Thanks Lagend <3 -
@ulrik I am being stupid and super rusty in HISE.
.
I am unsure of how to name the switch panel in the script processor interface when I dont have access to the component list interface ...that window will only show me the main interface.How can I name this panel and set it to allow all callbacks
Can I not reach this window after I have created an interface ?
-
@ulrik said in Changing Hise Legato To only 2 Octaves???:
if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73)
{
Message.makeArtificial();if (Synth.isLegatoInterval()) { if (eventId != -99) { Synth.addVolumeFade(eventId, 10, -100); heldNotes.push(lastNote); } } eventId = Message.getEventId(); lastNote = Message.getNoteNumber();
}
Perfect <3
:ThanksLast Question:
I Need The Rest Of Notes To Not Trigger The Legato Script.
Let Say I Hold Note 60 ( Which is In Legato Range )
and Press Not 24 ( Which is not in Legato Range )Note 24 Still Do the legato Thing, I Just Need it To act like Normal.
And Getting ThrowEDIT: It Looks LIke It Works :)
Let Me Investigate More -
@natan Is what is outside the range of your legato playing another sampler ?
-
@lalalandsynth
I Have an Idea to Use The Lower Octaves for Chords, and Bass Usage, -
@natan I see , was just thinking if it is playin different samplers you could just set the range of the one that should be legato. THen it will not see the notes outside of the range
-
@lalalandsynth you only need the SwitchPnl Callback, you can use a script slider with the the range from 0 - 2 so that you can switch between 0 - Last, 1 - Low and 2 - High
There is the paintroutine and mousecallback, you don't need that, just add a script slider and put the code from SwitchPnl inside the sliders callback.
Then you have to change all "SwitchPnl" names to the name you declare the slider to.
You'll find them in the switch code in Note On & Note Off callbacks -
@natan You have to have the same if statement
if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73)
in the Note Off callback as well, the notes are generated in there too
-
@lalalandsynth here I deleted the panel, commented out the paint routine and mouse callback, added a knob in the legato script with exactly the same callback as the panel, and linked it to a knob in the interface
HiseSnippet 2431.3oc6Z0uaabbD+njNiP5zzl.ih9maIJJHcknHkTbbhhp021pVxVPT1o.BtAqtaIuE53tr2sTTrF5cqOB8e6aQdCZmY26SpiTLJxN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guo45hXpPe20kQXjqGGuLBeHAwr.riIdzMGAcES6xzG6yVPqpc3NbpeDfIBLJvJ5wbAdKT3WoOClLnpFmBOzb7f5SN5RbVh.gVdYR+3SHz.HkAYJisjV8PiTgFejnFHFcaUigdcOsOil5T2jEh76u2b6E4H+NatMVgX8hxDfZAFCzfCjyDy.qHv9+xn6YyHh2cfZ0x.l1zSZrYrU75j08WLNtXjfbdtUx4491+umKB.oh1DRKOim+I7h.gvLUGd4hpUg2rHcz9CB8vQheSCleHyjQWrpjAlH1aTWqWENkEnq.31jNG4TXFDDZPuiCX3at+R1nvZ0gbilYZl6VvrxnNArdxKYwJzO1MVPrzMzeZ3bYgzPSXlZoByAzLZ7jjKXiRiRQGlYV13dK7OYxu0X2a170r060DZ8ZJMco8VSpIJsGJy4DfdnTuSjT2O9mYzuTPSVyZOVSrEqozbk9EhlbuRXHatSt3FgPIBuw8KH5s5oJrqpYtopI2SUVvvwP0tW.1uA3RFttApm97yz8z8ywkjYeecIY+juXrbW4yGfaEqxrsx3cZ8f3EcT1Gl7EZkd0WozF+1wFzoC+J8US2g62KTA5vA8fbFqReg8afjUWVG5.eEI7BtvxmKtf4dpTy+Guq+Z9Y6NbtkycubrN1l2quOaOwkLeXqRqieAr2nsyXp4u4lijBYeOof6jcu+DF3s51kEjU2Kzf1Rof29Ikxi17DlOil8JZ9CadHWvnAfehcG8E+3uQ9B2u9c1F0kfIyjeYbsky++lWao4Pz6dDEBTgjbanSy1xAANLPSDBn5BPqzbHjn44l3ylqKT3pe3+.ehFrE9bonAaEO3Gk0nG0IP98NFvZLV9SzT.6Vn+Gqor8Q3yjj+sErsaZtpe9263ft6k.+SwxrxcPlUuCxr1cPlu7NHyStCx7U2AYd5TkAuassFnj8Loh.gi2SWnrTo8DTHRVG0a8eAoqjo7.
-
@ulrik said in Changing Hise Legato To only 2 Octaves???:
@natan You have to have the same if statement
if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73)
in the Note Off callback as well, the notes are generated in there too
Thank You Ulrik
Could you please Give me a Hint, I don't Have Confidence with Midi Scripts.
: thanks so Much -
@ulrik Thanks mate !
Now it works for setting it from the front panel.
Did you try this with a sampler ?
I get hanging notes on a sampler, looking to see if there is anything else that might cause this, bit of an old project.EDIT: Tested the sample map in a fresh project ,when I play notes with the legato script enabled, I get hanging notes , works fine for the waveform Gen.
-
@lalalandsynth said in Changing Hise Legato To only 2 Octaves???:
@ulrik Thanks mate !
Now it works for setting it from the front panel.
Did you try this with a sampler ?
I get hanging notes on a sampler, looking to see if there is anything else that might cause this, bit of an old project.EDIT: Tested the sample map in a fresh project ,when I play notes with the legato script enabled, I get hanging notes , works fine for the waveform Gen.
No I've not tried it with a sampler, I don't understand the difference I think it should work the same.
It's the hierarchy the same? -
@lalalandsynth I think I found the issue.
I had to go into the sampler settings and under "Retrigger", switch the "Kill Note" to what ever and then back to "Kill Note" again.
I don't know why I had to do that, it's like not all settings are there from the beginning and you had to confirm it by toggling the "Retrigger"Maybe @d-healey or @Christoph-Hart or someone else, could explain that?
and also you should check that the GUI switch is connected to the "PrioSwitch" in the legato script
Anyway now it's working fine with a sampler as well
-
@natan can you show what you've tried so far?