SynthMaker

Code bug

Archive · 2005 5 old posts

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].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.