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