jpfun 0.8.0 → 1.0.0

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 (140) hide show
  1. package/README.md +10 -15
  2. package/dist/diagnostic.d.ts +29 -2
  3. package/dist/diagnostic.js +5 -4
  4. package/dist/functions/ASTtypes.d.ts +1 -14
  5. package/dist/functions/ASTtypes.js +5 -36
  6. package/dist/functions/adjust/index.js +45 -33
  7. package/dist/functions/arpeggio/index.js +44 -48
  8. package/dist/functions/arpeggio/shape.d.ts +2 -3
  9. package/dist/functions/arpeggio/shape.js +20 -50
  10. package/dist/functions/bar/index.d.ts +3 -0
  11. package/dist/functions/bar/index.js +21 -11
  12. package/dist/functions/beam/auto.js +54 -123
  13. package/dist/functions/beam/index.js +4 -9
  14. package/dist/functions/beam/layout.js +3 -2
  15. package/dist/functions/box/index.js +1 -6
  16. package/dist/functions/dash/index.js +6 -4
  17. package/dist/functions/div/index.d.ts +3 -5
  18. package/dist/functions/div/index.js +14 -12
  19. package/dist/functions/dot/index.js +3 -9
  20. package/dist/functions/dyn/index.js +7 -26
  21. package/dist/functions/gliss/index.js +99 -91
  22. package/dist/functions/grace/index.d.ts +2 -5
  23. package/dist/functions/grace/index.js +47 -94
  24. package/dist/functions/head/index.js +32 -36
  25. package/dist/functions/key/index.js +9 -12
  26. package/dist/functions/meter/index.d.ts +1 -0
  27. package/dist/functions/meter/index.js +6 -3
  28. package/dist/functions/meter/shape.d.ts +1 -1
  29. package/dist/functions/note/accidentals.d.ts +3 -3
  30. package/dist/functions/note/accidentals.js +29 -16
  31. package/dist/functions/note/index.js +12 -14
  32. package/dist/functions/note/source-transform.d.ts +15 -0
  33. package/dist/functions/note/source-transform.js +75 -71
  34. package/dist/functions/ottava/index.js +12 -32
  35. package/dist/functions/page/index.js +15 -17
  36. package/dist/functions/rest/index.js +10 -10
  37. package/dist/functions/slide/index.js +1 -1
  38. package/dist/functions/stack/index.js +8 -57
  39. package/dist/functions/temporal.d.ts +11 -5
  40. package/dist/functions/temporal.js +22 -2
  41. package/dist/functions/text/index.js +24 -30
  42. package/dist/functions/tie/index.js +42 -41
  43. package/dist/functions/tremolo/index.js +1 -1
  44. package/dist/functions/tuplet/index.js +1 -6
  45. package/dist/functions/up/index.js +82 -88
  46. package/dist/functions/voice/connections.d.ts +3 -2
  47. package/dist/functions/voice/connections.js +48 -10
  48. package/dist/functions/voice/index.d.ts +2 -3
  49. package/dist/functions/voice/index.js +2 -970
  50. package/dist/functions/voice/lyrics.d.ts +34 -0
  51. package/dist/functions/voice/lyrics.js +393 -0
  52. package/dist/functions/voice/voice.d.ts +67 -0
  53. package/dist/functions/voice/voice.js +405 -0
  54. package/dist/functions/voice/voices.d.ts +106 -0
  55. package/dist/functions/voice/voices.js +424 -0
  56. package/dist/functions/volta/index.js +6 -23
  57. package/dist/index.d.ts +97 -3
  58. package/dist/index.js +97 -3
  59. package/dist/jpfun.min.js +63 -67
  60. package/dist/layout/engine.d.ts +4 -3
  61. package/dist/layout/engine.js +190 -24
  62. package/dist/layout/model.d.ts +12 -4
  63. package/dist/layout/model.js +16 -11
  64. package/dist/layout/page.d.ts +2 -1
  65. package/dist/layout/page.js +15 -15
  66. package/dist/layout/path.js +1 -1
  67. package/dist/layout/range.d.ts +7 -6
  68. package/dist/layout/range.js +23 -14
  69. package/dist/layout/types.d.ts +19 -30
  70. package/dist/lowering/loweringContext.d.ts +8 -11
  71. package/dist/lowering/loweringContext.js +7 -13
  72. package/dist/lowering/track.d.ts +8 -1
  73. package/dist/lowering/types.d.ts +12 -8
  74. package/dist/parser/grammarType.d.ts +3 -3
  75. package/dist/parser/parse-utils/brace-utils.js +7 -17
  76. package/dist/parser/parse-utils/call-utils.d.ts +4 -3
  77. package/dist/parser/parse-utils/call-utils.js +23 -66
  78. package/dist/parser/parse-utils/note-utils.d.ts +7 -3
  79. package/dist/parser/parse-utils/note-utils.js +25 -40
  80. package/dist/parser/parse-utils/string-utils.d.ts +1 -1
  81. package/dist/parser/parse-utils/string-utils.js +8 -6
  82. package/dist/parser/parserContext.d.ts +17 -11
  83. package/dist/parser/parserContext.js +111 -65
  84. package/dist/parser/preprocess.d.ts +7 -0
  85. package/dist/parser/preprocess.js +21 -19
  86. package/dist/pipeline.d.ts +1 -1
  87. package/dist/pipeline.js +2 -2
  88. package/dist/playback/compile.js +14 -15
  89. package/dist/playback/event.d.ts +6 -6
  90. package/dist/playback/event.js +13 -49
  91. package/dist/render/canvas.d.ts +0 -2
  92. package/dist/render/canvas.js +50 -56
  93. package/dist/render/index.d.ts +1 -1
  94. package/dist/render/index.js +1 -1
  95. package/dist/render/paint.d.ts +7 -0
  96. package/dist/render/paint.js +70 -20
  97. package/dist/render/recording.d.ts +8 -1
  98. package/dist/render/recording.js +12 -0
  99. package/dist/render/svg.d.ts +5 -2
  100. package/dist/render/svg.js +70 -48
  101. package/dist/render/text.d.ts +37 -2
  102. package/dist/render/text.js +136 -1
  103. package/dist/render/translate.d.ts +3 -1
  104. package/dist/render/translate.js +6 -0
  105. package/dist/render/types.d.ts +9 -2
  106. package/grammar.md +18 -14
  107. package/package.json +8 -18
  108. package/dist/converter/midi/convert.d.ts +0 -42
  109. package/dist/converter/midi/convert.js +0 -729
  110. package/dist/converter/midi/index.d.ts +0 -5
  111. package/dist/converter/midi/index.js +0 -11
  112. package/dist/converter/midi/json.d.ts +0 -38
  113. package/dist/converter/midi/json.js +0 -1
  114. package/dist/converter/midi/triplet.d.ts +0 -30
  115. package/dist/converter/midi/triplet.js +0 -75
  116. package/dist/converter/musicxml/dom.d.ts +0 -25
  117. package/dist/converter/musicxml/dom.js +0 -65
  118. package/dist/converter/musicxml/features.d.ts +0 -114
  119. package/dist/converter/musicxml/features.js +0 -501
  120. package/dist/converter/musicxml/index.d.ts +0 -14
  121. package/dist/converter/musicxml/index.js +0 -1295
  122. package/dist/converter/musicxml/model.d.ts +0 -176
  123. package/dist/converter/musicxml/model.js +0 -1
  124. package/dist/converter/musicxml/resolve.d.ts +0 -10
  125. package/dist/converter/musicxml/resolve.js +0 -152
  126. package/dist/converter/source.d.ts +0 -22
  127. package/dist/converter/source.js +0 -51
  128. package/dist/core.d.ts +0 -24
  129. package/dist/core.js +0 -24
  130. package/dist/iife/core.d.ts +0 -1
  131. package/dist/iife/core.js +0 -3
  132. package/dist/iife/from-midi.d.ts +0 -1
  133. package/dist/iife/from-midi.js +0 -15
  134. package/dist/iife/from-musicxml.d.ts +0 -1
  135. package/dist/iife/from-musicxml.js +0 -3
  136. package/dist/iife/full.d.ts +0 -1
  137. package/dist/iife/full.js +0 -3
  138. package/dist/jpfun.core.min.js +0 -123
  139. package/dist/jpfun.from-midi.min.js +0 -9
  140. package/dist/jpfun.from-musicxml.min.js +0 -12
