SynthMaker

Preset string prim bug ?

Archive · 2011 9 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

tektoog ·

Hey, has someone a soution to make this working correctly?

If you change presets, everything works well...the 2 lines in the text prim are loaded correctly; But now if you save preset 1 and then load it on preset 2...only the first line is recalled.... I got that this is a preset STRING prim and not a preset TEXT prim.... but why is it recalling the 2 lines in the first place! Any thoughts on that? Ps: I emailed Malc about it.....

Mo ·

It seems not possible to recall multiple lines. It would work with one line per preset.

trogluddite ·

I think this is to do with the preset file format - I have had a similar problem recently. Multi-line strings naturally contain new-line characters - each new-line fools the preset manager into thinking that it has entered a new 'cell' in the preset text file (i.e. it thinks that each line is actually a new parameter).

You can get around it by replacing the new line with some other seperator character, and then substituting back when re-loading. This is pretty easy using the 'string to string array' or 'string replace' primitives.

tektoog ·

Thanks for your answers.

Mo wrote: It seems not possible to recall multiple lines. It would work with one line per preset.

Yes, but then it starts to be a lot of components for just one preset... arrays are our friends here !

trogluddite wrote: Multi-line strings naturally contain new-line characters - each new-line fools the preset manager into thinking that it has entered a new 'cell' in the preset text file (i.e. it thinks that each line is actually a new parameter).

I was thinking about the same... it seems to be that...

Mo wrote: You can get around it by replacing the new line with some other seperator character, and then substituting back when re-loading

Got 5 minutes to put it together?...my brain is kind of fried after 2 weeks of debugging nights and days to narrow down the problem to the preset string component in this complete project.... and I'm kind of lazy today...first day of real fall weather today...rain, rain, rain...and grey clouds... But i'll get to it ... slowly...

Thanks guys! 😉

tektoog ·

OK.... brain not that fried yet !! and quite easy to fix finally... 😀

The key is to put everything on 1 line.... Obviously... 😉 Don't know if it works exported as a vst, cause it says the preset String prim goes until 255 characters... I'll see... Thanks again guys !

Mo ·

Yep,

Nice fix! Thanks.

trogluddite ·

tektoog wrote: ...first day of real fall weather today...rain, rain, rain...and grey clouds..

He He, sounds like our summer this year - the hottest day of the year here in Yorkshire was Oct.1st!! But tonight - first frost and snow of the year - and in a few days, clocks change to GMT - dark going to work and dark coming home again. Time for hibernation!! (I wish - but I can always dream!).

tektoog ·

Sorry 4 the late reply......was sleeping already !!! 😉 Yep same crazy weather overhere at the bottom of the Mt-Blanc mountain.... July started in September this year... and since 2 days we went from summer to winter... from 26° to 2°...with a one rainy fall day transition....

tektoog ·

Updated to an extended version there

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.