Auto-load a preset on start up
Posted: Sat Jun 10, 2017 1:55 pm
Hi all; wondering if someone can help me with a preset problem?
Since returning to FS in February this year (I briefly played with SM around 10 years ago) I've been developing a 'Virtual Pipe Organ' generator. I've been involved with digital church organs for much of my career - semi-retired now - and my project is mainly based on known techniques, but naturally I'm trying to step it up several gears from it's original 80s / 90s hardware inception.
All working pretty well on the audio front, my current problem is only to do with presets. So I won't put up an .fsm at this stage - still a bit buggy and would need endless explanation. Suffice it to say that it's an additive system; there are harmonic sliders for several 'voicing points' on the keyboard and the system interpolates between them and ulimately writes 61 waveforms, one for each note. Similarly I have pitch & amplitude envelope & randomisation generators which are also rate-scaled & interpolated up the keyboard to make 61 of each. Finally it's layered (up to 4 at present), so that you can have more than one sound playing simultaneously, e.g one for the sustained tone and one for attack transients.
Anyway ... the intention is that it simulates just one pipe rank (one organ stop), so if you want an organ with say 12 stops you would have 12 vst instances. (Desperately keeping my eye on cpu% - it's looking feasible so far!). Once set up, 'voiced' and all parameters saved you'd leave it alone and just switch the 'stops' on/off as required, via MIDI.
What I cannot figure out is how to get it to automatically load a preset upon start up. I've currently got a regular preset manager working fine, but in reality each 'instance' only needs to load a single preset, for whichever organ stop it's generating. I can load and save OK, but I can't figure out how to make it automatically load its nominated preset.
Thanks for any help.
Since returning to FS in February this year (I briefly played with SM around 10 years ago) I've been developing a 'Virtual Pipe Organ' generator. I've been involved with digital church organs for much of my career - semi-retired now - and my project is mainly based on known techniques, but naturally I'm trying to step it up several gears from it's original 80s / 90s hardware inception.
All working pretty well on the audio front, my current problem is only to do with presets. So I won't put up an .fsm at this stage - still a bit buggy and would need endless explanation. Suffice it to say that it's an additive system; there are harmonic sliders for several 'voicing points' on the keyboard and the system interpolates between them and ulimately writes 61 waveforms, one for each note. Similarly I have pitch & amplitude envelope & randomisation generators which are also rate-scaled & interpolated up the keyboard to make 61 of each. Finally it's layered (up to 4 at present), so that you can have more than one sound playing simultaneously, e.g one for the sustained tone and one for attack transients.
Anyway ... the intention is that it simulates just one pipe rank (one organ stop), so if you want an organ with say 12 stops you would have 12 vst instances. (Desperately keeping my eye on cpu% - it's looking feasible so far!). Once set up, 'voiced' and all parameters saved you'd leave it alone and just switch the 'stops' on/off as required, via MIDI.
What I cannot figure out is how to get it to automatically load a preset upon start up. I've currently got a regular preset manager working fine, but in reality each 'instance' only needs to load a single preset, for whichever organ stop it's generating. I can load and save OK, but I can't figure out how to make it automatically load its nominated preset.
Thanks for any help.