package/dist/index.js CHANGED
@@ -1,3 +1,97 @@
1
- export * from "./core.js";
2
- export * from "./converter/midi/index.js";
3
- export * from "./converter/musicxml/index.js";
1
+ export * from "./pipeline.js";
2
+ export * from "./functions/ASTtypes.js";
3
+ export * from "./functions/temporal.js";
4
+ export * from "./functions/default.js";
5
+ export * from "./functions/adjust/index.js";
6
+ export * from "./functions/arpeggio/index.js";
7
+ export * from "./functions/arpeggio/shape.js";
8
+ export * from "./functions/bar/index.js";
9
+ export * from "./functions/beam/index.js";
10
+ export * from "./functions/beam/auto.js";
11
+ export * from "./functions/beam/layout.js";
12
+ export * from "./functions/box/index.js";
13
+ export * from "./functions/br/index.js";
14
+ export * from "./functions/dash/index.js";
15
+ export * from "./functions/div/index.js";
16
+ export * from "./functions/dot/index.js";
17
+ export * from "./functions/dyn/index.js";
18
+ export * from "./functions/gliss/index.js";
19
+ export * from "./functions/grace/index.js";
20
+ export * from "./functions/head/index.js";
21
+ export * from "./functions/key/index.js";
22
+ export * from "./functions/meter/index.js";
23
+ export * from "./functions/meter/shape.js";
24
+ export * from "./functions/note/index.js";
25
+ export * from "./functions/note/accidentals.js";
26
+ export * from "./functions/note/noteName.js";
27
+ export * from "./functions/note/source-transform.js";
28
+ export * from "./functions/ottava/index.js";
29
+ export * from "./functions/page/index.js";
30
+ export * from "./functions/pagebreak/index.js";
31
+ export * from "./functions/program/index.js";
32
+ export * from "./functions/rest/index.js";
33
+ export * from "./functions/set/index.js";
34
+ export * from "./functions/slide/index.js";
35
+ export * from "./functions/stack/index.js";
36
+ export * from "./functions/symbol/index.js";
37
+ export * from "./functions/symbol/ornament.js";
38
+ export * from "./functions/symbol/shape.js";
39
+ export * from "./functions/symbol/symbols/accent.js";
40
+ export * from "./functions/symbol/symbols/coda.js";
41
+ export * from "./functions/symbol/symbols/dc.js";
42
+ export * from "./functions/symbol/symbols/ds.js";
43
+ export * from "./functions/symbol/symbols/dynamics.js";
44
+ export * from "./functions/symbol/symbols/fermata.js";
45
+ export * from "./functions/symbol/symbols/fine.js";
46
+ export * from "./functions/symbol/symbols/harmonic.js";
47
+ export * from "./functions/symbol/symbols/marcato.js";
48
+ export * from "./functions/symbol/symbols/mordent.js";
49
+ export * from "./functions/symbol/symbols/prall.js";
50
+ export * from "./functions/symbol/symbols/segno.js";
51
+ export * from "./functions/symbol/symbols/staccato.js";
52
+ export * from "./functions/symbol/symbols/tenuto.js";
53
+ export * from "./functions/symbol/symbols/tocoda.js";
54
+ export * from "./functions/symbol/symbols/tr.js";
55
+ export * from "./functions/symbol/symbols/turn.js";
56
+ export * from "./functions/symbol/symbols/wheel.js";
57
+ export * from "./functions/tempo/index.js";
58
+ export * from "./functions/tempo/glyph.js";
59
+ export * from "./functions/text/index.js";
60
+ export * from "./functions/tie/index.js";
61
+ export * from "./functions/tremolo/index.js";
62
+ export * from "./functions/tuplet/index.js";
63
+ export * from "./functions/up/index.js";
64
+ export * from "./functions/voice/voice.js";
65
+ export * from "./functions/voice/voices.js";
66
+ export * from "./functions/voice/connections.js";
67
+ export * from "./functions/voice/lyrics.js";
68
+ export * from "./functions/volta/index.js";
69
+ export * from "./diagnostic.js";
70
+ export * from "./fraction.js";
71
+ export * from "./parser/types.js";
72
+ export * from "./parser/grammarType.js";
73
+ export { ParserContext, DEFAULT_FONT_SIZE, skipSpaces, skipSpacesBack } from "./parser/parserContext.js";
74
+ export * from "./parser/preprocess.js";
75
+ export * from "./parser/parse-utils/brace-utils.js";
76
+ export * from "./parser/parse-utils/call-utils.js";
77
+ export * from "./parser/parse-utils/label-utils.js";
78
+ export * from "./parser/parse-utils/length-utils.js";
79
+ export * from "./parser/parse-utils/note-utils.js";
80
+ export * from "./parser/parse-utils/string-utils.js";
81
+ export { quote as quoteSourceString } from "./parser/parse-utils/string-utils.js";
82
+ export * from "./lowering/types.js";
83
+ export * from "./lowering/loweringContext.js";
84
+ export * from "./lowering/track.js";
85
+ export * from "./playback/types.js";
86
+ export * from "./playback/event.js";
87
+ export * from "./playback/time.js";
88
+ export * from "./playback/compile.js";
89
+ export * from "./layout/types.js";
90
+ export * from "./layout/model.js";
91
+ export * from "./layout/default.js";
92
+ export * from "./layout/page.js";
93
+ export * from "./layout/engine.js";
94
+ export * from "./layout/path.js";
95
+ export * from "./layout/range.js";
96
+ export * from "./render/index.js";
97
+ export * from "./render/translate.js";