HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > General Discussion


Reply
 
Thread Tools
Old Apr 27, 2006, 07:44 PM   #1
DriverHeaven Newbie
 
Join Date: Apr 2006
Posts: 17
Rep Power: 0
P3rv3rt B3ar is on a distinguished road

Please help moviefan newbie with 5.1 mixer Question

First i have to say that kX drivers were so great for me!!!

I had to get 5.1 analog audio switch, which is computer controllable. However extensive searching didnt yield any solution in feasible price range, until i found about kX project. Didnt take long to realise that i can actually use my old SB Live platinium with livedrive to input 3 analog stereopairs and (since other required input was from computer), not just switch but MIX with computer 5.1 audio, and finally output to analog 5.1. "rewiring" DSP was done in mather of minutes and i was impressed with result...

However one important problem remains. I have in my DSP 3 mixer/crossfade (doesnt matter which one actually, both work for my purpose) plugins to select and mix between audio inputs. I need to control sliders of these 3 plugins programmaticly and im clueless... What should i do? there seems to be some automation in kX but it seems to be midi related, and im completely clueless when it comes to that... i dont mind to do research, but before i get my hands dirty i would like to know if this could be fruitfull approach? Im more used to command and control in terms of windows messages, good old TCP/IP, or even shell commands, but i dont see that way of controlling kX plugins offered or am i mistaken? I found commanline application which allowed me (with -mp parameter) even see values of those sliders but in that program i didnt see anything which would allow me to change them, or did i overlooked something? If nothing else, is it possible for me to program own crossfader plugin with external command possibility? Like i said, i dont mind getting my hands dirty.... but i would approciate if pros could point me into right tracks, to the most fruitful avenue to pursue this.
P3rv3rt B3ar is offline   Reply With Quote


Old Apr 27, 2006, 08:18 PM   #2
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Quote:
Originally Posted by P3rv3rt B3ar
I found commanline application which allowed me (with -mp parameter) even see values of those sliders but in that program i didnt see anything which would allow me to change them, or did i overlooked something? If nothing else, is it possible for me to program own crossfader plugin with external command possibility? Like i said, i dont mind getting my hands dirty.... but i would approciate if pros could point me into right tracks, to the most fruitful avenue to pursue this.
The command line (kxctrl.exe) instructions for Get/Set GPR allow you to read/write those registers. The source code for that program is in the SDK, so you could refer to that, for one method of doing it programatically.

Of course you can create your own plugin to do it as well.
Russ is offline   Reply With Quote
Old Apr 27, 2006, 09:30 PM Threadstarter Thread Starter   #3
DriverHeaven Newbie
 
Join Date: Apr 2006
Posts: 17
Rep Power: 0
P3rv3rt B3ar is on a distinguished road

Quote:
Originally Posted by Russ
The command line (kxctrl.exe) instructions for Get/Set GPR allow you to read/write those registers. The source code for that program is in the SDK, so you could refer to that, for one method of doing it programatically.

Of course you can create your own plugin to do it as well.
Lots of thanx for the answer, i really hope i get it working this way... but im still puzzled what is "pgm", which get and set GPR commandline options seem to require as parameter?
P3rv3rt B3ar is offline   Reply With Quote
Old Apr 27, 2006, 10:40 PM   #4
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

see this - to do simple KX / Midi automation with command line params or a batch file.
http://www.hardwareheaven.com/general-discussion/103654-control-kx-pc-keys.html

be warned - its not for 'slider' replacement becasue its a too slow for such 'realtime' adjustment - but could send simple preset volumes.
Maddogg6 is offline   Reply With Quote
Old Apr 27, 2006, 11:05 PM   #5
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Quote:
Originally Posted by P3rv3rt B3ar
Lots of thanx for the answer, i really hope i get it working this way... but im still puzzled what is "pgm", which get and set GPR commandline options seem to require as parameter?
If you look in the DSP window, you will notice that each plugin has a number associated (in square brackets) with it. That is the pgm_id. If you use the 'mp' command, you will see a number (in square brackets) associated with each register. That is the number that you want to use as the second parameter.

i.e.
Suppose you want to read/write the 'MasterL' register of epilog, and epilog has a pgm_id of [9] in the DSP window.

Type 'mp 9' and you will see that 'MasterL' is assigned number [8005].
To read that register, type (Get GPR) 'gg 9 8005', and it will show you the value of that register.
To change the value, type (Set GPR) 'sg 9 8005 <new value>'
Russ is offline   Reply With Quote
Old Apr 27, 2006, 11:34 PM Threadstarter Thread Starter   #6
DriverHeaven Newbie
 
Join Date: Apr 2006
Posts: 17
Rep Power: 0
P3rv3rt B3ar is on a distinguished road

Oh yes, got it working now... i was using numbers otherway around... to be honest, kxctrl's usage help is unambigious(sp?)...cause that number on plugin is introduced in other commands as [id]... and yet here in gg register is <id>... hehe could confuse even smarter guy

anyway your little help made things clearer than crystal. Thanx a lot guys, ill try both of your aproaches, and get back with the results....
P3rv3rt B3ar is offline   Reply With Quote
Old Apr 28, 2006, 02:02 AM   #7
HardwareHeaven Senior Member
 
Doug W's Avatar
 
