Midi Controller, Modwheel, and MIDI learn



  • I inserted a Midi controller with CC1 modwheel
    When doing a midi learn on any knob of the interface, the Midi Controller doesn't work anymore like it is bypassed somehow, until I remove the CC learned...
    Is it normal behaviour?



  • Yes this is intended behaviour. If you assign a CC to a knob, it will be "consumed" by it. Ableton Live (and a few other hosts / plugins) also work that way.



  • Ok... not good for me then
    I did that because I am using the modwheel in a global modulator, so it is available for all targets in my mod matrix along LFOs, ENV...
    Now if a user uses the CC learning and loses the modwheel in the matrix, is there a workaround?

    Hope it's clear... ☺



  • @ustk Assign CC94 (or another rarely used CC) to your modulator and forward CC1 messages to it in the on controller callback.



  • @d-healey Thanks
    It seems a trivial thing, but I can't figure it out...
    As soon as the Knob learns CC1, the controller callback doesn't even enter the if (Message.getControllerNumber() == 1) condition, as if CC1 is bypassed, or consumed as @Christoph-Hart said...

    HiseSnippet 1077.3oc6W0raaaDDdWIsNQJMoIE4POxC8fDPpgThaaBBBph0OABwxQvzws2RVQNRZgI2kfbkSEJbQe.5aReIx89xz68f6rjTlTNLNR.wE9P2Sbmclc+1Y9lYGNJT4.QQpPBs5gKB.B8KX1Kj5YclwERxftD5cXC4QZHzJQztKB3QQfKgRK+Bi.Z0Jj3we+i6x83RGHSDgbjR3.6I7E5LoiZ+RgmWetKbnvOm16zdfiR1Q4oli3oLqIIf6bLeJrO2nVIFgtUOWgVEZq4ZHhPqrqxcg8L06jI5ejHRL1CLSZQrwMJQbekmqAwluIclI7bGs7dGQHT1nLuP4Duv8YCEthykm4Mta7BVYVj2ePKcYvqUd30rP30pH3QyAuJIv6dLamPQfNaEC1tEafDCTS3XHHOrRzkTZLk0QgZH0a6yOF5GhSN2h56zr4CrdTylMd5j4RGsPIsTx8UZ3Ux5Mp8q0pV6zZWbkISJZIygDp77fPyp2tlENDSrpODgJFM2dJnyTY+49iMJZ8rmY0pQp1lQ1WKsKp.6dxNMdZQ1fJFo7fsCBERcwm7Qbu4P8FKs+zUuDFpY3kb6pKiAvCrNwrMK0CiPqRA15iSAxyPcRhK4TTIGHE5WE.oyubRBIMvZnKo.DUUGSVtSJYw1S3BgDAtI2f8RoZbKRL1ymtRd8ftbMe41f6HdJAPnVXtLztvIX5bBGrJqKDcrVEfYlcT9AJo47oU9jG5ub9AZ811KxlLsMI29bKcZhXx9z2Sw0B4zCEnyyraeIKun76JNx10eeP6zKRBpSxe2C3gxQbI3QFOcYAmpaszbgF7yj9Wu+rtqJ8gohOyHN1eQ2hgT2SIuS3pmgUTn+AkPlAhoyzlYGEW16CRiQvnbm6w0qVgwTVMcAjxsRprIcUFIzKxW18Jory5B26wFIzNyJFukJ.uH25pFuoEwuMq2jIfiNCrUX8+4q9J14gxMSfxMX6qDQPLH9pjusdAHgPiyr0G6Q02+O+1ettOpFr1OpRKu1247knVkUlS+Bdxpx05WTuVjItA8mTZzGzk1cY1B+.Onm7DvCKPmRr5BS3y8zKktJwZnRpBlojBm7boC.cnX5THL+8nvK2y0ZrcrLI2u8AfGvixQ19l16IjXsUzmAeV8KqaiQEFG+ZVBzsLYFVWqprVM+qRYsljFNiSLxj15SC3WGAGxiQTVDd.xFB0Fixjcw9nxdu7mZa6qT5YqVEQzNkZczE6X3htnxqWn8+ev4yITNPM2zIzPNlKiMBwvfpMVu2APjHwtbhLMgTxD2Sl2zL23YrAoa7jyvQ5hsLyooK1Z4h+mbF9bmP0abRHmlT7aFKAu2x3eArJ9un3bqy6b03a7wrj233Xb1eK5cJ1hGtwV7nM1hc1XK9tM1hueis3G1XKd7kXgojzymqU9IodnfQ8R5.l1SZp7DyxI+KP8VDkr
    


  • @ustk Ah I see the problem... I'll have a think



  • I found a workaround, but it's not userBulletProof...

    • A hidden knob connected to CC1
    • The knob callback connected to a Constant Mod
    • Just need to hide the line in the Midi Learn Panel...

    The drawback: the user can navigate in the midi learn parameter list via keyboard arrows and delete the line without noticing anything...

    So my question is, can we connect a CC to a knob via script?



  • Nah that sounds like a terrible hack. I suggest you leave it like it is. We use the exact same setup in HEXERACT (MIDI learnable knobs plus a CC modulator that won‘t work if the Cc is consumed). Nobody ever complained about this.



  • @ustk

    Just need to hide the line in the Midi Learn Panel...

    Which line?

    So my question is, can we connect a CC to a knob via script?

    Yes, and it can control a knob via parameter ID too.

    HiseSnippet 950.3oc0VstaaaCElzNLc1atncXO.D8WNCsYRY8x.JBlWrSJL5RpwTW1FPA5XnnhIhDofDsW7JJvdM1aSej1av1gTxVxaZYwCXEK5O1majemy4iGxIYZtHOWmgvcd4hTAB+QjfEJyzgSYREZ7HD91jiY4FQFsP0AKRY44hPDF29YVE3Nagbe+1Wd.Klo3hJUHzoZIW70xDooR6jAOWFGeDKT7RYRMue3fwbsZnNVOCvSahGJkwufct3Dl0sVDDd6CCkFcVfgYD4H7VGnCWDLU+SpB+OUlKOKVXE7QAvBUn9HcbnEw1+iFNUFGNYYdmifUYRUUncQU3SHGKCkqzWUMtiy.sJh50CbqqBd9+KgGtF71p.d2kDvyjolJKVr8gjwJnQEwfVPcXU3Kp0uhIC0fGJytIrKDGkABqhn+i87tO8Qdd67zdc60EZD4F5bVF84J8Y6Q2mtLzyElg5jTsBD5eOm06sySilo3FoVQ0pSzFwKT82o6a51o6a69msDE0jI6pmoiiEYEVkQz9GCoFz8K1wklOYVxYVmn6uO0emdcov2aJ9w9YQ7b.s9ddzOi5u2SneJsw04TV7LQeaxtLTWpratvTXZ9C7KJFqamOkoNWDtJx2tddXYzYWQB1W4v+8AfBaxR+fF65LmsudLGdQOoliZ0Xkz7hTQobE2xuAtEproB+6aGOhYXV5VoNvuTQlQZgCdjXNbNtf70gLRjegQm57sjIfv8LNq2tjZFDKCEYHIr22h3JcnKWcT+G4CVrR3Wd0fDYXXrXhNWZqVUSDF+tD1k0GmjtD7iCcakLIMVPsyg7ggEYvbBfNassMwMbJQGVhXt7LQLJo9.qe3cvbsz.4OCtPHd65ixmEEIuzJQCO.kylKFqljI.Ng8bD5udPDFGnCmEyLqOivt2kFr4S8Ci1CbJHOWTev4FL3vqwAGM1bulv8tjIRCeZy3sUC3EHI+Wi2xwv8HGFEI3lJvtE4nu+87L2as5hQGa6YUWLtF86u+hQDZjHlsVA76jglo0XhCZ3pSb60yr1WuL6e3BtqlIXAN8FCy8iItB6MI.6Z72b.7cHSX+efP7M5YFo57iYlL27Y3U.AvqD4B.pJkHF1HBtk8BsBYOqrEPABUnS32guRi9VYboQ+kFeurGILdl907h2BXOZ9ANMPdqbuwsC7XaPl5ibuOnn1.2NJeMmaG98.n5zbD6swQ74abDObii3QabDOdii3IabDewUDg848e0LiNofuCJlbn6kQX7gJFvbcTeze.rLgDVD
    


  • @Christoph-Hart terrible... awful you mean 😂

    @d-healey
    your snippet needs to enter the getControllerNumber condition, which again is not possible when using CC learning...
    that was the idea:

    HiseSnippet 1276.3oc2W07aaTDEeVaugZWboEkCbBspmbjJt1ljBBNXmXGGY0lTKbHzJgTY7tisGkcmYY8rIwIJRbfqHtRuwUtz6bKGPhCbg+DJWPha8+fva1O7NaiSHVhTQv9xNuYdu426i427ltdbSx3wbOjV9sm3RPZusduILwnlivTFpSKj1sz2DOVP7LBEs1DW73wDKjlV1MjBzxmCE76U0WCaiYljDQHzNbpI4QTGpHQZ2FOjZa2FaQ1l5nr5kazwjyZxs49.dxpWA4hM2EOjrEVtrL5HsEV2hJ3d8DXAYLRK2ZbqI8Fw2mEt9cnio8sIxAUQ8.CEJtM21RhX42nlin1Vci86wHvJcShBYCiBKpuI0hNUdRz31ASXjngZ7PKyEAuppvqxLgW0YAOME3kKDd2QumoG0UjLiDa2TuCCRTCvPJPEVgqEk4oZ5M4vJXhxN3cIs8fAS0nzCpT4dFqToxReZwBx+TlMkQLF3yLETNyfyFQsrHrGx5KshG2tjI2wky.6cOi8v19jkJV3nhExe+6uJahXDkMrb4xEKbLXv38cHQzLVoR2cpAu6RkGKmIvrMw118gDeoytiRro.ns3BxiYkVpvQExW33yLyfAyZpHSYS7l0rxJRuKPsRLem9DuXGNZcPhIclW+7y7pEllggEkExYcXTwicIryqd.EEKgJirQfB9RDTWbqn5hd1TKhGhZIKJlFDQAXN571W88qsxInKgAxqOzmBZWMk5u7vE+y5yi50RotwK13upi97NsvBrrDOxm.+zk3InxPnVKxd.2QXAed8Vjw6J3t.EvzBHfr5R41GLkh4kNMljv2TqgCrFaRW9XpLKmLSmSbvGnRi4Fm.5XErcTGWahgj+qJPR4A7SvwH4bKnGPJ5vshPsIsOwF4nRT9zS.9T2dzCiiF+3ye9OWer+fATXS00MrVSlkm5k2TDwIE5kss4XAb3ZaJTPI802QWUTUE+E8IJ96I6zXepkXDrEZkyfPiHzgiDxQeWRUUX3Njk6QDrGqKlA3u+vXZ47KDGSnBhShz2O2ObZZo0jh+sSNMPbPhFhN.+vwobtbWhBuDGxvTwg9c2FymkpoXIWeEKY70orT9PKULlkMHDHMzMzC9NUHdY0RpuLIDuRpP76cl.FH3mlQ.KVbetG.ekhjveyAJC7VcseEzZh7ihvGSQ2ufTQWq+kP2YuoBpj3V91XQ5KQkGRhlPdvS81J4MRL3.4D0NKtRtY8xB26n2kJLGMa7lYF3EXztpwaTeJE0Wev.hoHAr4za+j2vMk7VS6bLfVbijNGSwSdNcN9MxKhZQrwoBfeQXg5TJyFyn2Rsro8rrWtKc+G5.7hqDj.23ZSk66pGDXuNA3fD+0G.eaIW6+Af6mw8kM.rIV3EzDwV9N8.RaSB.UFbYfrmTsLxKPBGWQNVBndDlUvfSgeQSVUNVKZxpwS9FYObvld7mYF1Wo7n4MBj.9MK3Qf4gWiBiMl1MpL1.swQelooj76Cfnyr0n1bqwGN2Zr7bqwJysFOXt03ilaM93KPCYmgq5K3Ng06IuBAdQEzqp5fvDrxII0WnFrScXVjChS9vIBOgZaxqyrT46a6aael0HE9Zqq2tj8UOwErmfCIkczhuXi+3vus9pBnHtuufj9oBcX6Au+H7zK5JxuPnT38U0mgeE5ru15lS+Jo+4+O5U0R6Ua1c8vmXnsNCCzmgR+a.3AB8OA
    

    But it's rubbish... I'll probably let it as it is, as Christoph said...


Log in to reply
 

18
Online

540
Users

2.0k
Topics

15.9k
Posts