setUseStaticMatrix creates false mic positions
-
@d-healey thank you!! I’m away from my computer now but will give this a go first thing tomorrow morning.
-
For some reason now I am getting the values from the last loaded sample map not the currently loaded sample map.
I am not sure if the issue has anything to do with useStaticMatrix because I am getting the same results either way. (I was using .useStaticMatrix(true) because Christoph recommended it when loading sample maps with different amounts of mic positions because the channeling routing was getting disconnected, but that doesn't seem to be an issue anymore. ie with .useStaticMatrix(false) my channel routings are remaining connected.)
-
@crd Are you testing with the example project you posted?
-
@d-healey
I'm getting weird results with the example project I posted and my actual project. I think my example project wasn't as clear as I'd hoped at demonstrating the issue... sorry..getMicPositionName() is working great now. The weirdness I was experiencing was user error. Thank you, David.
I'm not sure if .setUseStaticMatrix is now redundant in my script but I will sort that out. I am pretty sure I was using it to make sure the sampler's didn't disconnect there channeling routings when I changed sample maps but that doesn't seem to be happening any more in either case...
-
I also updated the example project to be a little more clear:
https://www.dropbox.com/s/fia4f9tqy3twov7/staticMatrixIssue.zip?dl=0
-
I'm not sure if .setUseStaticMatrix is now redundant in my script
But does it still stop the number of channels from changing? In the test project that is what I observed.
-
@d-healey Yes. It all seems to be working correctly now. Thanks!
-
Everything seems to be working correctly but for whatever reason I am unable to use .getMicPositionName inside of a combo box call back the way I'd hoped. It always returns the values of the last loaded sample map not the current one. However .getMicPositionName called via a button callback works as I would expect it. Here is an example project that demonstrates the issue I am having:
https://www.dropbox.com/s/qfkhhq8exbbvsbo/staticMatrixIssue_2.zip?dl=0 -
@crd Well that's not a fair test because you are not changing the sample map in the button callback.
Try this:
You'll see that both the button and combo box do the same thing. I don't think this has anything to do with the static matrix issue (but try it in an older build and see if the result is different). I'm pretty sure this is issue is happening because when you load a sample map HISE has to read some data from the disk and while it's busy doing that you're trying to output the names of the mic positions, but at that point HISE hasn't finished loading the new sample map.
HiseSnippet 1715.3oc6Y01SabDD9rMGk6RRURZpZ+RkNg5GLJIfs4kzpzVLXfHTvfkMIpUsUnkyqwq3tcOs6ZBtQH0eR8mP9EUk+Asyt2Y60GF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txr9f9ys9WfohW6I
-
@d-healey
That makes sense.It seems like for my purposes (changing settings dynamically depending on what sample map is loaded) using an array or object with all the settings saved to it is the best solution.
-
Just made a pull request for this - https://github.com/christophhart/HISE/pull/287