vsqx

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSinger = "Yukari_Onn"

Functions

func IsValidSinger added in v0.4.0

func IsValidSinger(singer string) bool

func Singers added in v0.4.0

func Singers() []string

Types

type AUX

type AUX struct {
	XMLName xml.Name `xml:"aux"`
	AUXID   CData    `xml:"auxID"`
	Content CData    `xml:"content"`
}

type Attr

type Attr struct {
	XMLName xml.Name `xml:"attr"`
	Value   int      `xml:",chardata"`
	ID      string   `xml:"id,attr"`
}

type CData

type CData struct {
	Data string `xml:",cdata"`
	Lock int    `xml:"lock,attr,omitempty"`
}

type KaraokeTrack

type KaraokeTrack struct {
	XMLName xml.Name `xml:"karaokeTrack"`
}

type KaraokeUnit

type KaraokeUnit struct {
	XMLName xml.Name `xml:"karaokeUnit"`
	InGain  int      `xml:"inGain"`
	Mute    int      `xml:"mute"`
	Solo    int      `xml:"solo"`
	Vol     int      `xml:"vol"`
}

type MCtrl

type MCtrl struct {
	XMLName xml.Name `xml:"mCtrl"`
	PosTick int      `xml:"posTick"`
	Attr    []Attr   `xml:"attr"`
}

type MasterTrack

type MasterTrack struct {
	XMLName    xml.Name `xml:"masterTrack"`
	SeqName    CData    `xml:"seqName"`
	Comment    CData    `xml:"comment"`
	Resolution int      `xml:"resolution"`
	PreMeasure int      `xml:"preMeasure"`
	TimeSig    TimeSig
	Tempo      Tempo
}

type MasterUnit

type MasterUnit struct {
	XMLName  xml.Name `xml:"masterUnit"`
	OutDev   int      `xml:"outDev"`
	RetLevel int      `xml:"retLevel"`
	Vol      int      `xml:"vol"`
}

type Mixer

type Mixer struct {
	XMLName     xml.Name `xml:"mixer"`
	MasterUnit  MasterUnit
	VSUnit      VSUnit
	SEUnit      SEUnit
	KaraokeUnit KaraokeUnit
}

type MusicalPart

type MusicalPart struct {
	XMLName     xml.Name `xml:"musicalPart"`
	PosTick     int      `xml:"posTick"`
	PlayTime    int      `xml:"playTime"`
	PartName    CData    `xml:"partName"`
	Comment     CData    `xml:"comment"`
	StylePlugin StylePlugin
	PartStyle   []Attr `xml:"partStyle>attr"`
	Singer      Singer
	MCtrl       []MCtrl `xml:"mCtrl,omitempty"`
	Note        []Note  `xml:"note"`
}

type Note

type Note struct {
	XMLName   xml.Name `xml:"note"`
	PosTick   int      `xml:"posTick"`
	DurTick   int      `xml:"durTick"`
	NoteNum   int      `xml:"noteNum"`
	Velocity  int      `xml:"velocity"`
	Lyric     CData    `xml:"lyric"`
	Phnms     CData    `xml:"phnms"`
	NoteStyle []Attr   `xml:"noteStyle>attr"`
}

type SETrack

type SETrack struct {
	XMLName xml.Name `xml:"seTrack"`
}

type SEUnit

type SEUnit struct {
	XMLName    xml.Name `xml:"seUnit"`
	InGain     int      `xml:"inGain"`
	SendLevel  int      `xml:"sendLevel"`
	SendEnable int      `xml:"sendEnable"`
	Mute       int      `xml:"mute"`
	Solo       int      `xml:"solo"`
	Pan        int      `xml:"pan"`
	Vol        int      `xml:"vol"`
}

type Singer

type Singer struct {
	XMLName xml.Name `xml:"singer"`
	PosTick int      `xml:"posTick"`
	BS      int      `xml:"vBS"`
	PC      int      `xml:"vPC"`
}

type StylePlugin

