If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Vertical Bar/Line FFT/Spectrum Display- Feasible?
39 posts
• Page 2 of 4 • 1, 2, 3, 4
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
KG_is_back wrote:The old version first draws the background color and than draw the bar color gradients, where the y value sets alpha.
New version with transparency support does not draw background. Instead it uses y values to interpolate between back and foreground color.
I've kept the old version too, because it's lighter on CPU.
Cool. I thought that might be how the original worked but of course found otherwise. The only real benefit to this that I can think of would be you could set the "background" color to solid and then the "bar" color to full transparency so you have an inverted display (and background images could show through). Which is totally the kind of thing that I would try but may not be useful to many. So if the original is lower on CPU best to keep that definitely.
For changing the log scale, would you simply create a for loop in Ruby and apply the math for each index? Should be real easy right? Not at the workstation right now but I will give it a shot later.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Perfect Human Interface wrote:Cool. I thought that might be how the original worked but of course found otherwise. The only real benefit to this that I can think of would be you could set the "background" color to solid and then the "bar" color to full transparency so you have an inverted display (and background images could show through). Which is totally the kind of thing that I would try but may not be useful to many. So if the original is lower on CPU best to keep that definitely.
For changing the log scale, would you simply create a for loop in Ruby and apply the math for each index? Should be real easy right? Not at the workstation right now but I will give it a shot later.
What I was thinking of...cool thing would be if the background and foreground can be a bitmap and the gradients would apply transparency mask to the foreground. I have no Idea how that'd be done in FS though...
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Lots and lots of drawing, maybe even per-pixel. On a related note, I've often thought it would be cool to have different blending modes like you get in Photoshop. Although all this fancy GUI stuff won't make your plugins sound better... Actually, I take that back. The mind is influenced by many things.
Even just transparent png overlays can do great things for GUI designs if you know how to work them though. The dynamics processor plugin I made turned out kind of neat. And things like this look great in motion.
Even just transparent png overlays can do great things for GUI designs if you know how to work them though. The dynamics processor plugin I made turned out kind of neat. And things like this look great in motion.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Perfect Human Interface wrote:Although all this fancy GUI stuff won't make your plugins sound better... Actually, I take that back. The mind is influenced by many things.
They do. Mainly because it is a graphical USER INTERFACE! Imagine you'd be tipping in attack coefficients for your compressor in as binary float... isn't a clearly named and properly scaled knob much better? Sure, you should be making music/mixing with your ears, not eyes, BUT your ears generally can't navigate you to equalizers knobs on your guitar amp, especially while listening to your actual tone.
There was an buoying 747 which crashed, because it had new digital readouts instead of classic "hand on a watch" type of readouts. Pilot was unfamiliar with the interface, didn't trusted those high tech machines and the plain crashed because of ridiculous malfunction of hydraulics (one that the pilot would normally be easily able to compensate).
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Hahaha, ok, I get it. But come on. I was talking about blending modes. You don't need color blending modes and semi-transparent overlays to make a clear layout with knobs that turn and labels that give a precise value. But the reason I started this thread in the first place is because I needed something that provided a certain visual feedback that was intuitive and appropriate for precise filtering, so, of course, you are correct.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Perfect Human Interface wrote:Hahaha, ok, I get it. But come on. I was talking about blending modes. You don't need color blending modes and semi-transparent overlays to make a clear layout with knobs that turn and labels that give a precise value. But the reason I started this thread in the first place is because I needed something that provided a certain visual feedback that was intuitive and appropriate for precise filtering, so, of course, you are correct.
Sure, I'm also not a big fan of overly complicated and detailed GUI. My personal philosophy in plugins is that digital is digital, so why make it look like analog... My favorite GUI element is a label with horizontal/vertical drag ability, and edit box when double clicked - Simple, straightforward and very practical (mouse wheel support would be even one step cooler). But that is a matter of preference and sometimes even situation.
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Ok, tried to convert to log base 2 via Ruby. Scaling came out all wacky. Any ideas?
Edit: Tried 2^x-1, still not linear in regards to notes/octaves.
Edit: Tried 2^x-1, still not linear in regards to notes/octaves.
- Attachments
-
- Gradient-Bar-Graph_Log2.fsm
- (319.04 KiB) Downloaded 914 times
Last edited by Perfect Human Interface on Sat Sep 20, 2014 1:37 pm, edited 1 time in total.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
Perfect Human Interface wrote:Ok, tried to convert to log base 2 via Ruby. Scaling came out all wacky. Any ideas?
When calculating the log of a number, no matter the base, avoid 0, because it is defined as infinity (-1.#INF). So instead of "if @Array[i] >= 0" it should be "if @Array[i] > 0". Also, ruby has convenience functions for base 10 and base 2, "Math.log10(x)" and "Math.log2(x)".
EDIT: And if you want a green solution, just use log2(x) = log10(x)/log10(2)
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
lol right, that was just a stupid error (I'm past my bedtime here). At first I had != 0 but then changed it to >=0 instead of just > 0 as I intended. Thanks for pointing it out.
I know there's log2 in Ruby but I wanted to make something that was flexible for future use.
Still can't figure out how to scale this thing to octaves. Feel dumb. Going to bed.
I know there's log2 in Ruby but I wanted to make something that was flexible for future use.
Still can't figure out how to scale this thing to octaves. Feel dumb. Going to bed.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Vertical Bar/Line FFT/Spectrum Display- Feasible?
I never tried it, but maybe this helps? http://www.daqarta.com/dw_0moo.htm
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
39 posts
• Page 2 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 49 guests