webmididrv

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: MIT Imports: 6 Imported by: 0

README

webmididrv

Please note that webmididrv has moved to the main repository at gitlab.com/gomidi/midi/v2/drivers/webmididrv All further development will be done there.

Documentation

Overview

Package webmididrv provides a gomidi/midi.Driver to connect to MIDI ports in the browser (via webmidi). See the example to get an idea how to use it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseErrors

type CloseErrors []error

CloseErrors collects error from closing multiple MIDI ports

func (CloseErrors) Error

func (c CloseErrors) Error() string

type Driver

type Driver struct {
	sync.RWMutex

	Err error
	// contains filtered or unexported fields
}

func New

func New() (*Driver, error)

New returns a driver based on the js webmidi standard

func (*Driver) Close

func (d *Driver) Close() (err error)

Close closes all open ports. It must be called at the end of a session.

func (*Driver) Ins

func (d *Driver) Ins() (ins []midi.In, err error)

Ins returns the available MIDI input ports

func (*Driver) Outs

func (d *Driver) Outs() (outs []midi.Out, err error)

Outs returns the available MIDI output ports

func (*Driver) String

func (d *Driver) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL