Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getMidiNotes

Extract note events from objects returned by readMidi


Description

Extract only note events from an object returned by the readMidi function.

Usage

getMidiNotes(x, ...)

Arguments

x

A data.frame returned by the readMidi function.

...

Further arguments are passed to the notenames function for extracting the human readable note names rather than their integer representations.

Value

A data frame with columns

time

start time

length

length

track

track number

channel

channel number

note

note

notename

notename

velocity

note velocity

Author(s)

Uwe Ligges and Johanna Mielke

See Also

Examples

content <- readMidi(system.file("example_files", "Bass_sample.mid", package="tuneR"))
getMidiNotes(content)

tuneR

Analysis of Music and Speech

v1.3.3
GPL-2 | GPL-3
Authors
Uwe Ligges <ligges@statistik.tu-dortmund.de> with contributions from Sebastian Krey, Olaf Mersmann, Sarah Schnackenberg, Guillaume Guenard, Andrea Preusser, Anita Thieler, Johanna Mielke and Claus Weihs, as well as code fragments and ideas from the former package 'sound' by Matthias Heymann and functions from 'rastamat' by Daniel P. W. Ellis. The included parts of the libmad MPEG audio decoder library are authored by Underbit Technologies.
Initial release
2018-07-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.