linked-rolls 0.44.0 → 0.45.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 (78) hide show
  1. package/README.md +17 -2
  2. package/lib/Agent.d.ts +1 -1
  3. package/lib/Assumption.d.ts +2 -2
  4. package/lib/Collation.d.ts +15 -8
  5. package/lib/Collation.js +4 -4
  6. package/lib/ConditionState.d.ts +1 -1
  7. package/lib/Edit.d.ts +3 -3
  8. package/lib/Edition.d.ts +6 -6
  9. package/lib/EditionView.d.ts +8 -8
  10. package/lib/EditionView.js +6 -6
  11. package/lib/Emulation.d.ts +4 -4
  12. package/lib/Emulation.js +3 -3
  13. package/lib/Feature.d.ts +5 -5
  14. package/lib/FeatureSource.d.ts +4 -4
  15. package/lib/ReproducingSystem.d.ts +4 -4
  16. package/lib/RollCopy.d.ts +10 -10
  17. package/lib/RollCopy.js +4 -4
  18. package/lib/Symbol.d.ts +2 -2
  19. package/lib/Symbol.js +1 -1
  20. package/lib/TrackCalibration.d.ts +1 -1
  21. package/lib/TrackCalibration.js +1 -1
  22. package/lib/TrackerBar.d.ts +3 -3
  23. package/lib/TrackerBar.js +1 -1
  24. package/lib/Version.d.ts +6 -6
  25. package/lib/Version.js +2 -2
  26. package/lib/alignment.d.ts +4 -4
  27. package/lib/alignment.js +3 -3
  28. package/lib/asJsonLd.d.ts +1 -1
  29. package/lib/asJsonLd.js +3 -3
  30. package/lib/constraints.d.ts +1 -1
  31. package/lib/constraints.js +5 -5
  32. package/lib/context.js +4 -4
  33. package/lib/editionOps.d.ts +9 -9
  34. package/lib/editionOps.js +12 -12
  35. package/lib/importJsonLd.d.ts +1 -1
  36. package/lib/importJsonLd.js +3 -3
  37. package/lib/index.d.ts +42 -42
  38. package/lib/index.js +42 -42
  39. package/lib/migrate.js +6 -6
  40. package/lib/procedures.d.ts +1 -1
  41. package/lib/readers/phillipsEroll.d.ts +3 -3
  42. package/lib/readers/phillipsEroll.js +5 -5
  43. package/lib/readers/spencerBar.d.ts +2 -2
  44. package/lib/readers/spencerBar.js +3 -3
  45. package/lib/readers/stanfordAton.d.ts +3 -3
  46. package/lib/readers/stanfordAton.js +4 -4
  47. package/lib/reservations.d.ts +3 -3
  48. package/lib/reservations.js +4 -4
  49. package/lib/scatter.d.ts +74 -13
  50. package/lib/scatter.js +72 -12
  51. package/lib/schema.json +4 -4
  52. package/lib/sigla.d.ts +1 -1
  53. package/lib/sigla.js +4 -4
  54. package/lib/statistics.d.ts +1 -1
  55. package/lib/statistics.js +1 -1
  56. package/lib/substitution.d.ts +5 -5
  57. package/lib/substitution.js +2 -2
  58. package/lib/systems/index.d.ts +2 -2
  59. package/lib/systems/index.js +4 -4
  60. package/lib/systems/welteLicensee/bar.d.ts +1 -1
  61. package/lib/systems/welteLicensee/bar.js +2 -2
  62. package/lib/systems/welteLicensee/system.d.ts +2 -2
  63. package/lib/systems/welteLicensee/system.js +3 -3
  64. package/lib/systems/welteT100/bar.d.ts +1 -1
  65. package/lib/systems/welteT100/bar.js +2 -2
  66. package/lib/systems/welteT100/system.d.ts +4 -4
  67. package/lib/systems/welteT100/system.js +4 -4
  68. package/lib/systems/welteT98/bar.d.ts +1 -1
  69. package/lib/systems/welteT98/bar.js +2 -2
  70. package/lib/systems/welteT98/system.d.ts +4 -4
  71. package/lib/systems/welteT98/system.js +4 -4
  72. package/lib/validate.d.ts +1 -1
  73. package/lib/validate.js +1 -1
  74. package/lib/vocabulary.d.ts +1 -1
  75. package/lib/vocabulary.js +3 -3
  76. package/lib/witnesses.d.ts +2 -2
  77. package/lib/witnesses.js +2 -2
  78. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { DEFAULT_PUNCH_MM, geometryInMm, Grid, levelChanges, paperSeconds, pedalBrushing, pedalDefaults, ROWS_PER_MM, TRACKER_BORE_MM, WELTE_SPOOL, } from "welte-mignon-emulator";
2
2
  import { aperturePorts, CONSENSUS, mezzoforteTravel, pneumaticModel, PRESETS, runPedals, travelBetweenRails, } from "welte-mignon-emulator/t100";
