Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume Latin-1 encoding for meta events #11

Open
xTibor opened this issue Sep 30, 2018 · 0 comments
Open

Don't assume Latin-1 encoding for meta events #11

xTibor opened this issue Sep 30, 2018 · 0 comments

Comments

@xTibor
Copy link

xTibor commented Sep 30, 2018

As per the standard. It only specifies the text encoding of the meta events should be compatible with 7-bit ASCII and leaves the the rest of the character space open for anything:

The text in this event should be printable ASCII characters for maximum interchange. However, other character codes using the high-order bit may be used for interchange of files between different programs on the same computer which supports an extended character set. Programs on a computer which does not support non-ASCII characters should ignore those characters.

This means any ASCII-compatible encoding could be used, not just Latin-1. For example here's a dump of a Japanese Shift-JIS encoded MIDI file I found on my disk, garbled by rimd: https://gist.github.com/xTibor/e32594e372c81d416f699a126cc066ce

It would be great if this was configurable in rimd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant