Expression to evaluate wehn calc the midi msg value from the mod value

Home Forums General Programming Expression to evaluate wehn calc the midi msg value from the mod value

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #48121
    Possemo
    Participant
      • Topics: 14
      • Replies: 638
      • Total: 652
      • ★★★

      Hi, I’ve got a question about “Expression to evaluate when calculating the midi message value from the modulator value”. I have already a solution I borrowed from a Panel made by Atom but I leaves me still with some questions.

      Problem: I want to convert the modulator value range from -24 to +24 to the following: positive values are ok as they are, negative values must be converted like this: -1 = 127, -2 = 126 and so on. The solution looks like this:

      lt (modulatorValue, 0, 128 + modulatorValue, modulatorValue)

      This is nice but I’m not sure if I understand it right:

      Does it read like this?:
      LessThan (if modulatorValue, is less than (0), do this (128 + Value), output it (new Value)

      Edit: alien values are gone (don’t know how) – so I deleted this question.

      • This topic was modified 8 years, 10 months ago by Possemo.
    Viewing 1 post (of 1 total)
    • The forum ‘Programming’ is closed to new topics and replies.
    There is currently 0 users and 77 guests online
    No users are currently active
    Forum Statistics
    Threads: 2,495, Posts: 17,374, Members: 77,605
    Most users ever online was 12 on January 22, 2019 3:47 pm
    Ctrlr