3
- import { welteT100 } from "./bar";
4
- import { inCentimeters, mm, seconds, track } from "../../Quantity";
5
- import { partitionPoint } from "../../sorted";
6
- import { defaultVelocityMap, velocityOf } from "../velocity";
3
+ import { welteT100 } from "./bar.js";
4
+ import { inCentimeters, mm, seconds, track } from "../../Quantity.js";
5
+ import { partitionPoint } from "../../sorted.js";
6
+ import { defaultVelocityMap, velocityOf } from "../velocity.js";
7
7
  /**
8
8
  * The instruments the emulator was fitted as: the consensus over the six
9
9
  * rolls with drawn nuance lines, and the setting that drew each of them,
@@ -1,4 +1,4 @@
1
- import { TrackerBar } from "../../TrackerBar";
1
+ import { TrackerBar } from "../../TrackerBar.js";
2
2
  /**
3
3
  * The commands of the Welte-Mignon T-98, as its tracker bar reads them.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { describeTrackerBar } from "../../TrackerBar";
2
- import { metersPerMinute, mm } from "../../Quantity";
1
+ import { describeTrackerBar } from "../../TrackerBar.js";
2
+ import { metersPerMinute, mm } from "../../Quantity.js";
3
3
  /**
4
4
  * The commands of the Welte-Mignon T-98, as its tracker bar reads them.
5
5
  *
@@ -1,9 +1,9 @@
1
1
  import { Half, Parameters, PedalMode, Spool } from "welte-mignon-emulator";
2
2
  import { instrumentT98Of, labelOf, nuanceOf, WelteT98InstrumentName } from "welte-mignon-emulator/t98";
3
- import { ReproducingSystem } from "../../ReproducingSystem";
4
- import { Millimeters, Seconds, Track } from "../../Quantity";
5
- import { type VelocityMap } from "../velocity";
6
- export type { VelocityMap } from "../velocity";
3
+ import { ReproducingSystem } from "../../ReproducingSystem.js";
4
+ import { Millimeters, Seconds, Track } from "../../Quantity.js";
5
+ import { type VelocityMap } from "../velocity.js";
6
+ export type { VelocityMap } from "../velocity.js";
7
7
  export type { WelteT98Instrument, WelteT98InstrumentName } from "welte-mignon-emulator/t98";
8
8
  /**
9
9
  * The instruments the emulator offers for the green Welte, in three groups that
@@ -1,9 +1,9 @@
1
1
  import { geometryInMm, Grid, levelChanges, mezzoforteTravel, paperSeconds, pedalBrushing, pedalDefaults, ROWS_PER_MM, travelBetweenRails, WELTE_T98_SPOOL, } from "welte-mignon-emulator";
2
2
  import { aperturePorts, CHAIN_GAP_MM, DERIVED, GENUINE, instrumentT98Of, labelOf, nuanceOf, PUNCH_T98_MM, pneumaticT98Model, rewindAt, runPedals, sforzandoPianoLift, STARTING_VALUES, TRACKER_BORE_T98_MM, } from "welte-mignon-emulator/t98";
3
- import { welteT98 } from "./bar";
4
- import { inCentimeters, mm, seconds, track } from "../../Quantity";
5
- import { partitionPoint } from "../../sorted";
6
- import { defaultVelocityMap, velocityOf } from "../velocity";
3
+ import { welteT98 } from "./bar.js";
4
+ import { inCentimeters, mm, seconds, track } from "../../Quantity.js";
5
+ import { partitionPoint } from "../../sorted.js";
6
+ import { defaultVelocityMap, velocityOf } from "../velocity.js";
7
7
  /**
8
8
  * The instruments the emulator offers for the green Welte, in three groups that
9
9
  * answer three different questions and must not be listed as one.
package/lib/validate.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type ErrorObject } from "ajv";
2
- import { Edition } from "./Edition";
2
+ import { Edition } from "./Edition.js";
3
3
  /**
4
4
  * Holds a document against the edition schema. `errors` says what the
5
5
  * last call found wrong, and is empty where it found nothing.
package/lib/validate.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Ajv from "ajv";
2
- import * as schema from "./schema.json";
2
+ import * as schema from "./schema.json" with { type: 'json' };
3
3
  const compileEditionSchema = () => new Ajv({ strict: false, formats: { "date": true } }).compile(schema);
4
4
  /**
5
5
  * Compiling costs enough that a consumer which never validates should not
@@ -1,4 +1,4 @@
1
- import { Concept } from "./Agent";
1
+ import { Concept } from "./Agent.js";
2
2
  /**
3
3
  * The concepts the type vocabulary declares, whatever kind they are:
4
4
  * the reproducing systems and the procedures. An edition names one of
package/lib/vocabulary.js CHANGED
@@ -1,6 +1,6 @@
1
- import { procedures } from "./procedures";
2
- import { systemOf } from "./TrackerBar";
3
- import { trackerBars } from "./systems";
1
+ import { procedures } from "./procedures.js";
2
+ import { systemOf } from "./TrackerBar.js";
3
+ import { trackerBars } from "./systems/index.js";
4
4
  /**
5
5
  * The concepts the type vocabulary declares, whatever kind they are:
6
6
  * the reproducing systems and the procedures. An edition names one of
@@ -1,5 +1,5 @@
1
- import { Belief, Certainty } from "./Assumption";
2
- import { EditionView } from "./EditionView";
1
+ import { Belief, Certainty } from "./Assumption.js";
2
+ import { EditionView } from "./EditionView.js";
3
3
  export type WitnessBy = 'carriers' | 'statement';
4
4
  /** A copy that bears witness to a version, and how. */
5
5
  export interface Witness {
package/lib/witnesses.js CHANGED
@@ -1,5 +1,5 @@
1
- import { certaintyOf, idOf, idsOf } from "./Assumption";
2
- import { insertedBy } from "./Version";
1
+ import { certaintyOf, idOf, idsOf } from "./Assumption.js";
2
+ import { insertedBy } from "./Version.js";
3
3
  /** The copies whose features carry any of the symbols. */
4
4
  const copiesCarrying = (view, symbols) => new Set(symbols
5
5
  .flatMap(symbol => idsOf(symbol.carriers))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linked-rolls",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Digital editions of piano rolls: import, collation, editorial assumptions, JSON-LD export, and emulation through a reproducing system",
5
5
  "license": "MIT",
6
6
  "repository": {