Jump to content

Is the equalizer meter on main skin possible?


foosblood24

Recommended Posts

  • Replies 25
  • Created
  • Last Reply

@foosblood24, i have provided a special play button which hides next, next category and track timings. It is also set to opaque so you hardly see it. You could set it to transparent, so you would not see them but pause and pllay would still work.

As for colours, at the moment you cannot set any colours as they are self contained artifacts. Perhaps maxmp can share his view on this?

Link to comment
Share on other sites

5 hours ago, foosblood24 said:

@flyingdutchman what gives the spectrum analyzer it's light powder blue color that it has already? My ideal color would be the neon green usually assigned to spectrum analyzers.

neon green is what i want too.   or green yellow red like the VU meters often has.   That's my question is too "what gives it the blue  color already?"

Link to comment
Share on other sites

@foosblood24 and @hypomaniac-eric, apart from the built in spectrums,  you can also set an existing milk.

For example, in the Poweramp sample app

com.Poweramp.v3.sampleskin#SampleSkin%20-%20spectrum-main.milk

So if you can provide me with your favourite .milk I will happily try and add this to the app.Perhaps @PowerMilk can help here. I believe he is working on an app to create your own .milk

Link to comment
Share on other sites

There is a milk sample application provided in the sdk.

Content of preset 00 looks like

preset00]
fGammaAdj=1.0
bWaveThick=1
bModWaveAlphaByVolume = 1
fModWaveAlphaEnd = 1.0
fWarpAnimSpeed = 1.0
fWarpScale = 1.0
fZoomExponent = 0.9
fDecay=0.980000

zoom=1.009006
cx=0.500000
cy=0.500000
dx=0.000000


sx = 1.0
sy = 1.0
wave_r = 1.0
wave_g = 1.0
wave_b = 1.0
wave_x = 0.5
wave_y = 0.5

# Select bars mode
# none = 0 
# FftLongBars1 = 1
# FftQuadBars2 = 2
# FftLongBarsCenter3 = 3
# FftQuadBarsCenter4 = 4
# FftTopBars5 = 5
# FftLongBarsReflected6 = 6
# FftQuadBarsReflected7 = 7
bars_mode = 6

bars_rot=90 # Bars Rotation

bars_thr = 0.5
bars_thr_color_t = 0xFFFF0000
bars_thr_color_b = 0xFFFF0000
bars_thr_color_l = 0x00000000
bars_thr_color_r = 0xFF050709
bars_color_t = 0xFF98c8ff
bars_color_b = 0xFF050709
bars_color_r = 0x00000000
bars_color_l = 0x00000000
bars_sx = 1.0
bars_sy = 1.0
bars_num_x = 256
bars_num_y = 24
bars_smooth = 0.85
bars_sensitivity = 0.5
bars_spacing_y = 0.3
bars_spacing_x = 0.0

so looking at this I imagine that you can set colours by altering the values for

bars_thr_color_t = 0xFFFF0000

bars_thr_color_b = 0xFFFF0000

etc

where ...  _t for top , _b for bottom, _l for left and _r for right ??? 

 

and you can edit/create them yourself apparently

http://wiki.winamp.com/wiki/MilkDrop_Preset_Authoring

Link to comment
Share on other sites

@foosblood24 and @hypomaniac-eric, the more i think about this, i will add another equaliser setting which will look for a .milk called user_defined_1.milk. This means that you can use a text editor to edit a definition as shown above and send me the result which i will then add to the asset folder of the app.

 

Link to comment
Share on other sites

1 hour ago, flyingdutchman said:

@foosblood24 and @hypomaniac-eric, the more i think about this, i will add another equaliser setting which will look for a .milk called user_defined_1.milk. This means that you can use a text editor to edit a definition as shown above and send me the result which i will then add to the asset folder of the app.

 

Thanks.  I'll see what i can do.   I did lots of monkeying around till I was able to do those colors on the spectrum analyzer for Musicbee and figured it out.   Is there  a easy way to pick what color you want that converts to the proper numbering or color code we need?  I can't remember if i found a website that converts to the proper color code.  

Link to comment
Share on other sites

@foosblood24 and @hypomaniac-eric, tested the principle and yes it works

I am going to add additional spectrums (spectra?) to the available options. I will also try and create a lime green bar.

This is an example of how it changes by changing some colours and number of bars 

 

compo.png

 

and another screenshot with a lime green colour and changes to the bar values

final_bars.png

Link to comment
Share on other sites

