Skip to content

Instantly share code, notes, and snippets.

@skratchdot
Last active June 21, 2021 10:52
Show Gist options
  • Save skratchdot/252e6d1a804ac1b221298e02784b3617 to your computer and use it in GitHub Desktop.
Save skratchdot/252e6d1a804ac1b221298e02784b3617 to your computer and use it in GitHub Desktop.
generate non-commercial midi id number

The Complete MIDI 1.0 Detailed Specification states:

Special ID 7D is reserved for non-commercial use (e.g. schools, research, etc.)
and is not to be used on any product released to the public.

Here's a little bash one-liner to generate a somewhat unique 4-byte midi id:

echo "username/project" | shasum | cut -c1-6 | (echo -n "7d" && cat)

midi-id-numbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment