abcjs 6.3.0 → 6.4.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.
Files changed (46) hide show
  1. package/README.md +4 -0
  2. package/RELEASE.md +52 -0
  3. package/dist/abcjs-basic-min.js +2 -2
  4. package/dist/abcjs-basic.js +1031 -622
  5. package/dist/abcjs-basic.js.map +1 -1
  6. package/dist/abcjs-plugin-min.js +2 -2
  7. package/index.js +1 -0
  8. package/package.json +1 -1
  9. package/src/api/tune-metrics.js +18 -0
  10. package/src/data/abc_tune.js +13 -2
  11. package/src/edit/abc_editarea.js +4 -1
  12. package/src/parse/abc_parse.js +2 -0
  13. package/src/parse/abc_parse_directive.js +6 -0
  14. package/src/synth/abc_midi_flattener.js +40 -462
  15. package/src/synth/abc_midi_sequencer.js +25 -10
  16. package/src/synth/chord-track.js +565 -0
  17. package/src/synth/create-note-map.js +2 -1
  18. package/src/synth/create-synth.js +91 -42
  19. package/src/test/abc_parser_lint.js +1 -0
  20. package/src/write/creation/abstract-engraver.js +4 -1
  21. package/src/write/creation/decoration.js +3 -2
  22. package/src/write/creation/elements/tie-element.js +23 -0
  23. package/src/write/draw/draw.js +1 -1
  24. package/src/write/engraver-controller.js +9 -5
  25. package/src/write/interactive/create-analysis.js +50 -0
  26. package/src/write/interactive/find-selectable-element.js +24 -0
  27. package/src/write/interactive/selection.js +5 -45
  28. package/src/write/layout/layout-in-grid.js +83 -0
  29. package/src/write/layout/layout.js +29 -24
  30. package/src/write/layout/set-upper-and-lower-elements.js +2 -0
  31. package/src/write/layout/staff-group.js +2 -2
  32. package/src/write/layout/voice-elements.js +1 -1
  33. package/src/write/layout/voice.js +1 -1
  34. package/src/write/renderer.js +3 -0
  35. package/types/index.d.ts +96 -32
  36. package/version.js +1 -1
  37. package/abc2xml_239/abc2xml.html +0 -769
  38. package/abc2xml_239/abc2xml.py +0 -2248
  39. package/abc2xml_239/abc2xml_changelog.html +0 -124
  40. package/abc2xml_239/lazy-river.abc +0 -26
  41. package/abc2xml_239/lazy-river.xml +0 -3698
  42. package/abc2xml_239/mean-to-me.abc +0 -22
  43. package/abc2xml_239/mean-to-me.xml +0 -2954
  44. package/abc2xml_239/pyparsing.py +0 -3672
  45. package/abc2xml_239/pyparsing.pyc +0 -0
  46. package/temp.txt +0 -50
package/README.md CHANGED
@@ -10,6 +10,10 @@ Full documentation is here: [abcjs documentation](https://paulrosen.github.io/ab
10
10
 
11
11
  There is an organization that has a collection of useful projects related to abcjs called [abcjs-music](https://github.com/abcjs-music). See some examples there. If you have a project that you think would be of general interest and would like to add it to that organization, contact me.
12
12
 
13
+ ## Announcement: version 6.4.0
14
+
15
+ The method for creating chord accompaniment has changed. Hopefully there aren't any regressions but if you have an example that doesn't match what it used to be, please open an issue.
16
+
13
17
  ## Announcement: version 6.3.0
14
18
 
15
19
  Most users won't see any difference, but there was some changes to the underlying SVG structure for the top (the title, etc.) and bottom (the notes, etc.) text, so if your code depends on particular classes then this might be a breaking change. Hopefully the new structure will be clearer and will allow css to target particular parts easier.
package/RELEASE.md CHANGED
@@ -1,3 +1,55 @@
1
+ # Version 6.4.1
2
+
3
+ ## Bugs
4
+
5
+ * fix regression when playing a specified sequence instead of using visualObj
6
+
7
+ * don't inject a bass note when chords change mid-measure if the pattern doesn't start on a bass note.
8
+
9
+ # Version 6.4.0
10
+
11
+ ## Features
12
+
13
+ * Support custom rhythm patterns in gChords
14
+
15
+ * Add swing to the playback
16
+
17
+ * Allow swing, bassprog, bassvol, chordprog, chordvol, and gchord to be set in the options, and also on the fly.
18
+
19
+ * Add findSelectableElement and getSelectableArray functions to help with hover.
20
+
21
+ * Add `drumOff` to the parameters so that the metronome can only be for the prep beats
22
+
23
+ * Allow an element to be passed into to the EditArea object in addition to an ID
24
+
25
+ * Add left alignment option ot time-based-layout
26
+
27
+ * Add timeBasedLayout parameter
28
+
29
+ * Add "stafftopmargin" directive
30
+
31
+ * Add tuneMetrics function
32
+
33
+ ## Bugs
34
+
35
+ * Fix linespacing when using both oneSvgPerLine and scale
36
+
37
+ * fix placement of inverted fermata
38
+
39
+ * Fix end points of slurs when there are beams involved
40
+
41
+ * Fix bug with cursor not following a tie across a line break.
42
+
43
+ * Improve spacing on time-based layout when left aligned
44
+
45
+ * fix line distance when scaling
46
+
47
+ * fix abcjs-staff class appearing in two places
48
+
49
+ * fix bug in gchord sound when bass and chord programs are different
50
+
51
+ * Many small fixes to types
52
+
1
53
  # Version 6.3.0
2
54
 
3
55
  ## Features