継承
メソッド
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 |