1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

The Warp Macro

Discussion in 'Building With Reaktor' started by gorgoglionemeister, Mar 17, 2008.

Thread Status:
Not open for further replies.
  1. gorgoglionemeister

    gorgoglionemeister Forum Member

    Messages:
    39
    Hi! I was looking at the 1-pole static HP in the Core Cell/Eq/Static Filter folder but I didn't understand what the Warp Macro does... Please can anyone explain to me what it exactly does and what it's used for?

    Thanks
    Antonio
     

    Attached Files:

  2. herw

    herw NI Product Owner

    Messages:
    6,421
    WARP-Macro ? yes it's from REAKTOR SEVEN ;-)
    It's the wrap macro which is used mainly in oscillators to wrap the increment values back to -1 (sometimes -0.5) to start again the cycle of the wave. In programming language it is like: "add the same value until you reach the maximum and go back to the minimum to start adding again and again." The wrap macro sets the memory back to minimum.

    ciao herw
     

    Attached Files:

    Last edited: Mar 17, 2008
  3. lxint

    lxint NI Product Owner

    Messages:
    764
    it warps ( distorts ) the mapping of the frequency for a more accurate behaviour towards higher frequencies, or, put another way, it undistorts the distortion of the frequency range that is introduced by squeezing an infinite range to the range limited by the sampling rate : the lower the frequency, ( compared to sample rate ) the more the mapping is 1:1 to continous signal processing, and the closer to sample/2 rate the more it's off, so you unsqueeze the range ( strech it ) in the vicinity of nyquist frequency

    @Herw : you are confusing something here
     
    Last edited: Mar 17, 2008
  4. CList

    CList Moderator

    Messages:
    3,299
    Actually, the warp macro fro oscillators and the "warpF" commonly found in filters do two different things.

    Herw describes the warp (though just to be perfectly clear, it does not set the output to min when it goes over max, it sets the output to: output - (max - min) ...which help accumulate rounding differences between the sample rate and the osc. frequency).

    I do not know exactly what the WarpF in filters does, it's some sort of scaling of the filter frequency to account for the sample rate when computing the coefficients for the filter math. If you don't understand filter math, I doubt you'll be able to understand what Warp is doing! I stand corrected --- thanks to lxint for the straightforward explanation!

    I personally don't understand that stuff at all.

    Gif of the WarpF is attached.

    Cheers,
    C
     

    Attached Files:

  5. herw

    herw NI Product Owner

    Messages:
    6,421
    yes sorry - i confused warpF in filters with wrap macro in oscillators.

    It's late here and i drunk a little bit of red wine.
     
    Last edited: Mar 17, 2008
  6. lxint

    lxint NI Product Owner

    Messages:
    764
    I dont either, honestly

    the problem with dsp related stuff is that its always obfuscated with a lot of fuzz
    I just go about things like a shaman, developing my view on things step by step, never timidated by things I dont understand thoroughly ( since the limit of knowledge is beyond the horizon, anyways) - I guess I could explain most of the things I "know" to you within a couple of hours
    what's really lacking is a "dsp for the layman/musician" type of book,
    and whats also lacking is some sort of community progress in this regards here, but I am getting off topic ...

    @ Herw : we are Germans, we're supposed to drink beer, not wine
     
  7. loadammo

    loadammo NI Product Owner

    Messages:
    333
    "unsqueeze" is my new technical word for the day.
     
  8. theologiae

    theologiae NI Product Owner

    Messages:
    652
    is there any hope then for the rest of us.......?

    i was going to point out the other place a warp macro sits, in the pitch shifter. it takes the triangle output and scales it to -.5 to .5. it's a cool little macro to study........
     
Thread Status:
Not open for further replies.