spectralizer

spectralizer v1.3.4

Yurlyn

Member
Sup, this plugin is awesome. I just have a question, in circular bars mode there seems to be a lack of a proper stereo readout like in the other modes. Is there a way to fix this? Currently I have it set up in a half circle and I'm using a Source Mirror to mirror the direction because I don't like the high end (lower volume outputs) ending up mashed against the low end (higher volume readout). While the effect is sort of like Monstercat like this with the proper settings I would love it if I can make the other side actually be the other stereo channel. It could work if there is a checkmark/dropdown menu that lets you select which channel of the sound input you wish to use. That way I can just run two of these and set them up the same except that they are spectralizing a different channel of the same input.

Thanks in advance :D

(Left is Source Mirror, right is original)
1610555333380.png
 

univrsal

Active Member
Sup, this plugin is awesome. I just have a question, in circular bars mode there seems to be a lack of a proper stereo readout like in the other modes. Is there a way to fix this? Currently I have it set up in a half circle and I'm using a Source Mirror to mirror the direction because I don't like the high end (lower volume outputs) ending up mashed against the low end (higher volume readout). While the effect is sort of like Monstercat like this with the proper settings I would love it if I can make the other side actually be the other stereo channel. It could work if there is a checkmark/dropdown menu that lets you select which channel of the sound input you wish to use. That way I can just run two of these and set them up the same except that they are spectralizing a different channel of the same input.

Thanks in advance :D

(Left is Source Mirror, right is original)
View attachment 65858
Stereo isn't supported in the circular mode. Don't know if it'll be added at some point.
 

jembawls

New Member
I know rounded tips has been requested before and shot down due to not having/wanting to add another way to draw the bars - rectangles are easy to draw, rectangles with rounded corners are not so straight forward, i get that.

But I have a suggested, quick-and-dirty implementation: circles ARE easy to draw in software, no? Could you not draw a circle centered at the tip of a rectangle that has the diameter the same width of the rectangle? This would only work for creating a rounded tip and not necessarily rounded corners, but it's something (and also happens to be exactly what I'm after).

Pro diagram included:
bar.png
 

univrsal

Active Member
I know rounded tips has been requested before and shot down due to not having/wanting to add another way to draw the bars - rectangles are easy to draw, rectangles with rounded corners are not so straight forward, i get that.

But I have a suggested, quick-and-dirty implementation: circles ARE easy to draw in software, no? Could you not draw a circle centered at the tip of a rectangle that has the diameter the same width of the rectangle? This would only work for creating a rounded tip and not necessarily rounded corners, but it's something (and also happens to be exactly what I'm after).

Pro diagram included:
View attachment 66510
Nope, there's no integrated way to do that. There's only one for rectangles. The alternative is to draw a list of points which is what I'd use but I can't really be bothered to figure out the math for that.
 

jembawls

New Member
The math for a circle of points? Here's some psuedocode, the math isn't too tricky:

//User Parameters
float CIRCLE_DIAMETER = BAR_WIDTH; //circle diameter == bar width
int NUMBER_OF_POINTS = 90; //resolution of the circle

float offsetX = 0.0f;
float offsetY = 0.0f;
float angleDifference = 360.0f / NUMBER_OF_POINTS; //in degrees
for( int i = 0; i < NUMBER_OF_POINTS; ++i)
{
offsetX = sin(angleDifference * i) * CIRCLE_DIAMETER ;
offsetY = cos(angleDifference * i) * CIRCLE_DIAMETER ;
listOfPoints.Add(offsetX, offsetY); //add to whatever list you would use to store the points
}


Apply those offsets at the center-top extent (and/or bottom if stereo) of the rectangle. As they are only offsets this list can be reused for every rectangle without needing to be calculated every frame.
 

univrsal

Active Member
The math for a circle of points? Here's some psuedocode, the math isn't too tricky:

//User Parameters
float CIRCLE_DIAMETER = BAR_WIDTH; //circle diameter == bar width
int NUMBER_OF_POINTS = 90; //resolution of the circle

float offsetX = 0.0f;
float offsetY = 0.0f;
float angleDifference = 360.0f / NUMBER_OF_POINTS; //in degrees
for( int i = 0; i < NUMBER_OF_POINTS; ++i)
{
offsetX = sin(angleDifference * i) * CIRCLE_DIAMETER ;
offsetY = cos(angleDifference * i) * CIRCLE_DIAMETER ;
listOfPoints.Add(offsetX, offsetY); //add to whatever list you would use to store the points
}


Apply those offsets at the center-top extent (and/or bottom if stereo) of the rectangle. As they are only offsets this list can be reused for every rectangle without needing to be calculated every frame.
The issue isn't really the circle coordinates but getting them into a triangle list that draws a rectangle with rounded corners.
1611791349913.png

Anyways here it is. It was about as much as a pain to get it working as I thought. It doesn't work in the circular mode, maybe I'll look into it, but for now that's all I'm willing to do.
 

jembawls

New Member
HOLY CRAP THIS IS HUGE!! Thank you so much! I didn't realise it had to be a triangle list, that would definitely make things a bit of a pain in the but. Thank you so so much.

When can we expect the pre-built release? (i don't know how to build the project)
 
Last edited:

univrsal

Active Member

mmohsen

New Member
Hi there,

i have a Macbook, just downloaded te install file..
installed the brew package from the site, after that I installed the spectralize.pkg
that should do it, but OBS doesn't recognizes "Audio Vizualizer".
Did I missed something?
Hope you can help me out.

I have the same problem. Tested on
macOS 10.15.6 (Catalina)
OBS 26.1.2
Spectralizer 1.3.4

Suggested solution doesn't work

Help is appreciated
 

ThanaKhan

New Member
Hello, I installed this plugin but I have a major problem.
The sound and the image are shifted. On the OBS return everything is ok but live or in recording, I have a desynchronization.
Anyone have a solution?
Thank you.
 

jglisson

New Member
Hello, I installed this plugin but I have a major problem.
The sound and the image are shifted. On the OBS return everything is ok but live or in recording, I have a desynchronization.
Anyone have a solution?
Thank you.
I'm also having this problem. When I monitor audio in OBS, it looks like the visualization is in sync, but when I listen to it on the stream, it's pretty obvious that the visualizer is actually AHEAD of the music. The visualizer moves first, then you hear the audio. I'd love to figure out what's up so I can use this.
 

phonic

New Member
why cant i see this on streamlabs obs i have installed it and its confirmed but whenever i click the plus symbol to add it it doesnt appear in the list to be added, is there a streamlabs version or not ????
 

univrsal

Active Member
why cant i see this on streamlabs obs i have installed it and its confirmed but whenever i click the plus symbol to add it it doesnt appear in the list to be added, is there a streamlabs version or not ????
No there's no streamlabs obs version, because streamlabs obs doesn't support plugins.
 

seabass9

New Member
Update, I just tested Spectralizer 1.3.4 + OBS 26.1.2 + MacOS 11.2 (Big Sur) on my M1 Macbook Air and it works flawlessly! Thank you @universallp for your work on this!
 
Top