back with spectrum analisis!

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
Linvincible
Posts: 95
Joined: Sat Sep 25, 2004 5:01 am

back with spectrum analisis!

Post by Linvincible »

Hello everybody,

I already tuned the SM spectrum analyser to look a bit different a while ago.
Now I'm onto a 3 dimension input spectrum vis.
What I want to achieve:
on the X axis: time
on the Y axis: frenquence
brightness: power on that frequence

doing a scrolling effect to the left is easy, that would be the flowfield
now I need a vertical bar on the right of the screen to react to the frequencies sensed
then the colormap would take care of the brightness of dots

I tried a bit already, but I'm not happy with what I did
first I didn't find a proper color map strategy
and I don't know haw do do this V line that would react without moving to the different frequencies

has anyone got an idea on how to do this?

I found an example of what I want to do in an already existing program, called spectrogram edited by visualizationsoftware
but it's really too much for what I want to do with it and there is no full screen mode
I am sure it's possible to imitate this vis with G-force!

here is the link with pictures that explain a lot better than I do ;o)
http://www.visualizationsoftware.com/gram.html

thanks for the help ;o)

Linvincible
Posts: 95
Joined: Sat Sep 25, 2004 5:01 am

I have to answer to myself then!

Post by Linvincible »

well, with a bit of re-thinking here's what I came up with

waveshape:


Aspc=0,
Stps=40,
ConB=1,

A0="0.1", // Height scale
A1="3 + rnd( 3 )", // Thickness

Y0=" -0.95 " ,
X0=" 1-A0 * s * (fft(0.025)) ",


Y1=" -0.9 " ,
X1=" 1-A0 * s * (fft(0.05)) ",


Y2=" -0.85 " ,
X2=" 1-A0 * s * (fft(0,075)) ",


Y3=" -0.8 " ,
X3=" 1-A0 * s * (fft(0.1)) ",


Y4=" -0.75 " ,
X4=" 1-A0 * s * (fft(0.125)) ",


Y5=" -0.7 " ,
X5=" 1-A0 * s * (fft(0.15)) ",


Y6=" -0.65 " ,
X6=" 1-A0 * s * (fft(0.175)) ",


Y7=" -0.6 " ,
X7=" 1-A0 * s * (fft(0.2)) ",


Y8=" -0.55 " ,
X8=" 1-A0 * s * (fft(0.225)) ",


Y9=" -0.5 " ,
X9=" 1-A0 * s * (fft(0.25)) ",


Y10=" -0.45 " ,
X10=" 1-A0 * s * (fft (0.275)) ",


Y11=" -0.4 " ,
X11=" 1-A0 * s * (fft (0.35)) ",


Y12=" -0.35 " ,
X12=" 1-A0 * s * (fft (0.325)) ",


Y13=" -0.3 " ,
X13=" 1-A0 * s * (fft (0.35)) ",


Y14=" -0.25 " ,
X14=" 1-A0 * s * (fft (0.375)) ",


Y15=" -0.2 " ,
X15=" 1-A0 * s * (fft (0.4)) ",


Y16=" -0.15 " ,
X16=" 1-A0 * s * (fft (0.425)) ",


Y17=" -0.1 " ,
X17=" 1-A0 * s * (fft (0.45)) ",


Y18=" -0.05 " ,
X18=" 1-A0 * s * (fft (0.475)) ",


Y19=" 0.0 " ,
X19=" 1-A0 * s * (fft (0.5)) ",


Y20=" 0.05 " ,
X20=" 1-A0 * s * (fft(0.525)) ",


Y21=" 0.1 " ,
X21=" 1-A0 * s * (fft(0.55)) ",


Y22=" 0.15 " ,
X22=" 1-A0 * s * (fft(0.575)) ",


Y23=" 0.2 " ,
X23=" 1-A0 * s * (fft(0.6)) ",


Y24=" 0.25 " ,
X24=" 1-A0 * s * (fft(0.625)) ",


Y25=" 0.3 " ,
X25=" 1-A0 * s * (fft(0.65)) ",


Y26=" 0.35 " ,
X26=" 1-A0 * s * (fft(0.675)) ",


Y27=" 0.4 " ,
X27=" 1-A0 * s * (fft(0.7)) ",


Y28=" 0.45 " ,
X28=" 1-A0 * s * (fft(0.725)) ",


Y29=" 0.5 " ,
X29=" 1-A0 * s * (fft(0.75)) ",


Y30=" 0.55 " ,
X30=" 1-A0 * s * (fft (0.775)) ",


Y31=" 0.6 " ,
X31=" 1-A0 * s * (fft (0.8)) ",


Y32=" 0.65 " ,
X32=" 1-A0 * s * (fft (0.825)) ",


Y33=" 0.7 " ,
X33=" 1-A0 * s * (fft (0.85)) ",


Y34=" 0.75 " ,
X34=" 1-A0 * s * (fft (0.875)) ",


Y35=" 0.8 " ,
X35=" 1-A0 * s * (fft (0.9)) ",


Y36=" 0.85 " ,
X36=" 1-A0 * s * (fft (0.925)) ",


Y37=" 0.9 " ,
X37=" 1-A0 * s * (fft (0.95)) ",


Y38=" 0.95 " ,
X38=" 1-A0 * s * (fft (0.975)) ",


Y39=" 1.0 " ,
X39=" 1-A0 * s * (fft (1)) ",


LWdt=" A1 ",

C0="s"

Pen=" C0 ",

Meta="reactive=5, detail=5, density=5, morphable=3",

Vers=260


flowfield:

Aspc=1

srcX="x + .03"
srcY=" y "

Vers=100


advised colormap: DT - antarctis

Linvincible
Posts: 95
Joined: Sat Sep 25, 2004 5:01 am

Post by Linvincible »

problem is: brightness decreases as the graph scrolls ...
but it's a good start!
next thing: more steps and logarithmic scale in the frequencies

Linvincible
Posts: 95
Joined: Sat Sep 25, 2004 5:01 am

made it!

Post by Linvincible »

now the linear scale of the pen is not really funny, I'll try to modify it beforeI submit those configs

but check that :

waveshape: Linvincible - V Spectrograph

Aspc=0,
Stps=50,
ConB=1,



X0="0.95"
Y0="2*s-1"

LWdt="2"

Pen="0.75+fft(s)"

ConB=1

LWdt="5",


Meta="reactive=5, detail=5, density=5, morphable=3",

Vers=260

to use with the scrolling flowfield above

I also modified the previous waveshapes I made, here they are:

**************************************************
waveshape: Linvincible - Spectrometer

X0="2*s-1"
Y0="2*fft(s)-1"

LWdt="2"

Pen="0.75+fft(s)"

ConB=1


Meta="reactive=4 detail=4 density=4 morphable=4"

Vers=270

****************************************************
waveshape; Linvincible - Spectrometer bar



Aspc=0,
Stps=40,
ConB=1,

A0="2", // Height scale
A1="3 + rnd( 3 )", // Thickness

X0=" -0.95 " ,
Y0=" A0 * s * (fft(0.025)) - 1",


X1=" -0.9 " ,
Y1=" A0 * s * (fft(0.05)) - 1",


X2=" -0.85 " ,
Y2=" A0 * s * (fft(0,075)) - 1",


X3=" -0.8 " ,
Y3=" A0 * s * (fft(0.1)) - 1",


X4=" -0.75 " ,
Y4=" A0 * s * (fft(0.125)) - 1",


X5=" -0.7 " ,
Y5=" A0 * s * (fft(0.15)) - 1",


X6=" -0.65 " ,
Y6=" A0 * s * (fft(0.175)) - 1",


X7=" -0.6 " ,
Y7=" A0 * s * (fft(0.2)) - 1",


X8=" -0.55 " ,
Y8=" A0 * s * (fft(0.225)) - 1",


X9=" -0.5 " ,
Y9=" A0 * s * (fft(0.25)) - 1",


X10=" -0.45 " ,
Y10=" A0 * s * (fft (0.275)) - 1",


X11=" -0.4 " ,
Y11=" A0 * s * (fft (0.35)) - 1",


X12=" -0.35 " ,
Y12=" A0 * s * (fft (0.325)) - 1",


X13=" -0.3 " ,
Y13=" A0 * s * (fft (0.35)) - 1",


X14=" -0.25 " ,
Y14=" A0 * s * (fft (0.375)) - 1",


X15=" -0.2 " ,
Y15=" A0 * s * (fft (0.4)) - 1",


X16=" -0.15 " ,
Y16=" A0 * s * (fft (0.425)) - 1",


