Trouble with Variations
Posted: Sun Sep 11, 2022 2:32 pm
This is about some weird crashing in VM.
I've been trying to figure out how to do chord sequencing without a chord sequencer. The idea being to use VM's variations feature.
Here's what the patch looks like...
Unfortunately I can't atttach the .voltagepreset file as it exceeds the 3 MB limit due to embedded samples and you'd need to have GS anyway.
All modules except the left-hand Chord Memory and the Chord modules in the lower cabinet have variations disabled and then I saved four different variations each with a different chord set up with the Chord Memory module (in monophonic mode - providing the root) and the Chord module. The LFO is then used to cycle through the variations and therefore the chords and also drives randomisation in the two Granular Synths. It's a bit fiddly but otherwise works a treat.
However while building and tweaking this patch it crashed VM multiple times. Making VM shutdown and disappear. Lookng at the log files there was nothing - they just stopped logging before the crash.
Now I've been building patches similar to this for ages and never seen a crash. The only novel feature is the use of variations. Although it could still be a bug in my modules of course!
What's weird is that it crashed lots of times (even after a reboot) but has now settled down for no apparent reason.
So my questions are:
Has anyone else seen similar behaviour with variations?
Has anyone had VM crashes like this that then seem to magically go away for no apparent reason?
Is there some special handling needed in the code to handle variations correctly?
How do you go about debugging something like this (as it's impossible to replicate the setup in VMD)?
Any advice welcome.
--------------------------------------
Update:
After running OK for well over an hour it crashed again when my laptop went into screen saver mode.
I've been trying to figure out how to do chord sequencing without a chord sequencer. The idea being to use VM's variations feature.
Here's what the patch looks like...
Unfortunately I can't atttach the .voltagepreset file as it exceeds the 3 MB limit due to embedded samples and you'd need to have GS anyway.
All modules except the left-hand Chord Memory and the Chord modules in the lower cabinet have variations disabled and then I saved four different variations each with a different chord set up with the Chord Memory module (in monophonic mode - providing the root) and the Chord module. The LFO is then used to cycle through the variations and therefore the chords and also drives randomisation in the two Granular Synths. It's a bit fiddly but otherwise works a treat.
However while building and tweaking this patch it crashed VM multiple times. Making VM shutdown and disappear. Lookng at the log files there was nothing - they just stopped logging before the crash.
Now I've been building patches similar to this for ages and never seen a crash. The only novel feature is the use of variations. Although it could still be a bug in my modules of course!
What's weird is that it crashed lots of times (even after a reboot) but has now settled down for no apparent reason.
So my questions are:
Has anyone else seen similar behaviour with variations?
Has anyone had VM crashes like this that then seem to magically go away for no apparent reason?
Is there some special handling needed in the code to handle variations correctly?
How do you go about debugging something like this (as it's impossible to replicate the setup in VMD)?
Any advice welcome.
--------------------------------------
Update:
After running OK for well over an hour it crashed again when my laptop went into screen saver mode.