SynthMaker

Format String crashes

Archive · 2010 7 old posts

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

mwvdlee ·

Whenever I accidentally type a wrong format into the Format String modules, S|M consistently crashes.

For instance, "%#014.3f" works fine. If I accidentally type "%

4.3f", S|M crashes. It seems to crash for pretty much every incorrect format.

No repro schematic, as this is easy to replicate from the description above.

oddson ·

Format string was a quick 'one-off' done by Malc and is likely in near-permanent 'R&D' status. It was done in a hurry as a bit of a favour but he never got around to adding error checking to the primitive.

If you want a reliable version I've built a module (or 2) that prevents you from feeding it invalid strings.

See this thread:

How do I adjust readout without crash

tor ·

me too experience this. but also quite frustrating is this:

same if i replace "g" with "f"

is it possible to have 3 decimals constant?

oddson ·

Try "%0.3f" - although yours should work too. The four in the length field won't have any effect if there are three decimals. The string should be fully formed before you connect. If you are typing a string and it updates before the string is properly formatted it will crash.

Did you check out the thread on my last post. The module will build the string for you and it purges when saved into VST/exe so there's no real downside to it.

tor ·

yes i read the other thread. it is really strange. if i replace "%4.3g" with "%0.3f" it still does not work. at some values i get three decimals but mostly it seems random. but when i replace the format component with your format string module it works correctly. i dont get this. they are the same except from the generator you added. inside it is exactly the same.

any how thank you 😀

Andrew J ·

tor,

I think the problem is that you've formatted to string then converted back to float. If you connect the string format output to a string box it should look correct. I'm guessing that you've got the preference to show display floats as 32bit binary representations turned on in your advanced options.

-Andrew

tor ·

Andrew you are completely correct. I really did not think that it mattered. I thought of the format component as a filter on the incoming float value. But the text component I'm sending it to has string input. Thank you for making me aware of this. Slowly learning 🙂

Tor

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.