Playback Interrupt intended or not?



  • I don't know how to format a snippet sorry ☹



  • @tod-slaughter HISE won't import that snippet for some reason.

    To format it you just place ``` (those aren't quotes, on my keyboard they on the key to the left of the number 1) and then hit enter to go the next line, paste your snippet, then hit enter again and put another three `



  • HiseSnippet 1362.3oc4X8+aaSDE+bRcUSYEsACI9Ejrh.oLZIJoqqYSnokkz1QGqMg3tuTFnoq1WRNl8cdmO21.h+m3u.D+Is+Cf2c1wwlE0EOFLDXoF46cu26979x8dO29BtCILjKPFUNZR.AYbIS6IL43tiwTFZ+cPFenYnG0kHBvNOmbN1Ovif5LI.GFRbQFFkumhQiJKgzOu7NcvdXlCYFID5QbpC4ATepbF09s+Zpm2dXWxQT+LbuU68c3rtbOdD.pxlMPpCFOhbHVwVISjwx65RkbgsDKIgHik5vcmXOleFKl+GQCom.fDVzDYCJJl7dbOWEhUTQcGS8b6O03CQHCy9ybEkicEW07.pKMk9LWxk0aXMShr9CiRWD7Z95gWi4AOiLvaoX3cESaGAMPNaGE1dOy8YRhXH1IeXJlWToe0vrKG3fIq6ieNYOArHUhZa2nwFV2nQiq8kqsJDFBkVmhEV15ntno0sszIG0GQjIzpU8A3IvVUyKQLQf+omE10sK2+DdG940p10+jDo1vZqM2v5V4ENTqZebPnRCOsp8Csa9rGOlJI.+U6JnR.tgU+dPnX0TOjHqUE12OD3Hi30+ANkUq52wpdM0Qr1pCiXNRJmYwYGxkjdrZWa0eZ0Jq9yuxNCGNusTlif6oL74rqJSVbAhUiE4eBQrAXkdQDEeS8r083X23EGfCpkXVfadevnNhbtrFX.JkBQ+7oWKuXoWNwwgLLxY6ynxdAjj0W78CTRfDREKkXM.qRch3kSRDmFfQTWUdXZTFoM2r0HPopXoXU7AIpvVWpoObiWqj0LmQHUMlFq.JwEKwHimZt8V0GL5E2ac1wdG2h5cr2Y89Vui2a8mz69mzxF94L3ua9Uq25aF8hVcAVmz6rFzNquyi6c+V1mbS1oYV2sd85m1C9Y350QnGt+NpCAt8jX7fCIfHjTke2XGxoPUs3qhUL2gD9bIOP6c7C3LkqxX4Ez+btxn9bvnlndoB7hOVSqD7pNsFY7QlytFr5z6.pvR5oUDW44yhF2t8jYKNrM5UKz.k63tQdXY9ZfpB+Ia.Y44J1nJnvBoxIYC5EnvXiEtt8hB2qX1mJcFOe7VZN3Ukn+2LdSZyrl4tCGRbjy.6Rl68j2zdJuYP4SNZZtiTPv9T1njJSZ7rhYRh5ag99AKbe+9BhtpH8Gyv1u0tSD3sD4o9Ks0G0c84QrbmUhULfDPvRH3mQlUZOXv8D7nf+rTu7N5TkiDvMEvQjcidLB30kYswtBdX3Pvbz5JL6V8iDiT9pYTFPNEt0lm1gQ9PjmwHdgpq7F.oGFRTQZpyAXofddVt0mRiiv5n8mYt4V0y+Ls5E7bq3pYwhzr3hrYwE45EWjsJtH2n3hrcwEoUgDIs2s59xkxTq9UZXuxh0vFTUeLjTjgyNzQoGSLk7kfyvZZVo1HxLb7qYJ3keGLE7a+h8+06MUdwf6qYP8JSwnMUE11kcJTQCnD2PZGxPbjmLkZVPd.mwCFyYTm7kOfxAiFQDYg9bsm6JkpF+oTtZ6ADOBNLS8uOs8CnLBVjupXgbEMWbWwEEt9XyX3Zo5HX8eiQJJ++9QJtHW26aFWHyBNcg7e4w4KYp6GXolY4cETGvijvrHSmGvDFZvFFTxgjczA0WKjrtgZsBP1DlqdwuCOIa1b5bFpMaNcSjyTUA1Vx65u+wnLgo5hnmT1ClfwKaJcHLNlBRkL+mAk9XGA+YNwe+nBqqno.njo+GDUw7.0ZqzOWT4c8gFUOywQcM3KZhPyWhMKrDWuvRrUgk3FEVhsKrDsJrD27BjPMUvcijb+3hh.g96FmHYraZhTYzePh3ilH
    


  • @tod-slaughter This is your on control callback

    function onControl(number, value)
    {
    Sampler1.loadSampleMap(Layer1.getItemText());	
    }
    

    So whenever you interact with any UI control it's going to trigger this.



  • That's because there will be 30 items per drop down. Without that line it won't load the next map



  • @tod-slaughter You need to make a separate callback function for your dropdown menu and use the .setControlCallback() command to assign the function to your menu. I very rarely use the generic onControl callback now and nearly always use separate callback functions, for most things it makes it more manageable and it allows you to use the same callback function for multiple controls.

    If you really want to use the generic callback function then you need to make sure that call only fires when your dropdown menu triggers the callback. Use an if statement to check if number == Layer1 if it does then switch sample maps, if it doesn't then another control triggered the callback.



  • Hi David can you show me how? I cobbled that script from various forum posts.



  • @tod-slaughter Try this

    HiseSnippet 1396.3oc4X0uaaTDDeO6bQwlZDEJRvefzIKPxgDrrSSiaEppt1IojRSrwW5GgBpZ8cqsW5c6dcu0IwT02IdD3QpuAvr2W9tVqTekBEAmTrtc9Z+syL6Lyk9BtEw2mKPZkNdlGAocIcyYL4jtSvTF5fcQZehtuC0lH7vVOkbN10ygf5LyC66SrQZZEuiRPsRqfBdd4s5fcvLKxbRHzC3TKx8ntT4bp8a+8TGm8w1jiotojd61GXwYc4N7o.nJp2.o1X7XxQXkXEzQZqtmMUxElRrj3izVoC2dl4D9YrP4e.0mND.IrnIxDLTH484N1JDqnh5Ng5X2O9v6iPZ58m6JJF5Jth9gTaZB84tjOJfgwbMR6OzJbQvq4aFdMVD7zRAuUBg2k0MsDTO4bNJr8A5GvjDwHrU1vTnrnBedA8tbPBlrtK9oj8EvhDMpsSiFaZbsFMV+aqTFBC9RiSwBCyfntnowMMBRNpOlHinUq58vy.VUypQHQP938Baa2k6Nj2gedspccGFo0lFau0lF2Hqx9Al1E64qrviqZdeylO4gSnRBHe0tBpDfqe0eFTJzL08IxZUA9t9fDoTu9uvorZU+IV00WOizJXI3NcwNNCgzqZgb51QIUkxTlCkQLFMkYIoblQL2ZVgpsI.Smoj0qT94UJa.OwNn5Nbrc3hCwdQVU4sN.v1wjyk0.bT9EUJmXZN6HtjziUa8xOuboxu303LZzhXEgeU.XAbU2nDWfZ0XScGRDwGiH4fDqrYtqtbYtVgg3TBxYGvnxddjn0W7UOTTNBjkWHBffnxfb7OJJGON2AQsUo3IIPnfSP5xOnDSrRnI93HSXFTEqODsCLRE84DdMyXz1FKwHsGquy10GL9Y2YC1INmzh5bhyY89QmS1eiG06tCaYB+bF720+tMZ8CieVqtfny5cVCZmM18g8taKygWmcZp0cqWu9o8feFsQcD59GrqZSfKmQN.vo3QDRpx2qsK4TnnY3M8R56R7epj6E3gb83Lk6Ra0kzGcNTcS6qgi0L0KkfWbwAzJ.uFbqAo8o5yukUN9JlJzjra4wcd9bW4MaOa9hiZid85XP0Tt8TGrLaIVUekHFPxalZYp5ULepbV5.eNp61XoaKrrv8x58oRqIKFuEV.dUI6+Mi2ntXUz2azHhkbNXWQe+G811x5sCJewww4NRAA6RYiipXFfm0ziRTeGLVg2ROVQeAInZM8WSI1u2tyTvaIxR82ZGrU21kOkkYuhNECHdDrDB9ozYs1CFbGAep2qp0KuUPpxwB3lB3HRynGi.dcY5yXWA22eDbbBrkeZV8mJFq7UyoLfbJbqMKsil5BQdFi33qtxqAjtuOQEooVGhkB54okNXWZbLNHZ+U5asc8rOwUufmaDVMKTkl4WksxuJWM+prc9U4Z4WkcxuJsxkJIyTntunlA9UZUu1x0pFLPeLjJjRxNzwIFOjR1BuoDMIWL.5ol39MLZ8puGFs9ceI9+5cjJtbv8ML8eoXLZRUgs8XmB0w.Jgsg1kLBO0QlPMMHOjy3dS3LpU1hFPQfwiIhzPegmmaKkp18ITtR6ADGB1OUUuur88fImwhr0Bykqn4x6Jtnv0moGBWCUe.i+aLHQw+2OHwE459P8vBYFvtKj+KONeI8ft.FpIUdeA0A7oRXBj3o.zgQELgwirHoGXP8MBQqanVq.jIgYGr3OfmHlMimtPwrYLSjUrofyVz6Ae0iVQBS0EIX9XGXtEmzoz9vPXJHAc59GAktXKA+IQecuBqqEPAPIK3+5TI8CUqMR9PQk20EZT8DKK00fuoIBsXM1J2Zb0bqw14ViqkaM1I2ZzJ2Zb8KPC0TA2dpj6FVTDHzeuvDIs8RRjJh9SA0YfMB
    


  • I owe you a few pints of ale for this. Many, many thanks



  • This post is deleted!

Log in to reply
 

6
Online

474
Users

1.6k
Topics

12.1k
Posts