@types/modularscale
Version:
TypeScript definitions for modularscale
44 lines (36 loc) • 1.21 kB
Markdown
# Installation
> `npm install --save @types/modularscale`
# Summary
This package contains type definitions for modularscale (https://github.com/KyleAMathews/modularscale).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/modularscale.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/modularscale/index.d.ts)
````ts
export = modularscale;
declare function modularscale(value: number, ratio?: number | modularscale.RatioLiteral): number;
declare namespace modularscale {
type RatioLiteral =
| "minor second"
| "major second"
| "minor third"
| "major third"
| "augmented fourth"
| "perfect fifth"
| "minor sixth"
| "golden"
| "phi"
| "major sixth"
| "minor seventh"
| "major seventh"
| "octave"
| "major tenth"
| "major eleventh"
| "major twelfth"
| "double octave";
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
# Credits
These definitions were written by [Cyril CHAPON](https://github.com/cyrilchapon).