Old 12-28-2016, 01:40 PM   #1
ReaDave
Human being with feelings
 
ReaDave's Avatar
 
Join Date: Mar 2010
Location: Adelaide, South Australia (originally from Geelong)
Posts: 5,524
Default Spectral Peaks Discussion

Since this new feature (which I love BTW) is bound to progress over a number of pre-releases, I figured it might be worth giving it its own topic here so suggestions don't get lost in old pre threads.

To kick off, here's a copy of some of my suggestions from the 5.32pre2 topic. Chime in with yours as you are inspired.

__________________________________

Quote:
Originally Posted by plush2 View Post
# spectral peaks: low end of color spectrum is now 40Hz
IMHO, this would be much more useful if it could go right down to DC.
If that range was combined with the option to specify frequency bands within the overall spectrum and assign certain colour ranges to those bands, this would be extremely useful for instantly spotting subsonic frequencies such as low end wind noise, mic stand bumps, plosives in vocals and other things.

Edit - For example: 0Hz - 15Hz range = Red to Orange, 16Hz - 50Hz = Orange to Yellow, 51Hz - 500Hz = Yellow to Green, 501Hz - 3.15KHz = Green to Blue, 3.16KHz - 20KHz = Blue to Aqua.
I've massively simplified this and haven't put much thought into the bands but this is just a quick illustration to show assigning colours to (sometimes vastly) differing bandwidths.

__________________________________

One more suggestion regarding the colour selection in the Peak Display Settings window, would it be possible to implement a user definable colour map something along the lines of the Photoshop custom gradient editor?
Each of the little coloured boxes can be double clicked to open a colour picker and they can be slid along the gradient to position them. More colour boxes can be added to the gradient by single clicking.


__________________________________

A couple more quick things regarding the Peak Display Settings window:

* It is VERY small on my screen and the font is very hard to read. I actually had to use the Windows magnifier to make out what the text either side of the spectrum actually said!
Perhaps it could be made resizable like ReaEQ which would also make for much easier spectrum editing (hint, hint)

* This is just a personal preference but perhaps the default spectrum colours could match the colour temperature scale. For example, cold (LF) = red through to hot (HF) = blue.
Coming from a physics, electronics, video and photography background, this just seems logical to me.
ReaDave is offline   Reply With Quote
Old 12-28-2016, 02:08 PM   #2
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 25,882
Default

Quote:
Originally Posted by ReaDave View Post
Chime in with yours as you are inspired.
It think stuff outside human hearing shouldn't be a color, ex: <20Hz black > 20kHz White. I also don't think it should follow the kelvin style color temperature scale for cold/hot because its confusing in an audio context, for example, blue is a cool color to our eyes and red is hot (just like meters) which is the better creative reference, we wouldn't want that reversed just because the other technical scale is used in lighting. I fully understand the other scale, I just don't see it helpful in audio where its inverse has already been used for so long.
__________________
Music happens between the grid lines.

Last edited by karbomusic; 12-28-2016 at 02:15 PM.
karbomusic is offline   Reply With Quote
Old 12-28-2016, 02:37 PM   #3
ReaDave
Human being with feelings
 
ReaDave's Avatar
 
Join Date: Mar 2010
Location: Adelaide, South Australia (originally from Geelong)
Posts: 5,524
Default

Quote:
Originally Posted by karbomusic View Post
It think stuff outside human hearing shouldn't be a color, ex: <20Hz black > 20kHz White.
Great idea! +1.

In fact, I kind of have the upper range set that way right now. I'm working on a new album with lots of analog synths and analog sequencer parts and the spectral display is showing anything with pink and white noise (used in sequences for percussive FX) as white (or very light grey) and it is much more than just a pretty display. It actually helps heaps with arranging and "seeing" what a certain part of the song sounds like.

Here's a screen shot (My spectral colours are red for LF to blue for Mid/High F).
First part (track 1) is a bass sequence on Roland SH09.

Second part (track 3) is an arpeggio part on Roland Juno 6. You can see the LFO modulation opening and closing the filter here. As it opens, the white noise generator produces a percussive effect which shows as light grey in the spectrum and, as it closes slightly, just the notes without the noise get through.

Third and fourth parts are stereo outputs 1 & 2 from my Yamaha SY77. The patch here has a bright attack with lots of top end (showing light grey again) which rolls off as the chords are sustained (these are high chords which show as blue).

Click image for full resolution:
ReaDave is offline   Reply With Quote
Old 12-28-2016, 02:43 PM   #4
ReaDave
Human being with feelings
 
ReaDave's Avatar
 
Join Date: Mar 2010
Location: Adelaide, South Australia (originally from Geelong)
Posts: 5,524
Default

Quote:
Originally Posted by Justin View Post
I don't disagree, however the analysis is limited in what it can produce -- each frequency bin is about 43Hz wide, so there's no real distinction between 10Hz and 40Hz for the purposes of spectral peaks. Sorry, live with it (until we all have 10x more processing power, in which case we can increase the resolution a bit, some day).
Thanks for the explanation Justin. No problem with that at all. Sub frequencies tend to stand out pretty well just by observing the waveform anyway.

Quote:
Originally Posted by Justin View Post
I should mention: I understand the impulse to go FR crazy with this -- there are tons of great suggestions here -- but for purposes of getting this functionality finished, we're really going to focus on making sure the core of it is as stable and generally useful as possible, providing a ReaScript API, and then later on we'll add more features.
No problem there either. In fact, this feature is already immensely useful and very usable. As you can probably tell, I'm quite excited about it and really appreciate the fact that REAPER is progressing in such a continuous manner. I'm constantly amazed by your continued enthusiasm and work ethic (these releases are coming as most people have holidays!!!)
ReaDave is offline   Reply With Quote
Old 12-28-2016, 03:01 PM   #5
pcartwright
Human being with feelings
 
Join Date: Jan 2009
Posts: 961
Default

Pardon my ignorance, but what about the frequency determines the color? Is it a dominant band of frequencies?

What color would one expect from a media item that has a wide range of concurrent frequencies?
pcartwright is offline   Reply With Quote
Old 12-28-2016, 03:07 PM   #6
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,691
Default

Quote:
Originally Posted by pcartwright View Post
Pardon my ignorance, but what about the frequency determines the color? Is it a dominant band of frequencies?

What color would one expect from a media item that has a wide range of concurrent frequencies?
For REAPER's spectral peaks: the point which represents the rough center of the energy is used for the color. If there's a lot of concurrent frequencies throughout, REAPER then fades it towards white/gray/black/theme (depending on preference), because it is less tonal.
Justin is offline   Reply With Quote
Old 12-28-2016, 02:58 PM   #7
ReaDave
Human being with feelings
 
ReaDave's Avatar
 
Join Date: Mar 2010
Location: Adelaide, South Australia (originally from Geelong)
Posts: 5,524
Default

Quote:
Originally Posted by karbomusic View Post
...I also don't think it should follow the kelvin style color temperature scale for cold/hot because its confusing in an audio context, for example, blue is a cool color to our eyes and red is hot (just like meters) which is the better creative reference, we wouldn't want that reversed just because the other technical scale is used in lighting. I fully understand the other scale, I just don't see it helpful in audio where its inverse has already been used for so long.
Fair enough. I guess this is why it would be great to have the custom selectable palette. As usual with REAPER, we could then set it up as we want.
EDIT - Just a personal thing here but I've always equated bass as 'hot' (or more usually 'warm') and treble as 'cool'. When we speak of warming up our audio (I know, very loose term there!!), that generally tends to mean less harshness in the HF (and quite often with some sort of rolloff) and more fullness in the LF.
LF generally has a lot more energy too and is thus usually hotter on the meters, especially analog VU meters.

EDIT 2 - Rethinking all this, I think we're actually saying the same thing. Red on the Kelvin scale is actually cool but it is also the lowest frequency. Blue is the hot end of the spectrum and is the highest frequency.
EDIT 3 - My brain hurts!!! - Are we saying the same thing? Or is LF cool to you and HF hot? - Sorry, not trying to be argumentative, just trying to wrap my head around our perspectives (and I actually do have a migraine coming on caused by something else).

The colour scale adjustment as it is now is quite usable with the click and slide option BTW. My suggestions are more for future updates and feature additions after, as Justin said, the core is proven to be stable and efficient (it already works well here!)

