compmus_gather_chroma: Gather chroma/timbre vectors

View source: R/unwrapping.R

compmus_gather_chromaR Documentation

Gather chroma/timbre vectors

Description

These functions gather chroma or timbre vectors into long format for Computational Musicology, as generated by get_tidy_audio_analysis.

Usage

compmus_gather_chroma(dat)

compmus_gather_timbre(dat)

Arguments

dat

Data frame with a pitches or timbre column.

Functions

  • compmus_gather_timbre: Gather chroma/timbre vectors

Examples

library(tidyverse)
get_tidy_audio_analysis("6IQILcYkN2S2eSu5IHoPEH") %>%
  select(segments) %>%
  unnest(segments) %>%
  compmus_gather_chroma()

get_tidy_audio_analysis("5ZLkc5RY1NM4FtGWEd6HOE") %>%
  select(segments) %>%
  unnest(segments) %>%
  compmus_gather_timbre()

jaburgoyne/compmus documentation built on Feb. 26, 2023, 3:44 a.m.