|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60 ![]() ![]() ![]() ![]() ![]() ![]() |
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] 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 |
|
|
|
|
|
#2 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 50 ![]() ![]() |
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. |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60 ![]() ![]() ![]() ![]() ![]() ![]() |
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. 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. |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#5 |
|
HardwareHeaven Senior Member
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0 ![]() |
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...
|
|
|
|
|
|
#6 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 50 ![]() ![]() |
@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..?? |
|
|
|
|
|
#7 |
|
HardwareHeaven Senior Member
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0 ![]() |
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...
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#9 |
|
DriverHeaven Newbie
Join Date: Sep 2006
Posts: 13
Rep Power: 0 ![]() |
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. |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#11 |
|
HardwareHeaven Junior Member
Join Date: Aug 2006
Location: Germany
Posts: 27
Rep Power: 0 ![]() |
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. ;-)
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,503
Rep Power: 60 ![]() ![]() ![]() ![]() ![]() ![]() |
The kX0 and kX1 sliders (in Windows Mixer) are back in 3540, so this plugin can again be used with those sliders.
|
|
|
|
|
|
#13 |
|
HardwareHeaven Senior Member
|
Thanks Russ, I was afraid that I would have to use the Creative drivers because of my TV card
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|