Skip to content

Commit 6e373a8

Browse files
authored
Fix speling (#453)
Co-authored-by: Patrick Aleite <[email protected]>
1 parent aa083dd commit 6e373a8

File tree

22 files changed

+36
-36
lines changed

22 files changed

+36
-36
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstractions (not actual music or sound).
99
`tonal` is implemented in Typescript and published as a collection of Javascript
1010
npm packages.
1111

12-
It uses a functional programing style: all functions are pure, there is no data
12+
It uses a functional programming style: all functions are pure, there is no data
1313
mutation, and entities are represented by data structures instead of objects.
1414

1515
## Example

docs/migration-guide.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ TODO: diagram of tonal modules
9494

9595
Lot of changes, but as a positive side effect, the library API surface is smaller so code and documentation are easier to write and maintain.
9696

97-
Now functions falls in two catergories:
97+
Now functions falls in two categories:
9898

9999
- **Parsers**: takes a name of something (string) and return an object with properties. Examples of that functions are: note, interval, pcset, scaleType, chordType, scale, chord, mode. All of the returning objects has the properties `empty` (boolean) and name (string, "" indicating _no value_)
100100
- **Operations**: takes one or more names and return a new name. It always work with strings (no objects). Invalid results are represented with empty strings "". Examples: transpose, distance, subtract
101101

102-
### Utilility functions removed or made private
102+
### Utility functions removed or made private
103103

104104
First of all, lot of functions are gone, like `oct`, `accToAlt`, and other utility functions (some still exists, but are considered private)
105105

@@ -118,7 +118,7 @@ This optional partial application made code unnecessarily complex and, with Type
118118

119119
For this reason **optional** partial application are not possible in v3. Most of the functions needs all parameters to execute.
120120

121-
However, there are some execptions to make the API easier to use. In that cases, partial application is obligatory:
121+
However, there are some exceptions to make the API easier to use. In that cases, partial application is obligatory:
122122

123123
```js
124124
// valid in v2 and v3

packages/array/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function range(from: number, to: number): number[] {
3232
}
3333

3434
/**
35-
* Rotates a list a number of times. It"s completly agnostic about the
35+
* Rotates a list a number of times. It's completely agnostic about the
3636
* contents of the list.
3737
*
3838
* @param {Integer} times - the number of rotations

packages/collection/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function range(from: number, to: number): number[] {
3030
}
3131

3232
/**
33-
* Rotates a list a number of times. It"s completly agnostic about the
33+
* Rotates a list a number of times. It's completely agnostic about the
3434
* contents of the list.
3535
*
3636
* @param {Integer} times - the number of rotations

packages/core/test/tonal.transpose.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("Transpose", () => {
1717
expect(fromBb2("P1 M3 P5 M7")).toEqual(["Bb2", "D3", "F3", "A3"]);
1818
});
1919

20-
test("tranpose note by descending intervas", () => {
20+
test("transpose note by descending intervals", () => {
2121
const fromBb = transposeAllFrom("Bb");
2222
expect(fromBb("P-1 M-3 P-5 M-7")).toEqual(["Bb", "Gb", "Eb", "Cb"]);
2323
});

packages/interval/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Interval.add("3m", "5P"); // => "7m"
103103

104104
#### `subtract(min: string, sub: string) => string`
105105

106-
Substract two intervals:
106+
Subtract two intervals:
107107

108108
```js
109109
subtract("5P", "3M"); // => '3m'

packages/key/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export function minorKey(tnc: string): MinorKey {
307307

308308
/**
309309
* Given a key signature, returns the tonic of the major key
310-
* @param sigature
310+
* @param signature
311311
* @example
312312
* majorTonicFromKeySignature('###') // => 'A'
313313
*/

packages/midi/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function toMidi(note: NoteName | number): number | null {
3030
}
3131

3232
/**
33-
* Get the frequency in hertzs from midi number
33+
* Get the frequency in hertz from midi number
3434
*
3535
* @param {number} midi - the note midi number
3636
* @param {number} [tuning = 440] - A4 tuning frequency in Hz (440 by default)

packages/mode/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type ModeDatum = (typeof MODES)[number];
2020
export interface Mode extends Pcset {
2121
readonly name: string;
2222
readonly modeNum: number;
23-
readonly alt: number; // number of alterations === number of fiths
23+
readonly alt: number; // number of alterations === number of fifths
2424
readonly triad: string;
2525
readonly seventh: string;
2626
readonly aliases: string[];

packages/note/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Note.transpose("d3", "3M"); // => "F#3"
108108
Note.transpose("D", "3M"); // => "F#"
109109
```
110110

111-
`transposeBy` and `transposeFrom` are currified versions of this function to make easy work with arrays:
111+
`transposeBy` and `transposeFrom` are curried versions of this function to make easy work with arrays:
112112

113113
```js
114114
["C", "D", "E"].map(Note.transposeBy("5P"));
@@ -209,14 +209,14 @@ Note.enharmonic("C#"); // => "Db"
209209
Note.enharmonic("C##"); // => "D"
210210
Note.enharmonic("C###"); // => "Eb"
211211

212-
Note.eharmoinic("C##b"); // => ""
212+
Note.enharmonic("C##b"); // => ""
213213
```
214214

215-
Using eharmonic on a natural will return the same value passed in:
215+
Using enharmonic on a natural will return the same value passed in:
216216

217217
```js
218-
Note.eharmonic("C"); // => "C"
219-
Note.eharmonic("C4"); // => "C4"
218+
Note.enharmonic("C"); // => "C"
219+
Note.enharmonic("C4"); // => "C4"
220220
```
221221

222222
The destination pitch class can be enforced to calculate the octave:

packages/note/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const trFrom = transposeFrom;
162162
*
163163
* @function
164164
* @param {string} note - the note name
165-
* @param {number} fifhts - the number of fifths
165+
* @param {number} fifths - the number of fifths
166166
* @return {string} the transposed note name
167167
*
168168
* @example
@@ -236,7 +236,7 @@ export const simplify = (noteName: NoteName | Pitch): string => {
236236
* Note.enharmonic("Db") // => "C#"
237237
* Note.enharmonic("C") // => "C"
238238
* Note.enharmonic("F2","E#") // => "E#2"
239-
* Note.eharmoinic("C##b"); // => ""
239+
* Note.enharmonic("C##b"); // => ""
240240
*/
241241
export function enharmonic(noteName: string, destName?: string) {
242242
const src = get(noteName);

packages/pcset/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Pcset.notes("101011010110"); // => ["C", "D", "E", "F", "G", "A", "Bb"]
7979

8080
### `isIncludedIn(parent: Set) => (note: string) => boolean`
8181

82-
Test if a note is included in the given set. This function is currified:
82+
Test if a note is included in the given set. This function is curried:
8383

8484
```js
8585
const isInCTriad = isNoteIncludedIn(["C", "E", "G"]);
@@ -95,11 +95,11 @@ isInCTriad("Fb"); // => true
9595

9696
#### `isSubsetOf(parent: Set) => (subset: Set) => boolean`
9797

98-
Test if a set is a subset of another. This function is currified
98+
Test if a set is a subset of another. This function is curried
9999

100100
#### `isSupersetOf(subset: Set) => (parent: Set) => boolean`
101101

102-
Test if a set is a superset of another. This function is currified
102+
Test if a set is a superset of another. This function is curried
103103

104104
## Want more?
105105

packages/pcset/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Note, NoteName, note } from "@tonaljs/pitch-note";
77
/**
88
* The properties of a pitch class set
99
* @param {number} num - a number between 1 and 4095 (both included) that
10-
* uniquely identifies the set. It's the decimal number of the chrom.
10+
* uniquely identifies the set. It's the decimal number of the chroma.
1111
* @param {string} chroma - a string representation of the set: a 12-char string
1212
* with either "1" or "0" as characters, representing a pitch class or not
1313
* for the given position in the octave. For example, a "1" at index 0 means 'C',
@@ -209,7 +209,7 @@ export function isEqual(s1: Set, s2: Set) {
209209
* Create a function that test if a collection of notes is a
210210
* subset of a given set
211211
*
212-
* The function is curryfied.
212+
* The function is curried.
213213
*
214214
* @param {PcsetChroma|NoteName[]} set - the superset to test against (chroma or
215215
* list of notes)

packages/range/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Create a range of chromatic notes. The same as `numeric` but the result will be
4444
The optional `options` object defines how note names are built:
4545

4646
- sharps: if `true` sharps will be used in altered notes. Default is `false`
47-
- pitchClass: if `true` octaves are omited. Default is `false`
47+
- pitchClass: if `true` octaves are omitted. Default is `false`
4848

4949
```js
5050
Range.chromatic(["C2", "E2", "D2"]);

packages/roman-numeral/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Functions to parse roman numeral strings (like the ones used for chord analysis)
44
5-
A roman numeral symbol is a string like `"bVIImaj7"` that can be used to represent chords in an abstract tonallity.
5+
A roman numeral symbol is a string like `"bVIImaj7"` that can be used to represent chords in an abstract tonality.
66

77
## Usage
88

packages/scale/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ const NoScale: Scale = {
4949
* Given a string with a scale name and (optionally) a tonic, split
5050
* that components.
5151
*
52-
* It retuns an array with the form [ name, tonic ] where tonic can be a
52+
* It returns an array with the form [ name, tonic ] where tonic can be a
5353
* note name or null and name can be any arbitrary string
54-
* (this function doesn"t check if that scale name exists)
54+
* (this function doesn't check if that scale name exists)
5555
*
5656
* @function
5757
* @param {string} name - the scale name
5858
* @return {Array} an array [tonic, name]
5959
* @example
60-
* tokenize("C mixolydean") // => ["C", "mixolydean"]
60+
* tokenize("C mixolydian") // => ["C", "mixolydian"]
6161
* tokenize("anything is valid") // => ["", "anything is valid"]
6262
* tokenize() // => ["", ""]
6363
*/

packages/tonal/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstractions (not actual music or sound).
1212
`tonal` is implemented in Typescript and published as a collection of Javascript
1313
npm packages.
1414

15-
It uses a functional programing style: all functions are pure, there is no data
15+
It uses a functional programming style: all functions are pure, there is no data
1616
mutation, and entities are represented by data structures instead of objects.
1717

1818
## Example

site/content/docs/basics/intervals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Interval.add("3m", "5P"); // => "7m"
123123

124124
`subtract(min: string, sub: string) => string`
125125

126-
Substract two intervals:
126+
Subtract two intervals:
127127

128128
```js
129129
subtract("5P", "3M"); // => '3m'

site/content/docs/basics/notes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Note.transpose("d3", "3M"); // => "F#3"
108108
Note.transpose("D", "3M"); // => "F#"
109109
```
110110

111-
`transposeBy` and `transposeFrom` are currified versions of this function to make easy work with arrays:
111+
`transposeBy` and `transposeFrom` are curried versions of this function to make easy work with arrays:
112112

113113
```js
114114
["C", "D", "E"].map(Note.transposeBy("5P"));

site/content/docs/groups/pitch-class-sets.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Pcset.notes("101011010110"); // => ["C", "D", "E", "F", "G", "A", "Bb"]
8383

8484
`isIncludedIn(parent: Set) => (note: string) => boolean`
8585

86-
Test if a note is included in the given set. This function is currified:
86+
Test if a note is included in the given set. This function is curried:
8787

8888
```js
8989
const isInCTriad = isIncludedIn(["C", "E", "G"]);
@@ -101,10 +101,10 @@ isInCTriad("Fb"); // => true
101101

102102
`isSubsetOf(parent: Set) => (subset: Set) => boolean`
103103

104-
Test if a set is a subset of another. This function is currified
104+
Test if a set is a subset of another. This function is curried
105105

106106
### `Pcset.isSupersetOf`
107107

108108
`isSupersetOf(subset: Set) => (parent: Set) => boolean`
109109

110-
Test if a set is a superset of another. This function is currified
110+
Test if a set is a superset of another. This function is curried

site/content/docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ abstractions (not actual music or sound).
1111
`tonal` is implemented in Typescript and published as a collection of Javascript
1212
npm packages.
1313

14-
It uses a functional programing style: all functions are pure, there is no data
14+
It uses a functional programming style: all functions are pure, there is no data
1515
mutation, and entities are represented by data structures instead of objects.
1616

1717
## Example

site/content/docs/utils/ranges.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Create a range of chromatic notes. The same as `numeric` but the result will be
2929
The optional `options` object defines how note names are built:
3030

3131
- sharps: if `true` sharps will be used in altered notes. Default is `false`
32-
- pitchClass: if `true` octaves are omited. Default is `false`
32+
- pitchClass: if `true` octaves are omitted. Default is `false`
3333

3434
```js
3535
Range.chromatic(["C2", "E2", "D2"]);

0 commit comments

Comments
 (0)