TrackMixer

TrackMixer

ゲイン、パン、ミュート、ソロの各コントロールを含むオーディオミキシング用のトラックミキサーです。

(2.1.1以降でサポート)

継承

メソッド

clearScriptData()

継承元:

getGainDecibel() → {number}

ゲインをデシベルで取得します。

戻り値:

デシベル単位のゲイン値

number

getIndexInParent() → {number}

継承元:

現在のオブジェクトの、親の中での添え字を取得します。Lua では、添え字は 1 から始まります。JavaScript では、添え字は 0 から始まります。

戻り値:
number

getPan() → {number}

パンポジションを取得します。

戻り値:

パンポジション(-1.0で左、0.0で中央、1.0で右)

number

getParent() → {NestedObject|undefined}

継承元:

NestedObject を取得します。現在のオブジェクトが親に付いていない場合、undefined を返します。

戻り値:
NestedObject | undefined

getScriptData(key) → {any}

継承元:
パラメータ:
名前 細細
key string

The key to retrieve the value for

戻り値:

The stored value, or undefined if key doesn't exist

any

getScriptDataKeys() → {Array.<string>}

継承元:
戻り値:

Array of all stored keys

Array.<string>

hasScriptData(key) → {boolean}

継承元:
パラメータ:
名前 細細
key string

The key to check for

戻り値:

true if the key exists, false otherwise

boolean

isMemoryManaged() → {boolean}

継承元:

現在のオブジェクトがメモリ管理されているかどうか(スクリプト環境によってガベージコレクションされるか)を確認します。

戻り値:
boolean

isMuted() → {boolean}

トラックがミュートされているかどうかを確認します。

戻り値:

トラックがミュートされている場合はtrue、そうでなければfalse

boolean

isSolo() → {boolean}

トラックがソロ状態かどうかを確認します。

戻り値:

トラックがソロ状態の場合はtrue、そうでなければfalse

boolean

removeScriptData(key)

継承元:
パラメータ:
名前 細細
key string

The key to remove

setGainDecibel(gainDecibel)

ゲインをデシベルで設定します。

パラメータ:
名前 細細
gainDecibel number

デシベル単位のゲイン値(-24.0から24.0の間)

setMuted(muted)

トラックのミュート状態を設定します。

パラメータ:
名前 細細
muted boolean

トラックをミュートする場合はtrue、ミュートを解除する場合はfalse

setPan(pan)

パンポジションを設定します。

パラメータ:
名前 細細
pan number

パンポジション(-1.0で左、0.0で中央、1.0で右)

setScriptData(key, value)

継承元:
パラメータ:
名前 細細
key string

The key to store the value under

value any

The value to store (must be JSON-serializable)

setSolo(solo)

トラックのソロ状態を設定します。

パラメータ:
名前 細細
solo boolean

トラックをソロ状態にする場合はtrue、ソロを解除する場合はfalse