X17=" -0.1 " ,
Y17=" A0 * s * (fft (0.45)) - 1",


X18=" -0.05 " ,
Y18=" A0 * s * (fft (0.475)) - 1",


X19=" 0.0 " ,
Y19=" A0 * s * (fft (0.5)) - 1",


X20=" 0.05 " ,
Y20=" A0 * s * (fft(0.525)) - 1",


X21=" 0.1 " ,
Y21=" A0 * s * (fft(0.55)) - 1",


X22=" 0.15 " ,
Y22=" A0 * s * (fft(0.575)) - 1",


X23=" 0.2 " ,
Y23=" A0 * s * (fft(0.6)) - 1",


X24=" 0.25 " ,
Y24=" A0 * s * (fft(0.625)) - 1",


X25=" 0.3 " ,
Y25=" A0 * s * (fft(0.65)) - 1",


X26=" 0.35 " ,
Y26=" A0 * s * (fft(0.675)) - 1",


X27=" 0.4 " ,
Y27=" A0 * s * (fft(0.7)) - 1",


X28=" 0.45 " ,
Y28=" A0 * s * (fft(0.725)) - 1",


X29=" 0.5 " ,
Y29=" A0 * s * (fft(0.75)) - 1",


X30=" 0.55 " ,
Y30=" A0 * s * (fft (0.775)) - 1",


X31=" 0.6 " ,
Y31=" A0 * s * (fft (0.8)) - 1",


X32=" 0.65 " ,
Y32=" A0 * s * (fft (0.825)) - 1",


X33=" 0.7 " ,
Y33=" A0 * s * (fft (0.85)) - 1",


X34=" 0.75 " ,
Y34=" A0 * s * (fft (0.875)) - 1",


X35=" 0.8 " ,
Y35=" A0 * s * (fft (0.9)) - 1",


X36=" 0.85 " ,
Y36=" A0 * s * (fft (0.925)) - 1",


X37=" 0.9 " ,
Y37=" A0 * s * (fft (0.95)) - 1",


X38=" 0.95 " ,
Y38=" A0 * s * (fft (0.975)) - 1",


X39=" 1.0 " ,
Y39=" A0 * s * (fft (1)) - 1",


LWdt=" A1 ",



Pen="0.8+fft(s)",

Meta="reactive=5, detail=5, density=5, morphable=3",

Vers=260

********************************************************
waveshape: Linvincible - V Spectrometer

Aspc=0,
Stps=50,
ConB=1,



X0="fft(s)"
Y0="2*s-1"

X1="-fft(s)"
Y1="2*s-1"

LWdt="2"

Pen="0.75+fft(s)"

ConB=1

LWdt="5",

Meta="reactive=4 detail=4 density=4 morphable=4"

Vers=270

******************************************************

happyman
Posts: 2
Joined: Mon Nov 19, 2007 2:05 pm
Location: maryland

spectrogram

Post by happyman »

Did Linvincible ever get his spectrogram working,
I looked at the geek site, but the link was too old.

Sure would like to know

Thanks
happyman
When you revel in the amazing historical "facts", just remember that the
textbooks of history are usually written by someone who wasn't there,
but gleaned from the views of the winners or surviver's....dk

Linvincible
Posts: 95
Joined: Sat Sep 25, 2004 5:01 am

yes!

Post by Linvincible »

hi,

I posted my configs on my new website (as dyndns is not free anymore)
http://homepage.hispeed.ch/EnglandsLege ... shapes.zip
http://homepage.hispeed.ch/EnglandsLege ... fields.zip

the best combination for a spectrograph is
waveshape : Linvincible - V Spectrograph
flowfield : Linvincible - scroll compressed

Do not hesitate to improve!

Linvincible

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

Thanks, I will try them out later, when I got time. 8)

happyman
Posts: 2
Joined: Mon Nov 19, 2007 2:05 pm
Location: maryland

Post by happyman »

Thanks for the link. I have been working for a couple
years at getting whitecap to plot a 3d wireframe spectrogram
of two microphones (stereo) of amplitude/phase/freq.
Not successful yet, but I'm sort of an old bloody tick,
just keep hanging in there.
thanks again, and will check your version.
When you revel in the amazing historical "facts", just remember that the
textbooks of history are usually written by someone who wasn't there,
but gleaned from the views of the winners or surviver's....dk

Post Reply