assign_notes | R Documentation |
Assign musical notes in Scientific Pitch Notation or other variant. See voice::notes()
. The notes are cut considering f0 to ensure alignment.
assign_notes(
x,
fmt = 0,
min_points = 4,
min_percentile = 0.75,
max_na_prop = 1
)
fmt |
Either F0 or formant frequency (in Hz). Default: |
min_points |
Minimum number of points for audio section. Default: |
min_percentile |
Minimum percentile value of gain to be included on the average of |
max_na_prop |
Maximum proportion os NAs on gain sector. Default: |
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)
assign_notes(M, fmt = 0) # f0
assign_notes(M, fmt = 1) # f1
assign_notes(M, fmt = 2) # f2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.