Skip to content

Commit f68e583

Browse files
committed
Add piano as a new instrument
This commit introduces a comprehensive database for piano chords, making it the third supported instrument in the library alongside guitar and ukulele. Key changes include: - **New Instrument Data:** - Added a complete set of piano chords under `src/db/piano/chords/`. - Created the necessary configuration files (`main.js`, `keys.js`, `suffixes.js`, `tunings.js`) to define the piano's properties and available chords. - **Build Script Refactoring:** - Updated `tools.js` to handle different instrument structures. It now differentiates between processing fret-based chords (guitar) and note-name-based chords (piano). - Modified `generate.js` to correctly aggregate instrument-specific properties (like `keys` for piano) into the final `instruments.json` file. - **Documentation:** - Updated `CHANGELOG.md` to version `0.6.0`, documenting the addition of the new instrument and the related build script enhancements.
1 parent 7091dcf commit f68e583

File tree

560 files changed

+16456
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+16456
-75
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
## 0.6.0 (May 20, 2024)
2+
3+
### Instruments
4+
* Added Piano as a new instrument with all its chords.
5+
* Refactored build scripts to support different instrument types (stringed vs. keyboard).
6+
17
## 0.5.1 (Nov 2, 2019)
28
* Renamed the slash chords
9+
310
## 0.5.0 (Oct 27, 2019)
411
* Added a lot of new guitar chords thanks to @szaza
512
* Fixed some typos
13+
614
## 0.4.3 (Jul 20, 2018)
715
* Renamed "ukelele" to "ukulele"
816
* Updated libraries

lib/guitar.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/instruments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"guitar":{"strings":6,"fretsOnChord":4,"name":"guitar","numberOfChords":3283},"ukulele":{"strings":4,"fretsOnChord":4,"name":"ukulele","numberOfChords":2114}}
1+
{"guitar":{"strings":6,"fretsOnChord":4,"name":"guitar","numberOfChords":3283},"ukulele":{"strings":4,"fretsOnChord":4,"name":"ukulele","numberOfChords":2114},"piano":{"name":"piano","keys":88,"fretsOnChord":null,"numberOfChords":528}}

lib/piano.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/readme.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,48 @@
33
The data currently includes the following chords
44

55
<div class="table-3">
6-
<code>major</code>
7-
<code>m</code>
8-
<code>dim</code>
9-
<code>dim7</code>
10-
<code>sus2</code>
11-
<code>sus4</code>
12-
<code>7sus4</code>
13-
<code>aug</code>
14-
<code>aug7</code>
15-
<code>aug9</code>
16-
<code>5</code>
17-
<code>6</code>
18-
<code>69</code>
19-
<code>7</code>
20-
<code>7b5</code>
21-
<code>7b9</code>
22-
<code>7sharp9</code>
23-
<code>7b5b9</code>
24-
<code>7sharp5b9</code>
25-
<code>7b5sharp9</code>
26-
<code>7sharp5sharp9</code>
27-
<code>9</code>
28-
<code>9b5</code>
29-
<code>9sharp11</code>
30-
<code>11</code>
31-
<code>13</code>
32-
<code>add9</code>
33-
<code>maj7</code>
34-
<code>maj7b5</code>
35-
<code>maj7sharp5</code>
36-
<code>maj9</code>
37-
<code>maj11</code>
38-
<code>maj13</code>
39-
<code>m6</code>
40-
<code>m69</code>
41-
<code>m7</code>
42-
<code>m7b5</code>
43-
<code>m9</code>
44-
<code>m11</code>
45-
<code>mmaj7</code>
46-
<code>mmaj7b5</code>
47-
<code>mmaj9</code>
48-
<code>mmaj11</code>
49-
<code>madd9</code>
50-
</div>
6+
<code>major</code>
7+
<code>m</code>
8+
<code>dim</code>
9+
<code>dim7</code>
10+
<code>sus2</code>
11+
<code>sus4</code>
12+
<code>7sus4</code>
13+
<code>aug</code>
14+
<code>aug7</code>
15+
<code>aug9</code>
16+
<code>5</code>
17+
<code>6</code>
18+
<code>69</code>
19+
<code>7</code>
20+
<code>7b5</code>
21+
<code>7b9</code>
22+
<code>7sharp9</code>
23+
<code>7b5b9</code>
24+
<code>7sharp5b9</code>
25+
<code>7b5sharp9</code>
26+
<code>7sharp5sharp9</code>
27+
<code>9</code>
28+
<code>9b5</code>
29+
<code>9sharp11</code>
30+
<code>11</code>
31+
<code>13</code>
32+
<code>add9</code>
33+
<code>maj7</code>
34+
<code>maj7b5</code>
35+
<code>maj7sharp5</code>
36+
<code>maj9</code>
37+
<code>maj11</code>
38+
<code>maj13</code>
39+
<code>m6</code>
40+
<code>m69</code>
41+
<code>m7</code>
42+
<code>m7b5</code>
43+
<code>m9</code>
44+
<code>m11</code>
45+
<code>mmaj7</code>
46+
<code>mmaj7b5</code>
47+
<code>mmaj9</code>
48+
<code>mmaj11</code>
49+
<code>madd9</code>
50+
</div>

lib/ukulele.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/unified-v2.min.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/unified.min.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)