@jeffy-g/live-midi-types 0.6.3 → 0.6.4

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/dist/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export * from "./midi-event.js";
2
2
  export * from "./midi-clip.js";
3
3
  export * from "./project.js";
4
4
  export * from "./ableton-colors.js";
5
- export declare const version = "v0.6.3";
5
+ export declare const version = "v0.6.4";
package/dist/index.js CHANGED
@@ -2,4 +2,4 @@ export * from "./midi-event.js";
2
2
  export * from "./midi-clip.js";
3
3
  export * from "./project.js";
4
4
  export * from "./ableton-colors.js";
5
- export const version = "v0.6.3";
5
+ export const version = "v0.6.4";
@@ -31,15 +31,12 @@ export const eventsIs = (events, type) => {
31
31
  const e = events?.[0];
32
32
  if (!isObject(e)) return false;
33
33
  switch (type) {
34
- case "note": {
34
+ case "note":
35
35
  return typeof e.pitch === "number" && typeof e.velocity === "number";
36
- }
37
- case "cc": {
36
+ case "cc":
38
37
  return typeof e.controller === "number" && typeof e.value === "number";
39
- }
40
- default: {
41
- // tempo
38
+ // case "tempo":
39
+ default:
42
40
  return typeof e.bpm === "number";
43
- }
44
41
  }
45
42
  };
package/dist/project.d.ts CHANGED
@@ -57,5 +57,5 @@ export type TParsedAbletonLiveSet<T extends Record<string, any>> = {
57
57
  /**
58
58
  * Tempo automation events.
59
59
  */
60
- tempoAutomation?: TempoEvent[];
60
+ tempoAutomation: TempoEvent[];
61
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeffy-g/live-midi-types",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Common TypeScript types for Ableton Live MIDI clip and event data.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",