INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Wrong cover art in spectrum  (Read 4098 times)

purujin

  • Recent member
  • *
  • Posts: 5
Wrong cover art in spectrum
« on: June 23, 2013, 08:04:12 am »

Hey there forum,
I'm creating a visualisation in the visualisation studio today, but I've been hopelessly stuck for a few hours now..
the visualisation consists of:
Flush
Spectrum Analyzer (cover art)
Layer (blend)
  Layer (blend)
    Spectrum Analyzer (cover art)
    Text
    Super Transform
code below.
Code: [Select]
<MJV Version="1.0">
<Component GUID="36267E6D-70E1-435e-9E2A-428EEA2D3C7E" Name="Flush">
<Properties>
<OnEquation>on=1</OnEquation>
<Color>0x000000</Color>
<Rectangle>0,0,1,1</Rectangle>
<FlushEquation>f=1;</FlushEquation>
</Properties>
</Component>
<Component GUID="B21F9002-EF2E-4d5b-9D40-F61B8F3B34D8" Name="Spectrum Analyzer">
<Properties>
<OnEquation>on=1</OnEquation>
<DrawSource>1</DrawSource>
<Channels>0</Channels>
<DrawPeaks>1</DrawPeaks>
<DrawBars>1</DrawBars>
<Mirrored>1</Mirrored>
<ImageFile>COVER_ART</ImageFile>
<PeakGravity>512</PeakGravity>
<BarGravity>1024</BarGravity>
<PeakTerminalVelocity>0</PeakTerminalVelocity>
<BarTerminalVelocity>0</BarTerminalVelocity>
<PeakThrowForce>0</PeakThrowForce>
<FFTElements>512</FFTElements>
<FrequencyScale>5</FrequencyScale>
<TopWeight>5</TopWeight>
<UpScale>30</UpScale>
<BarWidth>0.0099999997764826</BarWidth>
<BarSpacing>0.003000000026077</BarSpacing>
<PeakHeight>0</PeakHeight>
<PeakColor>0xFFFFFF</PeakColor>
<Gradient>{3, 1} [[0xFF0000,0xFFFFFF,0x0000FF]]</Gradient>
<MainRectangle>0,0,1,1</MainRectangle>
</Properties>
</Component>
<Layer>
<Properties>
<OnEquation>on=1</OnEquation>
<ClearEachFrame>0</ClearEachFrame>
<OutputMode>1</OutputMode>
<Rectangle>0,0,1,1</Rectangle>
<TransparentColor>0x000000</TransparentColor>
</Properties>
<Layer>
<Properties>
<OnEquation>on=1</OnEquation>
<ClearEachFrame>0</ClearEachFrame>
<OutputMode>1</OutputMode>
<Rectangle>0,0,1,1</Rectangle>
<TransparentColor>0xFFFFFF</TransparentColor>
</Properties>
<Component GUID="B21F9002-EF2E-4d5b-9D40-F61B8F3B34D8" Name="Spectrum Analyzer">
<Properties>
<OnEquation>on=if(t&lt;1,1,0);t=(t+1)%10;</OnEquation>
<DrawSource>1</DrawSource>
<Channels>0</Channels>
<DrawPeaks>1</DrawPeaks>
<DrawBars>1</DrawBars>
<Mirrored>1</Mirrored>
<ImageFile>COVER_ART</ImageFile>
<PeakGravity>512</PeakGravity>
<BarGravity>1024</BarGravity>
<PeakTerminalVelocity>0</PeakTerminalVelocity>
<BarTerminalVelocity>0</BarTerminalVelocity>
<PeakThrowForce>0</PeakThrowForce>
<FFTElements>512</FFTElements>
<FrequencyScale>5</FrequencyScale>
<TopWeight>10</TopWeight>
<UpScale>30</UpScale>
<BarWidth>0.0099999997764826</BarWidth>
<BarSpacing>0.003000000026077</BarSpacing>
<PeakHeight>0</PeakHeight>
<PeakColor>0xFFFFFF</PeakColor>
<Gradient>{3, 1} [[0x000000,0x000000,0x000000]]</Gradient>
<MainRectangle>0,0,1,1</MainRectangle>
</Properties>
</Component>
<Component GUID="BBEC668A-420F-4faa-856D-880DACE05B5B" Name="Text">
<Properties>
<OnEquation>on=1</OnEquation>
<Text>ARTIST - NAME (ALBUM - YEAR)</Text>
<RenderDelayMilliseconds>0</RenderDelayMilliseconds>
<RenderDuration>0</RenderDuration>
<TextLocationEquation>x1=0;y1=0.9;x2=1;y2=1.0</TextLocationEquation>
<FontName>DEFAULT</FontName>
<FontSize>0.012</FontSize>
<TextColorEquation>r=1;g=1;b=1;</TextColorEquation>
<TextAlignment>5</TextAlignment>
</Properties>
</Component>
<Component GUID="DCE4B5AB-25A0-432f-B4A2-8E91B9FD1060" Name="Super Transform">
<Properties>
<OnEquation>on=1</OnEquation>
<TransformEquation>d=d*0.995;</TransformEquation>
<ZoomEquation></ZoomEquation>
<ScrollEquation></ScrollEquation>
<RotateEquation></RotateEquation>
<ColorFadeEquation>r=.99+(impact*rand(1.50));b=.99+(impact*rand(1.50));g=.99+(impact*rand(1.50))</ColorFadeEquation>
<ColorAddEquation></ColorAddEquation>
<TransformChangeEquation>c=if(t&gt;200,1,0);t=if(t&gt;200,0,t+1)</TransformChangeEquation>
<ClipAtBorders>0</ClipAtBorders>
</Properties>
</Component>
</Layer>
</Layer>
</MJV>
The problem is that the second spectrum analyzer keeps displaying the first cover, not the cover of the song playing. This resets if I refresh the window. Is this because the spectrum is layered? What can I do to get rid of it?

UPDATE:
By fooling around with the parameters a bit, I've come to the conclusion that this problem is caused because the second spectrum analyzer
is only on once every 10 frames, there is a 10% chance that it loads the correct image..
However, if I have the spectrum always on, my super transform won't work...
Logged

purujin

  • Recent member
  • *
  • Posts: 5
Re: Wrong cover art in spectrum
« Reply #1 on: June 24, 2013, 08:58:02 am »

I solved the problem! By putting the spectrum analyzer on "always on", and giving it a transparent color 9 out of 10 frames. Topic closed I'd say.
Logged
Pages: [1]   Go Up