Keyboard To Draw Lines



  • Hello Ppl
    Trying To Make An Animation Similar To Synthesia But In An opposite Way
    So When You Press A Note Key On Midi Keyboard A Rectangle Appears, And While You Pressing It Keeps Looping, As Soon As You Release The Key, It Fades Away.

    Also The Animation Represents The Lenght Of The Note
    Any Help Is Much Appreciated
    Example.jpg



  • @Natanr Panel and a paint routine is what you need.



  • @d-healey Thanks David, But This Is Too Complicated For Me.
    I Know You Are Too Busy, But Any Chance To Get An Example?
    Thank You



  • I'll give it a go



  • @d-healey Oh Thanks David ❤ You Rock 🤘



  • Needs a lot of work but this should get you started. The main interface script is deferred so all of the note gathering is done by a second (real-time) script that updates a global variable. I prefix global variables with g_ so they're easy to spot.

    Peek 2019-12-22 23-03.gif

    HiseSnippet 1802.3ocuX0sTaaDEVFPowNwsMcxM8NMbQpbgXjI7SRIok.XRX3OOXfzLLLLKRqk2AYsZjVC3lgY5zmfdUutOJ499xz2.54rqrkjwP.2zpgYv642uytm8bNR0B41znHdnVt761Ifpk6g5063KZtbSByWasUzx8M5sXNr.ORGZnnIy2si1RcBHQQTGsb4F8Mnb4xOll74u+okHdDeaZBIMs84La5FrVLQB0ZKtNyyaUhCcWVqTROyhqYy8Wl6waCXZTcKs.h8IDW5VDTrQz0xcupNLAOrtfHnQfLKwc5TuI+Lek76yhXG6QwEUzpCFRQVa4lLOmZci2HMsbiUKI5GUE8OVeSHX6QOYW3qkLLRzH8dPtQxBowx.oJWGjVk64fF3Zf2Hof2XJ38H851gr.QBGDaOPeMeAMrAA11SCKkrZiXnquLGjvWTtE4D5pgvhdZXNmk0jFyZYUZghEJVPd3W1g1fFtLwy6XXyOxTD1lpXCmMQBiSIgFar86NZ8pu23UFSOyBoYr0dahLpCbd1bY3TuV0pq.jm0ZAiolZS37mEQA1NQYM8IzNncq56x7oksCovtJt6uAKRXVB088FA7Hlfw8M3MLnD6lnReWjQH0VP7c8nEKfVobCvIlV8i8ZDepWEvEc2Vbohk4sB39vBywUrGWokZQ4HpnFjKH1g2V.nx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6GCnuALHSRo2aSyiDowdA9XK93cgdMgKY7jm.V4kupaXmh0Um0AgW4f1QMSlT4hztIygJJLHDJvfZQU7tzFT4BYKM2iNQZer+ELp4q87LjDZGzGNs8fpEpdX3rIet1CTvk46POONHKKWrciriuI4DRawOkZh+9.oTGNr6a+e0ZsvmqVqcya6RwRq2geZRIwUZpxvY.hkP5l5ViMdkhChppL9kwkqp6wbfRSpRip7.M4FR52GV6Vncd83bk9T+iGs3+9YE9hOMng5454PG1o6OhDzf5regltPeKx4oQFVcBGYnacQMsakSShUoW+igxqOPuWMQsAzOAd+ctSanoZ1WpG+5EwLfr4LsTv2P1GdIyNoc8c3M8sF3a5Ovw.ukv8Q50XB6lCFuiL.7hYp+Gi23uaRQ8pMZ.Czj.1wzW8mG1ORxc.Jp2G2cShHjgYOPM85v.l1z3IdhvDoQv6bp0VcSrpS8cjKvoSiYVAWmKlYktL0ZQrC4GYqtzheYl6Ko.XxW9QoxquIt1nR26p55VkszvOa1Q113VwSArOXcldHz4YCgNyLD5L6PnybCgNyOD577aTGbl6W2Fl2WcMAHTqprlYtbU8IPVlLiT6eLdi7JB
    


  • @d-healey Omg, You're A Genius David ❤
    Thanks a Ton


Log in to reply
 

11
Online

814
Users

3.0k
Topics

25.6k
Posts