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 Aug 26, 2004, 07:50 AM   #1
DriverHeaven Newbie
 
Join Date: Aug 2004
Location: Russia
Posts: 6
Rep Power: 0
skipyrich is on a distinguished road

rolleyes Stereobase

I have created simple DSP effect, that can change stereobase from mono to full stereo. IMHO it may be useful.
http://skipyrich.siteburg.com/store/stereobase.zip

Last edited by skipyrich; Dec 28, 2004 at 06:33 PM. Reason: URL is changed
skipyrich is offline   Reply With Quote


Old Aug 26, 2004, 09:16 AM   #2
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

You can save 1 instruction on that. Instead:

; mono = mono*(1-base);
macsn mono, mono, mono, base
; outN = mono + inN*base
macs outL, mono, inL, base
macs outR, mono, inR, base


You can use:

;outL = (1-base)*mono + base*inL
interp outL, mono, base, inL
;outR = (1-base)*mono + base*inR
interp outR, mono, base, inR


And don't forget that using "in" registers more than once in the code may cause problems in some particular cases. You should use dummy temp registers for that purpose.
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Aug 26, 2004, 11:03 AM Threadstarter Thread Starter   #3
DriverHeaven Newbie
 
Join Date: Aug 2004
Location: Russia
Posts: 6
Rep Power: 0
skipyrich is on a distinguished road

I have updated code with your optimization. Thanks for your suggestions.

Quote:
Originally Posted by Tiger M

And don't forget that using "in" registers more than once in the code may cause problems in some particular cases. You should use dummy temp registers for that purpose.

I saw the code from another DSP effects (b2b, gainHQ, etc...) in which this behaviour is used too...
Where I can find these problems explained? (URL?)
skipyrich is offline   Reply With Quote
Old Aug 26, 2004, 11:27 AM   #4
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

Quote:
I saw the code from another DSP effects (b2b, gainHQ, etc...) in which this behaviour is used too...
Where I can find these problems explained? (URL?)
There isn't much to explain. Max has stated that when you use "in" regs more than once you might get some problems when you have connected the effect directly to the FXBus. He hasn't explained further than that.

I personally haven't encountered problems of this kind in my dsp coding experience, but Max should be trusted...
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Aug 26, 2004, 12:05 PM   #5
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!

http://driverheaven.net/showthread.php?t=41855
Max M. is offline   Reply With Quote
Old Aug 26, 2004, 12:16 PM Threadstarter Thread Starter   #6
DriverHeaven Newbie
 
Join Date: Aug 2004
Location: Russia
Posts: 6
Rep Power: 0
skipyrich is on a distinguished road

Hmmm...
I have found some (outdated?) explanations in kX Help... And I does not found any similar info in http://kxproject.lugosoft.com/dane.php

As using dummy registers require additional instructions, I let it remain as is and will wait for bugreports
skipyrich is offline   Reply With Quote
Old Aug 26, 2004, 12:31 PM   #7
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

That explains everything.
Sorry Max, I haven't seen this thread before...

Quote:
As using dummy registers require additional instructions, I let it remain as is and will wait for bugreports
two more registers won't hurt... it's always better to be shure that problems won't happen, than to wait for them to happen and then fix them by constraint... (I'm very wise today, ain't I )
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Aug 26, 2004, 06:24 PM Threadstarter Thread Starter   #8
DriverHeaven Newbie
 
Join Date: Aug 2004
Location: Russia
Posts: 6
Rep Power: 0
skipyrich is on a distinguished road

Thanks, Max, your post is very cognitive. I was surprised by "Multithreaded execution"...
In which thread on the russian forum this problem is discussed?

Quote:
two more registers won't hurt...
Two more registers and two more instructions won't hurt, but two more resource on each effect does.
IMHO it is better to make dummy effect which does nothing but buffering between FXBus and other effects.
skipyrich is offline   Reply With Quote
Old Dec 6, 2004, 12:23 AM   #9
Audiotecna- Representante
 
Join Date: Dec 2002
Location: Bogota, Colombia
Posts: 173
Rep Power: 0
BiCho is on a distinguished road

If this effect is easy to code, then a karaoke wouldn't be difficult too, am I wrong? Analog X (analogx.com) has done one which works as a VST and for Winamp too.

What the effect does is cancel whichever signal is present on both channels. Would be really nice to have one within the DSP...pretty please??
__________________
Audiotecna - Innovación Musical
Distribuidora oficial de Ortofon DJ, Native Instruments and Moog Music para Colombia (1)8073934
BiCho is offline   Reply With Quote
Old Dec 6, 2004, 05:34 AM Threadstarter Thread Starter   #10
DriverHeaven Newbie
 
Join Date: Aug 2004
Location: Russia
Posts: 6
Rep Power: 0
skipyrich is on a distinguished road

Changing width of a stereoimage is a simple task, however there is no way to correctly extract center channel from two channels. Removing voice from a song is done with some assumptions that are not trivial.
skipyrich is offline   Reply With Quote
Old Dec 6, 2004, 04:35 PM   #11
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

http://www.hardwareheaven.com/showthre...ight=crossfeed
Code inside. see end of thread.

/LeMury
Lex Nahumury is offline   Reply With Quote
Old Dec 28, 2004, 02:41 PM   #12
Audiotecna- Representante
 
