Documentation
¶
Index ¶
- Constants
- type SerialPort
- func (sp *SerialPort) Close()
- func (sp *SerialPort) SendAllOff()
- func (sp *SerialPort) SendAnalogGain(g int)
- func (sp *SerialPort) SendFineTune(ch, INT, FRAC int)
- func (sp *SerialPort) SendFineTuneByFloat(ch int, r float64)
- func (sp *SerialPort) SendKeyOff(ch, ToneNum int)
- func (sp *SerialPort) SendKeyOn(ch int, note enums.Note, delta float64, VoVol, ToneNum int)
- func (sp *SerialPort) SendMasterVolume(v int)
- func (sp *SerialPort) SendMuteAndEGReset(ch int)
- func (sp *SerialPort) SendPitch(ch int, note enums.Note, delta float64)
- func (sp *SerialPort) SendSeqVol(v int)
- func (sp *SerialPort) SendTerminate()
- func (sp *SerialPort) SendTones(data []*voice.VM35FMVoice)
- func (sp *SerialPort) SendVibrato(ch, vib int)
- func (sp *SerialPort) SendVolume(ch, ChVol int, DIR_CV bool)
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) 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) SendMuteAndEGReset ¶
func (sp *SerialPort) SendMuteAndEGReset(ch int)
func (*SerialPort) SendPitch ¶
func (sp *SerialPort) SendPitch(ch int, note enums.Note, delta float64)
func (*SerialPort) SendTerminate ¶
func (sp *SerialPort) SendTerminate()
func (*SerialPort) SendTones ¶
func (sp *SerialPort) SendTones(data []*voice.VM35FMVoice)
func (*SerialPort) SendVolume ¶
func (sp *SerialPort) SendVolume(ch, ChVol int, DIR_CV bool)
0<=ChVol<32
Click to show internal directories.
Click to hide internal directories.