Read Kern files in Matlab

This function reads a kern file to a note matrix
50 Downloads
Updated 18 Oct 2017

View License

%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
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Musical Instrument Digital Interface (MIDI) in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Editing function name
Editions on the description