|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--javax.sound.midi.MidiFileFormat
MidiFileFormat オブジェクトは、MIDI ファイルのタイプを長さおよびタイミング情報とともにカプセル化します。
MidiSystem.getMidiFileFormat(java.io.File),
Sequencer.setSequence(java.io.InputStream stream)| フィールドの概要 | |
protected int |
byteLength
MIDI ファイルの長さをバイトで表示したものです。 |
protected float |
divisionType
MIDI ファイルの分割形式です。 |
protected long |
microsecondLength
MIDI ファイルのデュレーションをマイクロ秒で表示したものです。 |
protected int |
resolution
MIDI ファイルのタイミング解像度です。 |
protected int |
type
MIDI ファイルのタイプです。 |
static int |
UNKNOWN_LENGTH
長さが未知であることを表します。 |
| コンストラクタの概要 | |
MidiFileFormat(int type,
float divisionType,
int resolution,
int bytes,
long microseconds)
MidiFileFormat を構築します。 |
|
| メソッドの概要 | |
int |
getByteLength()
MIDI ファイルの長さを 8 ビットバイト単位で取得します。 |
float |
getDivisionType()
MIDI ファイルのタイミング分割形式を取得します。 |
long |
getMicrosecondLength()
MIDI ファイルの長さをマイクロ秒単位で取得します。 |
int |
getResolution()
MIDI ファイルのタイミング解像度を取得します。 |
int |
getType()
MIDI ファイルタイプを取得します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
public static final int UNKNOWN_LENGTH
protected int type
protected float divisionType
Sequence.PPQ,
Sequence.SMPTE_24,
Sequence.SMPTE_25,
Sequence.SMPTE_30DROP,
Sequence.SMPTE_30protected int resolution
protected int byteLength
protected long microsecondLength
| コンストラクタの詳細 |
public MidiFileFormat(int type,
float divisionType,
int resolution,
int bytes,
long microseconds)
MidiFileFormat を構築します。type - MIDI ファイルタイプdivisionType - タイミング分割形式 (PPQ または SMPTE 形式の 1 つ)resolution - タイミング解像度bytes - バイト単位での MIDI ファイルのデュレーションmicroseconds - マイクロ秒単位での MIDI ファイルのデュレーションUNKNOWN_LENGTH,
Sequence.PPQ,
Sequence.SMPTE_24,
Sequence.SMPTE_25,
Sequence.SMPTE_30DROP,
Sequence.SMPTE_30| メソッドの詳細 |
public int getType()
public float getDivisionType()
Sequence.Sequence(float, int),
Sequence.PPQ,
Sequence.SMPTE_24,
Sequence.SMPTE_25,
Sequence.SMPTE_30DROP,
Sequence.SMPTE_30,
Sequence.getDivisionType()public int getResolution()
getDivisionType(),
Sequence.getResolution()public int getByteLength()
public long getMicrosecondLength()
Sequence.getMicrosecondLength(),
getByteLength()
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.