Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: pots to volume ?  (Read 1500 times)

0 Members and 1 Guest are viewing this topic.

ntk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:June 06, 2011, 12:09:59 pm
pots to volume ?
« on: December 06, 2010, 05:34:42 am »
hello

i have the a-pac with 2 padels and i can add 2 more pots to the a-pac, so I thought to buy something like this


http://cgi.ebay.com/500KA-POTENTIOMETER-VOLUME-CONTROL-SMALL-SIZE-X2-/380139639108?pt=LH_DefaultDomain_2&hash=item5882169144

and control the volume, anyone know software that can control the volume using joystick ?

thanks

Blanka

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2248
  • Last login:January 25, 2018, 03:19:28 pm
Re: pots to volume ?
« Reply #1 on: December 06, 2010, 08:17:35 am »
You can map shift keys to volume keys on a Ultimarc pac.

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: pots to volume ?
« Reply #2 on: December 06, 2010, 12:04:17 pm »
Also, if your encoder doesn't support it (and you are running Windows or Linux), you can script something to take key combinations and turn them into volume increment/decrement.

ntk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:June 06, 2011, 12:09:59 pm
Re: pots to volume ?
« Reply #3 on: December 06, 2010, 01:19:19 pm »
thanks i know i can do it with the ipac but i want to make wheel instead of 2 buttons

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: pots to volume ?
« Reply #4 on: December 06, 2010, 11:10:58 pm »
If the apac output shows up as a joystick axis (which I believe it does), then you can use a script to convert joystick axis position to discrete volume setting.

ntk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:June 06, 2011, 12:09:59 pm
Re: pots to volume ?
« Reply #5 on: December 07, 2010, 02:12:21 am »
If the apac output shows up as a joystick axis (which I believe it does), then you can use a script to convert joystick axis position to discrete volume setting.

yes it shows joystick axis

but the problem i have no idea how to make a script :banghead: and also I could not find any software or Script that can do such a thing, so if someone know how and can help me.... I really appreciate it

thanks

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: pots to volume ?
« Reply #6 on: December 07, 2010, 10:33:46 am »
AHK or AI can do this easily.  In fact, there may even be something written and posted on their forums.

http://www.autohotkey.com/
http://www.autoitscript.com/autoit3/index.shtml

I'm a AHK person, so I'd check out the following functions and examples:

SetVolume (set the volume)
http://www.autohotkey.com/forum/topic9286.html

GetKeyState (determine the position of the joystick axis)
http://www.autohotkey.com/docs/commands/GetKeyState.htm

Remapping guides
Button/Keys/etc naming nomenclature
http://www.autohotkey.com/docs/KeyList.htm
Buttons/Keys
http://www.autohotkey.com/docs/misc/Remap.htm
Mouse/Joystick
http://www.autohotkey.com/docs/misc/RemapJoystick.htm

Joystick test script
http://www.autohotkey.com/docs/scripts/JoystickTest.htm

AFAIK, the joystick state for an analog axis is between 0 and 100.  The SetVolume command needs to be set between 0 and 100 also.  Thus, it should be a simple matter of poling for the position of the joystick and setting that value to the master volume.  You may want to try the joystick test script first to make sure AHK sees the axis correctly.

Good luck!   :cheers: