VSQ ファイルのシーケンスを保持するクラス
フィールドの概要 | |
---|---|
Master
|
master
プリメジャーを保持する |
Mixer
|
mixer
ミキサー情報 |
?
|
tag
シーケンスに付属するタグ情報 |
TempoList
|
tempoList
テンポ情報を保持したテーブル |
TimesigList
|
timesigList
拍子情報を保持したテーブル |
List<Track>
|
track
トラックのリスト。 |
コンストラクタの概要 | |
---|---|
static Sequence
|
new(string singer,int preMeasure,int numerator,int denominator,int tempo)
初期化を行う |
メソッドの概要 | |
---|---|
Sequence
|
clone()
コピーを作成する |
int
|
getBaseTempo()
テンポが一つも指定されていない場合の、基本テンポ値を取得する |
int
|
getPreMeasure()
プリメジャー値を取得する |
int
|
getPreMeasureClocks()
Tick 単位のプリメジャー部分の長さを取得する |
int
|
getTickPerQuarter()
四分音符あたりの Tick 数を取得する |
int
|
getTotalClocks()
Tick 単位の曲の長さを取得する シーケンスに変更を加えた場合、 updateTotalClocks を呼んでからこのメソッドを呼ぶこと
|
void
|
updateTotalClocks()
totalClock の値を更新する |
void
|
write(? extends OutputStream stream,int msPreSend,string encoding)
ストリームに出力する |
void
|
write(? extends OutputStream stream,int msPreSend,string encoding,boolean printPitch)
ストリームに出力する |
フィールドの詳細 |
---|
public Master master
public Mixer mixer
public ? tag
public TempoList tempoList
public TimesigList timesigList
public List<Track> track
コンストラクタの詳細 |
---|
public static Sequence new(string singer, int preMeasure, int numerator, int denominator, int tempo)
singer
- 歌手名
preMeasure
- 小節単位のプリメジャー
numerator
- 拍子の分子の値
denominator
- 拍子の分母の値
tempo
- テンポ値。四分音符の長さのマイクロ秒単位の長さ
メソッドの詳細 |
---|
public Sequence clone()
public int getBaseTempo()
public int getPreMeasure()
public int getPreMeasureClocks()
public int getTickPerQuarter()
public int getTotalClocks()
updateTotalClocks
を呼んでからこのメソッドを呼ぶこと
public void updateTotalClocks()
public void write(? extends OutputStream stream, int msPreSend, string encoding)
stream
- 出力先のストリーム
msPreSend
- ミリ秒単位のプリセンドタイム
encoding
- マルチバイト文字のテキストエンコーディング(現在は Shift_JIS 固定で、引数は無視される)
public void write(? extends OutputStream stream, int msPreSend, string encoding, boolean printPitch)
stream
- 出力先のストリーム
msPreSend
- ミリ秒単位のプリセンドタイム
encoding
- マルチバイト文字のテキストエンコーディング(現在は Shift_JIS 固定で、引数は無視される)
printPitch
- pitch を含めて出力するかどうか(現在は false
固定で、引数は無視される)