移動先: 概要 戻り値 フラグ. MEL 例.

概要

sound [-file string] [-length] [-name string] [-offset time] [objects]

sound は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

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

戻り値

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

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

file, length, name, offset
ロング ネーム(ショート ネーム) 引数型 プロパティ
-file(-f) string createqueryedit
サウンド ファイルの名前です。
-offset(-o) time createqueryedit
サウンドを起動する時間です。
-name(-n) string createqueryedit
作成するオーディオ ノードに付与する名前です。
-length(-l) query
サウンドの長さ(カレント タイム単位)です。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

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;