type StylePlugin struct {
	XMLName         xml.Name `xml:"stylePlugin"`
	StylePluginID   CData    `xml:"stylePluginID"`
	StylePluginName CData    `xml:"stylePluginName"`
	Version         CData    `xml:"version"`
}

type Tempo

type Tempo struct {
	XMLName xml.Name `xml:"tempo"`
	PosTick int      `xml:"posTick"`
	BPM     int      `xml:"bpm"`
}

type TimeSig

type TimeSig struct {
	XMLName xml.Name `xml:"timeSig"`
	PosMes  int      `xml:"posMes"`
	Nume    int      `xml:"nume"`
	Denomi  int      `xml:"denomi"`
}

type VSQ3

type VSQ3 struct {
	XMLName        xml.Name `xml:"vsq3"`
	XMLNS          string   `xml:"xmlns,attr"`
	XSI            string   `xml:"xmlns:xsi,attr"`
	SchemaLocation string   `xml:"xsi:schemaLocation,attr"`
	Vender         CData    `xml:"vender"`
	Version        CData    `xml:"version"`
	VoiceTable     VoiceTable
	Mixer          Mixer
	MasterTrack    MasterTrack
	VSTrack        VSTrack
	SETrack        SETrack
	KaraokeTrack   KaraokeTrack
	AUX            AUX
	// contains filtered or unexported fields
}

func Load

func Load(filename string) (*VSQ3, error)

func New

func New(singer string, resolution int, bpm float64) *VSQ3

func (*VSQ3) AddMCtrl

func (vsq3 *VSQ3) AddMCtrl(tick int, id string, value int)

func (*VSQ3) AddNote

func (vsq3 *VSQ3) AddNote(velocity, beginTick, endTick, note int, lyrics, phnms string)

func (*VSQ3) Bytes

func (vsq3 *VSQ3) Bytes() []byte

func (*VSQ3) ExtendLastNote added in v0.4.0

func (vsq3 *VSQ3) ExtendLastNote(toTick, ifAfterTick int) bool

func (*VSQ3) LimitLastNote added in v0.4.0

func (vsq3 *VSQ3) LimitLastNote(toTick int) bool

func (*VSQ3) NoteCount added in v0.2.0

func (vsq3 *VSQ3) NoteCount() int

func (*VSQ3) String

func (vsq3 *VSQ3) String() string

type VSTrack

type VSTrack struct {
	XMLName     xml.Name `xml:"vsTrack"`
	VSTrackNo   int      `xml:"vsTrackNo"`
	TrackName   CData    `xml:"trackName"`
	Comment     CData    `xml:"comment"`
	MusicalPart MusicalPart
}

type VSUnit

type VSUnit struct {
	XMLName    xml.Name `xml:"vsUnit"`
	VSTrackNo  int      `xml:"vsTrackNo"`
	InGain     int      `xml:"inGain"`
	SendLevel  int      `xml:"sendLevel"`
	SendEnable int      `xml:"sendEnable"`
	Mute       int      `xml:"mute"`
	Solo       int      `xml:"solo"`
	Pan        int      `xml:"pan"`
	Vol        int      `xml:"vol"`
}

type Voice

type Voice struct {
	XMLName    xml.Name `xml:"vVoice"`
	BS         int      `xml:"vBS"`
	PC         int      `xml:"vPC"`
	CompID     CData    `xml:"compID"`
	VoiceName  CData    `xml:"vVoiceName"`
	VoiceParam VoiceParam
}

type VoiceParam

type VoiceParam struct {
	XMLName xml.Name `xml:"vVoiceParam"`
	BRE     int      `xml:"bre"`
	BRI     int      `xml:"bri"`
	CLE     int      `xml:"cle"`
	GEN     int      `xml:"gen"`
	OPE     int      `xml:"ope"`
}

type VoiceTable

type VoiceTable struct {
	XMLName xml.Name `xml:"vVoiceTable"`
	Voice   Voice
}

Jump to

Keyboard shortcuts

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