@r_masseater/song-format 0.1.0 → 0.2.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 (57) hide show
  1. package/README.md +33 -1
  2. package/dist/als-to-fumx.mjs +525 -0
  3. package/dist/als-to-fumx.mjs.map +1 -0
  4. package/dist/analysis.d.mts +95 -0
  5. package/dist/analysis.mjs +328 -0
  6. package/dist/analysis.mjs.map +1 -0
  7. package/dist/convert-als.d.mts +18 -0
  8. package/dist/convert-als.mjs +512 -0
  9. package/dist/convert-als.mjs.map +1 -0
  10. package/dist/convert-midi.d.mts +2 -75
  11. package/dist/convert-midi.mjs +5 -650
  12. package/dist/convert-midi.mjs.map +1 -1
  13. package/dist/fumx-language-server.mjs +1 -1
  14. package/dist/fumx-language-server.mjs.map +1 -1
  15. package/dist/fumx-module-CqxUe07y.mjs +12485 -0
  16. package/dist/fumx-module-CqxUe07y.mjs.map +1 -0
  17. package/dist/fumx-module-CtXvLKU1.mjs +2632 -0
  18. package/dist/fumx-module-CtXvLKU1.mjs.map +1 -0
  19. package/dist/grammar-86_uhiTo.mjs +9836 -0
  20. package/dist/grammar-86_uhiTo.mjs.map +1 -0
  21. package/dist/index-Cup9xTad.d.mts +105 -0
  22. package/dist/index-DPt8MZ6e.d.mts +796 -0
  23. package/dist/index-JXjnMHXw.d.mts +1350 -0
  24. package/dist/index.d.mts +9 -0
  25. package/dist/index.mjs +4 -0
  26. package/dist/language.d.mts +13 -0
  27. package/dist/language.mjs +3 -0
  28. package/dist/mapper.mjs +1 -1
  29. package/dist/midi-to-fumx.mjs +12 -854
  30. package/dist/midi-to-fumx.mjs.map +1 -1
  31. package/dist/read-song-BzqX5MuZ.mjs +122 -0
  32. package/dist/read-song-BzqX5MuZ.mjs.map +1 -0
  33. package/dist/read-song-CzMPm8u8.mjs +123 -0
  34. package/dist/read-song-CzMPm8u8.mjs.map +1 -0
  35. package/dist/round-trip-Cz8iQlpW.mjs +946 -0
  36. package/dist/round-trip-Cz8iQlpW.mjs.map +1 -0
  37. package/dist/run-main-Bf32CgzU.mjs +26 -0
  38. package/dist/run-main-Bf32CgzU.mjs.map +1 -0
  39. package/dist/song-3Zm9g84K.d.mts +1478 -0
  40. package/dist/song-CYFBSTbH.mjs +387 -0
  41. package/dist/song-CYFBSTbH.mjs.map +1 -0
  42. package/dist/song-report.mjs +327 -4
  43. package/dist/song-report.mjs.map +1 -1
  44. package/dist/ticks-CXehHP2w.mjs +27 -0
  45. package/dist/ticks-CXehHP2w.mjs.map +1 -0
  46. package/dist/{transform-C24h3upp.mjs → transform-BoSDqqPW.mjs} +4 -3
  47. package/dist/transform-BoSDqqPW.mjs.map +1 -0
  48. package/dist/vite.mjs +4 -3
  49. package/dist/vite.mjs.map +1 -1
  50. package/dist/write-CuDbIkpM.mjs +747 -0
  51. package/dist/write-CuDbIkpM.mjs.map +1 -0
  52. package/package.json +49 -12
  53. package/skills/read-fumx/SKILL.md +85 -0
  54. package/skills/use-fumx-tools/SKILL.md +1 -2
  55. package/dist/app-CdpGdiWq.mjs +0 -190
  56. package/dist/app-CdpGdiWq.mjs.map +0 -1
  57. package/dist/transform-C24h3upp.mjs.map +0 -1
@@ -1,78 +1,5 @@
1
- import { Effect, Option, Schema } from "effect";
2
- import { Controller } from "@r_masseater/fumx-parser";
3
- interface Timed {
4
- readonly tick: number;
5
- }
6
- interface TimelineNote extends Timed {
7
- readonly end: number;
8
- readonly midi: number;
9
- readonly velocity: number;
10
- readonly release: number;
11
- }
12
- interface TimelineControl extends Timed {
13
- readonly controller: Controller;
14
- readonly value: number;
15
- }
16
- interface Text extends Timed {
17
- readonly text: string;
18
- }
19
- interface Part {
20
- readonly track: number;
21
- readonly channel: number;
22
- readonly name: Option.Option<string>;
23
- readonly program: Option.Option<number>;
24
- readonly notes: readonly TimelineNote[];
25
- readonly controls: readonly TimelineControl[];
26
- readonly lyrics: readonly Text[];
27
- }
28
- interface LaidTempo {
29
- readonly offset: number;
30
- readonly length: number;
31
- readonly microseconds: number;
32
- readonly target: Option.Option<number>;
33
- }
34
- interface Span {
35
- readonly start: number;
36
- readonly length: number;
37
- }
38
- interface LaidBar extends Span {
39
- readonly meter: string;
40
- readonly tempo: readonly LaidTempo[];
41
- readonly marks: readonly string[];
42
- }
43
- interface Group {
44
- readonly start: number;
45
- readonly end: number;
46
- readonly midis: readonly number[];
47
- readonly velocity: number;
48
- readonly release: number;
49
- readonly lyric: Option.Option<string>;
50
- }
51
- type Line = readonly Group[];
52
- type Source = {
53
- readonly kind: "instrument";
54
- readonly instrument: string;
55
- readonly program: number;
56
- } | {
57
- readonly kind: "kit";
58
- };
59
- interface PlannedPart {
60
- readonly part: Part;
61
- readonly name: string;
62
- readonly source: Source;
63
- readonly lines: readonly Line[];
64
- readonly controls: readonly TimelineControl[];
65
- }
66
- interface Plan {
67
- readonly parts: readonly PlannedPart[];
68
- readonly instruments: ReadonlyMap<number, string>;
69
- readonly drumVoices: ReadonlyMap<number, string>;
70
- }
71
- interface Written {
72
- readonly text: string;
73
- readonly plan: Plan;
74
- readonly bars: readonly LaidBar[];
75
- }
1
+ import { t as Written } from "./index-Cup9xTad.mjs";
2
+ import { Effect, Schema } from "effect";
76
3
  declare const UnreadableMidi_base: Schema.Class<UnreadableMidi, Schema.TaggedStruct<"UnreadableMidi", {
77
4
  readonly message: Schema.String;
78
5
  }>, import("effect/Cause").YieldableError & {