smf

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG_TEST = false

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(s *score.Score, midifile string, options ...smfwriter.Option) (err error)

WriteFile writes the score to the given SMF file

func WriteSMFTo

func WriteSMFTo(s *score.Score, wr io.Writer, filegroup string, options ...smfwriter.Option) error

Types

type MidiTrack

type MidiTrack struct {
	Track struct {
		MIDITranspose  int8
		PitchbendRange uint8
	}

	PrevKey       uint8
	PrevVel       int8
	PrevPitchbend int16
	VelocityScale [5]uint8 // min max randomness steps, center
	// contains filtered or unexported fields
}

func (*MidiTrack) GlideResolution

func (mw *MidiTrack) GlideResolution(ticks uint32) uint32

func (*MidiTrack) Reset

func (mw *MidiTrack) Reset()

type Track

type Track struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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