Changing the "Teensyduino" Manufacturer ID on a MIDI device

Arman

Member
How can I change the "Teensyduino" manufacturer identifier on a Teensy 4.0 MIDI device? I can change the "name" parameter using the given example but the Teensyduino still shows up in front of the "name;" (on MacOS at least).
 
I think I solved this by adding the following to the example code. It seems to work.


Code:
#include "usb_names.h"

// Edit these lines to create your own name.  The length must
// match the number of characters in your custom name.

#define MIDI_NAME   {'G','R','E','A','T',' ','C','O','N','J','U','N','C','T','I','O','N'}
#define MIDI_NAME_LEN  17

#define VENDOR_NAME   {'D','I','S','T','R','O','P','O','L','I','S'}
#define VENDOR_NAME_LEN  11

// Do not change this part.  This exact format is required by USB.

struct usb_string_descriptor_struct usb_string_product_name = {
        2 + MIDI_NAME_LEN * 2,
        3,
        MIDI_NAME
};

struct usb_string_descriptor_struct usb_string_manufacturer_name = {
        2 + VENDOR_NAME_LEN * 2,
        3,
        VENDOR_NAME
};
 
In MacOs you have to delete the Teensyduino from the MIDI configuration first. Then you connect the Teensy and the new name will pop up.
 
Back
Top