From the original SynthMaker forum (2004–2014), with its members’ names and dates.
Nu Audio Science ·
This may have been reported but its gettin me a lot lately
If i delete a monoin or monoout from a code component all works fine but when i reopen the Schematic or try the vst it comes up with all this init array stuff and doesn't work as a vst and the schem crashes SM.
I should have noted vwhat it says i will next time 😉
Tom7777 ·
A lot of the older code that was posted now won't work and half the stuff is black (Not valid code) Im guessing this is because arrays were added but how can i change the code so it will function correctly again, sorry NAS i know this aint the same thing but i don't like making loads of new topics all the time and as its code related i thought i would just mention this, i hope it's cool, Thanks 🙂
Shifrin ·
I solved a few problems with 'black out'/broken code by moving all 'float' delcarations to the top of the code block just beneath the ins/out. So that's something to try if it's the case that floats are declared inside the main code.
You used to be able delcare them anywhere.
Shif.
Tom7777 ·
Ahh ok Shifrin thanks 🙂 should be able to fix most of the stuff this way, so how come its changed is it going to be added again do you think or would that effect arrays in some way?
Shifrin ·
Tom7777 wrote: Ahh ok Shifrin thanks 🙂 should be able to fix most of the stuff this way, so how come its changed is it going to be added again do you think or would that effect arrays in some way?
I'm not sure why it changed, happened a few releases ago - probably to do with being able to initialise variables at their declaration i.e.
float x=0.5;
I think since then you can't declare variables inside main code chunks. Not sure if this will change or whatnot - I'm sure malc/jorge can let us know the details 🙂
Shif.
Wrote something here? To have a post removed or your name hidden, write to [email protected].