Join Date: Dec 2002
Location: Bogota, Colombia
Posts: 173
Rep Power: 0
BiCho is on a distinguished road

problems with 3538h

I've been using stereobase since it was posted and i find it really useful.

However, since I installed 3538h, the plugin dissapears from my DSP each restart, giving me an error message when I try to load it. The problem gets fixed as soon as i reinstall the plugin, however I have to do this each restart
__________________
Audiotecna - Innovación Musical
Distribuidora oficial de Ortofon DJ, Native Instruments and Moog Music para Colombia (1)8073934
BiCho is offline   Reply With Quote
Old Dec 28, 2004, 03:43 PM   #13
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

http://skipyrich.narod.ru/prog/stereobase.zip
links 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 Dec 28, 2004, 05:39 PM   #14
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

Quote:
However, since I installed 3538h, the plugin dissapears from my DSP each restart, giving me an error message
[color=yellow]It probably needs to be recompiled with 3538 SDK.[/color]
[color=yellow]Asks the author of the plug.[/color]
[color=yellow][/color]
[color=yellow]/LeMury[/color]
Lex Nahumury is offline   Reply With Quote
Old Dec 28, 2004, 06:29 PM Threadstarter Thread Starter   #15
DriverHeaven Newbie
 
Join Date: Aug 2004
Location: Russia
Posts: 6
Rep Power: 0
skipyrich is on a distinguished road

Link was changed: http://skipyrich.siteburg.com/store/stereobase.zip
Please review the first post in this thread.

Quote:
[color=yellow]It probably needs to be recompiled with 3538 SDK.[/color]
[color=yellow]Asks the author of the plug.[/color]
This plugin is an .da source and don't require additional compiling.

Quote:
However, since I installed 3538h, the plugin dissapears from my DSP each restart, giving me an error message when I try to load it. The problem gets fixed as soon as i reinstall the plugin, however I have to do this each restart
Use regedit after restart to review the registry key "HKEY_CURRENT_USER\Software\kX\Plugins". If you can't see the parameters "1ac05bf3-27d2-451d-8c5e-9afddbe39c38" and "1ac05bf3-27d2-451d-8c5e-9afddbe39c38.name", then probably your windows registry is broken and repaired on each restart.
If these parameters exists, but its data don't point to the stereobase.da, then you have an other plugin that use this GUID .
skipyrich is offline   Reply With Quote
Old Dec 28, 2004, 09:35 PM   #16
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

>>This plugin is an .da source and don't require additional compiling.
[color=yellow]Ah, yes I see now (duh). Then it's the GUID like you already mentioned.[/color]
[color=#ffff00]/LeMury[/color]
Lex Nahumury is offline   Reply With Quote
Old Sep 12, 2008, 10:44 PM   #17
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

I realize this is near 4 years old by now... does anyone have the code for this ?
__________________
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 13, 2008, 12:05 PM   #18
HardwareHeaven Addict
 
Join Date: Jan 2008
Location: germany, sb0090
Posts: 259
Rep Power: 0
stylus02 will become famous soon enoughstylus02 will become famous soon enough

http://freenet-homepage.de/stylish-s...tereo_v1.0.zip
__________________
http://kxm.dyndns.org
stylus02 is offline   Reply With Quote
Old Sep 13, 2008, 10:18 PM   #19
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

A member by the name of RadioColonel (spelling?? probably wrong??) has a pack of Dane only plugins - one of which is a widener that works rather well.
:::.::.::: The Castle :::.::.:::

It uses more resources than Stylus02's but, if you're like me - you like options
Maddogg6 is offline   Reply With Quote
Old Sep 13, 2008, 11:29 PM   #20
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

Thanks Maddog6; I did actually need to "expand" the stereo field, not convert it between "100%" and mono... See, in my dorm room, the way my desk wraps around the room; when i am sitting on my bed, my right speaker is approx 3.1 feet further back from me the left one. I have time delayed and volume corrected the sound with the inverse square law so the stereo imaging is 'centered' however there is only about 23.4 degrees of separation between the two speakers so I wanted to figure out how to calculate 'how much' stereo expansion i need... lol big problems
Chester01 is offline   Reply With Quote
Old Sep 14, 2008, 12:41 AM   #21
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

No problem...

Well - as far as this plug in 'expanding' - ?? - it *sounds* like (not that I can look at dane code and figure out what is happening exactly) it simply amplifies the difference between left versus right - in other words - amplifies the non-centered panned audio. As, I notice - the harder a sound is panned in the stereo field - the more amplified it seems with the plugin set to 100% - where 0% seems like normal (not mono)

So it seems this plugin is the 'compliment' to Stylus02's in that it does just the opposite.

As far as calculating - heh - I just mess with sliders till it sounds cool The theory makes my head hurt - but good sound is like asprin.
Maddogg6 is offline   Reply With Quote
Old Sep 14, 2008, 09:56 PM   #22
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
Chester01 is on a distinguished road

yea; messing with the theory gets you so far... it can help you figure out where about the sliders should sound good and save hours of tuning lol; when it comes to a timedelay to put the speakers in proper time alignment, when you get close to the correct delay a little difference in delay from the 'proper' delay will sound wierd, then getting closer it will sound better, then get bad again and then finally its where it should be lol, can be tough to tune by ear
__________________
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
Reply

Thread Tools