Documentation
¶
Index ¶
- Variables
- type Track
- func (t *Track) SetAmbitus(ambString string) error
- func (t *Track) SetBank(data string) error
- func (t *Track) SetChannel(data string) error
- func (t *Track) SetDelay(data string) error
- func (t *Track) SetFileGroup(data string) error
- func (t *Track) SetImport(importFrom string) error
- func (t *Track) SetPitchbendrange(data string) error
- func (t *Track) SetProgram(data string) error
- func (t *Track) SetSoloGroup(data string) error
- func (t *Track) SetTranspose(data string) error
- func (t *Track) SetVelScale(velScale string) error
- func (t *Track) SetVolume(data string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultVeloctiyScale = [5]uint8{1, 127, 4, 15, 63}
Functions ¶
This section is empty.
Types ¶
type Track ¶
type Track struct {
Name string
FileGroup string
Import string
MIDIChannel int8
MIDIProgram int8
MIDIBank int8
MIDIVolume int8
MIDITranspose int8 // only transposes Notes not MIDINotes
Delay [2]int // fraction of 4/4
PitchbendRange uint8
// velocity-scale property to refine velocity conversion (min, max, randomize-factor, step-width)
VelocityScale [5]uint8 // 0: min 1: max 2: randomize-factor 3: step-width, 4: center
/*
ambitus from: to:
*/
Ambitus [2]string // notes
AmbitusCutOverFlow bool
EndPos uint
SoloGroup int // x < 0 = never export; x = 0 = no solo group (will only be exported without solo); x > 0 = number of the solo group (only relevant in solo mode)
}
func (*Track) SetAmbitus ¶ added in v1.0.2
func (*Track) SetChannel ¶
setTrackChannel sets the MIDI channel of a track
func (*Track) SetFileGroup ¶
func (*Track) SetPitchbendrange ¶
func (*Track) SetProgram ¶
setTrackProgram sets the MIDI program value of a track
func (*Track) SetSoloGroup ¶ added in v1.2.2
SetSoloGroup sets the sologroup of a track
func (*Track) SetTranspose ¶
setTrackTranspose sets the MIDITranspose for a track
func (*Track) SetVelScale ¶
Click to show internal directories.
Click to hide internal directories.