From 11115a1534081e88a043e673641aeb61a4ca260a Mon Sep 17 00:00:00 2001 From: Jaedyn Draper Date: Mon, 15 Sep 2014 08:58:48 -0500 Subject: [PATCH] Tweaked the VU vis a bit. --- Release/vis_roccat.dll | Bin 13824 -> 13824 bytes vis_roccat/SpectrumAnalyzer.cpp | 12 +++++++----- vis_roccat/vis_roccat.vcxproj | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Release/vis_roccat.dll b/Release/vis_roccat.dll index 0df25a6c49bba4ce61e01e055564735a3b36e905..3a9fb39576543ab90934c8d835ce78992b1c4f4f 100644 GIT binary patch delta 1674 zcmd6n{ZCs}7{|};3y#-w!(@O1?Fcbb2=tW_P}8{95rP>R$RO*=ke2~rP)l3DAP`Gq z*##WAQ&}=26Q?G=VTx6fWtOtQUf5E$WidJx<2H%>AcG&+o4bDRg(mtRc#_XO&+~kr zb9(wb=ia`SzLqgYKK<7=Ud|kjUNI6Cc+9gcYujpV)&)qhvSwFpZBQAY5;pggvlp3#=RbFN%f7hz@x~#|M;k z5!=5b>N9zwrGLmW*i1^7{BlB8DI5PO|66owMo+xF)4LM}90^@BV|&j(IZg>ME@YtVacen)a`A&t;8b3$_ zmQl~WSZbc}%qo1A(PF+YCaKph2m&@&eykvb21*~zTKdSWw;NGm*5V^{-<1JN|D3lI zemjat18N#55@?{4p@B*n4VdHuUMIw?1uk@47s?7X(AINVm$~VP6I`RW&x2sr`YNql z;ASNOW*C{lUP*b7^}e_VH}@Y+l(-ow#JwZxkwrMKsCj})VMsif7{@88w_0*+Nn>af zil{s)^)okIZQJiwG|-*lRcZrldf!Gud}r@wrd^t=t~Suz1$O~b7gnhisZu2D?%MEJ zP+JbMJ(8PCU)VTA#QUe$_?9r+dY&Z7xP) zRlJzAA!bkeEWYKfaFRBI*fTri!>_x1Q$;1XVBbi6a`iRKo0(>2>EwMuz%?qB#HHWi zaW6mAUD5@Y9%l&QZXKAJpP%0l-S-5cnM@V&J#j_MUH@F1NiIv#^U-Vp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JsT>-A2v01Y6>bQ=@g$s- z_+-l^$r@kA-S=FH&sQo!f)vN+asyH!zZ1_>d=@w08RL@`+@KUnv~sDQ>ZJW#{s5XH z_PDTpURa%qS3&UQZwbVcPd~djED-(|_Lx{8#&-E^ig3_5q{^Fa_`9;=65>G?4@x=e zk@h2adA|m=U<1ejD?lPpfKz~tZ*vHFpd;id_zQ$UEVS1_Iv52-U=!F1te_RF27_P- zu;D}ADewb0pd*RI0mBMD2l+rN9ehL3;@iSLDMSI*gE9f6Folq4EFLxw1`r!akzP$+ z2sFmj!Ul8wj)wUbo2@=KBcr*wc~$jJo5j9$)wa4_85=F;?PhyRf!UVPw6n3Yp>EqY zvyD}i$JmEAuCwun)SSG^b29k^x7vrjVsF!ijfETc9DO+aRY~lcL${BmUC*>XVR}KX zX>;R_hDOsT<{jI2TTOM1jiyM|N-Q9qO<7E_o0!OuhxBWTQ`eInbqUenZ<92FB#&qMlKXvV T0-wDwdvSJlw!y<`!^(dFk`^m; diff --git a/vis_roccat/SpectrumAnalyzer.cpp b/vis_roccat/SpectrumAnalyzer.cpp index 9f8b51e..7d509ea 100644 --- a/vis_roccat/SpectrumAnalyzer.cpp +++ b/vis_roccat/SpectrumAnalyzer.cpp @@ -117,19 +117,21 @@ int columns[22][6] = BYTE blue = 0; int last=mod->waveformData[0][0]; - int total=0; - for(int waveformSlot = 1; waveformSlot < 144; ++waveformSlot) + double total=0; + for(int waveformSlot = 1; waveformSlot < 576; ++waveformSlot) { total += abs(last - mod->waveformData[0][waveformSlot]); last = mod->waveformData[0][waveformSlot]; } - total /= 72; + total /= 288; if(total > 127) { total = 127; } - double ratio = 1.0-double(total)/127.0; - ratio /= 0.9; + double ratio = double(total)/127.0; + //The whole ratio just doesn't have enough variation in it for the set of lights the Roccat devices are capable of. + //Cut it in half since most things seem to stay under 0.5 anyway. + ratio /= 0.5; if(ratio > 1.0) { ratio = 1.0; diff --git a/vis_roccat/vis_roccat.vcxproj b/vis_roccat/vis_roccat.vcxproj index bcdb4f0..122f878 100644 --- a/vis_roccat/vis_roccat.vcxproj +++ b/vis_roccat/vis_roccat.vcxproj @@ -83,7 +83,7 @@ true - $(ProjectDir)\..\3rdParty\Roccat\Lib\x86;%(AdditionalLibraryDirectories) + $(ProjectDir)\Lib\x86;%(AdditionalLibraryDirectories) Roccat Talk SDK.lib;%(AdditionalDependencies)