Documentation ¶
Index ¶
- Variables
- type VM35FMOperator
- func (*VM35FMOperator) Descriptor() ([]byte, []int)
- func (m *VM35FMOperator) GetAr() uint32
- func (m *VM35FMOperator) GetDam() uint32
- func (m *VM35FMOperator) GetDr() uint32
- func (m *VM35FMOperator) GetDt() uint32
- func (m *VM35FMOperator) GetDvb() uint32
- func (m *VM35FMOperator) GetEam() bool
- func (m *VM35FMOperator) GetEvb() bool
- func (m *VM35FMOperator) GetFb() uint32
- func (m *VM35FMOperator) GetKsl() uint32
- func (m *VM35FMOperator) GetKsr() bool
- func (m *VM35FMOperator) GetMulti() uint32
- func (m *VM35FMOperator) GetRr() uint32
- func (m *VM35FMOperator) GetSl() uint32
- func (m *VM35FMOperator) GetSr() uint32
- func (m *VM35FMOperator) GetSus() bool
- func (m *VM35FMOperator) GetTl() uint32
- func (m *VM35FMOperator) GetWs() uint32
- func (m *VM35FMOperator) GetXof() bool
- func (op *VM35FMOperator) Normalize() bool
- func (*VM35FMOperator) ProtoMessage()
- func (m *VM35FMOperator) Reset()
- func (m *VM35FMOperator) String() string
- func (m *VM35FMOperator) XXX_DiscardUnknown()
- func (m *VM35FMOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VM35FMOperator) XXX_Merge(src proto.Message)
- func (m *VM35FMOperator) XXX_Size() int
- func (m *VM35FMOperator) XXX_Unmarshal(b []byte) error
- type VM35FMVoice
- func (*VM35FMVoice) Descriptor() ([]byte, []int)
- func (m *VM35FMVoice) GetAlg() uint32
- func (m *VM35FMVoice) GetBo() uint32
- func (m *VM35FMVoice) GetDrumKey() uint32
- func (m *VM35FMVoice) GetLfo() uint32
- func (m *VM35FMVoice) GetOperators() []*VM35FMOperator
- func (m *VM35FMVoice) GetPanpot() uint32
- func (m *VM35FMVoice) GetPe() bool
- func (voice *VM35FMVoice) Normalize() bool
- func (*VM35FMVoice) ProtoMessage()
- func (m *VM35FMVoice) Reset()
- func (m *VM35FMVoice) String() string
- func (m *VM35FMVoice) XXX_DiscardUnknown()
- func (m *VM35FMVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VM35FMVoice) XXX_Merge(src proto.Message)
- func (m *VM35FMVoice) XXX_Size() int
- func (m *VM35FMVoice) XXX_Unmarshal(b []byte) error
- type VM35FMVoiceVersion
- type VM35PCMVoice
- func (*VM35PCMVoice) Descriptor() ([]byte, []int)
- func (m *VM35PCMVoice) GetRawData() []byte
- func (voice *VM35PCMVoice) Normalize() bool
- func (*VM35PCMVoice) ProtoMessage()
- func (m *VM35PCMVoice) Reset()
- func (m *VM35PCMVoice) String() string
- func (m *VM35PCMVoice) XXX_DiscardUnknown()
- func (m *VM35PCMVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VM35PCMVoice) XXX_Merge(src proto.Message)
- func (m *VM35PCMVoice) XXX_Size() int
- func (m *VM35PCMVoice) XXX_Unmarshal(b []byte) error
- type VM35VoicePC
- func (*VM35VoicePC) Descriptor() ([]byte, []int)
- func (m *VM35VoicePC) GetBankLsb() uint32
- func (m *VM35VoicePC) GetBankMsb() uint32
- func (m *VM35VoicePC) GetDrumNote() uint32
- func (m *VM35VoicePC) GetFmVoice() *VM35FMVoice
- func (m *VM35VoicePC) GetName() string
- func (m *VM35VoicePC) GetPc() uint32
- func (m *VM35VoicePC) GetPcmVoice() *VM35PCMVoice
- func (m *VM35VoicePC) GetVersion() VM35FMVoiceVersion
- func (m *VM35VoicePC) GetVoiceType() VoiceType
- func (pc *VM35VoicePC) Normalize() bool
- func (*VM35VoicePC) ProtoMessage()
- func (m *VM35VoicePC) Reset()
- func (m *VM35VoicePC) String() string
- func (m *VM35VoicePC) XXX_DiscardUnknown()
- func (m *VM35VoicePC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VM35VoicePC) XXX_Merge(src proto.Message)
- func (m *VM35VoicePC) XXX_Size() int
- func (m *VM35VoicePC) XXX_Unmarshal(b []byte) error
- type VM5VoiceLib
- func (*VM5VoiceLib) Descriptor() ([]byte, []int)
- func (lib *VM5VoiceLib) Get(msb, lsb, pc, note int) (*VM35VoicePC, bool)
- func (m *VM5VoiceLib) GetPrograms() []*VM35VoicePC
- func (lib *VM5VoiceLib) LoadBytes(b []byte) error
- func (lib *VM5VoiceLib) LoadFile(file string) error
- func (lib *VM5VoiceLib) Normalize() []*VM35VoicePC
- func (*VM5VoiceLib) ProtoMessage()
- func (m *VM5VoiceLib) Reset()
- func (m *VM5VoiceLib) String() string
- func (m *VM5VoiceLib) XXX_DiscardUnknown()
- func (m *VM5VoiceLib) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VM5VoiceLib) XXX_Merge(src proto.Message)
- func (m *VM5VoiceLib) XXX_Size() int
- func (m *VM5VoiceLib) XXX_Unmarshal(b []byte) error
- type VoiceType
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPC = &VM35VoicePC{ Version: VM35FMVoiceVersion_VM5, Name: "default", VoiceType: VoiceType_FM, FmVoice: &VM35FMVoice{ Panpot: 15, Bo: 1, Alg: 1, Operators: []*VM35FMOperator{ {}, {}, }, }, }
DefaultPC は、未定義の音色をロードしようとしたときに返されるデフォルト音色です。
View Source
var VM35FMVoiceVersion_name = map[int32]string{
0: "VM35FMVoiceVersion_MIN",
1: "VM3EXCLUSIVE",
2: "VM5",
}
View Source
var VM35FMVoiceVersion_value = map[string]int32{
"VM35FMVoiceVersion_MIN": 0,
"VM3LIB": 0,
"VM3EXCLUSIVE": 1,
"VM5": 2,
"VM35FMVoiceVersion_MAX": 2,
}
View Source
var VoiceType_name = map[int32]string{
0: "VoiceType_MIN",
1: "PCM",
2: "AL",
}
View Source
var VoiceType_value = map[string]int32{
"VoiceType_MIN": 0,
"FM": 0,
"PCM": 1,
"AL": 2,
"VoiceType_MAX": 2,
}
Functions ¶
This section is empty.
Types ¶
type VM35FMOperator ¶
type VM35FMOperator struct { Multi uint32 `protobuf:"varint,1,opt,name=multi" json:"multi,omitempty"` Dt uint32 `protobuf:"varint,2,opt,name=dt" json:"dt,omitempty"` Ar uint32 `protobuf:"varint,3,opt,name=ar" json:"ar,omitempty"` Dr uint32 `protobuf:"varint,4,opt,name=dr" json:"dr,omitempty"` Sr uint32 `protobuf:"varint,5,opt,name=sr" json:"sr,omitempty"` Rr uint32 `protobuf:"varint,6,opt,name=rr" json:"rr,omitempty"` Sl uint32 `protobuf:"varint,7,opt,name=sl" json:"sl,omitempty"` Tl uint32 `protobuf:"varint,8,opt,name=tl" json:"tl,omitempty"` Ksl uint32 `protobuf:"varint,9,opt,name=ksl" json:"ksl,omitempty"` Dam uint32 `protobuf:"varint,10,opt,name=dam" json:"dam,omitempty"` Dvb uint32 `protobuf:"varint,11,opt,name=dvb" json:"dvb,omitempty"` Fb uint32 `protobuf:"varint,12,opt,name=fb" json:"fb,omitempty"` Ws uint32 `protobuf:"varint,13,opt,name=ws" json:"ws,omitempty"` Xof bool `protobuf:"varint,14,opt,name=xof" json:"xof,omitempty"` Sus bool `protobuf:"varint,15,opt,name=sus" json:"sus,omitempty"` Ksr bool `protobuf:"varint,16,opt,name=ksr" json:"ksr,omitempty"` Eam bool `protobuf:"varint,17,opt,name=eam" json:"eam,omitempty"` Evb bool `protobuf:"varint,18,opt,name=evb" json:"evb,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VM35FMOperator) Descriptor ¶
func (*VM35FMOperator) Descriptor() ([]byte, []int)
func (*VM35FMOperator) GetAr ¶
func (m *VM35FMOperator) GetAr() uint32
func (*VM35FMOperator) GetDam ¶
func (m *VM35FMOperator) GetDam() uint32
func (*VM35FMOperator) GetDr ¶
func (m *VM35FMOperator) GetDr() uint32
func (*VM35FMOperator) GetDt ¶
func (m *VM35FMOperator) GetDt() uint32
func (*VM35FMOperator) GetDvb ¶
func (m *VM35FMOperator) GetDvb() uint32
func (*VM35FMOperator) GetEam ¶
func (m *VM35FMOperator) GetEam() bool
func (*VM35FMOperator) GetEvb ¶
func (m *VM35FMOperator) GetEvb() bool
func (*VM35FMOperator) GetFb ¶
func (m *VM35FMOperator) GetFb() uint32
func (*VM35FMOperator) GetKsl ¶
func (m *VM35FMOperator) GetKsl() uint32
func (*VM35FMOperator) GetKsr ¶
func (m *VM35FMOperator) GetKsr() bool
func (*VM35FMOperator) GetMulti ¶
func (m *VM35FMOperator) GetMulti() uint32
func (*VM35FMOperator) GetRr ¶
func (m *VM35FMOperator) GetRr() uint32
func (*VM35FMOperator) GetSl ¶
func (m *VM35FMOperator) GetSl() uint32
func (*VM35FMOperator) GetSr ¶
func (m *VM35FMOperator) GetSr() uint32
func (*VM35FMOperator) GetSus ¶
func (m *VM35FMOperator) GetSus() bool
func (*VM35FMOperator) GetTl ¶
func (m *VM35FMOperator) GetTl() uint32
func (*VM35FMOperator) GetWs ¶
func (m *VM35FMOperator) GetWs() uint32
func (*VM35FMOperator) GetXof ¶
func (m *VM35FMOperator) GetXof() bool
func (*VM35FMOperator) Normalize ¶
func (op *VM35FMOperator) Normalize() bool
Normalize は、音色データから異常な値を排除し、正常化します。 元から正常な音色だったときは true を返します。
func (*VM35FMOperator) ProtoMessage ¶
func (*VM35FMOperator) ProtoMessage()
func (*VM35FMOperator) Reset ¶
func (m *VM35FMOperator) Reset()
func (*VM35FMOperator) String ¶
func (m *VM35FMOperator) String() string
func (*VM35FMOperator) XXX_DiscardUnknown ¶
func (m *VM35FMOperator) XXX_DiscardUnknown()
func (*VM35FMOperator) XXX_Marshal ¶
func (m *VM35FMOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VM35FMOperator) XXX_Merge ¶
func (dst *VM35FMOperator) XXX_Merge(src proto.Message)
func (*VM35FMOperator) XXX_Size ¶
func (m *VM35FMOperator) XXX_Size() int
func (*VM35FMOperator) XXX_Unmarshal ¶
func (m *VM35FMOperator) XXX_Unmarshal(b []byte) error
type VM35FMVoice ¶
type VM35FMVoice struct { DrumKey uint32 `protobuf:"varint,1,opt,name=drum_key,json=drumKey" json:"drum_key,omitempty"` Panpot uint32 `protobuf:"varint,2,opt,name=panpot" json:"panpot,omitempty"` Bo uint32 `protobuf:"varint,3,opt,name=bo" json:"bo,omitempty"` Lfo uint32 `protobuf:"varint,4,opt,name=lfo" json:"lfo,omitempty"` Pe bool `protobuf:"varint,5,opt,name=pe" json:"pe,omitempty"` Alg uint32 `protobuf:"varint,6,opt,name=alg" json:"alg,omitempty"` Operators []*VM35FMOperator `protobuf:"bytes,7,rep,name=operators" json:"operators,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VM35FMVoice) Descriptor ¶
func (*VM35FMVoice) Descriptor() ([]byte, []int)
func (*VM35FMVoice) GetAlg ¶
func (m *VM35FMVoice) GetAlg() uint32
func (*VM35FMVoice) GetBo ¶
func (m *VM35FMVoice) GetBo() uint32
func (*VM35FMVoice) GetDrumKey ¶
func (m *VM35FMVoice) GetDrumKey() uint32
func (*VM35FMVoice) GetLfo ¶
func (m *VM35FMVoice) GetLfo() uint32
func (*VM35FMVoice) GetOperators ¶
func (m *VM35FMVoice) GetOperators() []*VM35FMOperator
func (*VM35FMVoice) GetPanpot ¶
func (m *VM35FMVoice) GetPanpot() uint32
func (*VM35FMVoice) GetPe ¶
func (m *VM35FMVoice) GetPe() bool
func (*VM35FMVoice) Normalize ¶
func (voice *VM35FMVoice) Normalize() bool
Normalize は、音色データから異常な値を排除し、正常化します。 元から正常な音色だったときは true を返します。
func (*VM35FMVoice) ProtoMessage ¶
func (*VM35FMVoice) ProtoMessage()
func (*VM35FMVoice) Reset ¶
func (m *VM35FMVoice) Reset()
func (*VM35FMVoice) String ¶
func (m *VM35FMVoice) String() string
func (*VM35FMVoice) XXX_DiscardUnknown ¶
func (m *VM35FMVoice) XXX_DiscardUnknown()
func (*VM35FMVoice) XXX_Marshal ¶
func (m *VM35FMVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VM35FMVoice) XXX_Merge ¶
func (dst *VM35FMVoice) XXX_Merge(src proto.Message)
func (*VM35FMVoice) XXX_Size ¶
func (m *VM35FMVoice) XXX_Size() int
func (*VM35FMVoice) XXX_Unmarshal ¶
func (m *VM35FMVoice) XXX_Unmarshal(b []byte) error
type VM35FMVoiceVersion ¶
type VM35FMVoiceVersion int32
const ( VM35FMVoiceVersion_VM35FMVoiceVersion_MIN VM35FMVoiceVersion = 0 VM35FMVoiceVersion_VM3LIB VM35FMVoiceVersion = 0 VM35FMVoiceVersion_VM3EXCLUSIVE VM35FMVoiceVersion = 1 VM35FMVoiceVersion_VM5 VM35FMVoiceVersion = 2 VM35FMVoiceVersion_VM35FMVoiceVersion_MAX VM35FMVoiceVersion = 2 )
func (VM35FMVoiceVersion) EnumDescriptor ¶
func (VM35FMVoiceVersion) EnumDescriptor() ([]byte, []int)
func (VM35FMVoiceVersion) String ¶
func (x VM35FMVoiceVersion) String() string
type VM35PCMVoice ¶
type VM35PCMVoice struct { RawData []byte `protobuf:"bytes,1,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VM35PCMVoice) Descriptor ¶
func (*VM35PCMVoice) Descriptor() ([]byte, []int)
func (*VM35PCMVoice) GetRawData ¶
func (m *VM35PCMVoice) GetRawData() []byte
func (*VM35PCMVoice) Normalize ¶
func (voice *VM35PCMVoice) Normalize() bool
Normalize は、音色データから異常な値を排除し、正常化します。 元から正常な音色だったときは true を返します。
func (*VM35PCMVoice) ProtoMessage ¶
func (*VM35PCMVoice) ProtoMessage()
func (*VM35PCMVoice) Reset ¶
func (m *VM35PCMVoice) Reset()
func (*VM35PCMVoice) String ¶
func (m *VM35PCMVoice) String() string
func (*VM35PCMVoice) XXX_DiscardUnknown ¶
func (m *VM35PCMVoice) XXX_DiscardUnknown()
func (*VM35PCMVoice) XXX_Marshal ¶
func (m *VM35PCMVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VM35PCMVoice) XXX_Merge ¶
func (dst *VM35PCMVoice) XXX_Merge(src proto.Message)
func (*VM35PCMVoice) XXX_Size ¶
func (m *VM35PCMVoice) XXX_Size() int
func (*VM35PCMVoice) XXX_Unmarshal ¶
func (m *VM35PCMVoice) XXX_Unmarshal(b []byte) error
type VM35VoicePC ¶
type VM35VoicePC struct { Version VM35FMVoiceVersion `protobuf:"varint,1,opt,name=version,enum=smaf.VM35FMVoiceVersion" json:"version,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` BankMsb uint32 `protobuf:"varint,3,opt,name=bank_msb,json=bankMsb" json:"bank_msb,omitempty"` BankLsb uint32 `protobuf:"varint,4,opt,name=bank_lsb,json=bankLsb" json:"bank_lsb,omitempty"` Pc uint32 `protobuf:"varint,5,opt,name=pc" json:"pc,omitempty"` DrumNote uint32 `protobuf:"varint,6,opt,name=drum_note,json=drumNote" json:"drum_note,omitempty"` VoiceType VoiceType `protobuf:"varint,7,opt,name=voice_type,json=voiceType,enum=smaf.VoiceType" json:"voice_type,omitempty"` FmVoice *VM35FMVoice `protobuf:"bytes,8,opt,name=fm_voice,json=fmVoice" json:"fm_voice,omitempty"` PcmVoice *VM35PCMVoice `protobuf:"bytes,9,opt,name=pcm_voice,json=pcmVoice" json:"pcm_voice,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VM35VoicePC) Descriptor ¶
func (*VM35VoicePC) Descriptor() ([]byte, []int)
func (*VM35VoicePC) GetBankLsb ¶
func (m *VM35VoicePC) GetBankLsb() uint32
func (*VM35VoicePC) GetBankMsb ¶
func (m *VM35VoicePC) GetBankMsb() uint32
func (*VM35VoicePC) GetDrumNote ¶
func (m *VM35VoicePC) GetDrumNote() uint32
func (*VM35VoicePC) GetFmVoice ¶
func (m *VM35VoicePC) GetFmVoice() *VM35FMVoice
func (*VM35VoicePC) GetName ¶
func (m *VM35VoicePC) GetName() string
func (*VM35VoicePC) GetPc ¶
func (m *VM35VoicePC) GetPc() uint32
func (*VM35VoicePC) GetPcmVoice ¶
func (m *VM35VoicePC) GetPcmVoice() *VM35PCMVoice
func (*VM35VoicePC) GetVersion ¶
func (m *VM35VoicePC) GetVersion() VM35FMVoiceVersion
func (*VM35VoicePC) GetVoiceType ¶
func (m *VM35VoicePC) GetVoiceType() VoiceType
func (*VM35VoicePC) Normalize ¶
func (pc *VM35VoicePC) Normalize() bool
Normalize は、音色データから異常な値を排除し、正常化します。 元から正常な音色だったときは true を返します。
func (*VM35VoicePC) ProtoMessage ¶
func (*VM35VoicePC) ProtoMessage()
func (*VM35VoicePC) Reset ¶
func (m *VM35VoicePC) Reset()
func (*VM35VoicePC) String ¶
func (m *VM35VoicePC) String() string
func (*VM35VoicePC) XXX_DiscardUnknown ¶
func (m *VM35VoicePC) XXX_DiscardUnknown()
func (*VM35VoicePC) XXX_Marshal ¶
func (m *VM35VoicePC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VM35VoicePC) XXX_Merge ¶
func (dst *VM35VoicePC) XXX_Merge(src proto.Message)
func (*VM35VoicePC) XXX_Size ¶
func (m *VM35VoicePC) XXX_Size() int
func (*VM35VoicePC) XXX_Unmarshal ¶
func (m *VM35VoicePC) XXX_Unmarshal(b []byte) error
type VM5VoiceLib ¶
type VM5VoiceLib struct { Programs []*VM35VoicePC `protobuf:"bytes,1,rep,name=programs" json:"programs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VM5VoiceLib) Descriptor ¶
func (*VM5VoiceLib) Descriptor() ([]byte, []int)
func (*VM5VoiceLib) Get ¶
func (lib *VM5VoiceLib) Get(msb, lsb, pc, note int) (*VM35VoicePC, bool)
Get は、音色データを取得します。
func (*VM5VoiceLib) GetPrograms ¶
func (m *VM5VoiceLib) GetPrograms() []*VM35VoicePC
func (*VM5VoiceLib) LoadBytes ¶
func (lib *VM5VoiceLib) LoadBytes(b []byte) error
LoadBytes は、バイト列から音色ライブラリをロードします。
func (*VM5VoiceLib) LoadFile ¶
func (lib *VM5VoiceLib) LoadFile(file string) error
LoadFile は、ファイルから音色ライブラリをロードします。
func (*VM5VoiceLib) Normalize ¶
func (lib *VM5VoiceLib) Normalize() []*VM35VoicePC
Normalize は、音色データから異常な値を排除し、正常化します。 異常が検出された音色の一覧を返します。
func (*VM5VoiceLib) ProtoMessage ¶
func (*VM5VoiceLib) ProtoMessage()
func (*VM5VoiceLib) Reset ¶
func (m *VM5VoiceLib) Reset()
func (*VM5VoiceLib) String ¶
func (m *VM5VoiceLib) String() string
func (*VM5VoiceLib) XXX_DiscardUnknown ¶
func (m *VM5VoiceLib) XXX_DiscardUnknown()
func (*VM5VoiceLib) XXX_Marshal ¶
func (m *VM5VoiceLib) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VM5VoiceLib) XXX_Merge ¶
func (dst *VM5VoiceLib) XXX_Merge(src proto.Message)
func (*VM5VoiceLib) XXX_Size ¶
func (m *VM5VoiceLib) XXX_Size() int
func (*VM5VoiceLib) XXX_Unmarshal ¶
func (m *VM5VoiceLib) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.