HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

  • Network

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP


Reply
 
Thread Tools
Old Sep 24, 2006, 08:34 AM   #1
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Simple plugin for use with 'ma' console command

I thought I would post a simple sample plugin for use with the 'ma' console command (for TV card users etc).

Code:
name "VolumeSt";
copyright "Copyright (c) 2006.";
created "09/24/2006";
engine "kX";
guid "dfc06b62-e952-43ac-8bee-241890ff931a";

; Registers
input InL, InR;
output OutL, OutR;
control VolL=1, VolR=1;

; code
macs OutL, 0x0, InL, VolL;
macs OutR, 0x0, InR, VolR;

end
[COLOR=Yellow]<this should be a blank line>[/COLOR]
Load the above plugin in the DSP.
Open kX Console and type:
ma 2 VolumeSt VolL VolR 0x7fffffff<enter>
Note: The above command is case sensitive.

Now the kX0/LineIn slider in Windows Mixer will control the volume registers of this plugin. In the DSP, connect the plugin in the pathway of whatever signal that you want to control the volume of, using that slider (eg: in between prolog and xrouting).

BTW: To set the slider back to its default setting:
Open kX Console and type:
ma 2 0 0 0 0x20000000<enter>

-Russ

Last edited by Russ; Apr 28, 2008 at 09:01 AM. Reason: typo
Russ is offline   Reply With Quote


Old Sep 24, 2006, 09:34 AM   #2
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 50
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

WAY COOL RUSS!

Is there some place that explains what can be accomplished with KX Console? - explaining the commands in more detail than the consoles '/help'

Is there a referece of windows API funcs specific to sound cards with DSP's (I see in the console help - that the MA command is to
'assign a microcode slider to DSP program')

This is hunky dory - but isnt that refering to DSP language 'microcode'? - or is that what M$ calls the interface to system sound card? Stuff like that is the knowledge in which I thirst.
Maddogg6 is offline   Reply With Quote
Old Sep 24, 2006, 10:00 AM Threadstarter Thread Starter   #3
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

The kX Console commands do not really have anything to do with any Windows API functions. It only controls aspects of kX, and the sound cards hardware. These commands are all a function of kX itself.

The help can be a little hard to decipher at times (and is occasionally wrong (i.e. typo)), but the source code for kxctrl is included in the SDK, and can help to understand some of the commands (if you understand the source code). Additionally, ikx.h has info on some of the parameters, etc.

Quote:
Originally Posted by Maddogg6 View Post
'assign a microcode slider to DSP program
That means 'assign kX slider in Windows Mixer to registers in a DSP plugin' (the usage instructions are not complete), which is what the above example does.

Currently it seems that only Master, Rec, Wave, and Synth can be reassigned.

As for the other console commands, it would probably be easiest if you just ask about the ones that you do not understand.

BTW: This functionality was Eugene's doing, I am only trying to explain how it can be used.

Last edited by Russ; Sep 24, 2006 at 10:59 AM.
Russ is offline   Reply With Quote
Old Sep 24, 2006, 10:37 AM Threadstarter Thread Starter   #4
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

BTW: The default (reset) values for each, appear to be as follows:

Master:
ma 0 epilog MasterL MasterR 0x7fffffff

Rec:
ma 1 epilog RecLVol RecRVol 0x7fffffff

kX0:
ma 2 0 0 0 0x20000000

kX1:
ma 3 0 0 0 0x20000000

Synth:
ma 4 0 0 0 0

Wave:
ma 5 0 0 0 0

Last edited by Russ; Mar 29, 2008 at 03:12 AM.
Russ is offline   Reply With Quote
Old Sep 24, 2006, 04:50 PM   #5
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

