serial

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaudRate = 76800 //38400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SerialPort

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

func NewSerialPort

func NewSerialPort(deviceName string) (*SerialPort, error)

func (*SerialPort) Close

func (sp *SerialPort) Close()

func (*SerialPort) SendAllOff

func (sp *SerialPort) SendAllOff()

func (*SerialPort) SendAnalogGain

func (sp *SerialPort) SendAnalogGain(g int)

0<=g<4

func (*SerialPort) SendFineTune

func (sp *SerialPort) SendFineTune(ch, INT, FRAC int)

0<=INT<4 0<=FRAC<512

func (*SerialPort) SendFineTuneByFloat

func (sp *SerialPort) SendFineTuneByFloat(ch int, r float64)

func (*SerialPort) SendKeyOff

func (sp *SerialPort) SendKeyOff(ch, ToneNum int)

func (*SerialPort) SendKeyOn

func (sp *SerialPort) SendKeyOn(ch int, note enums.Note, delta float64, VoVol, ToneNum int)

func (*SerialPort) SendMasterVolume

func (sp *SerialPort) SendMasterVolume(v int)

0<=v<64

func (*SerialPort) SendMuteAndEGReset

func (sp *SerialPort) SendMuteAndEGReset(ch int)

func (*SerialPort) SendPitch

func (sp *SerialPort) SendPitch(ch int, note enums.Note, delta float64)

func (*SerialPort) SendSeqVol

func (sp *SerialPort) SendSeqVol(v int)

0<=v<32

func (*SerialPort) SendTerminate

func (sp *SerialPort) SendTerminate()

func (*SerialPort) SendTones

func (sp *SerialPort) SendTones(data []*voice.VM35FMVoice)

func (*SerialPort) SendVibrato

func (sp *SerialPort) SendVibrato(ch, vib int)

0<=vib<8

func (*SerialPort) SendVolume

func (sp *SerialPort) SendVolume(ch, ChVol int, DIR_CV bool)

0<=ChVol<32

Jump to

Keyboard shortcuts

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