Connecting A Panel To Another Painted Panel, On Script Processor



  • @Christoph-Hart
    Hey Christoph

    I Have A Painted Panel Buton On My Midi Processor, And I Want To Connect It To A Panel With Exact Looking Button On The Front Interface. And I Have No Idea How To Do That 😞

    Any Help Is Much Appreciated

    HiseSnippet 1677.3oc0XssaaaDDkxwLnVoJMAsuz215GJnATUHoIkDiQPb8sF2F6HT4jVfff.FxURDghTfbkcLL7uW+d5eP6r2HWRwl5319Porj4N21yL6rydYTVZ.NOOMSq0Fmc4BrVqOWe7kIjY6OyOJQ63CzZce8S7yI3LDmzdWtvOOGGp0p0c9AJgVartF642e5d9w9IA3RRZZuJMJ.+7n4QjRpi18mhhiOxODeVzbEoc183fzj8SiSWB34N5lZK7Cdu+T7o9TwVSWq0cOLLhjlMl3Sv4ZsVeuzvKGOK8hDt7uJJO5cwXZCKswfg3jOJMNjhXJUs8mEEGNR524ZfUFUFEtCOJ7U5mDEFUPuLZ7.FCToFpwiVq8wfm0eO7LaBdqo.u04v6g5iCxhVPJ4Pw1WJnVhNqJviyUas6eOcTm16mlPvIjd4XxyvQSmQLrLM2ZmJL9knPxLi9b5cZCiN4Dz49YnQoWfy16rSQOAIE2OLbjeBN1XSIyM6hrcoe2ZGDBQMfjSuPeheuE9jYJFHHCCgsQ.QCPgU5sC.U.oeMyPVVlcsL85ZBe752suqxaVlCqQ2xytaemtdpzsMoec5ZMfwyxzt3qTq9lTNrWspSErkkKnl61csrsZRE6gMzMJbT.lDwJb3fzqBcYGBtOXUEBpHPAoq7JEzM3mkxIBfRyx6klhwddrveg24xn5ZQ+yxyUDgDscs3CKhddXYjvwoBGPkpb3Fv1dPwvWm1ELoxY6XVYzyoxXqsKqqJPoSkvnkHjHP4.KUl1UCvCYMAyARNnFKqJiy7gJ0ziACJhzthDzs4n0sp6OXXEt18q2OcZKPrs.zqBQKSdzvdayJttrmqv0pVpwJL66TAQNUrgsJOgqTKzJ6d5zhUFVLK5.wvry1UIKCLB.QS6GtpVJIGEJRg.cPzzh4IBT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QQjfYMi20Z.uzah3+X7Jt7kN5GNYBNfTB100O5Wus2zxm.T36CaJrrXVDs7zoKmOF1YT.FPRBjJkSKcrFMkk21TVwbLNIj03OfGASKYcFJSKISs49AYouMfOUjd8NeFiBfoD1sbsg9Iz1HqhZx5l8L0lCUudaP.MT7c.1aVG6agNaeKzw4Vni6sPm92BcFbKzY3GUG5BGe+RR5b9zDfvnCY0oZ05P1JKrLRs+zPJfEa
    


  • Why do you have a paint routine on a panel that nobody will see?



  • @d-healey
    Actually, It's A Painted Keyboard, And I Need To Move It To Another Processor So I Can Defer My Main Interface Callbacks.
    And I Need To Make One On Frontend To Send Mouse Clicks To The Back End One.



  • @Natan

    Why can't you use it in your deferred main interface already? But moving it to another script won't help anyway because no-one will see it.



  • @d-healey I Sent You A Message Sir,
    It's Uses Midi, And You Already Said That I Need To Have 2 Midi Processors, To Use Defercallbacks.
    And I Need To Move The Realtime Midi Stuffs To Another Processor



  • @Natan said in Connecting A Panel To Another Painted Panel, On Script Processor:

    I Sent You A Message Sir,

    Yeah I saw it, but you posted here too, let's stick to one place.

    It's Uses Midi, And You Already Said That I Need To Have 2 Midi Processors, To Use Defercallbacks.

    You only need to defer callbacks if what you're doing requires real-time processing. An on-screen keyboard doesn't require real-time processing. The message thread is fast enough.



  • @d-healey It Has A Scaling System Attached To It, And Once I Defercallbacks, I Get Doubling, Or Lags.

    The Scale Box Need Realtime Processing I Guess.



  • @Natan said in Connecting A Panel To Another Painted Panel, On Script Processor:

    The Scale Box Need Realtime Processing I Guess.

    Then this is probably the part you need to move to a separate script.



  • @d-healey
    It's A Little Complex Because The Painted Keyboard Looks At Combo Box To Change The Allowed Key Colors.

    I Sent You Another Snippet
    Please Check Your Inbox



  • @Natan Post it here so others can see it too. I don't have much time at the moment to look at it.



  • @d-healey said in Connecting A Panel To Another Painted Panel, On Script Processor:

    You only need to defer callbacks if what you're doing requires real-time processing. An on-screen keyboard doesn't require real-time processing. The message thread is fast enough.

    @ulrik Is This Possible To Seperate The Scale Box From The Keyboard?
    I Just Tested, And Defercallbacks, Causes A Doubling Issue On Keyboard.
    I Guess It's Not Possible, Correct?



  • This post is deleted!


  • This post is deleted!


  • Regarding the note doubling, this is an easy one. Tell me, what happens when you bypass your script and press a note on the keyboard?



  • @d-healey It Fixed Sir 🙂
    @Ulrik Helped With His Magic Skills 🙂



  • @Natan

    It Fixed Sir

    Errr, nope. If you disable your script then your script won't do anything.



  • I Moved The Scaler ( With the Help Of @ulrik ) To Background.
    And Made A New Keyboard For The Frontend With Defercallbacks,
    And A Dummy Scaler Combobox, To Change The Background Scales.

    BTW, I Don't Disable The MidiProcessor For Scaling, It's On Back And Enabled.

    @d-healey said in Connecting A Panel To Another Painted Panel, On Script Processor:

    Errr, nope. If you disable your script then your script won't do anything.

    Could You Be More Specific? I Didn't Get Your Point



  • @d-healey I Send You The Final Code, Take A Look 🙂



  • I Send You The Final Code, Take A Look

    Seems to work 🙂

    @Natan said in Connecting A Panel To Another Painted Panel, On Script Processor:

    Could You Be More Specific? I Didn't Get Your Point

    In the snippet you sent me in PM you had a main interface processor with a keyboard and you were getting doubled notes. I asked you what happens if you bypass that script and you said it solved the problem, which it doesn't because you need your interface script 🙂

    The correct answer is when you disable your interface script and trigger a midi note you'll hear 1 note, not 2. So why do you hear 2 when the interface script is enabled?



  • @d-healey Thank You Sir 👏 Yeah @ulrik Did A Great Job

    In A Few Snippet Back, There Was A Simple Issue That Quickly Fixed By Ulrik, For Keyboard.
    Then We Seperated The Scaling System ( To Use The Defercallbacks On Main Init )
    And Added A Dummy Intervals So The Painted Keyboard Look At It, And Do The Coloring.

    Indeed It Is A Beautiful Piece Of Code.
    And Was Challenging 👏

    Btw, Thanks For Your First Snippet, That Helped To Solve The Puzzle 👏🤍 Much Appreciated


Log in to reply
 

12
Online

1.5k
Users

4.6k
Topics

42.1k
Posts