Balanced audio "Decoder"

Discussion in 'Effects and the DSP' started by PenguiN42, Jan 4, 2003.

  1. PenguiN42

    PenguiN42 New Member

    Joined:
    Jan 2, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Alright this is really simple, but can be useful. (My first emu10k program ever too :) )

    All it does is invert one input, and add it to the other (both halved) -- but you can use it to decode any balanced inputs you may have coming in (like from your mixer or something) into mono channels for recording. Also can be used as a very simple "vocal cut" or dolby surround rear channel decoder (heh).

    Forgive me if this kind of module already exists... I threw it together because I was already recording balanced audio and manually recombined the channels... this made it a lot simpler (hooray for kx!).

    ----
    ; New microcode
    name "Unbalance";
    copyright "Copyright Ken Taylor (c) 2002.";
    created "01/03/2003";
    engine "kX";
    ; comment "";
    guid "fdcb59bd-f84d-41dc-9fe6-18d1d9e59608";
    ; -- generated GUID

    input hot, cold;
    output monoOut;
    temp tmp;

    macs tmp, 0, hot, 0x40000000;
    macsn monoOut, tmp, cold, 0x40000000;

    ;

    end
     
  2. PenguiN42

    PenguiN42 New Member

    Joined:
    Jan 2, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    oh geez I just realised I could remove the temp variable...

    input hot, cold;
    output monoOut;

    macs monoOut, 0, hot, 0x40000000;
    macsn monoOut, monoOut, cold, 0x40000000;

    yeah it is really simple ^_^
     

Share This Page

visited