|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
DriverHeaven Newbie
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0 ![]() |
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! |
|
|
|
|
|
#2 |
|
h/h member-shmember
Join Date: Dec 2002
Location: Evil Empire
Posts: 2,639
Rep Power: 69 ![]() ![]() ![]() ![]() ![]() ![]() |
the "natural" way to write this is:
acc3 outl, in0, in1, 0 acc3 outr, in2, in3, 0 (no need for dummy) |
|
|
|
|
|
#3 |
|
kX user
Join Date: Apr 2004
Posts: 851
Rep Power: 0 ![]() |
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... |
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0 ![]() |
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! |
|
|
|
|
|
#5 |
|
h/h member-shmember
Join Date: Dec 2002
Location: Evil Empire
Posts: 2,639
Rep Power: 69 ![]() ![]() ![]() ![]() ![]() ![]() |
(tiger, it's your turn now ;)
|
|
|
|
|
|
#6 |
|
kX user
Join Date: Apr 2004
Posts: 851
Rep Power: 0 ![]() |
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... |
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0 ![]() |
Oh man. How can it be
![]() I am supposed to know this, heh. Yeah I know... thanks
__________________
Knowledge Is Power! |
|
|
|
|
|
#8 |
|
h/h member-shmember
Join Date: Dec 2002
Location: Evil Empire
Posts: 2,639
Rep Power: 69 ![]() ![]() ![]() ![]() ![]() ![]() |
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) |
|
|
|
|
|
#9 |
|
kX user
Join Date: Apr 2004
Posts: 851
Rep Power: 0 ![]() |
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... |
|
|
|
|
|
#10 | |
|
DriverHeaven Addict
Join Date: May 2003
Location: Philadelphia, PA
Posts: 380
Rep Power: 0 ![]() |
Quote:
|
|
|
|
|
|
|
#11 |
|
Apple Fanboy?
|
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 |
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: Jun 2004
Location: Norway
Posts: 18
Rep Power: 0 ![]() |
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! |
|
|
|
![]() |
| Thread Tools | |
|
|