I'm used to this way of working with colour mainly through the way some of my other programs show spectrums (such as iZotope RX). Granted, this is more an intensity based colour map but given that there's almost always more energy in the low frequencies, RX tends to show LF as red and HF as blue.

Here's an example:


Last edited by ReaDave; 12-28-2016 at 03:19 PM.
ReaDave is offline   Reply With Quote
Old 12-28-2016, 02:32 PM   #8
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,691
Default

Quote:
Originally Posted by ReaDave View Post
IMHO, this would be much more useful if it could go right down to DC.
I don't disagree, however the analysis is limited in what it can produce -- each frequency bin is about 43Hz wide, so there's no real distinction between 10Hz and 40Hz for the purposes of spectral peaks. Sorry, live with it (until we all have 10x more processing power, in which case we can increase the resolution a bit, some day).
Justin is offline   Reply With Quote
Old 12-28-2016, 04:18 PM   #9
Argitoth
Human being with feelings
 
Argitoth's Avatar
 
Join Date: Feb 2008
Location: Phoenix, AZ
Posts: 2,055
Default

Quote:
Originally Posted by Justin View Post
each frequency bin is about 43Hz wide, so there's no real distinction between 10Hz and 40Hz for the purposes of spectral peaks. Sorry, live with it (until we all have 10x more processing power, in which case we can increase the resolution a bit, some day).
Wouldn't it be more useful and just as much processing power to make low frequency bins smaller and high frequency bins wider? or f*** wait, is it the other way around...
__________________
Soundemote - Home of the chaosfly and pretty oscilloscope.
MyReaperPlugin - Easy-to-use cross-platform C++ REAPER extension template
Argitoth is offline   Reply With Quote
Old 12-28-2016, 04:22 PM   #10
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,691
Default

Quote:
Originally Posted by Argitoth View Post
Wouldn't it be more useful and just as much processing power to make low frequency bins smaller and high frequency bins wider? or f*** wait, is it the other way around...
If you have some resources on the math behind such a thing, I'll happily take a look.
Justin is offline   Reply With Quote
Old 12-28-2016, 05:02 PM   #11
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,747
Default

I see devs experimenting with new UI elements in the peak display settings window. Why? It is cool but I almost didn't realize that you can also drag the frequencies at the bottom os the spectral settings gradient.

Would it be useful to have presets for different spectral peaks settings? Or be able to specify them per track instead of global?

I don't know what is the problem with processing power. It's really fast. Maybe id settings per track, one could activate more detailed analysis just for one track that needs it.
heda is offline   Reply With Quote
Old 12-28-2016, 05:18 PM   #12
Argitoth
Human being with feelings
 
Argitoth's Avatar
 
Join Date: Feb 2008
Location: Phoenix, AZ
Posts: 2,055
Default

Quote:
Originally Posted by Justin View Post
If you have some resources on the math behind such a thing, I'll happily take a look.
meheHHEHEHEHE HAHAHAAAAA!!!... well f***

I'll get back to you if I ever find something.
__________________
Soundemote - Home of the chaosfly and pretty oscilloscope.
MyReaperPlugin - Easy-to-use cross-platform C++ REAPER extension template
Argitoth is offline   Reply With Quote
Old 04-05-2017, 12:51 PM   #13
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 420
Default

Hi ¡¡¡

I have some problems with zoom and spectral peaks.

First thing, I Know that there's an option for prevent spectral peak per track but by default them are enable.

- Is there an option (preferences or similar) for disable them by default ?

I would only enable them in certain tracks or per item and by the moment each time I insert a track has to disable it manually.

The other thing is that after disable, I insert some new track, enable spectral peak for them and after redrawing spectral peak has problems for been show:

I read something similar to this before in the forum but don´t know if it has been corrected in Reaper's last release. (I`m using last Reaper Versions)



Thank´s for your help
ecl is offline   Reply With Quote
Old 12-28-2016, 05:39 PM   #14
ReaDave
Human being with feelings
 
ReaDave's Avatar
 
Join Date: Mar 2010
Location: Adelaide, South Australia (originally from Geelong)
Posts: 5,524
Default

