Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
danigb committed Mar 15, 2020
1 parent 35b5fcf commit 6eb8127
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ The API documentation lives inside README.md file of each module
- [@tonaljs/progression](/packages/progression): Chord progressions
- [@tonaljs/roman-numeral](/packages/roman-numeral): Parse roman numeral symbols

#### Time, rhythm

- [@tonaljs/duration-value](/packages/duration-value): Note duration values

#### Utilities

- [@tonaljs/core](/packages/core): Core functions (note, interval, transpose and distance)
Expand Down
2 changes: 1 addition & 1 deletion packages/duration-value/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tonaljs/duration-value ![tonal](https://img.shields.io/badge/@tonaljs-duration_value-yellow.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@tonaljs/duration-value.svg?style=flat-square)](https://www.npmjs.com/package/@tonaljs/duration-value)

> Functions to create and manipulate duration values
> Functions to create note duration values
## Usage

Expand Down
6 changes: 4 additions & 2 deletions packages/duration-value/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export function get(name: string): DurationValue {
export const value = (name: string) => get(name).value;
export const fraction = (name: string) => get(name).fraction;

export default { names, shorthands, get, value, fraction };

//// PRIVATE ////

function add(denominator: number, shorthand: string, names: string[]) {
VALUES.push({
empty: false,
Expand All @@ -71,8 +75,6 @@ function add(denominator: number, shorthand: string, names: string[]) {
});
}

export default { names, shorthands, get, value, fraction };

function calcDots(fraction: Fraction, dots: number): Fraction {
const pow = Math.pow(2, dots);

Expand Down

0 comments on commit 6eb8127

Please sign in to comment.