Is there any way to assign the synth slider to keyboard keys? (as the Master Mixer is usually the multimedia volume keys on a keybaord)... That would be very handy, we could then have multiple volumecontrols with our keys, if you never used home and end that could be a volume control, so could page up and page down
__________________
COMP: Dual Intel PIII 733 Mhz; GeForce 4 Ti 4600; 1.128 Gb RAM; SB0350 (Audigy 2 ZS Platnium)
STEREO(I UPGRADED):Crown Audio K1 and K2 amplifiers (4000 watts at .1% THD ), JL 13w7 Subwoofer (6.5 CF) (2) 18" PR's, Klipsch SB-1's, some cement blocks for speaker stands...
Chester01 is offline   Reply With Quote
Old Sep 24, 2006, 06:26 PM   #6
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 50
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

@Russ: Ahh. Ok - I think Im beginning to understand...

@Chester & Russ:

Wouldnt you use the following to map the windows Synth Slider to Epilog Master Vol.?

ma 4 epilog MasterL MasterR 0x7fffffff

But Im not sure why your asking - as the MM keys work for me in 3538L - unless Im not seeing/understanding something..??
Maddogg6 is offline   Reply With Quote
Old Sep 24, 2006, 07:30 PM   #7
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

that is how you would map it, I am referring to assigning keys on the keyboard to control the synth slider (which in turn would control the kx driver volume control)
__________________
COMP: Dual Intel PIII 733 Mhz; GeForce 4 Ti 4600; 1.128 Gb RAM; SB0350 (Audigy 2 ZS Platnium)
STEREO(I UPGRADED):Crown Audio K1 and K2 amplifiers (4000 watts at .1% THD ), JL 13w7 Subwoofer (6.5 CF) (2) 18" PR's, Klipsch SB-1's, some cement blocks for speaker stands...
Chester01 is offline   Reply With Quote
Old Sep 24, 2006, 08:47 PM Threadstarter Thread Starter   #8
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

It would be easier to just control a plugin using hotkeys, and leave the Windows Mixer stuff out of it, but it could be done... You would have to write a program to do it. Look up 'Audio Mixers' and 'RegisterHotkey' in MSDN.

Do not forget about this:
http://www.hardwareheaven.com/general-discussion/103654-control-kx-pc-keys.html

Last edited by Russ; Sep 24, 2006 at 09:31 PM.
Russ is offline   Reply With Quote
Old Sep 25, 2006, 05:53 PM   #9
DriverHeaven Newbie
 
Join Date: Sep 2006
Posts: 13
Rep Power: 0
smyle is on a distinguished road

???

Is there a way to set console commands permanently?
When i reboot my pc, i have to write command to console again to assign synt slider to linein.
smyle is offline   Reply With Quote
Old Sep 25, 2006, 10:26 PM Threadstarter Thread Starter   #10
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Hmm, that would appear to be a bug.
As a workaround, you could try creating a batch file that automatically executes the console command at startup.

i.e.
(put the following in a batch file, and put the file in the Windows startup folder)
kxctrl -ma 2 VolumeSt VolL VolR 0x7fffffff

Last edited by Russ; Mar 29, 2008 at 02:50 AM.
Russ is offline   Reply With Quote
Old Oct 19, 2006, 06:45 PM   #11
HardwareHeaven Junior Member
 
Join Date: Aug 2006
Location: Germany
Posts: 27
Rep Power: 0
BuzzT is on a distinguished road

Thanks, Russ! With this little sample plugin you solved my problems. Now my tv-card volume works fine. I hope that the "reload-bug" of console commands will be fixed in later releases, but your batch-file tip is a good way too. ;-)
BuzzT is offline   Reply With Quote
Old Mar 29, 2008, 02:50 AM Threadstarter Thread Starter   #12
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

The kX0 and kX1 sliders (in Windows Mixer) are back in 3540, so this plugin can again be used with those sliders.
Russ is offline   Reply With Quote
Old Apr 14, 2008, 08:53 PM   #13
HardwareHeaven Senior Member
 
RoyBatty's Avatar
 
Join Date: Jun 2006
Location: Czech Republic
Posts: 1,930
Rep Power: 115
RoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refuteRoyBatty has a reputation beyond refute
System Specs

Thanks Russ, I was afraid that I would have to use the Creative drivers because of my TV card
RoyBatty is online now   Reply With Quote
Reply

Bookmarks

Thread Tools