The first two look a big extreme.   The 2rd looks good.   Is there a color chooser or whatever to get the number values to put in on that file you was talking about?  You didn't quite answer the question.   I hadn't taken the time to look into it.  yet.   was busy with yard work projects, spray painting during a beautiful 60 degree day and now today it's 20 degrees and wind outside.  Real Feel like 8 degrees.

Link to comment
Share on other sites

My intial thinking was on the right lines but as always there is a snag. These .milk files need to be located in the asset folder of the Poweramp app but  with increased security on android, you cannot get to it so .... i need to incorporate them into the skin app. I will see if they can be located somewhere where a Poweramp user has access but otherwise the original idea falls somewhat flat

 

Link to comment
Share on other sites

23 hours ago, maxmp said:

As a side note, skin sample project was updated with the main screen volume controls in addition to the main screen spectrum. Thanks!

I like the idea of having a slider on the main ui. Cannot get it to work however, in either sample app or my own skin. Tried to move position, change background, set visible in scenes etc but it is nowhere to be found

Link to comment
Share on other sites

Stacktrace when switching volume slider on in the sample app

 

11-13 20:23:40.102 6196-6196/? E/SkinnableThemeManager: android.view.InflateException: File: com.maxmpz.audioplayer:layout/activity_list_fast -> Binary XML file line #203: Binary XML file line #27: Error inflating class com.maxmpz.widget.player.DSPLinearKnob
    Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class com.maxmpz.widget.player.DSPLinearKnob
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.maxmpz.widget.player.DSPLinearKnob" on path: DexPathList[[zip file "/data/app/com.maxmpz.audioplayer-2/base.apk"],nativeLibraryDirectories=[/data/app/com.maxmpz.audioplayer-2/lib/arm, /data/app/com.maxmpz.audioplayer-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
        at ׅ.tw.ׅ(":556)
        at ׅ.tw.ׅ(":1845)
        at ׅ.ve.ׅ(":183)
        at ׅ.tw.ׅ(":752)
        at ׅ.tw.ׅ(":1101)
        at ׅ.tw.ׅ(":1300)
        at ׅ.tw.ׅ(":1095)
        at ׅ.tw.ׅ(":1300)
        at ׅ.tw.ׅ(":1095)
        at ׅ.tw.ׅ(":1048)
        at ׅ.ve.ׅ(":331)
        at ׅ.tw.ׅ(":1164)
        at ׅ.tw.ׅ(":1105)
        at ׅ.tw.ׅ(":938)
        at ׅ.ve.ׅ(":285)
        at ׅ.tw.inflate(":447)
        at ׅ.tw.inflate(":396)
        at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
        at android.app.Activity.setContentView(Activity.java:2176)
        at ׅ.tz.ׅ(":449)
        at ׅ.mS.ׅ(":700)
        at com.maxmpz.audioplayer.ListActivity.onCreate(":175)
        at android.app.Activity.performCreate(Activity.java:6259)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
        at android.app.ActivityThread.-wrap11(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5443)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
        Suppressed: java.lang.ClassNotFoundException: com.maxmpz.widget.player.DSPLinearKnob
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
                ... 35 more
     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
11-13 20:23:40.102 6196-6196/? E/SkinnableThemeManager: handleLayoutFailure=>resetSkinOnFail
11-13 20:23:40.107 6196-6196/? E/SkinnableThemeManager: Skin failed: com.Poweramp.v3.sampleskin, resetting to default
    android.view.InflateException: File: com.maxmpz.audioplayer:layout/activity_list_fast -> Binary XML file line #203: Binary XML file line #27: Error inflating class com.maxmpz.widget.player.DSPLinearKnob
    Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class com.maxmpz.widget.player.DSPLinearKnob
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.maxmpz.widget.player.DSPLinearKnob" on path: DexPathList[[zip file "/data/app/com.maxmpz.audioplayer-2/base.apk"],nativeLibraryDirectories=[/data/app/com.maxmpz.audioplayer-2/lib/arm, /data/app/com.maxmpz.audioplayer-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
        at ׅ.tw.ׅ(":556)
        at ׅ.tw.ׅ(":1845)
        at ׅ.ve.ׅ(":183)
        at ׅ.tw.ׅ(":752)
        at ׅ.tw.ׅ(":1101)
        at ׅ.tw.ׅ(":1300)
        at ׅ.tw.ׅ(":1095)
        at ׅ.tw.ׅ(":1300)
        at ׅ.tw.ׅ(":1095)
        at ׅ.tw.ׅ(":1048)
        at ׅ.ve.ׅ(":331)
        at ׅ.tw.ׅ(":1164)
        at ׅ.tw.ׅ(":1105)
        at ׅ.tw.ׅ(":938)
        at ׅ.ve.ׅ(":285)
        at ׅ.tw.inflate(":447)
        at ׅ.tw.inflate(":396)
        at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
        at android.app.Activity.setContentView(Activity.java:2176)
        at ׅ.tz.ׅ(":449)
        at ׅ.mS.ׅ(":700)
        at com.maxmpz.audioplayer.ListActivity.onCreate(":175)
        at android.app.Activity.performCreate(Activity.java:6259)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
        at android.app.ActivityThread.-wrap11(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5443)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
        Suppressed: java.lang.ClassNotFoundException: com.maxmpz.widget.player.DSPLinearKnob
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
                ... 35 more
     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
11-13 20:23:40.115 6196-6196/? E/ResourceType: Style contains key with bad entry: 0x01010530
11-13 20:23:40.115 6196-6196/? E/ResourceType: Style contains key with bad entry: 0x0101058c
11-13 20:23:40.229 1801-1847/? E/ResourceType: Style contains key with bad entry: 0x01010530
11-13 20:23:40.229 1801-1847/? E/ResourceType: Style contains key with bad entry: 0x0101058c
11-13 20:23:40.501 6196-19165/? E/Loader.cpp: convert_and_load_shader no gl context
11-13 20:23:40.509 6196-19165/? E/Loader.cpp: convert_and_load_shader no gl context
11-13 20:23:40.723 6196-19169/? E/Loader.cpp: convert_and_load_shader no gl context
11-13 20:23:40.730 6196-19169/? E/Loader.cpp: convert_and_load_shader no gl context
11-13 20:23:41.093 19177-19177/? E/NEW_BHD: Battery Power Supply logging Daemon start!!!!!
11-13 20:23:41.094 19177-19177/? E/NEW_BHD: Cannot run on production devices!
11-13 20:23:41.145 6196-19027/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
11-13 20:23:41.147 6196-19028/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
11-13 20:23:41.248 6196-6196/? E/ActivityThread: Activity com.maxmpz.audioplayer.ListActivity has leaked ServiceConnection ׅ.pw$1@9495ed4 that was originally bound here
    android.app.ServiceConnectionLeaked: Activity com.maxmpz.audioplayer.ListActivity has leaked ServiceConnection ׅ.pw$1@9495ed4 that was originally bound here
        at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1092)
        at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:986)
        at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1303)
        at android.app.ContextImpl.bindService(ContextImpl.java:1286)
        at android.content.ContextWrapper.bindService(ContextWrapper.java:604)
        at ׅ.pw.ׅ(":124)
        at ׅ.pw$ׅ.D(":40)
        at com.maxmpz.audioplayer.widget.PlayerConnectionBehavior.<init>(":77)
        at java.lang.reflect.Constructor.newInstance(Native Method)
        at ׅ.ve.ׅ(":223)
        at ׅ.ve.ׅ(":125)
        at ׅ.tw.ׅ(":752)
        at ׅ.tw.ׅ(":1101)
        at ׅ.tw.ׅ(":938)
        at ׅ.ve.ׅ(":285)
        at ׅ.tw.inflate(":447)
        at ׅ.tw.inflate(":396)
        at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
        at android.app.Activity.setContentView(Activity.java:2176)
        at ׅ.tz.ׅ(":449)
        at ׅ.mS.ׅ(":700)
        at com.maxmpz.audioplayer.ListActivity.onCreate(":175)
        at android.app.Activity.performCreate(Activity.java:6259)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
        at android.app.ActivityThread.-wrap11(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5443)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 

Link to comment
Share on other sites

V853

11-15 14:11:37.355 21539-21539/? W/SkinnableThemeManager: Loading skin=/data/app/com.Poweramp.v3.sampleskin-1/base.apk
11-15 14:11:41.568 21539-21539/? E/SkinnableThemeManager: Skin failed: com.Poweramp.v3.sampleskin, resetting to default
    android.view.InflateException: File: com.maxmpz.audioplayer:layout/activity_list_fast -> Binary XML file line #203: Binary XML file line #27: Error inflating class com.maxmpz.widget.player.DSPLinearKnob
    Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class com.maxmpz.widget.player.DSPLinearKnob etc....

Link to comment
Share on other sites

@flyingdutchman ok thanks for the report. Builds prior 854 don't have this exactly widget, I updated skin sample to support 853, though, vertical knob value label is then preamp-based. Round knob works fine.

This can be used for experiments, as obviously we also need horizontal knob + proper value labels. Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...