Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 13 of 13

Thread: Midi notes not consistent?

  1. #1
    Junior Member
    Join Date
    Jul 2018
    Posts
    13

    Midi notes not consistent?

    This is a question that's been bugging me and I can't find a logical explanation, so here it is, I am using a Teensy to send a MIDI note for instance 48, witch is mapped as C3, monitoring the MIDI messages I have a C2.. is this normal or am I skipping through something?

    You can reproduce the example running this simple code, on Teensy 3.2 and 3.6 is exactly the same:

    Code:
    #include <MIDI.h>
    
    MIDI_CREATE_DEFAULT_INSTANCE();
    
    // --
    
    void setup() {
        Serial.begin(115200);
        MIDI.begin();
        Serial.println("Arduino ready.");
    }
    
    void loop() {
        usbMIDI.sendNoteOn(48, 127, 1);
        delay(1000);
        usbMIDI.sendNoteOff(48, 0, 1);
        delay(1000);
    }

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,658
    Maybe something between the Teensy and whatever is creating the sound is set to scale by 1 octave?

  3. #3
    Junior Member
    Join Date
    Jul 2018
    Posts
    13
    Quote Originally Posted by PaulStoffregen View Post
    Maybe something between the Teensy and whatever is creating the sound is set to scale by 1 octave?
    Hello Paul, thank you so much for your fast reply... this is totally raw messages with nothing in between... I am using a MIDI monitor, already tried in Ableton Live and is the same.. in MAXMSP I can see that I have the message 48..

    Click image for larger version. 

Name:	Screen Shot 2018-10-16 at 17.47.53.jpg 
Views:	10 
Size:	146.3 KB 
ID:	14953
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screen Shot 2018-10-16 at 17.45.27.jpg 
Views:	6 
Size:	124.6 KB 
ID:	14952  

  4. #4
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,009
    If you're midi monitor says 48=C2 that's nothing to do with teensy.

  5. #5
    Junior Member
    Join Date
    Jul 2018
    Posts
    13
    Quote Originally Posted by oddson View Post
    If you're midi monitor says 48=C2 that's nothing to do with teensy.
    I understand that... but everywhere I go I see that 48 should be C3 and so on..

    Click image for larger version. 

Name:	notes.GIF 
Views:	13 
Size:	15.7 KB 
ID:	14954

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    967
    I used your code on a T3.2 and monitored its output with MIDI-OX. It shows the note as C3 (one octave below Middle C). There seems to be some confusion about whether Middle C is C4 or C3.
    For example, my SY77 and M-Audio 61-es both label Middle C on the keyboard as C3 but when I play the note, MIDI-OX prints it as C4 (MIDI note 60).
    Note 48 is the C below Middle C and the "standard" is that this is C3. If the software you are using follows the same labelling convention as my keyboards, they will refer to it as C2.

    Pete

  7. #7
    Junior Member
    Join Date
    Jul 2018
    Posts
    13
    Quote Originally Posted by el_supremo View Post
    I used your code on a T3.2 and monitored its output with MIDI-OX. It shows the note as C3 (one octave below Middle C). There seems to be some confusion about whether Middle C is C4 or C3.
    For example, my SY77 and M-Audio 61-es both label Middle C on the keyboard as C3 but when I play the note, MIDI-OX prints it as C4 (MIDI note 60).
    Note 48 is the C below Middle C and the "standard" is that this is C3. If the software you are using follows the same labelling convention as my keyboards, they will refer to it as C2.

    Pete
    Pete, thanks for the explanation, and I should have researched more about this.. I will have to decide now if my 48 is going to be C3 or C2

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,658
    I'm curious, do any of these programs actually play a sound with a fundamental frequency other than 130.8 Hz when they get MIDI note 48?

  9. #9
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,059
    They should not. Different note naming conventions are halfway ok (we are used to that here in Europe where almost every country has its own naming scheme), but the note number to frequency conversion must remain the same. Note 48 must always be 130.8Hz if no transposition is involved.

  10. #10
    Member
    Join Date
    Nov 2012
    Location
    Charlestown, Massachusetts, USA
    Posts
    26
    Click image for larger version. 

Name:	midi_note_reference.png 
Views:	5 
Size:	20.6 KB 
ID:	14962
    Click image for larger version. 

Name:	FWXNBXGH4AFZWE7.LARGE.jpg 
Views:	5 
Size:	54.0 KB 
ID:	14964
    Click image for larger version. 

Name:	midinotes.png 
Views:	4 
Size:	22.4 KB 
ID:	14963

  11. #11
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,059
    Designators are noise and fume...

  12. #12
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,009
    https://en.m.wikipedia.org/wiki/Scie...pitch_notation

    Note comments under 'Similar Systems...'

  13. #13
    Senior Member
    Join Date
    Apr 2017
    Posts
    115
    Let's just say that there is no "right" or "wrong" when it comes to what you signify as middle C, it will vary from manufacturer to manufacturer and country to country. Despite this, the MIDI notation never changes in that middle C is always note 60 whether you call it C3 or C4 is up to you and MIDI Monitor gives you the option to call it either of those, but it does not change the MIDI value from being 60 as middle C.
    Click image for larger version. 

Name:	Screen Shot 2018-10-16 at 10.39.58 PM.png 
Views:	3 
Size:	64.4 KB 
ID:	14967

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •