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

Thread: Configurable usbMIDI Port Names

  1. #1
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    344

    Configurable usbMIDI Port Names

    For those interested I've added a way to configure the usbMIDI Port Names, these are changed in the same manner as the Manufacturer Name, Device Name, and Serial Number. So to change the names from the default "Port 1" - "Port 16" you add the following struct to the name.c in your project, one for each port number.


    Code:
    #define MIDI_PORT1_NAME {'T', 'e', 'e', 'n' ,'s' ,'y' ,' ' ,'1'}
    #define MIDI_PORT1_NAME_LEN 8
    
    struct usb_string_descriptor_struct usb_string_midi_port1 = {
            2 + MIDI_PORT1_NAME_LEN * 2,
            3,
            MIDI_PORT1_NAME
    };
    Click image for larger version. 

Name:	Teensy Port Names.png 
Views:	40 
Size:	55.7 KB 
ID:	13083
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Feb 2018
    Posts
    4
    Great. Thank you! Funny, I was searching to forum to find the answer prior to posting the question, but missed that thread. I am going to try it out.

Posting Permissions

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