Read Kern files in Matlab
%Reads a kern file into a note matrix
%FileName is the path to the kern file
%nmat is a note matrix with the following information
%ONSET DURATION MIDI-CHANEL MIDI-PITCH VELOCITY ONSET DURATION
%(BEATS) (BEATS) (NUMBER) (MIDI NOTE NUMBER) (VELOCITY) (SEC) (SEC)
%Information about kern files is given in the following link
%Humdrum Representation for Basic Notated Music
%http://www.music-cog.ohio-state.edu/Humdrum/representations/kern.rep.html
%Information about note matrix can be found in the following link
%Eerola, T. & Toiviainen, P. (2004). MIDI Toolbox: MATLAB Tools for Music Research. University of Jyväskylä: Kopijyvä, Jyväskylä, Finland.
%Available at http://www.jyu.fi/hum/laitokset/musiikki/en/research/coe/materials/miditoolbox/
%krn2nmat file is a function implemented by Gissel Velarde
Cite As
Gissel Velarde (2025). Read Kern files in Matlab (https://se.mathworks.com/matlabcentral/fileexchange/59326-read-kern-files-in-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
Editing function name
|
