0.0.10 • Published 2 years ago

musical-ratios v0.0.10

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

w# musical-ratios

A collection of musical ratios for use in music applications or building modular scale responsive systems.

API

export enum MusicalRatios {
  Unison = 1.00,
  MinorSecond = 1.067,
  MajorSecond = 1.125,
  MinorThird = 1.200,
  MajorThird = 1.250,
  PerfectFourth = 1.333,
  DiminishedFifth = 1.400,
  AugmentedFourth = 1.414,
  PerfectFifth = 1.500,
  MinorSixth = 1.600,
  GoldenRatio = 1.618,
  MajorSixth = 1.667,
  MinorSeventh = 1.750,
  MajorSeventh = 1.875,
  Octave = 2.000
}
export function ratioToPower(ratio: MusicalRatios | number, power: number) {
  return Math.pow(ratio, power);
}
0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago