Advertisement
MinervaXcel

Test Shape-Vizualizer v0.2

Apr 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Rainmeter]
  2. Update=16
  3. AccurateText=1
  4. SolidColor=255,0,0,1
  5. DynamicWindowSize=1
  6.  
  7. [Variables]
  8. ; Credits:
  9. ; - Electic-tech for the original idea.
  10. ; - jsmorley for input.
  11. ; - Minervaxcel - Edits & formulated sizings.
  12.  
  13. ; Volume Colors.
  14. ; / edit to change the colors of the curves.
  15. ColorLow=100,160,230
  16. ColorMid=255,235,105
  17. ColorHigh=252,75,66
  18. ColorHigher=70,75,230
  19.  
  20. ; Width between curves / size of curves.
  21. ShapeWidth=175
  22.  
  23. LargeX=((#WORKAREAWIDTH#/2)-((#Shape6XEnd#+45)/2)
  24. ; Volume Variables ;
  25. ; / edit if you want to change the size of the curves.
  26. AvgSoundLevel=2
  27. Gain=250
  28.  
  29. ; -- DO NOT EDIT -- ;
  30. Shape1X=10
  31. Shape2X=(#Shape1X#+#ShapeWidth#)
  32. Shape3x=(#Shape2X#+#ShapeWidth#)
  33. Shape4X=(#Shape3X#+#ShapeWidth#)
  34. Shape5X=(#Shape4X#+#ShapeWidth#)
  35. Shape6X=(#Shape5X#+#ShapeWidth#)
  36. Shape6XEnd=(#Shape6X#+#ShapeWidth#)
  37.  
  38. Shape1I1=(#Shape1X#+(#ShapeWidth#/3))
  39. Shape1I2=(#Shape1X#+(2*(#ShapeWidth#/3)))
  40. Shape2I1=(#Shape2X#+(#ShapeWidth#/3))
  41. Shape2I2=(#Shape2X#+(2*(#ShapeWidth#/3)))
  42. Shape3I1=(#Shape3X#+(#ShapeWidth#/3))
  43. Shape3I2=(#Shape3X#+(2*(#ShapeWidth#/3)))
  44. Shape4I1=(#Shape4X#+(#ShapeWidth#/3))
  45. Shape4I2=(#Shape4X#+(2*(#ShapeWidth#/3)))
  46. Shape5I1=(#Shape5X#+(#ShapeWidth#/3))
  47. Shape5I2=(#Shape5X#+(2*(#ShapeWidth#/3)))
  48. Shape6I1=(#Shape6X#+(#ShapeWidth#/3))
  49. Shape6I2=(#Shape6X#+(2*(#ShapeWidth#/3)))
  50. BezierColor=0,140,225
  51.  
  52. [MeasureAudioLevel]
  53. Measure=Plugin
  54. Plugin=AudioLevel
  55. Port=Output
  56. FFTSize=1024
  57. FFTOverlap=512
  58. FFTAttack=25
  59. FFTDecay=150
  60. Bands=12
  61. FreqMin=20
  62. FreqMax=18000
  63. Sensitivity=30
  64. ; ID=
  65. ; RMSAttack=
  66. ; RMSDecay=
  67. ; RMSGain=
  68. ; PeakAttack=
  69. ; PeakDecay=
  70. ; PeakGain=
  71.  
  72. ; Documentation: https://docs.rainmeter.net/manual-beta/plugins/audiolevel/
  73. IfCondition=MeasureAudioLevel > 0.10 && (MeasureAudioLevel < 0.12)
  74. IfTrueAction=!SetVariable BezierColor 0,120,255
  75. IfCondition2=MeasureAudioLevel > 0.15 && (MeasureAudioLevel < 0.15)
  76. IfTrueAction2=!SetVariable BezierColor 0,255,120
  77. IfCondition3=MeasureAudioLevel > 0.20 && (MeasureAudioLevel < 0.23)
  78. IfTrueAction3=!SetVariable BezierColor 255,120,0
  79. ifCondition4=MeasureAudioLevel > 0.23 && (MeasureAudioLevel < 0.30)
  80. IfTrueAction4=!SetVariable BezierColor 20,20,255
  81. IfCondition5=MeasureAudioLevel > 0.25 && (MeasureAudioLevel < 0.40)
  82. IfTrueAction5=!SetVariable BezierColor 20,255,20
  83. IfCondition6=(MeasureAudioLevel > 0.35)
  84. IfTrueAction6=!SetVariable BezierColor 255,20,20
  85.  
  86. [MeasureFFT_L_00]
  87. Measure=Plugin
  88. Plugin=AudioLevel
  89. Parent=MeasureAudioLevel
  90. Channel=Sum
  91. Type=Band
  92. BandIdx=0
  93. AverageSize=#AvgSoundLevel#
  94.  
  95. [MeasureFFT_L_01]
  96. Measure=Plugin
  97. Plugin=AudioLevel
  98. Parent=MeasureAudioLevel
  99. Channel=Sum
  100. Type=Band
  101. BandIdx=1
  102. AverageSize=#AvgSoundLevel#
  103.  
  104. [MeasureFFT_L_02]
  105. Measure=Plugin
  106. Plugin=AudioLevel
  107. Parent=MeasureAudioLevel
  108. Channel=Sum
  109. Type=Band
  110. BandIdx=2
  111. AverageSize=#AvgSoundLevel#
  112.  
  113. [MeasureFFT_L_03]
  114. Measure=Plugin
  115. Plugin=AudioLevel
  116. Parent=MeasureAudioLevel
  117. Channel=Sum
  118. Type=Band
  119. BandIdx=3
  120. AverageSize=#AvgSoundLevel#
  121.  
  122. [MeasureFFT_L_04]
  123. Measure=Plugin
  124. Plugin=AudioLevel
  125. Parent=MeasureAudioLevel
  126. Channel=Sum
  127. Type=Band
  128. BandIdx=4
  129. AverageSize=#AvgSoundLevel#
  130.  
  131. [MeasureFFT_L_05]
  132. Measure=Plugin
  133. Plugin=AudioLevel
  134. Parent=MeasureAudioLevel
  135. Channel=Sum
  136. Type=Band
  137. BandIdx=5
  138. AverageSize=#AvgSoundLevel#
  139.  
  140. [MeasureFFT_L_06]
  141. Measure=Plugin
  142. Plugin=AudioLevel
  143. Parent=MeasureAudioLevel
  144. Channel=Sum
  145. Type=Band
  146. BandIdx=6
  147. AverageSize=#AvgSoundLevel#
  148.  
  149. [MeasureFFT_L_07]
  150. Measure=Plugin
  151. Plugin=AudioLevel
  152. Parent=MeasureAudioLevel
  153. Channel=Sum
  154. Type=Band
  155. BandIdx=7
  156. AverageSize=#AvgSoundLevel#
  157.  
  158. [MeasureFFT_L_08]
  159. Measure=Plugin
  160. Plugin=AudioLevel
  161. Parent=MeasureAudioLevel
  162. Channel=Sum
  163. Type=Band
  164. BandIdx=8
  165. AverageSize=#AvgSoundLevel#
  166.  
  167. [MeasureFFT_L_09]
  168. Measure=Plugin
  169. Plugin=AudioLevel
  170. Parent=MeasureAudioLevel
  171. Channel=Sum
  172. Type=Band
  173. BandIdx=9
  174. AverageSize=#AvgSoundLevel#
  175.  
  176. [MeasureFFT_L_10]
  177. Measure=Plugin
  178. Plugin=AudioLevel
  179. Parent=MeasureAudioLevel
  180. Channel=Sum
  181. Type=Band
  182. BandIdx=10
  183. AverageSize=#AvgSoundLevel#
  184.  
  185. [MeasureFFT_L_11]
  186. Measure=Plugin
  187. Plugin=AudioLevel
  188. Parent=MeasureAudioLevel
  189. Channel=Sum
  190. Type=Band
  191. BandIdx=11
  192. AverageSize=#AvgSoundLevel#
  193.  
  194. ;[OptionMenu]
  195. ;Meter=Shape
  196. ;Shape=Path MyPath | StrokeWidth 10 | StrokeColor 255,255,255,1 | Fill Color 0,0,0,1
  197. ;MyPath=(#WORKAREAWIDTH# * 0.34027777777777777777777777777778),(#WORKAREAHEIGHT# * 0.52325581395348837209302325581395) | LineTo (#WORKAREAWIDTH# * 0.5),(#WORKAREAHEIGHT# * 0.39302325581395348837209302325581) | LineTo (#WORKAREAWIDTH# * 0.66041666666666666666666666666667),(#WORKAREAHEIGHT# * 0.52325581395348837209302325581395) | LineTo (#WORKAREAWIDTH# * 0.5),(#WORKAREAHEIGHT# * 0.65465116279069767441860465116279) | ClosePath 1
  198. ;Hidden=0
  199. ;DynamicVariables=1
  200.  
  201. [DragBox]
  202. Meter=Image
  203. Solidcolor=255,0,0,1
  204. X=((#WORKAREAWIDTH#/2)-((#Shape6XEnd#+25)/2))
  205. Y=((#WORKAREAHEIGHT#/2)-100)
  206. W=(#Shape6XEnd#+25)
  207. H=200
  208. DynamicVariables=1
  209. MouseScrollDownAction=[!Setvariable ShapeWidth "(#ShapeWidth#-5)"][!Showmeter ShapeWidthString]
  210. MouseScrollUpAction=[!Setvariable ShapeWidth "(#ShapeWidth#+5)"][!Showmeter ShapeWidthString]
  211. LeftMouseDownAction=[!WriteKeyValue Variables ShapeWidth "#ShapeWidth#"][!Refresh]
  212. MouseLeaveAction=[!HideMeter ShapeWidthString]
  213.  
  214. [ShapeWidthString]
  215. Meter=String
  216. Text=#ShapeWidth#
  217. FontFace=SAO UI Regular
  218. FontSize=18
  219. FontColor=231,123,120
  220. StringAlign=Center
  221. X=(#WORKAREAWIDTH#/2)
  222. Y=(#WORKAREAHEIGHT#/2)
  223. DynamicVariables=1
  224. AntiAlias=1
  225. Hidden=1
  226.  
  227. [MeterBezier1]
  228. Meter=Shape
  229. X=((#WORKAREAWIDTH#/2)-(#Shape6XEnd#/2))
  230. Y=((#WORKAREAHEIGHT#/2)+22)
  231. StrokeDef=StrokeWidth 2 | StrokeColor #BezierColor# | StrokeStartCap Round | StrokeEndCap Round
  232. Shape=Curve #Shape1X#,0,#Shape2X#,0,#Shape1I1#,(0-[MeasureFFT_L_00]*#Gain#),#Shape1I2#,(0+[MeasureFFT_L_01]*#Gain#) | Extend StrokeDef
  233. Shape2=Curve #Shape2X#,0,#Shape3X#,0,#Shape2I1#,(0-[MeasureFFT_L_02]*#Gain#),#Shape2I2#,(0+[MeasureFFT_L_03]*#Gain#) | Extend StrokeDef
  234. Shape3=Curve #Shape3X#,0,#Shape4X#,0,#Shape3I1#,(0-[MeasureFFT_L_04]*#Gain#),#Shape3I2#,(0+[MeasureFFT_L_05]*#Gain#) | Extend StrokeDef
  235. Shape4=Curve #Shape4X#,0,#Shape5X#,0,#Shape4I1#,(0-[MeasureFFT_L_06]*#Gain#),#Shape4I2#,(0+[MeasureFFT_L_07]*#Gain#) | Extend StrokeDef
  236. Shape5=Curve #Shape5X#,0,#Shape6X#,0,#Shape5I1#,(0-[MeasureFFT_L_08]*#Gain#),#Shape5I2#,(0+[MeasureFFT_L_09]*#Gain#) | Extend StrokeDef
  237. Shape6=Curve #Shape6X#,0,#Shape6XEnd#,0,#Shape6I1#,(0-[MeasureFFT_L_10]*#Gain#),#Shape6I2#,(0+[MeasureFFT_L_11]*#Gain#) | Extend StrokeDef
  238. DynamicVariables=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement