Simple monitor for displaying MIDI status for digital pianos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
245 B

  1. import messages from './messages.json'
  2. type MsgId = keyof typeof messages
  3. interface GetMessage {
  4. (msgId: string): string,
  5. }
  6. export const _: GetMessage = (msgId) => {
  7. const { [msgId as MsgId]: msgStr = msgId } = messages
  8. return msgStr
  9. }