Make the Gain knob smooth the gain?
-
@d-healey C0 will be a KeySwitch, and I will have many other keyswitch involved after this, so I need to trigger a KS first to ensure it is the articulation of C0
-
@CatABC I see, that makes sense.
-
I upgraded the sampler to two and used MidiMuter to switch the KS. When C#0 was in, it worked fine, but when I switched back to C0 again, it couldn't reproduce the logic.
HiseSnippet 1760.3oc6a0raaaDDlzxLMRoMMoH.oGYC5Ao.GCQpeRLLLh+StwHwwBQNN8PAB1PtRZgo1UkboaDB7CP6CPAxkh7Rz1q4ZeK5sdMnG501YIoDIkoTjksUsLjArQ1Y2Y2uYlcmY9jPpZyLvNNLaI4L60oMVR9SUp0gxatQSDgJs8lBA6yrbag2BYhkVuSajiC1TRVN02HVgb54k794CObcjEhZfCEIIsOiXfeBoEgGJs5pOlXYI1s8Hshr5hqtsAitAyh4BnIkRdo1HiCPMvOEIV1bJROB4zTR9tJkzKXTz79l55kVprApLdo5n500JXVrX4GrjVgkPEePYb9RRxWohIgyrqwQbrij77qyL6TqI6Gn9Gv9DGxqrvhAZR0fS1W7VLKSgIJjJsQShkY0ttIGII4OoZnSKkuS6VJ6PLI8jG57tg2DpgZD0AJOWb3kJF7zhBu7QfWBPRNBjl2GR2TolgMoMObFAdtlx1TN1tNxHdrzesRy8OoT1fAqfxWrE5.7V1vfdZjsb97KnB+I2xYx.wJGt5gHaUgEtiKrFM0UT8t7rXCLOlCI6cBWzc.sSPY8QQY8AnbgQQ4Bfx0coFbBipxnOkww6RylKyaxjIcZRc0r6.Z.22D6gXxm515UX6r4TWYEU8h4fE8F32zgVxhNX9ZbtM4UvvrQjSZPY130c4bFcAUg6Jpd5CPO89zSqO8JL.8JjndGMBFUow2nzFSiJ+4tQUdxaTiajJefQcTF09uXVut2Myz8Mm3woMyxRXsILsHip8vTLK0yUs.77wxE2agPVi3ohTFbpnnYJM7yUDYgL51TBe21X5fxeJEjfA9WOe6MQbjH+UfLXcsw1bh.BxahODpd3mMKsxlXmC3r1P8iikpCRxxLcsP73YdE0mBl.7AwR2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0IiJk9T.UpfsaFUpgPkReFUpYTolV9JXF9qOnO8K1Qwaq.7EzU8Bkp++DKuvvKsvf3k9t69S+5kTdou6susz6SfW5MRhWJPibz4kl669qyRdo.P+iKC7ROwv6TyQsvv3n9i8wQs7LNpSabTm9InNk7UTNiV5DkV5UNqnkN7T8STJpEl8s8cofhZgYTTO8TTmezhaejmuSN5pm43c7otNQccmdZrST3dlQo8rA0SB5sShynExvl8RC+JChDFW0SBX2Tu+WljVYGwXUsiWJnET96kFFw2pion93pXgwUwhiqhkFWEKOtJd+wUwG7wUTzcxZtbVK+2I.K9pU7ZDRV1m.u2SFo+CXHo9dI
-
-
@d-healey I studied the relevant videos you posted on Patreon, but they don't apply to the problem I'm facing now.
-
@CatABC You're trying to use keyswitches to toggle MIDI muters?
-
@d-healey Yes, it's back to the previous problem. I need to switch the Sampler multiple times on a note. I made the switchers according to your video, but they don't apply to this problem.
-
@CatABC said in Make the Gain knob smooth the gain?:
but they don't apply to this problem.
Could you give me more detail?
-
@d-healey
This snippet implements the function of switching two Samplers on a note, but it will fail when the third KS is triggered on the same note.
I didn't use the key method you used on Patreon because that seems to be a bit buggy. Here is the most basic method I usedHiseSnippet 1721.3oc6aszaaaDDlTxLMRoORJBP5Q1fdPJvwPj5QhggQ7K4FiDGKX43zCEHXC4JoEhZWUxktQHv+.Z+ATfboH+IZ60bs+K5sdMnG501YIoDIsoTkUhSsBnArg2YmY14wtyLexvMrYFXGGlsjb9CFzGKI+wJMGP4c1rChPk1YKAgCYVt8vaiLwRaLnOxwAaJIKm8qEbHmaAIuudy81.YgnF3PRRRGxHF3GR5Q3gTar1CHVVBsc.oWDtqr1NFL5lLKlKXMYUJI0GYzE0F+HjfsLJR2G4zQR9VJU0KaTw7Nl55UWtlApFd4VnVszJaVoRs6trV4kQUtaMbopRxWptIgyraxQbrij7BavLGzrC66o9GvgDGxyrvhEZRMgS1m71LKSgKJnJsYGhkYiggIGII4OpQXPKqeP65J6RLIinGF7tp2FpgRDM.JmIt4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ZP1fOXfvAoi2PH6T2PPaxSILxGjyDDYAV4dVymFzXveVZIhofTzwqk7h8Qa9JME53yTZQddStqQWw0RmDTxE+4Oi8wAjanM1jzquEtN8HnhLPQXieNjtagbs3CoFOOtKix52gQIFQmFYeLfqocarcTaOQGBP.gL5FR45qsO1BihNY0Ws1CgNvHaHNgmwXg1Y9iFIw70Wn3atphG2pyu3Fx9gMtg8YtbBs8tH3R3ygBnPiilv.7FX3zoTrknnpbFQoC+0kDq8mfmZ5s3efuB1TSrVNXSsgaF0EuwvReOAPFDCah93vlr1e8fe8bGahVhfShQ8DRnmnDwntELg.Mtp8IEiKQjXalcuH7c40FRTOJwFHZLkAqioocEYvgK+i6Umhf6.MwfmatmiADXDW6i9RqgqkC9IDSdGsnBFRVOJ46irMgTlw4OTpKMeCkR+r.kpZJTp4anTUlWgRclM6K.foRgRkBk5rAkROEJ0GDPozSgRkBkZd4OAyje8AyoewNKdCE.uftpWpT8+mb4EFbokGGtzWcqe7W9.EW5qd4Kq95Dvkd0jvkBvHmdboE+1+7cItTvP+8TboSKtzxSBW5ObBbo0RwkNugKc9GT5bxeVxTnnoPQmAnnkmCfhFntTnnS.JZ4TnnoPQSghlBE8cGTz2GmQOjgM6oF9U2EO5urGEvuod+GgjSYWwZUsS2SnGzB6oFFwU0oDTeVEr7rJXkYUvpypf0lUAuyrJ3c+uETLgw5tbVO+2F.h6F08FlQV1Grs2yDo+EPmCvVF
-
This is exactly what the video is for, did you watch the one I provided a link to?
You don't need to use one script per sampler because you want everything to work together as a single unit it needs to be controlled from a single script.
You can use the snippet I posted earlier in this thread to retrigger the note and the key switcher from the video to change the samplers. Then it should be pretty much complete.
-
@d-healey said in Make the Gain knob smooth the gain?:
@CatABC I posted a video to Patreon at the start of the month about keyswitching using midi muters. It will probably help you here.
Yes, I watched this video and followed it, but it didn't work.
-
@CatABC
In what way did it not work?I'll make an example for you in a little while.
-
@CatABC said in Make the Gain knob smooth the gain?:
@d-healey said in Make the Gain knob smooth the gain?:
@CatABC I posted a video to Patreon at the start of the month about keyswitching using midi muters. It will probably help you here.
Yes, I watched this video and followed it, but it didn't work.
The problem at the moment is not with the MidiMuter, but with the third KS, it is not possible to trigger the playing of the pressed note again and the fading out of the previous note
-
@CatABC but the key switcher on its own works?
-
@d-healey said in Make the Gain knob smooth the gain?:
@CatABC but the key switcher on its own works?
KS is valid, in addition, the KS system you made on Patreon, in this case, it has some minor problems (cannot stop notes, can not normally switch the corresponding articulation) -
@CatABC is that my keyswitcher on its own or your implementation of it?
-
@d-healey is your code. I followed the video step by step to reproduce your operation.When KS is before the note, it works fine, but if KS is triggered at the same time as the note, the problem I described will occur
-
@d-healey said in Make the Gain knob smooth the gain?:
@CatABC is that my keyswitcher on its own or your implementation of it?
function onNoteOn() { local n = Message.getNoteNumber(); if (n >= knbLoKey.getValue() && n <= knbHiKey.getValue()) { Message.ignoreEvent(true); knbArticulation.setValue( n - knbLoKey.getValue()); knbArticulation.changed(); changeArticulation(n - knbLoKey.getValue()); } }
changeArticulation(n - knbLoKey.getValue());
I just explored it and found that this line of code cannot be deleted. Keeping it will not cause articulation confusion.
-
@CatABC said in Make the Gain knob smooth the gain?:
but if KS is triggered at the same time as the note, the problem I described will occur
Aha ok, I think you will run into an issue here because two notes triggered at the same time, how does it know which one to process first?
-
@d-healey said in Make the Gain knob smooth the gain?:
@CatABC said in Make the Gain knob smooth the gain?:
but if KS is triggered at the same time as the note, the problem I described will occur
Aha ok, I think you will run into an issue here because two notes triggered at the same time, how does it know which one to process first?
// articulationSwitcher/onInit add these const eventIds = Engine.createMidiList(); eventIds.fill(-99); reg lastNote; // articulationSwitcher/onNoteOn add these if (eventIds.getValue(lastNote) != -99) { Synth.addVolumeFade(eventIds.getValue(lastNote), 500, -100); } if (Synth.isKeyDown(lastNote)) eventIds.setValue(lastNote, Synth.playNote(lastNote, Message.getVelocity())); } lastNote = n; eventIds.setValue(n, Message.makeArtificial()); function onNoteOff() { local n = Message.getNoteNumber(); if (eventIds.getValue(n) != -99) { Synth.noteOffByEventId(eventIds.getValue(n)); eventIds.setValue(n, -99); } }
I combined the previous code, and the first two KS can work normally, but when the third KS is triggered, it can't transition normally. I'm stuck here.