Quote:
Originally Posted by Justin View Post
If you have some resources on the math behind such a thing, I'll happily take a look.
I don't know a lot about the actual maths behind FFT calculations but would what Argitoth is suggesting be something along the lines of using equal points per octave for the FFT? Some of the spectrum analysis gear I use has the option of expanding the resolution of the low range this way. Instead of increasing the overall FFT resolution, it just changes the spacing of the points.
I'm not sure how that would equate to resource usage though.
ReaDave is offline   Reply With Quote
Old 12-28-2016, 06:04 PM   #15
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: brighton, uk
Posts: 12,822
Default

Quote:
Originally Posted by ReaDave View Post
I don't know a lot about the actual maths behind FFT calculations but would what Argitoth is suggesting be something along the lines of using equal points per octave for the FFT? Some of the spectrum analysis gear I use has the option of expanding the resolution of the low range this way. Instead of increasing the overall FFT resolution, it just changes the spacing of the points.
I'm not sure how that would equate to resource usage though.
I might have misunderstood but you can grab the frequencies at the bottom and "stretch" the run so to speak which definitely helps with definition.
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 12-29-2016, 01:35 AM   #16
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,059
Default

Quote:
Originally Posted by ReaDave View Post
I don't know a lot about the actual maths behind FFT calculations but would what Argitoth is suggesting be something along the lines of using equal points per octave for the FFT? Some of the spectrum analysis gear I use has the option of expanding the resolution of the low range this way. Instead of increasing the overall FFT resolution, it just changes the spacing of the points.
I'm not sure how that would equate to resource usage though.
Yeah, that is probably the thing: The FFT uses linear scale throughout its entire range, and AFAIK there is no way around that...
Tale is offline   Reply With Quote
Old 12-29-2016, 02:30 AM   #17
timlloyd
Human being with feelings
 
Join Date: Mar 2010
Posts: 4,713
Default

Quote:
Originally Posted by Justin View Post
If you have some resources on the math behind such a thing, I'll happily take a look.
http://doc.ml.tu-berlin.de/bbci/mate...Bla_constQ.pdf

Looks like a good starting point

Doesn't need to be invertible for this application, but the following might be interesting anyway, since it claims to be more efficient.

http://www.univie.ac.at/nonstatgab/p...e11_amsart.pdf

But it still looks slow, particularly for long input signals :-s
timlloyd is offline   Reply With Quote
Old 02-05-2017, 05:43 PM   #18
DrFrankencopter
Human being with feelings
 
Join Date: Jan 2011
Location: Ottawa, Canada
Posts: 117
Default

Quote:
Originally Posted by Justin View Post
If you have some resources on the math behind such a thing, I'll happily take a look.
Not sure if anyone answered this already, but look into the Chirp-Z transform. It might just do what you need. It will let you have a larger window size for lower frequencies, and smaller for higher frequencies. Also lets you get away from power of 2 window lengths.

https://en.wikipedia.org/wiki/Chirp_Z-transform

Cheers

Kris
__________________
RME TotalMixFX Actions for Reaper here: https://stash.reaper.fm/v/29339/reape...MixOSC_x64.dll
DrFrankencopter is offline   Reply With Quote
Old 02-05-2017, 05:54 PM   #19
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: brighton, uk
Posts: 12,822
Default

Quote:
Originally Posted by DrFrankencopter View Post
Not sure if anyone answered this already, but look into the Chirp-Z transform. It might just do what you need. It will let you have a larger window size for lower frequencies, and smaller for higher frequencies. Also lets you get away from power of 2 window lengths.

https://en.wikipedia.org/wiki/Chirp_Z-transform

Cheers

Kris
that sounds amazing!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 12-28-2016, 02:33 PM   #20
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,691
Default

I should mention: I understand the impulse to go FR crazy with this -- there are tons of great suggestions here -- but for purposes of getting this functionality finished, we're really going to focus on making sure the core of it is as stable and generally useful as possible, providing a ReaScript API, and then later on we'll add more features.
Justin is offline   Reply With Quote
Old 12-28-2016, 03:58 PM   #21
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 25,882
Default

Quote:
Originally Posted by Justin View Post
I should mention: I understand the impulse to go FR crazy with this
Oops, that was the reason for my seemingly cryptic questions in clepsydrae's thread about spectral peaks. I assumed it wasn't supposed to be much beyond an enhanced peak file which is fine with me albeit couldn't help joining in on the discussion.
__________________
Music happens between the grid lines.
karbomusic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.