継承
メソッド
clearScriptData()
deleteTake(takeId)
IDによってリテイクを削除します。
注意:デフォルトリテイク(ID 0)は削除できません。
パラメータ:
名前 | 型 | 細細 |
---|---|---|
takeId |
number |
the ID of the retake to delete |
generateTake(newDuration, newPitch, newTimbre) → {number}
指定されたバリエーションパラメータで新しいリテイクを生成します。
新しく生成されたリテイクのIDを返します。
パラメータ:
名前 | 型 | 細細 |
---|---|---|
newDuration |
boolean |
whether to generate new duration variation |
newPitch |
boolean |
whether to generate new pitch variation |
newTimbre |
boolean |
whether to generate new timbre variation |
戻り値:
the ID of the newly generated retake
- 型
- number
getIndexInParent() → {number}
現在のオブジェクトの、親の中での添え字を取得します。Lua では、添え字は 1 から始まります。JavaScript では、添え字は 0 から始まります。
戻り値:
- 型
- number
getNumTakes() → {number}
このリスト内のリテイク数を取得します。
戻り値:
number of retakes
- 型
- 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
removeScriptData(key)
パラメータ:
名前 | 型 | 細細 |
---|---|---|
key |
string |
The key to remove |
setActiveTake(takeId)
IDによってアクティブなリテイクを設定します。
アクティブなリテイクは、レンダリングに使用されるバリエーションを決定します。
パラメータ:
名前 | 型 | 細細 |
---|---|---|
takeId |
number |
the ID of the retake to set as active |
setScriptData(key, value)
パラメータ:
名前 | 型 | 細細 |
---|---|---|
key |
string |
The key to store the value under |
value |
any |
The value to store (must be JSON-serializable) |