Page 4 of 7 FirstFirst 1234567 LastLast
Results 31 to 40 of 62

Thread: controlling winamp volume

  1. #31
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    in order to press up volume in winamp i need to detect when my potentiometer ouputs say an extra 0.1v.

    each time i increase the volts by 0.1v i want to press up arrow
    each time i decrease the volts by 0.1v i want to press down arrow

  2. #32
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    it was something like this:
    #ENABLEHIGHSWITCH#true
    #ENABLELOWSWITCH#true
    #LOWKEYSEQUENCE#DOWN
    #HIGHKEYSEQUENCE#UP
    #LOWMAINWINDOWTITLE#winamp
    #HIGHMAINWINDOWTITLE#winamp
    #HIGHTHRESHHOLD#d0.06
    #LOWTHRESHHOLD#d-0.06

  3. #33
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    any ideas / guidance?

  4. #34
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    hello,

    has any one got any ideas on how to control winamp's volume using a potentiometer?

    i cannot work out how to do the logic that if the voltage from the potentiometre increases by 0.06V it triggers the sending of the up arrow key to winamp.

  5. #35
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by wilgartw View Post
    hello,

    has any one got any ideas on how to control winamp's volume using a potentiometer?

    i cannot work out how to do the logic that if the voltage from the potentiometre increases by 0.06V it triggers the sending of the up arrow key to winamp.
    sorry I have been crazy busy...

    I'll whip some code up
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #36
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    thank you, sorry didn't mean to be pushy, it's just i have the unit out of the van to do this so i am keen to get it all working and back in again.

  7. #37
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    bump (?)

  8. #38
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    sorry I've been really distracted lately. Ill get it to you before I go to sleep tonight
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  9. #39
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Ok, first here is the code I based it off of. This is from the source code to Version 2 software:

    Code:
    ...
                        else if (AIDynamicButtonList[i].TypeString.Equals("POTENTIOMETER"))
                        {
                            double vtminus1 = AIDynamicButtonList[i].PreviousRawValue;
                            double vtnow = AIDynamicButtonList[i].CurrentRawValue;
                            bool goingup = true;
                            double diff = vtnow - vtminus1;
                            if (diff < 0)
                            {
                                goingup = false;
                            }
                            else if (diff > 0)
                            {
                                goingup = true;
                            }
                            if (goingup && diff > AIDynamicButtonList[i].HighSwitchValue)
                            {
                                //There is less voltage, and the change is greater than the histeresis, so do the up command
                                if (AIDynamicButtonList[i].LOW_KeySequenceString.Equals("*SWITCHOUTPUT*"))
                                {
                                    SwitchOutputFromAnalogue(i, false);
                                }
                                else
                                {
                                    SendAKeySequenceToAProgram(AIDynamicButtonList[i].LOW_KeySequenceString, AIDynamicButtonList[i].LOW_MainClassString, AIDynamicButtonList[i].LOW_MainWindowString, AIDynamicButtonList[i].LOW_SubClassString, AIDynamicButtonList[i].LOW_SubWindowString);
                                }
                            }
                            else if ((!goingup) && diff < (-1) * AIDynamicButtonList[i].LowSwitchValue)
                            {
                                //There is more voltage, and the change is greater than the histeresis, so do the down command
                                if (AIDynamicButtonList[i].HIGH_KeySequenceString.Equals("*SWITCHOUTPUT*"))
                                {
                                    SwitchOutputFromAnalogue(i, true);
                                }
                                else
                                {
                                    SendAKeySequenceToAProgram(AIDynamicButtonList[i].HIGH_KeySequenceString, AIDynamicButtonList[i].HIGH_MainClassString, AIDynamicButtonList[i].HIGH_MainWindowString, AIDynamicButtonList[i].HIGH_SubClassString, AIDynamicButtonList[i].HIGH_SubWindowString);
                                }
                            }
                        }
    ...
    So I took that, and made it into logic statements. I havent tested it or anything, but it should work.

    My dad has been in town these past 2 weeks so I have been doing a lot of family things ontop of everything else. He leaves tomorrow, so I will have some more time to spend.

    XML: http://www.fusioncontrolcentre.com/T...figuration.xml
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  10. #40
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    I should note that the hysteresis value is set large right now and the do statement that sends a U is when you want the volume to go up, and the one for D is for down. You will need to change those to the real then/do statements for controlling winamp.

    Also make sure in the one that does multiplication it stays "-1" and not just "1". I found a bug in the config that pops up some times, but I need to get to sleep as I need to wake up in less than 2 hours to see my dad off. I'll try to fix the configurator bug shortly...

    -- Nick
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Page 4 of 7 FirstFirst 1234567 LastLast

Similar Threads

  1. Replies: 16
    Last Post: 01-03-2009, 04:59 AM
  2. Volume leveling DSP plugin for winamp?
    By DeaconC in forum Newbie
    Replies: 0
    Last Post: 05-01-2008, 12:33 AM
  3. Volume Slider
    By garto in forum Road Runner
    Replies: 0
    Last Post: 05-13-2007, 12:11 PM
  4. Road Runner Volume Issues ! ! !
    By rewindnottm in forum Road Runner
    Replies: 8
    Last Post: 03-20-2007, 03:38 AM
  5. Replies: 3
    Last Post: 11-23-2006, 10:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •