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 Jun 29, 2004, 05:37 PM   #1
Ad0
DriverHeaven Newbie
 
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0
Ad0 is on a distinguished road

acc question

name "4to2";
copyright "(c) Emil Christopher Melar";
engine "kX";
created "2004";
; comment "";
guid "30e073f5-acf0-4d92-8f24-496931eaf89d";

; Registers
static dummy = 0x0;
input in0, in1, in2;
input in3;
output outl;
output outr;

; Code
acc3 outl, in0, in1, dummy;
acc3 outr, in2, in3, dummy;

end


Do I really have to do this "hack" ?

Isn't there an accumulate function that takes 2 params?
__________________
Knowledge Is Power!
Ad0 is offline   Reply With Quote


Old Jun 29, 2004, 06:13 PM   #2
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!

the "natural" way to write this is:

acc3 outl, in0, in1, 0
acc3 outr, in2, in3, 0

(no need for dummy)
Max M. is offline   Reply With Quote
Old Jun 29, 2004, 06:17 PM   #3
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

Each instruction takes four operands - not more not less. Instead of that dummy static register you can use just 0. That way you'll save one register.

EDIT: Oops, Max, we were writing at the same time. You posted your answer first.
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Jun 29, 2004, 06:31 PM Threadstarter Thread Starter   #4
Ad0
DriverHeaven Newbie
 
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0
Ad0 is on a distinguished road

Hehe, thanks, yes, I guessed it worked that way.

Do anyone of you have a working VS.NET solution setup for developement of kX plugins?

I also know the VST api a bit, wrote a delay with bitcrusher and downsampler in the feedback loop, I might want to port it to a kX module

Also, given that kX is open source, wouldn't it be possible to get the pins (ins and outs) and wrap them in the VST per-sample-loop?

I mean if we created a device that was meant for input and output, to get the interface of that, and push the floats in the VST.

Kinda hard to explain I mean there is a solution to do zero-latency VST <-> kX without going through ASIO epilog!

New code, I added some amplification. I made this module to have a dry mix possibility with whatever audio that is supposed to come from the FX bus to ASIO epilog...

; New microcode
name "4to2";
copyright "(c) Emil Christopher Melar";
engine "kX";
created "2004";
; comment "";
guid "30e073f5-acf0-4d92-8f24-496931eaf89d";

; Registers
input inl, inr;
output outl;
input in2l, in2r;
output outr;


; Code
acc3 outl, inl, in2l, 0x4;
acc3 outr, inr, in2r, 0x4;

end
__________________
Knowledge Is Power!
Ad0 is offline   Reply With Quote
Old Jun 29, 2004, 06:42 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!

(tiger, it's your turn now ;)
Max M. is offline   Reply With Quote
Old Jun 29, 2004, 07:06 PM   #6
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

Gee, thanks Max .

Ad0, test your code before you post it.

1. acc3 deals with fractional numbers between -1 and 1, by giving it 0x4 it just ignores it as 0.
2. by adding a number to the input signal you just offset it, it doesn't get amplified. You should multiply it.

macints out,0,in,0x4

Read the beginner's guide carefully. There are examples.
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Jun 29, 2004, 07:15 PM Threadstarter Thread Starter   #7
Ad0
DriverHeaven Newbie
 
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0
Ad0 is on a distinguished road

Oh man. How can it be

I am supposed to know this, heh.

Yeah I know... thanks
__________________
Knowledge Is Power!
Ad0 is offline   Reply With Quote
Old Jun 29, 2004, 07:23 PM   #8
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!

as for " there is a solution to do zero-latency VST <-> kX without going through ASIO epilog!" then:
Well, no, such zero latency system is not possible... Well, Eugene could explain it better..
Although, of course you could write VST plug-in that will send data to DSP and get processed data back... But you still have to use same buffers and ports as kX ASIO does (e.g. send and receive to/from DSP)... And then you will have same latency as kX ASIO has...
Well, it's loooong story (probably you'll find more topics of that here in the forum... searching by "effects & latency" or something like that)
Max M. is offline   Reply With Quote
Old Jun 29, 2004, 07:45 PM   #9
kX user
 
Join Date: Apr 2004
Posts: 851
Rep Power: 0
Tiger M is on a distinguished road

I don't know what people like so much in VST effects!
Its better to keep all real-time signal processing for the dsp.
There are some kX effects that have no rivals in VST!
__________________
Miss you, Steve...
Tiger M is offline   Reply With Quote
Old Jun 30, 2004, 06:07 AM   #10
DriverHeaven Addict
 
Join Date: May 2003
Location: Philadelphia, PA
Posts: 380
Rep Power: 0
NightBreed is on a distinguished road

Quote:
I don't know what people like so much in VST effects!
Portability for the main important reason. For me anyway.
NightBreed is offline   Reply With Quote
Old Jun 30, 2004, 06:58 AM   #11
Apple Fanboy?
 
dj_stick's Avatar
 
Join Date: Jun 2003
Location: Basement of the first floor
Posts: 17,485
Rep Power: 190
dj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his status
System Specs

i personally use the logic plugins quite often, especially the autofilter and delay, yet to find plugins that equal that in any format
__________________
Chris - The Aussie Super Mod
Hardwareheaven Rules - Sig Request Thread

How you can help HardwareHeaven by using Digg!

Hardwareheaven Super-Moderator

Quote:
Originally Posted by OmegaRED View Post
You know, there's "off topic" and then there's so freakin' off topic it you gotta wear a straitjacket to join the conversation.
dj_stick is offline   Reply With Quote
Old Jun 30, 2004, 09:12 AM Threadstarter Thread Starter   #12
Ad0
DriverHeaven Newbie
 
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0
Ad0 is on a distinguished road

Even if you got the pointer to the audio streams, you would still have to wait for response from the chip, and it can't sync with track rendering since it is faster than realtime. so bouncing a VST track to ASIO 3/4 (blended with effects) etc , and then mute it seems like the only doable solution.
__________________
Knowledge Is Power!
Ad0 is offline   Reply With Quote
Reply

Thread Tools