https://github.com/adrianklessa/ascii2midi
Encodes an ASCII string to a midi audio file and back
https://github.com/adrianklessa/ascii2midi
ascii midi midi-files
Last synced: 8 months ago
JSON representation
Encodes an ASCII string to a midi audio file and back
- Host: GitHub
- URL: https://github.com/adrianklessa/ascii2midi
- Owner: AdrianKlessa
- Created: 2024-05-11T16:31:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-11T16:41:48.000Z (about 2 years ago)
- Last Synced: 2025-06-23T03:45:51.888Z (about 1 year ago)
- Topics: ascii, midi, midi-files
- Language: Jupyter Notebook
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ascii2midi
Encodes an ASCII string to a midi audio file and back
1 byte (1 ASCII character) is 1 note in the MIDI file
First two bits are encoded as the note_on velocity (strength of the piano keypress)
Next two bits are encoded as the note_off velocity (strength with which the key was released)
Last 4 bits are encoded by the piano key that was pressed (selected from 16 keys in a given musical scale)
Includes code to generate list of keys for a major/minor scale based on a given note / tonic (provided as a MIDI note number)