piano_plot: Piano plot

View source: R/piano_plot.R

piano_plotR Documentation

Piano plot

Description

Piano plot showing the notes in Scientific Pitch Notation.

Usage

piano_plot(data, num_fmt = 0)

Arguments

data

Data frame or tibble containing the desired frequencies to be plotted.

num_fmt

Number of the desired formant (includes f0 for simplicity). Default: num_fmt = 0.

References

https://en.wikipedia.org/wiki/12_equal_temperament

https://en.wikipedia.org/wiki/Scientific_pitch_notation

Examples

library(voice)
# get path to audio file
path2wav <- list.files(system.file('extdata', package = 'wrassp'),
pattern = glob2rx('*.wav'), full.names = TRUE)
# Media dataset
M <- extract_features(path2wav)
piano_plot(M, 0)
piano_plot(M, 0:2)

filipezabala/voice documentation built on April 12, 2025, 12:39 p.m.