|
Audpanel User's Guideauthor: Geoffrey Zheng, 4/13/1999 Audpanel is a graphical tool for testing .aud files, which contain instructions for VSS. Audpanel provides several kinds of controllers to control and send actor parameters, so that user can tweak the parameters to find a proper sound, or learn the interaction between various actors. It is a higher level tool than audtest. Think of it as a "stub" taking the place of your entire application, while you're working on the audio part. Audpanel uses a pair of files, preferably using the same name with different extensions .ap(or .audpanel) and .aud. The .ap file sets up the audpanel interface and its interaction between the .aud file, which is nothing more than a generic .aud file. To run audpanel, type audpanel <filename>.ap <filename>.aud or simply audpanel <filename>.* if you conform to the naming convention. Before the filenames, audpanel optionally takes an argument of -host <hostname>. <hostname> will then override any environment variable SOUNDSERVER which you may have defined as the machine which will be running VSS. This is particularly convenient for Windows, where setting environment variables can be a pain (do specify the host as a numerical IP address instead of a name in Windows, though). Audpanel typically looks like this:
What you see here is a group of controllers and some other things. Usually you'll select a preset from the Presets box to choose a group of controllers, and then set the values of these controllers. These values will be sent to the corresponding .aud file via message groups. There are three ways to send the parameters, which can be chosen from the radio buttons at the bottom left of the audpanel:
Don't do anything unless the Hit button is hit, then all parameters are sent once. Whenever any parameter is changed by the user, all the parameters are sent. This is the default behavior. Keep sending all parameters at the time interval specified by the Sending Interval slider at the bottom of the audpanel. To create your own audpanel, the best way is to modify an exisiting one. Let's start with the demo audpanel shown above. First the .ap file: apdemo.ap
A .ap file always consists of a header followed by one or more preset definitions. The header gives some general information about the audpanel. A preset, as stated before, is a group of controllers. In this example, Preset1 is a demo set for all 5 types of controllers, and Preset2 is for controlling an FM sound. A preset has several properties that describes the behavior of all its controllers. The names of the properties suggest what they're for. The details of .ap file syntax are described later in this document. Now just keep in mind the message group for each preset, and label and mapping of each controller, then go on to the .aud file: apdemo.aud // Companion .aud file for apdemo.ap SetPrintCommands 1; a = Create FmActor; s1 = BeginSound a SetAmp 0; s2 = BeginSound a SetAmp 0; msg1 = Create MessageGroup; msg1_button = Create MessageGroup; msg1_radio = Create MessageGroup; msg1_square_Start = Create MessageGroup; msg1_square_Move = Create MessageGroup; msg1_square_Stop = Create MessageGroup; msg2 = Create MessageGroup; msg2_RatioMode = Create MessageGroup; AddMessage msg1_button SetFooOnce FooActor; AddMessage msg1_radio SetFooState FooActor *0; AddMessage msg1 SetAmp s1 *2 *3; AddMessage msg1_square_Start SetFooStart2D FooActor *0 *1; AddMessage msg1_square_Move SetFooMove2D FooActor *0 *1; AddMessage msg1_square_Stop SetFooStop2D FooActor *0 *1; AddMessage msg2 SetAmp s2 *0; AddMessage msg2 SetCarFreq s2 *1; AddMessage msg2 SetMCratio s2 *2; AddMessage msg2 SetModFreq s2 *3; AddMessage msg2_RatioMode SetRatioMode s2 *0; AddMessage msg2 SetModIndex s2 *5; AddMessage msg2 SetCarFeedback s2 *6; AddMessage msg2 SetModFeedback s2 *7; There are two basic message groups msg1 and msg2 in the .aud file, which carry only the values of the sliders. For other types of controllers, their labels are attached to msg1 and msg2 to specify the message group that the controllers use. The other controllers have separate message groups because they usually control things unrelated to the sliders themselves.
The square controller is a special-purpose input device, when
you want to control two continuous values at once. It sends three
message groups to VSS, one when the mouse is clicked inside the square,
one when the mouse is moved, and one when the mouse is released. The
names of these message groups are constructed by appending to the
standard name an underscore, the label of the square controller,
another underscore, and then one of "Start", "Move", or "Stop". In the
example we have msg1_square_Start, msg1_square_Move, and
msg1_square_Stop. All three message groups have two floating-point
arguments, corresponding to the x-y coordinates of the cursor in the
square.
Finally, you can insert comments in a .ap file by enclosing them in single quotes. (Audpanel's parser is based on an old SmallTalk interpreter, that's why.) |
|
[Schedule] [Labs] [Beckman Meeting Rooms] [Equipment] [Projects] [CUBE Projects] [Syzygy] [VSS] [People] [Events] [Publications] |