abcjs 6.0.3 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/RELEASE.md +53 -1
- package/SECURITY.md +9 -0
- package/dist/abcjs-basic-min.js +2 -2
- package/dist/abcjs-basic.js +1378 -484
- package/dist/abcjs-basic.js.map +1 -1
- package/dist/abcjs-plugin-min.js +2 -2
- package/index.js +2 -0
- package/package.json +2 -2
- package/src/api/abc_tunebook_svg.js +2 -98
- package/src/const/key-accidentals.js +53 -0
- package/src/const/relative-major.js +92 -0
- package/src/parse/abc_parse.js +20 -9
- package/src/parse/abc_parse_book.js +3 -2
- package/src/parse/abc_parse_key_voice.js +1 -148
- package/src/parse/abc_parse_music.js +2 -2
- package/src/parse/abc_transpose.js +9 -68
- package/src/parse/transpose-chord.js +80 -0
- package/src/str/output.js +433 -0
- package/src/synth/abc_midi_flattener.js +1 -1
- package/src/synth/create-note-map.js +4 -0
- package/src/test/abc_parser_lint.js +1 -1
- package/src/write/abc_abstract_engraver.js +12 -0
- package/src/write/abc_beam_element.js +24 -0
- package/src/write/abc_decoration.js +13 -0
- package/src/write/abc_engraver_controller.js +64 -1
- package/src/write/abc_glissando_element.js +7 -0
- package/src/write/draw/draw.js +8 -0
- package/src/write/draw/glissando.js +75 -0
- package/src/write/draw/staff-group.js +5 -5
- package/src/write/draw/voice.js +4 -0
- package/src/write/selection.js +48 -12
- package/src/write/top-text.js +1 -1
- package/types/index.d.ts +56 -8
- package/version.js +1 -1
- package/temp.txt +0 -16
package/README.md
CHANGED
|
@@ -8,6 +8,14 @@ This library makes it easy to incorporate **sheet music** into your **websites**
|
|
|
8
8
|
|
|
9
9
|
Full documentation is here: [abcjs documentation](https://paulrosen.github.io/abcjs/)
|
|
10
10
|
|
|
11
|
+
## Announcement: version 6.1.1
|
|
12
|
+
|
|
13
|
+
There is a little difference in the generated SVG: Now each line is surrounded with a `<g>` element. This probably won't affect your program unless you are doing very specific manipulation of the SVG.
|
|
14
|
+
|
|
15
|
+
## Announcement: version 6.1.0
|
|
16
|
+
|
|
17
|
+
There is a brand new transposing feature. This allows you to input an ABC string and get a new ABC back in a different key. See the documentation for details. I'm sure there are ways to expand this - let me know if your use case is missing.
|
|
18
|
+
|
|
11
19
|
## Announcement: version 6.0.0
|
|
12
20
|
|
|
13
21
|
After way too long, abcjs 6.0.0 is now out of beta.
|
package/RELEASE.md
CHANGED
|
@@ -1,3 +1,55 @@
|
|
|
1
|
+
# Version 6.1.1
|
|
2
|
+
|
|
3
|
+
## Bugs
|
|
4
|
+
|
|
5
|
+
* rewrite oneSvgPerLine; fixes selection and keeping multiline items (like slurs) correctly.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
* added mobile browser TouchEvent support for dragging
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
* fixed some typescript definitions
|
|
14
|
+
|
|
15
|
+
# Version 6.1.0
|
|
16
|
+
|
|
17
|
+
## Bugs
|
|
18
|
+
|
|
19
|
+
* Fix some bugs in startChar; endChar
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
* Add transposing feature
|
|
24
|
+
|
|
25
|
+
## Documentation
|
|
26
|
+
|
|
27
|
+
* Document transposing feature
|
|
28
|
+
* Clarify the way testing works
|
|
29
|
+
* Add tablature tests to "all"
|
|
30
|
+
|
|
31
|
+
# Version 6.0.4
|
|
32
|
+
|
|
33
|
+
## Bugs
|
|
34
|
+
|
|
35
|
+
* Fix position of staccato when a note is beamed and its stem is backwards.
|
|
36
|
+
* Write annotations above bar lines.
|
|
37
|
+
* fix placement of rhythm indicator (the R: field) on treble clef when there is nothing else above the staff.
|
|
38
|
+
* fix some broken tests; add test for staccato bug and rhythm word placement.
|
|
39
|
+
* fixed some Typescript warnings and errors
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
* Recognize backslash to escape lyrics.
|
|
44
|
+
* Add glissando
|
|
45
|
+
* pass back the start and end char positions with the audio callbacks.
|
|
46
|
+
|
|
47
|
+
## Documentation
|
|
48
|
+
|
|
49
|
+
* Add example of adding note names to a tune automatically.
|
|
50
|
+
* Add a mention for the VSCode extension.
|
|
51
|
+
* Add tune book example.
|
|
52
|
+
|
|
1
53
|
# Version 6.0.3
|
|
2
54
|
|
|
3
55
|
## Bugs
|
|
@@ -12,7 +64,7 @@
|
|
|
12
64
|
|
|
13
65
|
## Features
|
|
14
66
|
|
|
15
|
-
* Quotation
|
|
67
|
+
* Quotation mark in a chord can be escaped.
|
|
16
68
|
|
|
17
69
|
## Documentation
|
|
18
70
|
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Only the latest version will get security updates. Please stay updated if possible.
|
|
6
|
+
|
|
7
|
+
## Reporting a Vulnerability
|
|
8
|
+
|
|
9
|
+
Contact Paul Rosen directly if you detect a security problem. The most reliable way is to through the contact form on https://abcjs.net.
|