Skip to content
Musical Gestures Toolbox for Matlab
Branch: master
Clone or download
Pull request Compare This branch is 69 commits ahead of benlyyan:master.
Latest commit 5bda2d8 Mar 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc fixing typo Mar 30, 2019
source-code fixing typo Mar 30, 2019

Musical Gestures Toolbox for Matlab

The Musical Gestures Toolbox (MGT) is a Matlab toolbox for analysing music-related body motion, using sets of audio, video and motion capture data as source material.


  1. Many of the basic things work with a standard Matlab install, but to use all features you will also need these extra Matlab packages:

    • Computer Vision System Toolbox
    • Image Processing Toolbox
  2. Some of the functions build on code from these third-party toolboxes:

  3. Add the files in the folder "source-code" to your Matlab path: under the "Home" section, click "set path". Click the "Add Folder" button and choose the "source-code" folder and finally click "save".

  4. Try out the m-files in the examples folder. There are some test files (audio, video, mocap) in the "example_data" folder.


The Musical Gestures Toolbox contains a set of functions for the analysis and visualization of video, audio, and mocap data. There are four categories of functions:

  • Data input and edit functions
  • Data preprocessing functions
  • Visualization functions
  • Middle and higher level feature extraction functions


There is a more or less complete introduction to the main features in the software carpentry workshop Quantitative Video analysis for Qualitative Research.


Please use a reference to this publication, if you want to cite the toolbox:

  • Jensenius, Alexander Refsum (2018). The Musical Gestures Toolbox for Matlab. Proceedings of the 19th International Society for Music Information Retrieval Conference, Late Breaking Demos Session.


The toolbox builds on the Musical Gestures Toolbox for Max, which has been developed by alexarje since 2004, and parts of it is currently embedded in the Jamoma project.

The first version of the Musical Gestures Toolbox for Matlab was made by benlyyan as part of his M.Sc. thesis at the University of Oslo (Video analysis of music-related body motion in Matlab), and is currently maintained by the fourMs group.

You can’t perform that action at this time.