|
1 | 1 | # tonal
|
2 | 2 |
|
| 3 | +## 6.2.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +#### `default` export is deprecated for @tonaljs modules |
| 8 | + |
| 9 | +Using default exports for single packages are deprecated, so instead of: |
| 10 | + |
| 11 | +```js |
| 12 | +import Note from "@tonaljs/note"; |
| 13 | +``` |
| 14 | + |
| 15 | +You should do this: |
| 16 | + |
| 17 | +```js |
| 18 | +import * as Note from "@tonaljs/note"; |
| 19 | +``` |
| 20 | + |
| 21 | +The same for all modules. |
| 22 | + |
| 23 | +### Patch Changes |
| 24 | + |
| 25 | +#### Fix: add `Note.distance` back |
| 26 | + |
| 27 | +The documentation said `Note.distance` was available, but was not. |
| 28 | + |
| 29 | +Now you can do: |
| 30 | + |
| 31 | +```js |
| 32 | +import { Note } from "tonal"; |
| 33 | +Note.distance("c4", "e7"); // => "24M" |
| 34 | +``` |
| 35 | + |
| 36 | +#### Fix a bug finding distance between notes when they are in adjacent octaves (see #428) |
| 37 | + |
| 38 | +## 6.1.0 |
| 39 | + |
| 40 | +New `rhythm-pattern` package: |
| 41 | + |
| 42 | +```ts |
| 43 | +import { RhythmPattern } from "tonal"; |
| 44 | + |
| 45 | +RhythmPattern.euclid(8, 3); // => [1, 0, 0, 1, 0, 0, 1, 0] |
| 46 | +RhythmPattern.binary(12, 13); // => [1, 1, 0, 0, 1, 1, 0, 1] |
| 47 | +RhythmPattern.hex("8f"); // => [1, 0, 0, 0, 1, 1, 1, 1] |
| 48 | +RhythmPattern.onsets(1, 2, 2, 1); // => [1, 0, 1, 0, 0, 1, 0, 0, 1, 0] |
| 49 | +RhythmPattern.random(4); // => [1, 0, 0, 1] |
| 50 | +RhythmPattern.probability([0.6, 0, 0.2, 0.5]); // => [0, 0, 0, 1] |
| 51 | +RhythmPattern.rotate([1, 0, 0, 1], 2); // => [0, 1, 1, 0] |
| 52 | +``` |
| 53 | + |
| 54 | +## 6.0.1 |
| 55 | + |
| 56 | +Scale.get ignores case. |
| 57 | + |
| 58 | +Now both calls returns the same scale: |
| 59 | + |
| 60 | +```js |
| 61 | +Scale.get("C Major"); |
| 62 | +Scale.get("c major"); |
| 63 | +``` |
| 64 | + |
3 | 65 | ## 6.0.0
|
4 | 66 |
|
5 | 67 | ### Major Changes
|
|
0 commit comments