tabr: Music Notation Syntax, Manipulation, Analysis and Transcription in R

Provides a music notation syntax and a collection of music programming functions for generating, manipulating, organizing, and analyzing musical information in R. Music syntax can be entered directly in character strings, for example to quickly transcribe short pieces of music. The package contains functions for directly performing various mathematical, logical and organizational operations and musical transformations on special object classes that facilitate working with music data and notation. The same music data can be organized in tidy data frames for a familiar and powerful approach to the analysis of large amounts of structured music data. Functions are available for mapping seamlessly between these formats and their representations of musical information. The package also provides an API to 'LilyPond' (<>) for transcribing musical representations in R into tablature ("tabs") and sheet music. 'LilyPond' is open source music engraving software for generating high quality sheet music based on markup syntax. The package generates 'LilyPond' files from R code and can pass them to the 'LilyPond' command line interface to be rendered into sheet music PDF files or inserted into R markdown documents. The package offers nominal MIDI file output support in conjunction with rendering sheet music. The package can read MIDI files and attempts to structure the MIDI data to integrate as best as possible with the data structures and functionality found throughout the package.

Version: 0.5.0
Depends: R (≥ 2.10)
Imports: crayon, dplyr, ggplot2, purrr, tibble, tidyr
Suggests: fansi, gridExtra, htmltools, kableExtra, knitr, png, rmarkdown, testthat, tuneR
Published: 2024-06-29
DOI: 10.32614/CRAN.package.tabr
Author: Matthew Leonawicz ORCID iD [aut, cre]
Maintainer: Matthew Leonawicz <mfleonawicz at>
License: MIT + file LICENSE
NeedsCompilation: no
SystemRequirements: LilyPond v2.22.1-2+ (needed for rendering sheet music or writing MIDI files)
Materials: README NEWS
CRAN checks: tabr results


Reference manual: tabr.pdf
Vignettes: Chord functions
The music class
Note information
Note functions
Musical scales


Package source: tabr_0.5.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): tabr_0.5.0.tgz, r-oldrel (arm64): tabr_0.5.0.tgz, r-release (x86_64): tabr_0.5.0.tgz, r-oldrel (x86_64): tabr_0.5.0.tgz
Old sources: tabr archive


Please use the canonical form to link to this page.