access: Accessors

accessR Documentation

Accessors

Description

These functions allow access to certain object properties.

Usage

x_unit(x)

y_unit(x)

lower(x)

upper(x)

low_eq(x)

high_eq(x)

label(x)

x_lab(x)

y_lab(x)

freq(x)

freq(x) <- value

pitch(x)

pitch(x) <- value

pc(x)

pc(x) <- value

amp(x)

amp(x) <- value

transposition(x)

sample_rate(x)

Arguments

x

Object to access.

value

New property value.

Details

  • x_unit: the units of the x axis

  • y_unit: the units of the y axis

  • lower: the lower bound of a spectrum

  • upper: the upper bound of a spectrum

  • low_eq: whether the lower bound is an equality bound (i.e. x >= y)

  • high_eq: whether the upper bound is an equality bound (i.e. x <= y)

  • label: object's label

  • x_lab: label for the x axis

  • y_lab: label for the y axis

  • freq: numeric vector of frequencies

  • pitch: numeric vector of pitches

  • amp: numeric vector of amplitudes

  • transposition: object's transposition

  • sample_rate: object's sample rate


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.