interval_table: Create Interval Table

View source: R/cps_functions.R

interval_tableR Documentation

Create Interval Table

Description

Creates an interval table from a scale table

Usage

interval_table(scale_table)

Arguments

scale_table

a scale table from ps_scale_table, cps_scale_table, or et_scale_table

Value

an interval table. This is a data.table with seven columns

  • from name of "from" note

  • from_degree scale degree of "from" note

  • to name of "to" note

  • to_degree scale degree of "to" note

  • ratio interval as a number

  • ratio_frac interval as a vulgar fraction (character)

  • ratio_cents interval in cents

Examples


# default is the 1-3-5-7-9-11 Eikosany
eikosany <- cps_scale_table(root_divisor = 33)
print(eikosany_interval_table <-interval_table(eikosany))

AlgoCompSynth/eikosany documentation built on Nov. 25, 2024, 5:22 p.m.