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 > Effects and the DSP


Reply
 
Thread Tools
Old Jan 11, 2007, 09:20 PM   #1
DriverHeaven Newbie
 
Join Date: Oct 2006
Posts: 17
Rep Power: 0
BenOBS is on a distinguished road

Plugin request (SPL "Burp" Button)

Hi all,

I have a little request for a plugin derivated from the wave generator that would be very usefull to me in DBDrag contest.

The main idea is a plugin that lets you:
Select a frequancy (From 20 to 200hz whit a .1 hz scale would be cool)
Set a gain
Set a duration

It should also have a bouton to launch the whole thing.


The triky part is about the signal generated, it must avoid any tic or pop at the beginning and at the end of the "burp" (because amplifiers are tuned to give there maximum output). Maybe a fast but progressive gain + and - at the beginning and at the end can avoid this?...


So, any help will be greatly appreciated!
Thanks
BenOBS is offline   Reply With Quote


Old Jan 14, 2007, 03:04 AM   #2
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

why dont you just use adobe audition to generate a wavefile...
__________________
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 Jan 14, 2007, 04:31 AM Threadstarter Thread Starter   #3
DriverHeaven Newbie
 
Join Date: Oct 2006
Posts: 17
Rep Power: 0
BenOBS is on a distinguished road

because it would take lot of wave file to have all X.1hz ...

But if a plugin is possible, ill do this...
BenOBS is offline   Reply With Quote
Old Jan 14, 2007, 04:44 AM   #4
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

you wouldnt have to save the wavefile, just generate them on the fly with audition, idk how 'fast' you need your files though...
__________________
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 Jan 15, 2007, 09:52 PM Threadstarter Thread Starter   #5
DriverHeaven Newbie
 
Join Date: Oct 2006
Posts: 17
Rep Power: 0
BenOBS is on a distinguished road

But, does a plugin that do it is very complicated to do?
BenOBS is offline   Reply With Quote
Old Jan 16, 2007, 01:42 PM   #6
h/h member-shmember
 
Join Date: Dec 2002
Location: Evil Empire
Posts: 2,639
Rep Power: 69
Max M. is just super!Max M. is just super!Max M. is just super!Max M. is just super!Max M. is just super!Max M. is just super!

>But, does a plugin that do it is very complicated to do?

no.
Max M. is offline   Reply With Quote
Old Jan 16, 2007, 07:31 PM   #7
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

It can be done easily.
Take a look at the programming guide on the kX web site.

Alternatively you can use any free VST synth.
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Jan 21, 2007, 06:43 PM   #8
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!

Here is example code you can use. It will pulse whatever is input to it for the specified amount of time (so you can use whatever you want as the source audio (i.e. Wave Generator 3, or whatever)). It is Dane only code, so it is not as user friendly as you might like, but it means that it can used/modified by anyone, without having to worry about recompiling it, etc). It does not include a Gain control (it is easy enough to add one), since it does not generate any audio on it's own (Wave Generator has its own Gain control, and there is also the GainHQ plugin that can be used for this).

Here is the code:
Code:
; New microcode
    name "Burp";
    copyright "Copyright (c) 2006.";
    created "01/21/2007";
    engine "kX";
    ; comment "";
    guid "cbd40512-df3e-4902-9e07-f799c4057a4f";
    ; -- generated GUID  

; itramsize 0
; xtramsize 0   
input in
output out
static time=48000;
static counter=0;
static reset=0;
static xtime=0;    
static volume=0;
static smooth=0.01;  

; code                      
macints xtime, 0x0, time, reset;
andxor 0x0, counter, 0xffffffff, xtime;  
skip ccr, ccr, 0x8, 0x3; 
acc3 counter, counter, 0x1, 0x0;  
interp  volume, volume, smooth, 0x7fffffff
skip ccr, ccr, 0x7fffffff, 0x3; 
macs reset, 0x0, 0x0, 0x0;  
macs counter, 0x0, 0x0, 0x0; 
interp  volume, volume, smooth, 0x0;
macs out, 0x0, in, volume;

end
Copy and paste the above code into a new text file and save as "Burp.da".
*** A blank line is needed after the "end" statement ***

Time is seconds multipled by 48000 (default time is 1 second, change it to whatever you want the default time to be).


Usage:
Load plugin.
Connect audio source to input, and connect output to desired speaker connection. Take note of the plugin_ID assigned to it (the number in square brakets (if you do not see it, hold the mouse cursor over the plugin until the tooltip pops up)).
When you want to send a pulse, open up kX Console and type the following command:
sg [plugin_ID] 8003 1
i.e. (if the plugin_ID is 8)
sg 8 8003 1

You can also change the time value from kX Console (probably easier then editing the code everytime you want to make a temporary change), by using the same command as above but replace 8003 with 8001, and 1 with the wanted time value (in hexadecimal).
i.e.
To change the time to 5 seconds (if plugin_ID is 8) from the console.
-- 5 seconds * 48000 = 240,000 (3A980 hex)
sg 8 8001 3A980

BTW: The 'sg [plugin_ID] 8003 1' instruction can also be used as a time multiplier (provided that the total time (time * multipler) does not exceed the max value of 2147483647), by changing '1' to the desired time multiplier.
i.e.
Another way to change the time to 5 seconds (when 'time' value is the default of 1 second (with a plugin_ID of 8)) and send the pulse immediatley:
sg 8 8003 5

Last edited by Russ; Jan 23, 2007 at 12:26 AM.
Russ is offline   Reply With Quote
Reply

Thread Tools