midiio

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package midiio provides helpers for connecting io.Readers and io.Writers to midi.Readers and midi.Writers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(from midi.Reader) io.Reader

NewReader returns an io.Reader that can be read of by third party libraries that expect midi as bytes. When the data is read, it gets the midi as typed midi.Messages from the given midi.Reader

func NewWriter

func NewWriter(to midi.Writer) io.Writer

NewWriter allows us to pass our custom midi.Writer and returns an io.Writer that we can write the bytes to. This is important, if we get the midi bytes from a third party library as bytes but want to use them as typed midi.Messages

Types

This section is empty.

Jump to

Keyboard shortcuts

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