SynthMaker

7 Segment Displays

Archive · 2010 16 old posts

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

trogluddite ·

Here's the latest update to my 7 segment displays - now version 3.

Should now use much less CPU for screen redraws - the number bitmap is now resampled when changing colour properties to avoid lots of colour matrix maths - and the on and off segments are now drawn as one layer (thanks to Mo for his inspiration with colour matrices) Open the module properties to set the colours and number format.

The graphics are all held in one PNG file - there is an example in the .osm to show how to construct the grid of numbers if you fancy making your own.

Andrew J ·

Another nice one!

sunsynth ·

Clever idea with the masks... 🙂 Thanks again dude

Jay ·

great stuff Trog!

they look very crisp and clear m8! Thanks for these 🙂

Best Regards

AngularMomentum ·

Awesome...idea is great to design evrything in b/w for interfaces where users can select the hue themselves, I am going to give that a go with my next Synthmaker project. You could even give certain presets a "mood" color, so the hue changes with every preset.

Acrobat ·

thanks trogluddite, this is really cool, anyway I had some difficulties with the "power of 10" thing, still don't get it at all quite obscure IMHO... 😕

trogluddite ·

Acrobat wrote: some difficulties with the "power of 10" thing

It was just the simplest way to make the digits format the right way - using the normal number formatting stuff wouldn't work because the digits are really bitmaps rather than a font, and I'm not too good with parsers.

Maybe this will help...

The number shown in the display is decimal, so the digits will represent...

etc... 1000s 100s 10s units point tenths hundredths thousandths ...etc.

The power if ten property says which is the biggest column that you want to show. So if the bggest number you ever need to see is, say, 999 with two decimal places, you need to see the 100s, 10s, units, tenths and hundredths. The bggest of those is 100s - so you would put 100 into the power of ten property, and then have five of the little display modules chained together inside to give you enough digits. Hope I haven't just made that even more confusing...

I'll try to make version two a bit easier to use - I need to make some changes anyway so that it will handle negative numbers, and I'd like the number of digits in the display to be a property as well really.

trogluddite ·

Upgraded to version two - the downloads are up in the top post.

Now far easier to use 🙂 - the number of segments and number of decimal places can be put in as properties, and the whole thing will resize to fit the main module window, so you don't need to mess around inside to customise it for your GUI. Can now also show negative numbers - the format for the png file has been changed to allow the minus sign (see example in the top post)

BTW - the string formatting module inside may look a bit clunky, but for some reason the format string primitive really doesn't like having a dynamically changing string for its format input - crashed my machine a few times. Means that I've fixed the maximum number of decimal places at 6, which should hopefully be accurate enough for any eventuality.

MegaHurtz ·

Nice!

trogluddite ·

Version 3 now available at the top of the thread along with some snazzy (?) new graphic styles.

There are now seperate colour selectors for LEDs on, LEDs off and the bezel; and I've altered the way the bitmaps work to get rid of the annoying little line of pixels that appeared around the edges when the display was resized. The bitmaps are still just black on a transparent BG but are solid rather than cut-outs - the colours are done with colour matrices, so you'll get some wierd effects if you use colour bitmaps unless you change the module LED colours to black.

sunsynth ·

at first blush: perfect 😍

keep on doing... 🙂

stw ·

yep... always appreciated!

trogluddite ·

Updated to version 2 (downloads in the top post) - ESSENTIAL BUG FIX.

BIG APOLOGY... Sorry to anyone who downloaded the original version only to find that the display was blank when exported as a VST. Many. many thanks to Nix; his recreated version of the schematic made finding my silly schoolboy error very much easier. In the original file, I made a few too many things purgable - including the bitmap primitive holding the graphics!! 😝

Moral of the story: ALWAYS test an exported version before posting!

Dell ·

No worries mate. 🙂

trogluddite ·

7 segment displays now updated to v3 - reduces the CPU load when re-drawing the numbers - see top post for downloads.

[EDIT] - just done some further testing - a 3 digit display updating from a tick 25 has dropped from 10% CPU (Q6700 Quad Core) down to unreadably low.

drumma ·

Cool, thanks ! 🙂

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.