Playback Interrupt intended or not?



  • @tod-slaughter I'm not sure how it works behind the scenes but for whatever reason (and Christoph's reasons are usually good) that's the way it is 🙂



  • @d-healey So it's part of the engine and not user error my end





  • @Christoph-Hart

    When I add a ComboBox to change sample maps and then add a SliderPack to the interface I get the same thing. As soon as I adjust anything on the sliderpack the engine cuts. Is this normal behaviour or is my script lacking?



  • @tod-slaughter I think it must be something in your scripting, you should be able to adjust sliders without it cutting out. What is the slider connected to?



  • @d-healey It happens whether connected to something or not



  • @tod-slaughter Can you share your script or a snippet?



  • @tod-slaughter It doesn't happen with tables



  • I did a quick 1 sampler example

    Content.makeFrontInterface(600, 500);

    const var Sampler1 = Synth.getSampler("Layer1");
    const var Layer1 = Content.addComboBox("CmbLayer1", 42, 9);
    const var samplemaps1 = ["SUS1_White", "Critters"];
    Layer1.set("items", samplemaps1.join("\n"));

    Sampler1.loadSampleMap(Layer1.getItemText());



  • Yes David is right as soon as you bypass modulators / synths, load samplemaps, the engine will kill all voices. This is a safety measure because some operations require a suspended processing state in order to prevent multithreading issues.

    Your problem sounds like a scripting bug to me - do you use a switch statement without break-statements or something like that?



  • @Christoph-Hart @d-healey Hi guys did anyone get a chance to have a look into it?

    @tod-slaughter said in Playback Interrupt intended or not?:

    I did a quick 1 sampler example

    Content.makeFrontInterface(600, 500);

    const var Sampler1 = Synth.getSampler("Layer1");
    const var Layer1 = Content.addComboBox("CmbLayer1", 42, 9);
    const var samplemaps1 = ["SUS1_White", "Critters"];
    Layer1.set("items", samplemaps1.join("\n"));

    Sampler1.loadSampleMap(Layer1.getItemText());



  • @tod-slaughter Hard to test with these kind of code snippets. It's best if you can post a complete HISE snippet so that the whole preset is already setup and can be easily tested.



  • @d-healey wouldn't you need your own sample maps?



  • @tod-slaughter Yes, but I would either way. But if you post a HISE snippet all the samplers, modules, and controls will be setup exactly as you have them.



  • HiseSnippet 1316.3oc4X0uaaaCDmxNLK1qoncnCX+y.DL1.b1xBryWcECE0wNIEAKeXDm1Nftg.FIZa1HQJ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GeQDepyJwJNkFPIJH3mSlkZc5oOUJhBttTu9IlTkyjvMEvQjeiS3Tvqqxaicjhvv9f4XzUX9s5FIGn8UYTNkNBt0NMsii7gHOmS8B0W4s.ROKjpizLmiHJI6p7baNkFmQLQ6OGuto5WtmQWqZ1nShEoYwEY8hKxFEWjMKtHaUbQ1t3h7vBIRZua88kp3zBzWuc8GLesqAE0k.oD43rMaP5gDSY5Bv4XMMmzXB4FMdFCVt36f4de6Wd+ue2nxyGb+KFMuxDL1ioCU6wGA0v.Jwsf1k1mD4oRolGjGI3hfgBNyY5BFPAfACnx7Pel1yNJktUeJkGz5TpGkDlqh2m05PFmRjSWGrPthlyuq3lBWeBNFt15d.1+2XHhx+ueHhax0cWbbwKa3zkp2yiy2Aa5.XqmR4cETOUDofoOlLA.FFSnGLZjCM+vB5uOHYcC8ZMf5Q4tlE+A7jrYyISVn2r4jMQNSTEXaIua9hGqxTttygY1XOXlEu7ozgv.XZHUB+uCJ8INRw4NwewnFqKYn.nja9KgpfORu1N8CD0dWenQ04NN5qAeUSDZ1RrdgkXiBKwlEVhsJrDaWXIdXgk3quAIzSErSjR3GWTDHzcu3DIq8RSjJi9SHD3Y4O



  • 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.fDVzD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s2s59xkxTq9UZXuxh0vFTUeLjTjgyNzQoGSLk7kfyvZZVo1HxLb7qYJ3keGLE7a+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


Log in to reply
 

7
Online

1.0k
Users

3.6k
Topics

30.7k
Posts