ratios for gain between decibels and absolute values


    Feb 21 2006 | 5:34 pm
    I have a value (it's an audio signal) between 0 and 1 that I can multiply a signal in decibels by to get the amplitude I want.
    I want to use this number to change the ampitude of a signal however that signal is an absolute value. Is there a way I can do a calculation on the ratio signalso that I can multiply it with a signal using absolute values and get the correct reduction in audio? I want to keep all signals as audio signals too.
    Does that make sense? Possibly not.
    Cheers.

    • Feb 21 2006 | 8:50 pm
      Alistair wrote: > I have a value (it's an audio signal) between 0 and 1 that I can > multiply a signal in decibels by to get the amplitude I want. > > I want to use this number to change the ampitude of a signal however > that signal is an absolute value. Is there a way I can do a > calculation on the ratio signalso that I can multiply it with a > signal using absolute values and get the correct reduction in audio? > I want to keep all signals as audio signals too. > > Does that make sense? Possibly not.
      dbtoa~ or atodb~?
      --
      [][] [][][] [][] [][][] [][][][][][][][][][][][][][][]
      Stefan Tiedje Klanggestalter Electronic Composition & Improvisation
      /~~~~~ \ /|() ()| ))))) )| | |( \ /// _/)/ ))))) ___/ ///
      -------------------------x---- --_____-----------|----------- --(_|_ ----|-----|-----()---- -- _|_)----|-----()----------- ----------()------------x-----
      14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France Phone at CCMIX +33-1-49 77 51 72
    • Feb 21 2006 | 9:03 pm
      No, doesn't seem to work.
      How about this, if I have the gain reduction in dB how can I effect an absolute value with the correct gain reduction?
    • Feb 21 2006 | 10:38 pm
      Quote: Al wrote on Tue, 21 February 2006 13:03 ---------------------------------------------------- > No, doesn't seem to work. > > How about this, if I have the gain reduction in dB how can I effect an absolute value with the correct gain reduction? ----------------------------------------------------
      What do you mean "doesn't seem to work"? It works the way I expect it to. If I want to go from 0db to -6db, I would change my amplitude from 1.0 to 0.5. And that's what dbtoa (and dbtoa~) do for me.
      Still not convinced? See:
      mzed
    • Feb 21 2006 | 10:45 pm
      I don't understand why it woulden't work ? it's no matter if the signal is absolute value or not, in multiplication ?
      is this what u ment ?
    • Feb 21 2006 | 10:52 pm
      No, I'm trying to apply that reduction in gain to another signal which is an absolute value. I need to know how the ratios would work in relation to each other. For instance I have a number between 0 and 1 that I can multiply the dB by to create a new amplitude, what calculation would I need to do to correct that ratio to work with an absolute signal?
      It's quite possible that I'm missing something obvious or I'm doing something totally wrong but it seems to me there should be some logical relationship between the two ratios.
    • Feb 21 2006 | 10:57 pm
      Hold on, I think I may have missed something. Just trying soemthing out.
    • Feb 22 2006 | 12:28 am
      I've cracked it, sorry for talking nonsense there.
    • Feb 22 2006 | 2:00 pm
      Hi,
      I'm not fully sure of what you are aiming at, but if you want to use the loudness of one signal to control loudness of another signal, you could check out tl.balance~ from tl.objects:
      Best, Trond