midiwire 0.4.0 → 0.6.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.
- package/README.md +6 -6
- package/dist/midiwire.es.js +1067 -812
- package/dist/midiwire.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/MIDIConnection.js +15 -7
- package/src/core/MIDIController.js +295 -74
- package/src/core/MIDIController.test.js +254 -10
- package/src/core/MIDIDeviceManager.js +317 -177
- package/src/core/MIDIDeviceManager.test.js +681 -493
- package/src/index.js +91 -30
- package/src/utils/dx7/DX7Voice.js +4 -0
- package/src/utils/dx7/types.js +0 -40
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ A modern, declarative JavaScript library for creating browser-based MIDI control
|
|
|
18
18
|
- 📦 **Zero dependencies** - Lightweight and fast
|
|
19
19
|
- 🔧 **Flexible API** - Works with data attributes or programmatically
|
|
20
20
|
- 🎨 **Framework agnostic** - Use with vanilla JS, React, Vue, or anything else
|
|
21
|
-
- 📝 **Fully documented** - [Comprehensive API documentation](
|
|
21
|
+
- 📝 **Fully documented** - [Comprehensive API documentation](https://alexferl.github.io/midiwire/module-midiwire.html) with examples
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
@@ -31,12 +31,12 @@ Or use directly in the browser from a CDN like [jsDelivr](https://www.jsdelivr.c
|
|
|
31
31
|
```html
|
|
32
32
|
<!-- Always gets the latest version -->
|
|
33
33
|
<script type="module">
|
|
34
|
-
import { createMIDIController } from
|
|
34
|
+
import { createMIDIController } from "https://cdn.jsdelivr.net/npm/midiwire/+esm";
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<!-- Or specify a version if needed -->
|
|
38
38
|
<script type="module">
|
|
39
|
-
import { createMIDIController } from
|
|
39
|
+
import { createMIDIController } from "https://cdn.jsdelivr.net/npm/midiwire@0.4.0/+esm";
|
|
40
40
|
</script>
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -64,7 +64,7 @@ Or use directly in the browser from a CDN like [jsDelivr](https://www.jsdelivr.c
|
|
|
64
64
|
import { createMIDIController } from "midiwire";
|
|
65
65
|
|
|
66
66
|
await createMIDIController({
|
|
67
|
-
|
|
67
|
+
outputChannel: 1,
|
|
68
68
|
selector: "[data-midi-cc]"
|
|
69
69
|
});
|
|
70
70
|
</script>
|
|
@@ -78,7 +78,7 @@ Or use directly in the browser from a CDN like [jsDelivr](https://www.jsdelivr.c
|
|
|
78
78
|
import { createMIDIController } from "midiwire";
|
|
79
79
|
|
|
80
80
|
const midi = await createMIDIController({
|
|
81
|
-
|
|
81
|
+
outputChannel: 1,
|
|
82
82
|
output: "My Synth"
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -92,7 +92,7 @@ midi.channel.sendCC(74, 64);
|
|
|
92
92
|
|
|
93
93
|
### Full API Documentation
|
|
94
94
|
|
|
95
|
-
For complete API documentation with examples, see **[API
|
|
95
|
+
For complete API documentation with examples, see **[API Documentation](https://alexferl.github.io/midiwire/module-midiwire.html)**.
|
|
96
96
|
|
|
97
97
|
## Use Cases
|
|
98
98
|
|