Announcement

Collapse
No announcement yet.

Odd behaviour of fader MIDI mapping 0-127

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Odd behaviour of fader MIDI mapping 0-127

    I have a list of all 128 midi note names I use for the 'Selection From Input Value' list for a pitch display on my TouchOSC layout, and which also update the pitch sent by a button with the MIDI NOTE w/ Params message.

    (C-2,C#-2,D-2,Eb-2,E-2,F-2,F#-2,G-2,Ab-2,A-2,Bb-2,B-2,C-1,C#-1,D-1,Eb-1,E-1,F-1,F#-1,G-1,Ab-1,A-1,Bb-1,B-1,C0,C#0,D0,Eb0,E0,F0,F#0,G0,Ab0,A0,Bb0,B0,C1,C#1, D1,Eb1,E1,F1,F#1,G1,Ab1,A1,Bb1,B1,C2,C#2,D2,Eb2,E2 ,F2,F#2,G2,Ab2,A2,Bb2,B2,C3,C#3,D3,Eb3,E3,F3,F#3,G 3,Ab3,A3,Bb3,B3,C4,C#4,D4,Eb4,E4,F4,F#4,G4,Ab4,A4, Bb4,B4,C5,C#5,D5,Eb5,E5,F5,F#5,G5,Ab5,A5,Bb5,B5,C6 ,C#6,D6,Eb6,E6,F6,F#6,G6,Ab6,A6,Bb6,B6,C7,C#7,D7,E b7,E7,F7,F#7,G7,Ab7,A7,Bb7,B7,C8,C#8,D8,Eb8,E8,F8, F#8,G8)

    If I select, say, C4, and set the fader so the display *just* switches up to C4 from B3, you hear B3! And if you come down from C#4 to C4 you get C#4! There seems to be a slight Misalignment between the OSc value that provides the correct midi note and the value that selects the right inout value from the list...?

    Could you explain what's happening here please?

  • #2
    The MIDI Note w/ Parameters is a special event that can be triggered from an OSC message with a single argument (like a button). However, in order to form a note, you need to know 2 more parameters: the pitch, and the velocity.

    That is why, the MIDI Note w/ Parameters event use the values from another OSC message to get the Pitch and the Velocity. For this, you can use the values from the event Note Params that fill-in the pitch and velocity values in some sort of storage that is later accessed from the MIDI Note w/ Parameters event.

    All Note Parameters are expressed as floating values between 0.0 and 1.0. This approach is more difficult to use, but is more flexible with other OSC software. For the Pitch, it means that the OSC value 0.0 is mapped to the MIDI Note 0, and the OSC value 1.0 is mapped to the MIDI value 127.

    Therefore there are 127 intervals (and 128 values), and not 128 intervals (with 128 values) as suggested in your post.

    Now, if you want to display the note name corresponding to the same float value, you have to use the same convention (that is, as explained before: use 0 for the MIDI note 0, and 1.0 for the MIDI note 127). If there are only 127 intervals, you must remove the last value 'G8'. If you map the note names as:
    Code:
    [COLOR=#333333]
    (C-2,C#-2,D-2,Eb-2,E-2,F-2,F#-2,G-2,Ab-2,A-2,Bb-2,B-2,C-1,C#-1,D-1,Eb-1,E-1,F-1,F#-1,G-1,Ab-1,A-1,Bb-1,B-1,C0,C#0,D0,Eb0,E0,F0,F#0,G0,Ab0,A0,Bb0,B0,C1,C#1, D1,Eb1,E1,F1,F#1,G1,Ab1,A1,Bb1,B1,C2,C#2,D2,Eb2,E2 ,F2,F#2,G2,Ab2,A2,Bb2,B2,C3,C#3,D3,Eb3,E3,F3,F#3,G 3,Ab3,A3,Bb3,B3,C4,C#4,D4,Eb4,E4,F4,F#4,G4,Ab4,A4, Bb4,B4,C5,C#5,D5,Eb5,E5,F5,F#5,G5,Ab5,A5,Bb5,B5,C6 ,C#6,D6,Eb6,E6,F6,F#6,G6,Ab6,A6,Bb6,B6,C7,C#7,D7,E b7,E7,F7,F#7,G7,Ab7,A7,Bb7,B7,C8,C#8,D8,Eb8,E8,F8, F#8)[/COLOR]
    ... then all should work correctly.

    I told you it was an experimental feature!



    Best,
    Cam

    Comment


    • #3
      Right, so there is no way to include the G8 top note and have the correct scaling?

      Comment


      • #4
        Actuually there is. Open the Parameters Window go to the I/O tab and change the upper note bound to 128 (instead of 127)

        Comment


        • #5
          Brilliant!

          Comment

          Working...
          X