Join Date: Mar 2003
Location: Montevideo, MN USA
Posts: 973
Rep Power: 0
Doug W is on a distinguished road

P3rv3rt B3ar,

Now I am just curious. I have been too busy to try my hand at any audio programming yet (or maybe just too dumb), but I may give it a whirl soon. What is the specific application that you are messing with here?

Nosey guy
Doug W is offline   Reply With Quote
Old Apr 28, 2006, 02:12 AM   #8
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

KXctrl.exe - its a console app that gives direct access to KX registers

Right click on KX icon and -> KX Control
Maddogg6 is offline   Reply With Quote
Old Apr 28, 2006, 09:15 PM   #9
HardwareHeaven Senior Member
 
Doug W's Avatar
 
Join Date: Mar 2003
Location: Montevideo, MN USA
Posts: 973
Rep Power: 0
Doug W is on a distinguished road

Quote:
Right click on KX icon and -> KX Control
I am using 3534f, which doesn't display kX Control..Is that that same as kX Automation?
Doug W is offline   Reply With Quote
Old Apr 28, 2006, 09:20 PM   #10
HardwareHeaven Senior Member
 
Join Date: Oct 2003
Posts: 409
Rep Power: 57
peate is just really nicepeate is just really nicepeate is just really nicepeate is just really nicepeate is just really nice

Console maybe? 3538J has no control either in the menu.
peate is offline   Reply With Quote
Old Apr 28, 2006, 09:30 PM   #11
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Quote:
Originally Posted by peate
Console maybe? 3538J has no control either in the menu.
Yes, he means the 'kX Console' menu item, which is basically 'kxctrl.exe --gui'.
Russ is offline   Reply With Quote
Old Apr 28, 2006, 10:42 PM   #12
HardwareHeaven Senior Member
 
Doug W's Avatar
 
Join Date: Mar 2003
Location: Montevideo, MN USA
Posts: 973
Rep Power: 0
Doug W is on a distinguished road

Thanks
Doug W is offline   Reply With Quote
Old Apr 28, 2006, 11:23 PM   #13
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Doug W
I am using 3534f, which doesn't display kX Control..Is that that same as kX Automation?
Oops - sorry, my bad --

What Russ said... :S
Maddogg6 is offline   Reply With Quote
Old May 2, 2006, 03:40 AM Threadstarter Thread Starter   #14
DriverHeaven Newbie
 
Join Date: Apr 2006
Posts: 17
Rep Power: 0
P3rv3rt B3ar is on a distinguished road

It turned out that every solution based on batch file was way too slow. So i decided to get my hands dirty and gave a stab to Kxctrl.cpp and made my own little code to accomplish this. Even if code is not optimized at all... its about 200 times faster than batch file solution. Needles to say speed is enough now, actually too much, have to overuse Sleep(). This is great, once again huge thanx to u guys!!!!! I'll continue to work with "x-fading" video now...
P3rv3rt B3ar is offline   Reply With Quote
Old Jul 29, 2006, 03:22 PM Threadstarter Thread Starter   #15
DriverHeaven Newbie
 
Join Date: Apr 2006
Posts: 17
Rep Power: 0
P3rv3rt B3ar is on a distinguished road

Ok, im working on enchanced and more general version of above mentioned program. capabilities are that u can set and observe any register value and initiate pre scripted fades of group of sliders in compatible software (so far just including XLobby HTPC-frontend and commandline client).

I like to release it for public benefit, when it is ready, but im damn lousy when it comes to legal text and i dont want to step on anybodys toes. Program is total rewrite of kxctrl, it preserves mayby ten lines of original code. But it ofcourse uses kX libraries to achieve the effects. So i was wondering if i release it as a source only, i wouldnt probably violate anybodys rights or cause bad feeling, right? but then problem is that mayby all potential users couldnt compile it, so could i release binaries too?

So basicly im just hoping some of you devs or original author could help me to understand if before mentioned options would violate license or not?
P3rv3rt B3ar is offline   Reply With Quote
Old Jul 29, 2006, 05:36 PM   #16
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

AFAIK - you can release it - as, thats why the SDK is bundled with KX.
I appears the SDK license covers DSP effects as well as the 'other' parts - and people release them with no problem...

I just dont think you can charge $$$ for it with out the dev's written permission.

edit:
Eitherway - it explains to contact the devs if you have questions...
from the KX site 'contact' page:
Quote:
If you have any additional questions / topics for the discussion, please either use our Forum (in certain cases you can send us a 'Private' message when necessary) or send us a direct e-mail: kxproject@yandex.ru . Unfortunately, due to lack of time we cannot provide personalized support via e-mail. Note: please use English or Russian languages only. Avoid sending us any large attachments, screenshots and dumps unless asked to do so. Thanks in advance!
Maddogg6 is offline   Reply With Quote
Old Jul 29, 2006, 06:12 PM Threadstarter Thread Starter   #17
DriverHeaven Newbie
 
Join Date: Apr 2006
Posts: 17
Rep Power: 0
P3rv3rt B3ar is on a distinguished road

Thank you for interpretion. It makes sense. Ill release both source and binaries, as i get them ready, unless somebody has disagreeing interpretion or opinion. Theyll be available free... making $$$ never crossed my mind.
P3rv3rt B3ar is offline   Reply With Quote
Reply

Thread Tools