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

very noobie question

Discussion in 'Building With Reaktor' started by ChrispyKing, Apr 1, 2007.

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

    ChrispyKing New Member

    Messages:
    4
    Hi there,

    Just trying my first hand at this, and I'm finding something doesn't quite make sense.

    I'm trying to make a small construct that will fire certain events when a certain pitch is played.

    I'm having trouble with the compare/equality module ever registering the pitch of something (or mod of it) is equal to a value.

    I've attached a screenshot. From this, what I think should happen is that the equals output should produce a 1 when the C key is pressed, however it always produces 0.

    Help me please (sorry if I'm being a dumbass)?

    C
     

    Attached Files:

  2. dwp

    dwp NI Product Owner

    Messages:
    12
    Hi. The structure you posted should indeed fire a 1 when a "C" is pressed. I just checked and it works.

    You're modules are polyphonic and you should be able to see the value of each voice by holding your mouse over the wire at the = output. If you can't see it, hit "ctrl-i" to turn on hints

    If you don't need multiple voices, switch all the modules to mono. Then you'll just get a single "1" from the output.

    Hope that helps.
     
  3. ChrispyKing

    ChrispyKing New Member

    Messages:
    4
    Thanks for the help,

    The wire value inspection is helping, but I'm seeing something else funny now. Have a look at the image. It seems I can't get get a pure 0 from the mod output, even if I try and absolute the value.

    How can I round down / up to get an integer value from this almost 0 value? I can't find anything that jumps out at me to do this.

    Cheers,

    C
     

    Attached Files:

  4. CList

    CList Moderator

    Messages:
    3,299
  5. CList

    CList Moderator

    Messages:
    3,299
    As for the second picture, what's your notepitch value???
    Are you sure it's a C? I can't understand how you could possibly be getting a result like that w/o a fractional value coming from the note pitch, or unless (and this is possible but unlikely) the "Value" setting on your constant of "12" is different from the "name" property. Check the properties on that constant.

    - CList
     
  6. ChrispyKing

    ChrispyKing New Member

    Messages:
    4
    I have found the issue.

    See, I'm trying to expand an existing ens. Event Loops was on. turn that off, and everything seems dandy.

    Will see if it all works now.
     
Thread Status:
Not open for further replies.