Playback Interrupt intended or not?
-
Playback Interrupt intended or not?
When changing tabs the playback interrupts until a note is pressed again.
When changing stepper values on any lfo turned off or on the same thing happens.
Purging the sampler...
Changing Sample map...
-
Any operation that requires loading or unloading samples is going to require playback to be stopped, otherwise horrible things will happen. I can't see any reason why switching scripted tabs should stop playback though, maybe there is something in your code that causes this.
-
@d-healey I would expect it for one sampler but not all samplers at the same time?
-
@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
-
@tod-slaughter Yes
-
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.FIZa1HQJPQ4Eug8Nsmfg8H02fsiTxRxoFYVYcqEa5OLDOd2we2G7tStqT3PCCERjUkyFGPQV2A2aLWMryPBiiNXWj0cwGQBUTocLo1iCHggTWjkU4mpIXUYAj440OoMwivcnYjPnmKXNzCY9LUF0ts9Vlm29DW5YL+bbuYqCbD7NBOQDfmx3Fn.hykjAziIZ1JgQVKtmKSIj8TDEMDYsPag63dCE+HOl+myBYW3Q0KZh5AJJl79BOWMh0ui5Lj441chcGhPV3tYdgxwdgGfOh4xRom4MtmYC6LIx6OrJcSvq4sDdV4f2Bwv693dNRVfJaGM19P7AbHP0m.gf7vJlWToeyB2Q.bvUq4StjtuDVjJQ8sazXU6sZzXkuY4pPXHTYOhHs6Q7C7nxl1O11jWr1.pJgV8ZGRFCaUaZIhIB7O4rHttcD9WHZKtpdsN9WjH0p1at9p1OZZgCMp1mDDp0vKq06Y8Zd9KFxTTf+ZcjLE.2vZ+.HTrZVKjppWC12OD3Hm3q8JAiWu12yqsh9HVtZ+HtihI31B9wBE8Dd8Up9yUqT8Wdic52eVaoMGovSa3yXWclr7FDqNOx+BpbUvJ8hnZ9l3YWySPbiWbDIndhYAt4C.i5L5Up5fAnUJD8mN8Zw4K8xINNjiQA+.NScR.MYcVBXyYj.hRBjPpXoDqAXUYRDuWRh3j.Lh4pyCSixHi4lqfPKTpJVHVEeThJ54wboxtvMdiRVFmQHUMXqk.c3RTDj0Kwau4ZvS+uT+6i5HF0X8SdU6WPSVC+rwI41u.qQnmcvt5CAt8jX7fCIfJULse2ZW5HnpV7UwJ3cogWpDAFuieffqcUVKNm9mqzF0W.F0X8KUfW7IFZkfWMo0HqOFmcMn5j6.5vR5oUDW4UYQiG2Zb1hiagdyBMP4NgajGQMcMPcg+jMfr7oJ1nKnvCYpw4aLTfBiMlYgwYlWNmv893tLkyvYi2Ry.u5D8+gwaRalkw60uO0QkA1Ev6+c21dJ2Nn7omMI2QIoDeFePRkICdVBmjn9Vnuevb22uqjZpJx9obr86sZGAdK4zT+0VliZGeQDepyJwJNkFPIJH3mSlkZc5oOUJhBttTu9IlTkyjvMEvQjeiS3Tvqqxaicjhvv9f4XzUX9s5FIGn8UYTNkNBt0NMsii7gHOmS8B0W4s.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 `