sweep_harmonic_template: Sweep harmonic template

Description Usage Arguments Value

View source: R/sweep-harmonic-template.R

Description

Sweeps a harmonic template over an input spectrum.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
sweep_harmonic_template(
  x,
  num_harmonics = 12,
  rho = 0.75,
  sigma = 6.83,
  array_dim = 1200,
  ...
)

## S3 method for class 'pc_set'
sweep_harmonic_template(
  x,
  num_harmonics = 12,
  rho = 0.75,
  sigma = 6.83,
  array_dim = 1200,
  ...
)

## S3 method for class 'milne_pc_spectrum'
sweep_harmonic_template(x, num_harmonics = 12, rho = 0.75, sigma = 6.83, ...)

Arguments

x

Object to analyse.

num_harmonics

See pc_harmonicity.

rho

See pc_harmonicity.

sigma

See pc_harmonicity.

array_dim

See pc_harmonicity.

...

Arguments passed to specific methods.

Value

An object of class milne_pc_spectrum, identifying each pitch class with a perceptual weight corresponding to its harmonic template fit.


pmcharrison/har18 documentation built on April 1, 2021, 9:22 p.m.