ジャンプ先: 概要. 戻り値. フラグ. MEL 例.

概要

sound [-endTime time] [-file string] [-length] [-mute boolean] [-name string] [-offset time] [-sourceEnd time] [-sourceStart time] [objects]

sound は、取り消し可能、照会可能、および編集可能です。

サウンド スクラブおよび再生中のサウンドをサポートする soundControl や timeControl などの UI コマンドで使用できるオーディオ ノードを作成します。

戻り値

string作成されたオーディオ ノードの名前

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

フラグ

endTime, file, length, mute, name, offset, sourceEnd, sourceStart
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-endTime(-et) time createqueryedit
サウンドを終了する時間です。
-file(-f) string createqueryedit
サウンド ファイルの名前です。
-length(-l) query
サウンドの長さを照会します(現在のタイム単位で)。
-mute(-m) boolean createqueryedit
オーディオ クリップをミュートします。
-name(-n) string createqueryedit
作成するオーディオ ノードに付与する名前です。
-offset(-o) time createqueryedit
サウンドを起動する時間です。
-sourceEnd(-se) time createqueryedit
サウンドを終了する位置にあるサウンド ファイルの先頭からのオフセット時間。
-sourceStart(-ss) time createqueryedit
サウンドを開始する位置にあるサウンド ファイルの先頭からのオフセット時間。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Create an audio node for a sound file, and have it
// start at time 10.  This command will return the name
// of the created node, something like "audio1".
//
sound -offset 10 -file "ohNo.aiff";

// In order to have this sound displayed in a
// timeControl widget (like the timeSlider) use a
// command like this one, where the global MEL variable
// $gPlayBackSlider is the name of the widget to display
// the sound in.
//
global string $gPlayBackSlider;
timeControl -edit -sound audio1 $gPlayBackSlider;