Install
| Product | Versions |
|---|---|
| .NET Standard |
README
Glutinum.Webmidi
Fable bindings for webmidi, generated by Glutinum
Generated by Glutinum from webmidi.
The bindings live in the Glutinum.Webmidi module, the exports of the package are static members of Glutinum.Webmidi.Exports. The WebMidi object of the library is Exports.WebMidi, the static helpers are on the Utilities type.
open Glutinum.Webmidi
let midi = Exports.WebMidi
midi.enable ()
|> Promise.iter (fun midi ->
for input in midi.inputs do
printfn "%s" input.name
)
let note = Exports.Note("C#4", Exports.Note.options (duration = 500.0))
let number = Utilities.toNoteNumber "A4"
The Chromium of Playwright has no Web MIDI API, so the tests cover the notes, the utilities and the messages, and check that enable reports the browser as unsupported. A browser with the API asks the user for permission when enable is called.
Install the npm package next to the NuGet package, or run femto to do it.
The file Glutinum.Webmidi.fs is generated by ./build.sh generate Webmidi in the hub, do not edit it.
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.