Discussions
Activity
Sign In
General
Display x Amount Of Digits After Truncate
eall123
November 2017
When displaying a value, truncating, and exposing, is there a way to get the display to display 0.90 instead of 0.9?
RobertSyrett
November 2017
You can mask off the extra digit with an svg box, although i admit that isn't fool proof.
eall123
November 2017
I want the extra zero in .90
eall123
November 2017
I make a 4 digit number to fix in a box, say 1.234. I want to display 1.000 and not 1 when it gets to 1.
Otherwise the numbers have uneven spacing in the box.
jjthrash
November 2017
@eall123
I don't think you can do what you want. The only variable data type in Audulus that I know of is a double-precision floating point number. To get what you want you'll need a string of some sort, and there isn't one of those.
eall123
November 2017
I should say I’m using the Truncate patch as well.
Value > Truncate > Expose
eall123
November 2017
I’ll make a patch to show what I mean.
jjthrash
November 2017
Soo... this would totally be a hack, but you could build a subpatch that splits out each significant digit and renders it as text, exposed.
Something like the attached..
20171114 - formatting hack.audulus
3K
20171114 - formatting hack.audulus 2017-11-14 16-45-23.png
378 x 244
-
13K
20171114 - formatting hack.audulus 2017-11-14 16-46-05.png
617 x 375
-
50K
eall123
November 2017
Ha. Nice hack. Thanks, I’ll see if I can adapt that.
biminiroad
November 2017
yeah you’d want to split the digits - so for 0.91 youd do
floor(x*10)-> value = 9
fract(floor(x*100)/10)*10 -> value = 1
fract(x) returns the fractional component of a number and will help in combo with floor
eall123
November 2017
Example:
000digits.audulus
16K
FB878503-57D2-4828-ABAA-67993EEE90FE.png
2732 x 2048
-
355K
eall123
November 2017
Sweet. Thanks guys.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
1,643
General
488
↳ News
45
↳ Reviews
11
↳ Music Made with Audulus
6
↳ Feature Requests
141
↳ Off Topic
33
Patches
492
↳ Forum Patch Collection
6
↳ Standalone Synthesizers
12
↳ Eurorack Clones
59
↳ Expert Sleepers ES-8
13
↳ Performance Patches
8
↳ SVG Icons
8
↳ Visual Patches
7
Help
663
↳ Audulus Tutorial Livestreams
11
↳ Tutorials
52
↳ Subtractive Synthesis
5
↳ Additive Synthesis
5
↳ FM/AM/PM Synthesis
16
↳ Waveshaping Synthesis
9
↳ Wavetable Synthesis
5
↳ Physical Modeling Synthesis
3
↳ Karplus-Strong Synthesis
0
↳ Modulation
11
↳ z-1 Analog Modeling Filters
3
↳ Reverb Modeling
1
↳ Generative Music Techniques
5
↳ MIDI & MPE
10
Powered by Vanilla