AtmoLight - 1.18.6.0 [2016-09-21] | Page 5

Discussion in 'Ambient Lighting System' started by Rick164, April 20, 2014.

  1. legnod
    • Premium Supporter

    legnod MP Donator

    Joined:
    September 24, 2011
    Messages:
    1,115
    Likes Received:
    275
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +303 / 0
    Home Country:
    Germany Germany
    Show System Specs
    @Lightning303 Yes i compiled the Version from git by myself but the changes from yesterday are not included. Will compile a new version this evening...thanks for the hint.


     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    So what exactly is wrong? and how would it be right?
     
  4. BassFan

    BassFan Guest

    Ratings:
    +0 / 0

    Edit:
    Ok die 20 wird benötigt um den DB Wert des Level zu berechnen..
    Hab's aber nie gebraucht. (jeder wie er will) :)
    Darf auch mal Mist schreiben. LOL

    gruss.
     
    Last edited by a moderator: June 13, 2014
  5. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    =)
    Yeah the 20*log10 is the normal way to convert voltage to voltage levels (dB). I remembered that much from university ;).
    Will have a look at your private message tomorrow :), thanks for that!
     
  6. BassFan

    BassFan Guest

    Ratings:
    +0 / 0
    i hope that help a Little..

    greets
     
  7. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Thanks,
    i looked at your code and tested it. BUt as far as i can see it does the same as MediaPortals method is doing. The difference is that your scale is linear and the one from MediaPortal is logorithmic, also your values have higher values, but the resolution stays the same.
    To get a better feel for it, i made yours logorithmic aswell an plotted both in a graph.
    The blue dots represent the MP method and my approach, the red dots yours.
    Note that i added 80 to MP values to get it nicely in the graph, this only moves the graph on the axis but does not influence the information of the values.

    vumetergraph.png

    Code i used:

    Code (C):
    1.         Bitmap bassFan = new Bitmap(1000, 128);
    2.         Graphics bassFanGFX = Graphics.FromImage(bassFan);
    3.         int i = 0;
    4.  
    5. ...
    6.  
    7.           if (i < 1000)
    8.           {
    9.             bassFanGFX.FillRectangle(new SolidBrush(Color.Blue), i, (int)(dbLevel[0]+80), 1, 1);
    10.             bassFanGFX.FillRectangle(new SolidBrush(Color.Red), i, (int)(20 * Math.Log10(Lpeak)), 1, 1);
    11.             i++;
    12.           }
    13.           else
    14.           {
    15.             bassFan.Save("C:\\ProgramData\\Team MediaPortal\\MediaPortal\\vumetergraph.bmp");
    16.           }
    Again, thanks for your help and time, but i dont see any real difference here.
     
  8. BassFan

    BassFan Guest

    Ratings:
    +0 / 0
    Der Unterschied ist Log10 ;)
    Hab dir doch einen Link gegeben wo du das nachvollziehen kannst warum das so ist.

    Bei mir mit Log10! habe ich fast nur hohe Ausschläge und der Beat zur Musik ist nicht gerade das wahre.
    Aber gut muss man testen ob es unterschiede auf verschiedenen Systemen gibt.

    gruss
     
  9. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    @legnod, Just remembered, have a look at your AtmoWin filters aswell, it could be that it looks like its always high levels because the filters are so long that leds will never fade to black when its silent for a bit. Just set AtmoWin to use no filter and then try again ;).


    Oh ok :), thought you wanted to show me a completly different approach.
    The Log10 thing from the link you posted, i dont think this is an issue anymore as this "bug" is 3 years old now. I would assume its fixed. We also have not seen any differences in behavoir between different systems, and as this calculation is done by MP and is also used for their vu meter, i guess we would have heard about it not doing what it should until now. But still, will have an eye on that :).
    I did some more testing and think for the time beeing i will keep the code as is. Your linear approach does make more sense if you want to use a linear scale, but as we already use a hybrid (something in between linear and logorithmic), we already choose a scale for the only purpose of looking good. So changing everything again to get a very similar if not same result later doesnt seem like a good way to waste my time ;).

    However i want to point out again that im very thankfull for your input. Just because i choose to not change the code does not mean that its not appreciated :).
     
  10. BassFan

    BassFan Guest

    Ratings:
    +0 / 0
    View attachment 151625
    no Problem ;)

    greets
     
    Last edited by a moderator: June 15, 2014
  11. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    New version, once again.

    Fixed a bug that could result in AtmoLight not loading the settings when trying to configure AtmoLight via MP Configuration. This would happen if AtmoLight is disabled and then config would be entered.

    Added a new effect called GIF Reader. @legnod asked for some interesting new effects. However instead of me coding new effects, i thought it would be better and easier to support gif files as effects. This way everybody can either browse the web for nice gifs, or make their own gif and use these as an effect. Simply define the gif you want to use in the AtmoLight configuration form and choose GIF Reader. If your system cant handle the gif you throw at it, you may try to resize the gif manually. There are lots of websites out there that can do this in just a few seconds. Resize the gif you like to use to the resolution AtmoWin uses (in most cases 64x48, check AtmoWins title bar to be sure)
    Some nice gifs i found:
    http://fc00.deviantart.net/fs12/f/2006/300/7/e/PlasmaStorm.gif
    http://fc01.deviantart.net/fs12/f/2006/301/f/7/PlasmaStorm2.gif
    http://fc08.deviantart.net/fs12/f/2006/302/2/2/PlasmaStorm3.gif
    http://images.wikia.com/theregularshow/images/archive/9/9e/20120707225215!Rainbow.gif
    http://gifki.net/images/full/dive-into-the-rainbow.gif

    Also requested by @legnod we (@HomeY and i) implemented a vu meter, "also known as" peakmeter. This effect reacts to music. So in loud parts of a song the leds will rise on both sides and on quieter parts leds will fall. We implemented 2 variations, one very traditional vu meter with only 3 colors (green, orange and red) and a so called rainbow vu meter with a color range from blue to red.
    Please note that this effect will only work if the BassEngine/BassPlayer is being used.
    What will work:
    Music using BassEngine
    Music using WASAPI
    Webradio using BassEngine
    Webradio using WASAPI

    Will not work:
    Any Videos (this effect wont be selectable for video content)
    DVB Radio
    Music using ASIO
    Music using Internal dshow player
    Webradio using ASIO
    Webradio using Internal dshow player

    Please also note that you may have to check your AtmoWin filters if the effect does not change that much. Because the AtmoWin filters are designed to smoothen hectic color changes you might disable the filter or lower the threshold value.


    For interessted parties on how this stuff was implemented (some information in previous posts):

    AtmoLight gets the peak values from the bass engine through a method provided by MediaPortal. It then generates a bitmap that looks like this:
    95092016.png
    This bitmap then gets send to AtmoWin to be analysed.


    If you find bugs, have suggestions or feedback, please let me know.
    If you have an idea for something new, that could improve AtmoLight, dont be shy and tell me. All i ask is that you will later be involved in testing and giving feedback on the new implementation.
     
    • Like Like x 3
    • Thank You! Thank You! x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!