home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / pmsnd136.zip / pmsndx.hlp (.txt) < prev    next >
OS/2 Help File  |  1994-12-06  |  350KB  |  2,808 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4.                                    PMsndX 1.36
  5.                                        by
  6.                                 William S. Hiles
  7.                              copyright WiSHware Inc.
  8.  
  9. Please see Known Problems with this release for important information before 
  10. using this version of PMsndX. 
  11.  
  12. First off, what is PMsndX?  PMsndX is the acronym that I created to mean 
  13. Presentation Manager sound eXchange. PMsndX was written specifically for OS/2 
  14. to provide an editor for sound samples of many different formats.  The editor 
  15. goes beyond just a cut and paste tool like the Digital Audio applet provided 
  16. with OS/2 by providing a rich set of tools for manipulating samples in memory. 
  17. PMsndX utilizes a large set of features of OS/2 and if present, the MMPM/2 
  18. interface is used to allow playback of any of the supported formats from 
  19. memory. 
  20.  
  21. Using dialog boxes, PMsndX provides an intuitive user interface for utilizing 
  22. the clipboard, MMPM/2 AUDIO, and algorithms for adding special effects to 
  23. samples.  Everything is integrated together to make it easy to manage the 
  24. process of extracting or building samples in many different formats. 
  25.  
  26. Wow, you are still reading!  Well, now for some information on the user 
  27. interface.  There is nothing more frustrating than trying to use a program with 
  28. a difficult or complex user interface.  Twelve years ago I started programming 
  29. a TI99/4A in assembly language and from the start I have put more effort into a 
  30. clean user interface than anything.  It wasn't till I ran across JOEVIEW that I 
  31. realized that OS/2 had one of the most capable environments that I had seen. 
  32. Presentation Manager programming has got to be one of the easiest environments 
  33. to use and is a breeze compared to Microsoft Windows or the X environment. 
  34.  
  35. In any case, I spent more time on the user interface of this program than I 
  36. ever thought possible.  It is designed around a single coordinating window 
  37. populated by bitmaps.  Each bitmap has some sort of image that changes when the 
  38. button is pushed.  To make sure that the literate people out there (or the icon 
  39. impaired) understand the buttons, I put a bit of text on them to describe the 
  40. function. 
  41.  
  42. Now, I have used programs on a lot of platforms and I have my favorites along 
  43. with those that annoy me too.  My pet peeves are the applications like Procomm 
  44. for Windows which just assumes that you want the darn thing to fill up your 
  45. screen.  Or something like Microsoft Word which has so many menus and submenus 
  46. that it is hard to remember where a function is.  So, taking this into account, 
  47. I designed the interface such that the main functions of the program are 
  48. accessible from the main panel.  Pressing the button for the function will then 
  49. bring up a dialog box which asks for the necessary information.  Pushing the 
  50. button again will remove the dialog box.  I prefer this interface because it 
  51. provides a single point of control.  Well, you just need to play with it for a 
  52. bit to get an understanding of what I am talking about here. 
  53.  
  54.  
  55. ΓòÉΓòÉΓòÉ 2. Conventions ΓòÉΓòÉΓòÉ
  56.  
  57. Throughout the documentation provided with PMsndX a number of terms are used 
  58. which may be common to Presentation Manager programs but uncommon to 
  59. conversational English.  There are also terms which are specific to PMsndX 
  60. which may be new to a user of this program.  The intent of this section is not 
  61. to recreate the OS/2 documentation; rather, it is intended to identify some 
  62. basic terms necessary to understand the language used in this documentation. 
  63.  
  64.  Presentation Manager: 
  65.     The Presentation Manager is the Graphical User Interface (GUI) for most 
  66.     OS/2 systems.  There are other GUIs available for OS/2 but this is the most 
  67.     common and the one that comes with OS/2 out of the box.  In general most 
  68.     people refer to the Presentation Manager by the acronym PM. 
  69.  
  70.  SYSTEM MENU: 
  71.     Every PM program for OS/2 generally provides a SYSTEM MENU through an icon 
  72.     in the upper left corner of the window interface.  By default, the system 
  73.     menu will contain the basic functions necessary to control the window on 
  74.     the OS/2 PM desktop. 
  75.  
  76.  TITLE BAR: 
  77.     In order for a window to be moved about the desktop with the mouse, a 
  78.     window must have a titlebar.  This is the thick bar at the top of the 
  79.     window.  The titlebar provides another function in that it allows the 
  80.     program to display relevant messages to the user. 
  81.  
  82.  MINIMIZE BUTTON: 
  83.     A PM program may provide various control buttons for a window in the top 
  84.     right corner of a window.  One of these buttons is the MINIMIZE button. 
  85.     When the user selects this button, the window will be removed from the 
  86.     desktop and replaced by a small icon somewhere on the screen.  In most 
  87.     cases, the icon is placed at the bottom of the screen.  To restore the 
  88.     window the user can double click on the icon or can use a mouse button to 
  89.     bring up a menu and select Restore. 
  90.  
  91.  MAIN CONTROL PANEL: 
  92.     The main control panel for PMsndX is the window that is initially displayed 
  93.     when the program is executed.  This window is the main point of control for 
  94.     the program and provides access to all of the above mentioned controls as 
  95.     well as access to all of the functions of the program. 
  96.  
  97.  ACCELERATOR KEYS: 
  98.     The buttons on the main control panel and many of the controls in the 
  99.     associated tools provide accelerator keys.  These are marked on the 
  100.     displays by an underline.  To access the particular item without using the 
  101.     mouse, hold down the ALT key and press the underlined key.  As an example, 
  102.     to activate the OPEN button on the main control panel, hold down the ALT 
  103.     key and press the letter o. 
  104.  
  105.  Dialog Pushbuttons: 
  106.     PMsndX uses a number of buttons to convey an action that can be selected to 
  107.     perform a process.  In most cases, a common set of buttons are used; 
  108.     however, under special circumstances, a unique name may be used to convey 
  109.     the appropriate meaning.  The following are buttons that are commonly used. 
  110.  
  111.                         Stop an active thread 
  112.                         Reset the controls of the dialog box back to the way 
  113.                         they were the last time the APPLY button was pressed 
  114.                         Open the help window for the specific dialog that is 
  115.                         currently active 
  116.                         Display special information about the current dialog 
  117.                         box. 
  118.                         Start loading a file into memory 
  119.                         Open up the registration dialog box to enter a password 
  120.                         Redraw the display 
  121.                         Undo the last operation or effect 
  122.                         Save the current memory to a file 
  123.  
  124.  
  125. ΓòÉΓòÉΓòÉ 3. Mouse Pointer ΓòÉΓòÉΓòÉ
  126.  
  127. The mouse pointer is used as an indication of the state of the program.  When 
  128. the program is processing, the mouse pointer will be changed to a small dial 
  129. with 10 markers on the dial.  The percentage of work completed is then 
  130. indicated by the hand of the dial.  When the dial reaches the vertical 
  131. position, the work has been completed. 
  132.  
  133. There is one exception to this operation.  When the echo effect is used, the 
  134. dial for the pointer will rotate more than once. This is because the results of 
  135. the echo effect change the length of the data depending on the markers and 
  136. volumes such that the resulting length is unpredictable. 
  137.  
  138. PMsndX uses multiple threads to accomplish many of its tasks.  As a result, 
  139. when a file is loaded the clock may turn more than once because each thread 
  140. will run as the resources that it is waiting on complete.  An example of this 
  141. is opening a file when the AUDIO box is open.  In this case, as soon as the 
  142. file is completely loaded, the AUDIO task will immediately start copying it to 
  143. the buffer for the playlist and the clock will turn around a second time. 
  144.  
  145.  
  146. ΓòÉΓòÉΓòÉ 4. Command Line Parameters ΓòÉΓòÉΓòÉ
  147.  
  148. Although PMsndX is primarily designed around a point and click user interface, 
  149. it does accept parameters on the command line.  The effect of command line 
  150. parameters is dependent on the startup values set in the Properties dialog box. 
  151. When Play on Load or Play on commandline load is selected, all command line 
  152. parameters are treated as filenames and are automatically played through the 
  153. audio device or run as a REXX script. 
  154.  
  155. The extension of the file to be loaded is use to determine the type of sample; 
  156. therefore, samples loaded from the command line must contain a valid header. 
  157. Only one REXX script may be run from the command line.  All command line 
  158. processing ends after the first rexx script encountered. 
  159.  
  160. PMsndX may be used to simply play samples from the command line by setting Exit 
  161. after Play.  When this option is set, if any samples are provided on the 
  162. command line, PMsndX will exit after it completes playing each of the files. 
  163. If no parameters are specified, the normal user interface is started regardless 
  164. of the status of Exit after Play. 
  165.  
  166. After playing a rexx script, PMsndX will not exit regardless of the status of 
  167. Exit after Play.  To exit PMsndX after a rexx script, add the command PMSNDX 
  168. EXIT to the end of the REXX script. 
  169.  
  170.  
  171. ΓòÉΓòÉΓòÉ 5. System Menu ΓòÉΓòÉΓòÉ
  172.  
  173. As with any OS/2 program written for the Presentation Manager, PMsndX has an 
  174. icon in the top left corner of the control window.  Pressing this icon will 
  175. bring up a menu of system operations. 
  176.  
  177. The menu items provided in the system menu are: 
  178.  
  179.  Restore        Restore the windows after being minimized 
  180.  Move           Move the control window 
  181.  Size           Resize the main control panel 
  182.  Minimize       Minimize all of the windows of PMsndX to an icon 
  183.  Close          Close the all windows and exit 
  184.  About          Display information about the author and version and 
  185.                 registration 
  186.  Welcome        Display information about what is new to this version 
  187.  Help           Bring up the help system 
  188.  Reset Size     Reset the size of the main control panel to the default 
  189.  Properties     Change program operational parameters 
  190.  
  191.  
  192. ΓòÉΓòÉΓòÉ 5.1. Restore ΓòÉΓòÉΓòÉ
  193.  
  194. During the use of PMsndX, the user may select to Minimize the windows to an 
  195. icon on the desktop.  To restore the window from the icon the user may either 
  196. double click on the icon or may press a mouse button while the pointer is over 
  197. the icon to bring up the system menu and select the restore item. 
  198.  
  199.  
  200. ΓòÉΓòÉΓòÉ 5.2. Move ΓòÉΓòÉΓòÉ
  201.  
  202. PMsndX provides the standard controls for moving the windows around on the 
  203. desktop.  It is generally easiest to use the mouse to select the titlebar of 
  204. the window and drag the window to the new location.  If the user uses the 
  205. system menu to move the window, the mouse will be centered in the control 
  206. window and any movement of the mouse will move the window until a mouse button 
  207. is pressed. 
  208.  
  209.  
  210. ΓòÉΓòÉΓòÉ 5.3. Size ΓòÉΓòÉΓòÉ
  211.  
  212. PMsndX provides the standard control for resizing the main control panel.  When 
  213. resizing, the main control panel will automatically adjust the vertical size of 
  214. the window to maintain the aspect of the buttons. 
  215.  
  216.  
  217. ΓòÉΓòÉΓòÉ 5.4. Minimize ΓòÉΓòÉΓòÉ
  218.  
  219. All of the windows of PMsndX can be minimized quickly by either selecting the 
  220. minimize button on the upper right corner of the control panel or by using the 
  221. Minimize menu item of the system menu.  Either action performs the same 
  222. function. 
  223.  
  224.  
  225. ΓòÉΓòÉΓòÉ 5.5. Close ΓòÉΓòÉΓòÉ
  226.  
  227. To exit PMsndX the user can select the Close menu item from the system menu. 
  228. This is the default selection of the menu which enables the user to double 
  229. click on the PMsndX icon in the top left corner of the control panel to exit 
  230. the program. 
  231.  
  232. When the EXIT button is pressed, the program terminates.  If changes have been 
  233. made to the Properties box, the data will be saved to the initialization file 
  234. before the program exits.  Before exiting, PMsndX requests verification that 
  235. the user wants to exit to prevent accidentally exiting. All windows of PMsndX, 
  236. including any dialog boxes, are removed from the screen when the program 
  237. terminates. 
  238.  
  239. If the data in the memory buffers has been modified, PMsndX will warn the user 
  240. that there are modified buffers and ask for verification that the user really 
  241. wants to exit. 
  242.  
  243.  
  244. ΓòÉΓòÉΓòÉ 5.6. About ΓòÉΓòÉΓòÉ
  245.  
  246. To find out the current version and other information about PMsndX the About 
  247. menu item can be selected from the system menu.  This display also shows the 
  248. current registration status of the program and the registration can be updated 
  249. by pressing the REGISTER button. 
  250.  
  251. PMsndX is just one of the programs written by the Author for Intel based 
  252. machines.  All programs developed under the WiSHware Inc. name have been 
  253. developed solely by the author (duhh, the Author is the sole member of the 
  254. company) and are copyrighted by US Copyright laws. 
  255.  
  256.  
  257. ΓòÉΓòÉΓòÉ 5.7. Welcome ΓòÉΓòÉΓòÉ
  258.  
  259. The HISTORY.TXT file contains a very complete list of all the changes between 
  260. each of the versions.  When viewed as a whole, it also summarizes the total 
  261. functionality of PMsndX.  Each version has specific changes which are 
  262. highlighted in the Welcome display. This display also shows the current 
  263. registration status of the program and the registration can be updated by 
  264. pressing the REGISTER button. 
  265.  
  266.  
  267. ΓòÉΓòÉΓòÉ 5.8. Help ΓòÉΓòÉΓòÉ
  268.  
  269. PMsndX is equipped with extensive on line help that can be accessed by 
  270. selecting HELP from the system menu from the main control panel.  When this 
  271. item is selected a window will appear which will display the start of the help 
  272. information. Help can also be accessed by pressing Alt-H or the F1 key. 
  273.  
  274. Links to other text is displayed in a blue-green color and can be selected to 
  275. jump to that description in the text. When the control panel buttons appear in 
  276. a tabular form, the buttons are active links in the help like the blue-green 
  277. colored text.  Pressing these buttons will jump to the respective text. 
  278.  
  279.  
  280. ΓòÉΓòÉΓòÉ 5.9. Reset Size ΓòÉΓòÉΓòÉ
  281.  
  282. The default button size for the display is 64x64. At any time, the user may 
  283. select to reset the size of the main control panel so that it returns to the 
  284. defaults.  The main control panel may be resized, using the border of the 
  285. window. 
  286.  
  287.  
  288. ΓòÉΓòÉΓòÉ 5.10. Program Properties ΓòÉΓòÉΓòÉ
  289.  
  290. PMsndX can store a number of properties (user options) that users commonly set 
  291. in a file called pmsndx.ini.  The location of this file may be specified only 
  292. if PMsndX is registered; otherwise, the file will be located wherever the 
  293. executable program is started. From the PROPERTIES dialog box the user may 
  294. select to save the current window positions, open and save file path, maximum 
  295. memory, MMPM/2 options, and REXX options. 
  296.  
  297. After the user has set all of the information in the PROPERTIES dialog box, the 
  298. ACCEPT button must be used to save the changes. When this button is pressed, 
  299. the changes are applied. 
  300.  
  301. Note:  Changes to the maximum memory will be checked when a new sample is 
  302.        loaded or when an opertion that requires memory is attempted. 
  303.  
  304.  To restore the PROPERTIES box to the settings the last time the APPLY button 
  305.  was pressed, the CANCEL button can be used.  All information entered by the 
  306.  user is cleared and the PROPERTIES remain unchanged. 
  307.  
  308.  The window positions and file paths are maintained as long as PMsndX is 
  309.  running.  When PMsndX is terminated, it will not save the current positions 
  310.  and paths for file operations unless the boxes are checked in the PROPERTIES 
  311.  dialog box.  Selecting these buttons has no effect on remembering the current 
  312.  window positions during a single session; rather, they only affect saving the 
  313.  information between sessions. 
  314.  
  315.  Note:  The information in the PROPERTIES dialog box is only saved when the 
  316.         program is terminated.  If the SAVE CURRENT items are deselected, then 
  317.         the information will not be saved between sessions. 
  318.  
  319.  Finally, to remove the Properties dialog box from the screen, select close 
  320.  from the system menu or double click on the system menu icon for the 
  321.  properties dialog.  If the APPLY button has not been pressed, any changes made 
  322.  to the display will be lost. 
  323.  
  324.  
  325. ΓòÉΓòÉΓòÉ 5.10.1. Audio Properties ΓòÉΓòÉΓòÉ
  326.  
  327. Enable MMPM/2 Support 
  328.  
  329. PMsndX supports playing samples from memory directly to the MMPM/2 digital 
  330. audio device of OS/2.  This allows samples to be played without having to save 
  331. the sample to disk in the native .WAV format.  The PROPERTIES dialog box 
  332. provides controls for disabling or enabling MMPM/2 support and for controlling 
  333. the actions taken when a file is loaded (e.g. Play sample on load, convert to a 
  334. standard rate when loaded, and exit after play from the command line). 
  335. Additionally, the digital audio device may be specified. 
  336.  
  337. If the MMPM/2 capabilities of the program are not needed or if MMPM/2 support 
  338. is not installed on a particular system, the MMPM/2 may be disabled from the 
  339. PROPERTIES dialog box.  By disabling the MMPM/2 support, the button on the main 
  340. control panel for AUDIO is disabled.  By default the program will enable MMPM/2 
  341. support.  If MMPM/2 is available but disabled and the AUDIO button is selected, 
  342. a message is displayed to the user to indicate that the setting should be 
  343. turned on from the PROPERTIES dialog box. 
  344.  
  345. The controls for MMPM/2 and the ability to play the "playlist" using MMPM/2 
  346. utilize the files SW.DLL and MDM.DLL.  These are part of the standard MMPM/2 
  347. distribution and must be present in the DLL path for the MMPM/2 portion of this 
  348. program to operate.  The MMPM/2 support is not linked into the executable of 
  349. this program.  Rather, it is only loaded when the user enables it.  This allows 
  350. the program to run on machines which do not have MMPM/2 installed. 
  351.  
  352. The MMPM/2 functionality of PMsndX has been implemented to share the audio 
  353. device with other programs on the system. However, by disabling the MMPM/2 
  354. support, the audio device is freed up completely. 
  355.  
  356. Share audio device 
  357.  
  358. The audio device can be shared with the system such that while a sound is 
  359. playing, it may be interrupted by system sounds. 
  360.  
  361. Play on commandline load 
  362.  
  363. When the Play on commandline load box is selected, a sample will be played when 
  364. specified on the command line.  The AUDIO dialog is opened after the file has 
  365. been loaded to allow for user control.  This feature can be used in conjunction 
  366. with the Exit after commandline play to allow a sample to be played from the 
  367. command line without bringing up the full user interface. 
  368.  
  369. Play sample on Load 
  370.  
  371. If the Play sample on load box is selected, a sample is immediately played when 
  372. it is loaded into memory.  To provide control during playback, the AUDIO dialog 
  373. box is opened after the file has been loaded.  When this feature is used in 
  374. conjunction with the Exit after commandline play feature, PMsndX provides the 
  375. ability to play any supported sample file format from the command line and have 
  376. the program exit when it is finished. 
  377.  
  378. Note:  This setting does not affect playback of REXX scripts.  If a REXX script 
  379.        is specified on the command line, it will automatically start running. 
  380.        When a REXX script is run which contains the command AUDIO PLAY SYNC or 
  381.        AUDIO PLAY ASYNC the samples may start playing, and then restart.  This 
  382.        is because the file starts playing as soon as it is loaded and then the 
  383.        AUDIO command starts it over.  To avoid this, deselect the Play sample 
  384.        on load from the script prior to loading the file. 
  385.  
  386.  If this parameter is not specified, the sample will still be loaded from the 
  387.  command line; however, it will not be played until the presses the play button 
  388.  on the AUDIO dialog. 
  389.  
  390.  Exit after Play 
  391.  
  392.  The Exit after Play option provides the ability for PMsndX to exit after 
  393.  playing the sample when the file is loaded from the command line.  This is 
  394.  primarily intended to provide a means to play any of the supported formats 
  395.  from the command line. 
  396.  
  397.  Play 16 bits on 8 bit audio 
  398.  
  399.  The Play 16 bits on 8 bit audio option allows 16 bit samples to be played on 8 
  400.  bit audio adaptor.  Although most samples will produce square waves (resulting 
  401.  in noisy results), some will play (most notably .au files).  Although the data 
  402.  is sent to the audio device in 8 bit format, it is still maintained in its 
  403.  original format and all manipulations including saving the file are performed 
  404.  in the original size of the file. 
  405.  
  406.  Note:  When this option is selected, all files are played as 8 bit samples 
  407.         regardless of what is supported by the audio adapter.  Use this option 
  408.         only if you have an 8 bit card! 
  409.  
  410.  Device 
  411.  
  412.  Obviously not every machine has the same digital audio device.  PMsndX 
  413.  provides a means to use a different audio device than the default digital 
  414.  audio interface.  By default the device name is Waveaudio01.  Any Waveaudio 
  415.  device may be selected by entering the device name in the Device entry field. 
  416.  
  417.  Note:  Setting the audio device to an invalid string will cause random errors. 
  418.         The worst case is the PMsndX will crash whenever the AUDIO dialog is 
  419.         opened.  To reset the audio device back to Waveaudio01, clear this 
  420.         field and then exit PMsndX.  When PMsndX is reloaded, it will reset the 
  421.         device to Waveaudio01. 
  422.  
  423.  
  424. ΓòÉΓòÉΓòÉ 5.10.2. Memory Properties ΓòÉΓòÉΓòÉ
  425.  
  426. Maximum Sample Memory 
  427.  
  428. PMsndX takes advantage of OS/2's advanced memory management facilities.  When 
  429. the program is started, it only takes up the memory required for the executable 
  430. to load.  PMsndX then only requests memory from OS/2 when an operation requires 
  431. storage space for a sample.  The maximum memory limitation is provided to avoid 
  432. overcommitting the memory in the system and creating a large swap file. 
  433.  
  434. Memory is primarily used to hold samples for operations; however, whenever the 
  435. sound is manipulated in such a way that either the output has a different 
  436. number of samples or the operation requires the samples to remain in tact 
  437. during the entire operation, additional memory is used to hold the new data. 
  438. Once the operation has been completed, the memory is freed unless the UNDO 
  439. feature is enabled. When setting the maximum memory, the user must take into 
  440. account the size of the data in memory as well as the size of the results of 
  441. any operations. With the exception of Sampling Rate changes, the maximum memory 
  442. requirements will not exceed twice the size of a sample.  When changing rate, 
  443. the size is dependent on the new sampling rate.  If the new rate is higher than 
  444. the current rate, the memory requirements will increase.  If the new rate is 
  445. lower than the original rate, the memory requirements will shrink. 
  446.  
  447. If the user selects the AUTO mode for memory (the default), PMsndX will request 
  448. as much memory as OS/2 will give it. 
  449.  
  450. If the user chooses to limit the memory to a specific value, the AUTO checkbox 
  451. can be turned off and a value may be entered.  Since the minimum OS/2 memory 
  452. block size is 4096 (4k) bytes, the user may specify the number of 4k pages for 
  453. the limit.  The user may either use the up and down arrows to increment or 
  454. decrement the amount of memory or may place the cursor in the window and type 
  455. the specific value. 
  456.  
  457.  
  458. ΓòÉΓòÉΓòÉ 5.10.3. Misc Properties ΓòÉΓòÉΓòÉ
  459.  
  460. Enable UNDO 
  461.  
  462. When a sample file is changed through the editor or the tools or a new file is 
  463. loaded, the sample before the change is maintained so that it can be retrieved 
  464. by the user.  To access the UNDO feature, selecting the UNDO button on the Edit 
  465. dialog.  The UNDO feature is only available when PMsndX is registered. 
  466.  
  467. Note:  By default the UNDO feature is not enabled to conserve memory.
  468.  
  469.  Ignore unknown header blocks 
  470.  
  471.  Many sound formats contain optional header blocks and user defined header 
  472.  blocks which PMsndX may not support.  By default, PMsndX will warn the user 
  473.  when it encounters an unsupported header block.  By selecting this option, 
  474.  PMsndX will not display the warning. 
  475.  
  476.  Note:  When the unsupported header block warning is displayed, PMsndX provides 
  477.         the option of disabling the warning by selecting YES.  This is not the 
  478.         same as the Ignore unknown header blocks option and only disables the 
  479.         warning for the current session of PMsndX. 
  480.  
  481.  Require header in .au files 
  482.  
  483.  Samples taken from a Sun usually contain a header but there are files which do 
  484.  not.  Typically a Sun file will not contain a header if the sample is recorded 
  485.  from the audio device as if it were a file (e.g. "cat < /dev/audio > 
  486.  sample.au").  By default, PMsndX will recognize the extension of .au and force 
  487.  a headerless file to be loaded as a sun file with a sampling rate of 8012 Hz. 
  488.  When this option is selected, headerless Sun files must be loaded using the 
  489.  format RAW .ul format.  This method for loading headerless Sun files allows 
  490.  the user to specify the sampling rate for the file. 
  491.  
  492.  Location of .INI 
  493.  
  494.  By default, the file pmsndx.ini is stored at the location of the executable 
  495.  program.  However, this location may be changed by modifying this field.  The 
  496.  path is tested for validity when the parameters are applied; and, if the path 
  497.  is found to be invalid, and error is displayed and the current path is left 
  498.  unchanged. If the path is blank, the default path will be restored. 
  499.  
  500.  Note:  This option is only valid when the program is registered.  The data for 
  501.         the path to the pmsndx.ini file is stored in the os2.ini file which is 
  502.         only modified if the program is registered to prevent storing data in 
  503.         the os2.ini when a user is just testing out the program. 
  504.  
  505.  
  506. ΓòÉΓòÉΓòÉ 5.10.4. REXX Properties ΓòÉΓòÉΓòÉ
  507.  
  508. STDIN color 
  509.  
  510. This defines the color of text read from STDIN in the REXX output window.  By 
  511. default, this is set to BLACK. 
  512.  
  513. STDOUT color 
  514.  
  515. This defines the color of text written to STDOUT in the REXX output window.  By 
  516. default, this is set to BLACK. 
  517.  
  518. STDERR color 
  519.  
  520. This defines the color of text written to STDERR in the REXX output window.  By 
  521. default, this is set to RED. 
  522.  
  523. COMMAND color 
  524.  
  525. This defines the color of the PMsndX commands written in the REXX output 
  526. window.  By default, this is set to GREEN. 
  527.  
  528. REXX display history 
  529.  
  530. Setting the number in the entry field for this item modifies the number of 
  531. lines maintained by the REXX output window and may take on values between 64 
  532. and 0x7fff.  The default is 64 Changes made to this value will be used on 
  533. successive REXX command scripts.  Each line of REXX output reserves 256 
  534. characters of data and as a result, the number of rexx lines maintained for 
  535. history impacts the memory requirements of the program while REXX is running. 
  536.  
  537. Note:  Changes to the REXX display history parameter does not take effect till 
  538.        the next command script.  (i.e. If a REXX output window is open when 
  539.        this parameter is changed, the number of lines currently held is not 
  540.        changed.) 
  541.  
  542.  
  543. ΓòÉΓòÉΓòÉ 5.10.5. Startup Properties ΓòÉΓòÉΓòÉ
  544.  
  545. Show Footnote window 
  546.  
  547. PMsndX can display a window at the bottom of the main control panel with text 
  548. indicating the action of each of the items under the mouse pointer.  When this 
  549. box is set, the window is displayed. 
  550.  
  551. Note:  The effect of setting this item will not be seen until PMsndX is 
  552.        restarted. 
  553.  
  554.  Save Window positions 
  555.  
  556.  During a session, the user can move any of the dialog boxes around on the 
  557.  screen.  If the WINDOW POSITIONS box is checked, these window positions will 
  558.  be saved when the program is terminated.  If this button is deselected before 
  559.  the program is terminated, the next session will revert to the previous window 
  560.  positions saved by the program.  By default, if no window position has been 
  561.  saved for a particular window, the window will be opened in the lower left 
  562.  corner of the desktop. 
  563.  
  564.  Save file Open Path 
  565.  
  566.  The file path for loading samples into memory may be saved between sessions by 
  567.  selecting the FILE OPEN PATH button.  If this button is selected, the last 
  568.  file open path will be saved when PMsndX is terminated.  If this button is 
  569.  deselected before the program is terminated, the next session will revert to 
  570.  the path from the previous session. If no information is saved for the program 
  571.  at any time, the current path will become the default path for open 
  572.  operations. 
  573.  
  574.  Note:  This box may be selected from either the PROPERTIES dialog box or from 
  575.         the OPEN DIRECTORY button on the OPEN dialog box. 
  576.  
  577.  Save file Save Path 
  578.  
  579.  The file path for saving samples to a file may be saved between sessions by 
  580.  selecting the FILE SAVE PATH button.  If this button is selected, the last 
  581.  file save path will be saved when PMsndX is terminated.  If this button is 
  582.  deselected before the program is terminated, the next session will revert to 
  583.  the path from the previous session. If no information has not been saved 
  584.  between sessions, the current path will become the default path for save 
  585.  operations. 
  586.  
  587.  Note:  This box may be selected from either the PROPERTIES dialog box or from 
  588.         the SAVE DIRECTORY button on the SAVE dialog box. 
  589.  
  590.  
  591. ΓòÉΓòÉΓòÉ 6. Resizing the main panel ΓòÉΓòÉΓòÉ
  592.  
  593. In accordance with the recommended Common User Access (CUA) guidelines, the 
  594. main control panel may be resized using the border of the window.  The 
  595. horizontal and vertical proportions of the buttons is always fixed such that 
  596. the overall window proportions will display the buttons properly. When the 
  597. width of the main panel is changed, the height is automatically adjusted to 
  598. maintain the proper shape of the buttons. 
  599.  
  600. Note:  Note.  To resize the window, either the corners or the vertical sides of 
  601.        the window must be used.  The horizontal sides of the window have no 
  602.        effect when used alone. 
  603.  
  604.  
  605. ΓòÉΓòÉΓòÉ 7. Drag and Drop ΓòÉΓòÉΓòÉ
  606.  
  607. PMsndX supports Drag and Drop of all sound files other than the RAW formats and 
  608. performs a COPY operation when a file is dropped ont PMsndX. To use this 
  609. capability the sound samples must be stored in a file.  If an application 
  610. attempts to transfer data without specifying a filename, PMsndX will request 
  611. that the application RENDER the file before transferring it to PMsndX. 
  612.  
  613. To drag a sample to PMsndX, use the second mouse button (usually the right 
  614. mouse button) to select the file.  While holding the second mouse button down, 
  615. move the mouse pointer over the PMsndX control panel and lift the mouse button. 
  616. PMsndX will then attempt to load the file using the same rules as the Open 
  617. dialog function uses. 
  618.  
  619.  
  620. ΓòÉΓòÉΓòÉ 8. Buttons ΓòÉΓòÉΓòÉ
  621.  
  622. The main control panel provides the user with access to all tools and functions 
  623. through a set of buttons.  Each button contains an icon and a single word which 
  624. describes the function of the button. The buttons have been designed as toggle 
  625. type push buttons.  To select a particular button, the mouse must be positioned 
  626. over the button and the first mouse button pressed.  This will depress the 
  627. button and activate a dialog for the desired function.  The dialogs present 
  628. information to the user about the desired operation and request input from the 
  629. user to complete the operation. 
  630.  
  631. The control panel is the main point of control for both activating and 
  632. deactivating a particular function.  The dialog boxes can be removed from the 
  633. screen by positioning the mouse over a depressed button and pressing the first 
  634. mouse button.  The dialog box will be removed and the button will return to the 
  635. non-depressed position. It is important to note that when a dialog box is 
  636. removed through this means, any information in the dialog is ignored and the 
  637. function is canceled.  For each dialog box, the user must enter all of the 
  638. information required and then select the appropriate action on the push buttons 
  639. at the bottom of the dialog box. The Open and Save Dialog boxes may also be 
  640. removed once the file operation has been completed.  This is the default 
  641. operation but may be changed so that the dialogs are not automatically 
  642. dismissed by deselecting the "AUTO Dismiss" box in the lower right corner of 
  643. the dialog window. 
  644.  
  645. Now for the buttons.  There are five buttons on the main control panel.  These 
  646. are listed below with a brief explanation of their function. 
  647.  
  648.                 Opens and reads a new sample file 
  649.                 Saves the current sample to a file 
  650.                 Plays the current sample to an audio device 
  651.                 Edit using the Clipboard 
  652.                 Displays a notebook of tools 
  653.  
  654.  
  655. ΓòÉΓòÉΓòÉ 8.1. Open ΓòÉΓòÉΓòÉ
  656.  
  657. The dialog box for opening a file and reading the sample into memory is 
  658. accessed from the OPEN button on the main control panel.  When reading in a 
  659. file, PMsndX will attempt to open the file as the type indicated by the 
  660. extension on the filename.  However, in the event that the file cannot be 
  661. loaded by the extension, PMsndX will automatically try to determine the type of 
  662. the file as it reads it based on any header that may be present.  If the sample 
  663. header does not match any of the known header types, PMsndX will refuse to load 
  664. the file. 
  665.  
  666. When loading a file, the user may select to force PMsndX to load a file in a 
  667. specific format.  This is required to load headerless formats (i.e. the formats 
  668. marked as RAW).  To override the file format, select one of the buttons in the 
  669. Format box. 
  670.  
  671. Note:  If a Format override is specified, the file must still match the given 
  672.        format if it contains a header.  PMsndX will automatically recognize the 
  673.        header format and load it using the correct format. 
  674.  
  675.  Once a file has been selected, either double click on the file name or press 
  676.  the Load button.  During the time that the file is being loaded, the user may 
  677.  press the Abort button to stop the loading process.  All data which may have 
  678.  previously been loaded will be discarded. 
  679.  
  680.  The File Type pulldown box works in combination with the File EA pulldown box. 
  681.  To select all files of a particular type based on the name of the file (e.g. 
  682.  *.wav, *.au, *.iff, etc.) first select the name extension from the File Type 
  683.  pulldown list, and then select <All Files> from the File EA pulldown list. 
  684.  
  685.  By default, the OPEN dialog box is automatically dismissed when the file has 
  686.  been loaded.  If an error occurs during the loading process, the dialog will 
  687.  not automatically dismiss itself.  To disable this feature (i.e. force the 
  688.  dialog box to remain visible even after a file has been loaded) deselect the 
  689.  AUTO Dismiss checkbox in the lower right corner of the window. 
  690.  
  691.  
  692. ΓòÉΓòÉΓòÉ 8.2. Save ΓòÉΓòÉΓòÉ
  693.  
  694. The dialog box for saving a file to disk is accessed from the SAVE button on 
  695. the main control panel.  When saving a file, the extension of the file will 
  696. automatically determine the type of output to write for the file (e.g. if the 
  697. extension entered by the user is .wav, then the file will be saved in WAVE 
  698. format.) or the user may override the file type by selecting one of the buttons 
  699. for the type of file. 
  700.  
  701. When saving a file, the extension of the file normally determines the format to 
  702. save the file in.  The primary use of this feature will be to promote the use 
  703. of standard file name extensions for the various sample types. However, the 
  704. user may specify that the information is stored in a particular format 
  705. regardless of the file extension.  In the event that no extension is specified 
  706. for the file, the PMsndX will automatically save the file under the specified 
  707. name under the format currently selected in the FORMAT field.  The available 
  708. formats for file operations are listed below. If the file type of Undefined is 
  709. selected, then the extension of the file will be used to determine the file 
  710. type. 
  711.  
  712.  APPLE (.aif)   Apple 8/16 bit unsigned multi-channel samples 
  713.  SUN (.au)      Sun/DEC/NeXT 8 or 16 bit single channel signed data samples or 
  714.                 8 bit ULaw samples. 
  715.  MAC (.hcm)     Apple Macintosh 8 bit single channel samples 
  716.  RAW (.ub)      Raw 8 bit single channel unsigned samples without header 
  717.                 information. 
  718.  RAW (.sb)      Raw 8 bit single channel signed samples without header 
  719.                 information. 
  720.  RAW (.uw)      Raw 16 bit single channel unsigned samples without header 
  721.                 information. 
  722.  RAW (.sw)      Raw 16 bit single channel signed samples without header 
  723.                 information. 
  724.  RAW (.ul)      Raw 16 bit U-Law single channel samples 
  725.  IRACAM (.sf)   Software produced 16 bit signed samples. 
  726.  PC (.voc)      Creative Voice file format, 8 bit single channel unsigned 
  727.                 samples 
  728.  SAMP (.smp)    Turtle beach samplevision files. 
  729.  PC (.wav)      Windows or OS/2 8 bit unsigned/16 bit signed multi-channel data 
  730.                 samples 
  731.  
  732.  The Save Directory checkbox allows the user to save the current save path 
  733.  between sessions without having to open the Properties dialog box.  when this 
  734.  box is selected, if the OK button is selected, the specified directory path 
  735.  will be saved when the program has is terminated. If the SAVE DIRECTORY is 
  736.  deselected before the program is terminated, the path will not be saved.  All 
  737.  file paths are remembered during each session and the SAVE DIRECTORY box 
  738.  allows the user to store this path between sessions. 
  739.  
  740.  Note:  The file path is not saved until the program has been terminated. 
  741.  
  742.  By default, the SAVE dialog box is automatically dismissed when the file has 
  743.  been loaded.  If an error occurs during the saving process, the dialog will 
  744.  not automatically dismiss itself.  To disable this feature (i.e. force the 
  745.  dialog box to remain visible even after a file has been loaded) deselect the 
  746.  AUTO Dismiss checkbox in the lower right corner of the window. 
  747.  
  748.  
  749. ΓòÉΓòÉΓòÉ 8.3. AUDIO ΓòÉΓòÉΓòÉ
  750.  
  751. So, you are interested in playing or recording some samples using my little 
  752. program?  Good. 
  753.  
  754. The ability to play and record a sample is not intended to provide the full 
  755. capabilities of the digital audio player.  It is intended to allow samples to 
  756. be played or recorded without having to save to disk.  Additionally, this 
  757. feature allows the user to play a file of any format currently supported by 
  758. PMsndX.  The sample rates are limited to those supported by the audio device 
  759. and if a sample is loaded with an unsupported sample rate, sample size (bits 
  760. per sample), or channels, a warning will be displayed and the sample cannot be 
  761. played. To play such a sample, the sample must be converted to a supported 
  762. size, rate, or channls before it can be played. 
  763.  
  764. Note:  Whenever a sample is loaded and the AUDIO dialog is open, PMsndX will 
  765.        attempt to load the audio buffers with the sound data.  If the sample 
  766.        cannot be played (the number of channels or the sampling rate is not 
  767.        supported by the audio adapter) a warning is displayed.  PMsndX will not 
  768.        attempt to play a file that the audio adapter does not support. 
  769.  
  770.  PMsndX records all data directly to memory rather than to disk. If recording 
  771.  at high data rates for significant periods, this may require a great deal of 
  772.  memory.  As a result, when a new recording is started, the swap file may grow 
  773.  significantly to hold the memory allocated by PMsndX. 
  774.  
  775.  If you don't have MMPM/2 installed with your OS/2, don't worry.  PMsndX has 
  776.  been written to provide as much of its capabilities as it can with or without 
  777.  MMPM/2 installed. None of the tools, nor the editor require MMPM/2 to perform. 
  778.  However, the AUDIO button will be marked out if MMPM/2 is not installed 
  779.  because there will be no means to play the sounds. 
  780.  
  781.  When the AUDIO button is pressed, a dialog box is opened which contains a set 
  782.  of standard controls for playing and recording sounds. 
  783.  
  784.  The controls for the AUDIO player are basically the same as those used on the 
  785.  digital audio player provided with the MMPM/2 package for OS/2. 
  786.  
  787.            Starts recording. 
  788.            Stops playback or recording. 
  789.            Pauses playback or recording. 
  790.            Starts or continues playback. 
  791.  
  792.  Samples can be recorded from either the LINE or the Microphone input of an 
  793.  audio adapter supported by MMPM/2 (CD support may be added at a later date). 
  794.  Before data can be recorded, information must be entered to control the 
  795.  recording operation.  The controls for the recording are input through the 
  796.  Record Options item on the system menu of the MMPM Audio dialog. 
  797.  
  798.  
  799. ΓòÉΓòÉΓòÉ 8.3.1. Playback Options ΓòÉΓòÉΓòÉ
  800.  
  801. The system menu for the AUDIO dialog contains a menu item for playback options. 
  802. From this menu a dialog box can be brought to select options that control the 
  803. playback of samples.  This dialog is not application modal and can remain open 
  804. as long as the AUDIO dialog is open.  When the AUDIO dialog is closed, the 
  805. PLAYBACK OPTIONS will be closed too. 
  806.  
  807. The PLAYBACK OPTIONS dialog provides a checkbox to allow a sample to be looped 
  808. such that it will continuously repeat.  When this checkbox is selected, the 
  809. repeat function is enabled. Playback can be stopped by deselecting the repeat 
  810. checkbox (in which case, the sample will complete playback before stopping) or 
  811. by pressing the button. 
  812.  
  813. The PLAYBACK OPTIONS dialog also has the capability of playing a selected range 
  814. and/or a selected channel.  If the edit dialog is active, the range and 
  815. channels for manipulation may be used to select the part of a sample to be 
  816. played. When the Use Channel Selection box is selected, the channels selected 
  817. in the editor will be played.  This allows the user to extract and play 
  818. individual channels.  Similarly, when the Use Range Selection box is selected, 
  819. the range specified in the editor will be played. 
  820.  
  821. Note:  If the edit dialog window is not open, the full sample (including all 
  822.        channels) is automatically used. 
  823.  
  824.  
  825. ΓòÉΓòÉΓòÉ 8.3.2. Record Options ΓòÉΓòÉΓòÉ
  826.  
  827. This dialog box is used to set the recording parameters for the AUDIO tool of 
  828. PMsndX.  Changes made to this dialog are saved between sessions and it is not 
  829. necessary to open this dialog except to modify the recording options.  When the 
  830. Record Options dialog is opened, PMsndX tests the audio adapter and only 
  831. enables the features which are supported by the adapter. 
  832.  
  833. PMsndX records all audio directly to memory; consequently, the most important 
  834. control for recording is the limit to the amount of memory in which the data is 
  835. stored.  The limit on the memory requirements for recording audio is displayed 
  836. and changed in three different ways.  The first is to specify the amount of 
  837. time for recording, the second is to specify the number of samples, and the 
  838. third is to specify the amount of memory.  Changes to each of the entry fields 
  839. automatically updates the other fields when the focus is changed.  The limit is 
  840. stored internally as the number of samples to be recorded.  For this reason, 
  841. changes to the rate, quality, and channels affects the time and memory 
  842. requirements to record the sample.  These options should be set before 
  843. establishing the limits. 
  844.  
  845. Note:  The memory limit field specifies the amount of raw memory required to 
  846.        hold the recorded data and is synonymous with the amount of data that 
  847.        would be stored in a .WAV file. This limit should not be confused with 
  848.        the internal memory requirements of PMsndX. After the recording has been 
  849.        made, the data will be converted to the internal format. 
  850.  
  851.  By default, PMsndX will warn the user when the recorder is started while a 
  852.  sample is in memory.  This safeguard can be disabled by selecting the 
  853.  Overwrite checkbox on the Record Options dialog. 
  854.  
  855.  Note:  The CD selection is disabled in this version.  Reading an AUDIO CD is 
  856.         more complicated than the normal input ports. I have not figured out 
  857.         how to make the MCI_AMP_SET_MONITOR work on my SB16.  Setting or 
  858.         clearing Monitor Input has no effect on my system.  If it does 
  859.         something for you, then let me know.  I know what it is suppose to do. 
  860.  
  861.  
  862. ΓòÉΓòÉΓòÉ 8.4. Edit ΓòÉΓòÉΓòÉ
  863.  
  864. The editor is designed to be compatible with the format of data pasted to the 
  865. clipboard using the OS/2 Digital Audio Application to allow bi-directional use 
  866. of the clipboard between the two applications.  To describe the use of the 
  867. editor each of the categories of controls will be described.  Most are very 
  868. obvious, but some (particularly the operation buttons) have rules of 
  869. operation). 
  870.  
  871. The editor is the central point of control for selecting the range and channels 
  872. for all operations.  As a result, when an operation is being performed (as 
  873. indicated by the mouse pointer displayed as a clock face) if the range is 
  874. changed or the channel to manipulate is changed, a warning beep will be 
  875. produced; however, the display will indicate that the selection has been made. 
  876. For the editor, the change will be made, but the rest of the tools and AUDIO 
  877. will not be updated until another selection is made causing changes to the 
  878. channels or range.  Additionally, attempts to perform operations (i.e. Cut, 
  879. Paste, Copy, Remove, and Zero) will result in a audible warning and the 
  880. function will not be performed. 
  881.  
  882. As with other tools, operations which take a significant amount of time to 
  883. accomplish will provide an indicator for the percentage of the task completed. 
  884. Operations which copy data to the clipboard or delete data from memory utilize 
  885. the DMA memory transfers and are fast enough that the indicator is not used. 
  886. Operations which copy data from the clipboard use the indicator because the 
  887. operation is much more complicated. Please be aware that all clipboard 
  888. operations are accessed from the main execution thread.  This is required 
  889. because the thread accessing the clipboard must have a message queue; 
  890. consequently, during long editing processes such as pasting or merging with 
  891. large samples, the message queue will stop receiving input and the desktop may 
  892. appear to freeze.  Once the process has been completed, normal message 
  893. processing will continue. 
  894.  
  895. Note:  The editor has been written without the use of the MMPM/2 libraries. 
  896.        Although MMPM/2 has all the functions necessary to perform the clipboard 
  897.        operations, they can only be used if MMPM/2 is installed.  Since this 
  898.        program has been written to do its core work on any OS/2 system (with or 
  899.        without MMPM/2), everything is done manually.  This provided a bit more 
  900.        control over the PASTE operation and it is still very quick. 
  901.  
  902.  The editor has been written to provide a robust method of manipulating parts 
  903.  (or all) of a sample.  The functions are broken down into groups (marked by a 
  904.  box around the group). 
  905.  
  906.  Channel Displayed: 
  907.  
  908.  The edit dialog box allows the user to view a single channel at a time through 
  909.  the graphical display.  The channel to be displayed is selected using radio 
  910.  buttons which are enabled based on the number of channels in the current 
  911.  sample in memory. 
  912.  
  913.  Area: 
  914.  
  915.  When using the Copy, Cut, Zero, and Remove operations, the user selects the 
  916.  area of the sample to be affected by either selecting the entire sample or 
  917.  selecting a part of the sample.  When the radio button for the "Entire Sample" 
  918.  is selected, the start and end will be set to the beginning and end of the 
  919.  sample respectively.  To select a part, the user may either select the Select 
  920.  Part radio button or use the left or right buttons to select the start and end 
  921.  respectively for the interval of the operation. 
  922.  
  923.  Selection: 
  924.  
  925.  The user may specify a specific time for the begin or end of the interval for 
  926.  the desired operation by typing the time directly.  The editor will 
  927.  automatically adjust the time down to the nearest actual sample.  To activate 
  928.  the Selection entry fields, select the Select Part radio button in the Area 
  929.  field. 
  930.  
  931.  Manipulate: 
  932.  
  933.  This is probably the one field to draw the most confusion.  This group of 
  934.  buttons allows the user to specify which channel to operate on.  By default 
  935.  the editor will operate on all channels of a sample.  However, the user may 
  936.  select a specific channel for the operation by pressing the "Selected Chan" 
  937.  radio button and then selecting the channel for the operation.  Once the 
  938.  operation is performed, the Manipulate group will default back to All 
  939.  Channels. 
  940.  
  941.   The editor is integrated into the PMsndX such that the Tools and the AUDIO 
  942.  dialogs utilize the information from the editor.  Each tool indicates that it 
  943.  uses the range or channels selected in the editor through a checkbox in the 
  944.  lower left corner of the tool.  The AUDIO dialog provides checkboxes to enable 
  945.  or disable the usage of the channel and range selection. 
  946.  
  947.  Each of the groups provides the user with a means to select the parameters of 
  948.  the various operations.  Each operation has a set of rules defining how they 
  949.  behave under the various conditions.  These are defined in the following text. 
  950.  
  951.  Rules for cut: 
  952.  
  953.  1.  If the channel to operate on is "ALL", the copy all of the data over the 
  954.  specified interval and shift all data over to the left. 
  955.  
  956.  2.  If the channel to operate on is specified, then copy the data over the 
  957.  specified interval for that single channel to the clipboard, and shift the 
  958.  data after the interval over to the left while clearing the end of the data 
  959.  for the specified channel. 
  960.  
  961.  Rules for paste: 
  962.  
  963.  The PASTE button is used the paste the contents of the clipboard into memory. 
  964.  If the SHIFT key is pressed while the Editor has the window focus, the text on 
  965.  the PASTE button will change to MERGE.  When the MERGE button is pushed, the 
  966.  editor will merge the data from the clipboard with the data in memory.  When 
  967.  the merge function is used the rules for PASTE apply except that the data is 
  968.  averaged equally instead of being inserted. 
  969.  
  970.  The paste operation varies depending on the number of channels in the current 
  971.  sample and the number of samples in the data on the clipboard. After the paste 
  972.  operation, the start marker will be set at the beginning of the sample pasted 
  973.  from the clipboard and the end marker will be set to the end of the new data. 
  974.  
  975.  1.  If there is no current data, then just copy the clipboard directly to 
  976.  memory. 
  977.  
  978.  2.  If the number of pasted channels is the same as the current data, then 
  979.  past the data in based on the selected channel for manipulation. 
  980.  
  981.  Note:  When merging, the data is averaged based on the selected channel for 
  982.         manipulation.  Any excess difference between the length of the two will 
  983.         be left unafffected.
  984.  
  985.  3.  If the number of pasted channels is 1, then just copy the data to the 
  986.  channel(s) selected for manipulation and insert blank space for the 
  987.  corresponding channels which are not being manipulated.  If the number of 
  988.  channels for manipulation is "ALL" then duplicate the data for the single 
  989.  channel across all channels of the current data. 
  990.  
  991.  Note:  If the number of merged channels is 1, then average the data from the 
  992.         clipboard to the channel(s) selected for manipulation.  If the length 
  993.         of the samples does not match the data will be averaged for the common 
  994.         length of the two and excess will not be modified.
  995.  
  996.  4.  If the number of pasted/merged channels is less than the current number of 
  997.  channels (but greater than 1), then 
  998.  
  999.  a) if the channels selected for manipulation is set to "ALL" then copy the 
  1000.  channels from the clipboard directly into the current sample and zero out the 
  1001.  non-existent channels. 
  1002.  
  1003.  Note:  When merging, average the data from the clipboard directly into the 
  1004.         current sample and leave the non-existent channels unaffected.
  1005.  
  1006.  b) copy the first channel from the pasted sample into the selected channel for 
  1007.  manipulation. 
  1008.  
  1009.  Note:  When merging, average the first channel from the clipboard with the 
  1010.         selected channel for manipulation.
  1011.  
  1012.  5.  If the pasted/merged sample has more channels than the current sample, 
  1013.  then 
  1014.  
  1015.  a) if the channels selected for manipulation is set to "ALL" then create the 
  1016.  new channels in the existing data and set all non-existent channels in the 
  1017.  existing data to zero. 
  1018.  
  1019.  Note:  When merging, average the existing channels and copy the clipboard data 
  1020.         directly to the channels that did not exist in memory. 
  1021.  
  1022.  b) copy the first channel from the pasted sample into the selected channel for 
  1023.  manipulation. 
  1024.  
  1025.  Note:  When merging, the first channel is merged into the selected channel for manipulation.
  1026.  
  1027.  6.  If all of this fails, then just warn the user and give up. 
  1028.  
  1029.  Rules for Copy Operation: 
  1030.  
  1031.  1.  If the channel to operate on is ALL, copy all of the data over the 
  1032.  specified interval to the to the clipboard. 
  1033.  
  1034.  2.  If the channel to operate on is specified, then copy that single channel 
  1035.  to the clipboard. 
  1036.  
  1037.  Rules for Zero operation: 
  1038.  
  1039.  Set the data over the specified interval to 0 for the channels specified. 
  1040.  
  1041.  Rules for Remove operation: 
  1042.  
  1043.  1.  If the channel to operate on is "ALL", then remove the data over the 
  1044.  interval specified and shift all data to the left. 
  1045.  
  1046.  2.  if the channel to operate on is specified, then remove the data for that 
  1047.  channel over the interval and shift the end of that channel to the left while 
  1048.  zeroing out the end of the channel. 
  1049.  
  1050.  Rules for Clear operation: 
  1051.  
  1052.  This operation clears all data from the clipboard.  It has no effect on data 
  1053.  currently in memory. 
  1054.  
  1055.  UNDO: 
  1056.  
  1057.  PMsndX utilizes a lot of memory to ensure that the current data in memory is 
  1058.  not lost if an operation fails.  Normally the original data is deleted from 
  1059.  memory once an operation is completed to reduce the long term memory 
  1060.  requirements of the program.  However, If the Enable UNDO checkbox is selected 
  1061.  from the properties display, PMsndX will store a single buffer for performing 
  1062.  one level of UNDO. 
  1063.  
  1064.  After any operation from the toolbox, any of the manipulations from the 
  1065.  editor, or after loading a new file, if the UNDO option is enabled, the 
  1066.  current data will be stored in a buffer.  Pressing the UNDO button from the 
  1067.  editor will swap the current memory with the buffer.  Pressing UNDO again will 
  1068.  swap them back.  With this setup, the UNDO functions as a redo button. 
  1069.  
  1070.  Note:  The UNDO capability is only available in the registered version of 
  1071.         PMsndX. 
  1072.  
  1073.  
  1074. ΓòÉΓòÉΓòÉ 8.5. Tools ΓòÉΓòÉΓòÉ
  1075.  
  1076. Using a notebook to display the TOOLS has some unique presentation advantages. 
  1077. Primarily the notebook allows the effects to be displayed in a single dialog 
  1078. window.  Since each effect is mutually exclusive of any other tool this 
  1079. approach displays the maximum information that the user can utilize at any 
  1080. time.  Another approach would have been to develop a dialog box for each tool. 
  1081. This approach has the disadvantage that it would require a second control panel 
  1082. to select the specific tools.  This would violate the approach of providing a 
  1083. single control panel for the user and would necessitate managing a number of 
  1084. different windows which could potentially clutter the screen.  The notebook is 
  1085. a clean and aesthetically pleasing means for managing the tools. 
  1086.  
  1087. The heart of manipulating the samples is accessed from the TOOLS notebook. 
  1088. Some of the pages of the notebook provide information while others let the user 
  1089. apply a particular effect on the current sound sample.  The TOOLS notebook can 
  1090. be dismissed by pressing the TOOLS button on the main control panel or by 
  1091. pulling down the system menu for the toolbox and selecting CLOSE. 
  1092.  
  1093. The notebook is divided into sections such that functions with similar 
  1094. operations are grouped together.  The tabs on the right of the notebook access 
  1095. the section and the tabs at the bottom of the page are used to access the 
  1096. individual functions of the grouping. The tabs on the notebook provide access 
  1097. to the Info, Type, Average, Duplicate, Band Pass, Low Pass, Rate, Speed, Echo, 
  1098. Invert, Reverse, Vibro, Limit, Fade, and Balance functions for manipulating the 
  1099. samples. 
  1100.  
  1101. The notebook may be navigated by either selecting the tab on the right of the 
  1102. book for the desired function or by using the small Plus and Minus buttons at 
  1103. the bottom of the notebook.  Using the Plus and Minus buttons will move through 
  1104. the notebook a single page at a time. 
  1105.  
  1106. To select the tabs using the keyboard, the focus for the notebook must be set 
  1107. for the notebook container (by clicking the mouse outside of one of the tools 
  1108. or by pressing the ALT key and the UP arrow). Selecting any character that is 
  1109. underlined will bring that page to the top of the display. 
  1110.  
  1111. The notebook can be displayed regardless of the presence of sample data in 
  1112. memory.  When no sample is present, the pages of the notebook will be 
  1113. invalidated but can still be viewed. 
  1114.  
  1115.  
  1116. ΓòÉΓòÉΓòÉ 8.5.1. Info ΓòÉΓòÉΓòÉ
  1117.  
  1118. The Info page displays all of the relevant information about the samples 
  1119. currently in memory.  This includes the following categories: 
  1120.  
  1121.  Load Format     One of the formats which the program can save or open 
  1122.  Data Type       The default extension for this file format. 
  1123.  Data Style      SIGNED, UNSIGNED, ULAW, or ALAW 
  1124.  Channels        Number of channels in the sample 
  1125.  Sampling Rate   The number of samples taken each second 
  1126.  Data Size       BYTE (8 bits), WORD (16 bits), LONG (32 bits) 
  1127.  Samples         The number of samples that make up each channel 
  1128.  Comments        Some sample files may contain comments.  Any comments found 
  1129.                  are displayed in this window 
  1130.  Byte Order      The natural order of the bytes in each sample.  This field can 
  1131.                  display either Big Endian or Little Endian 
  1132.  
  1133.  
  1134. ΓòÉΓòÉΓòÉ 8.5.2. Type ΓòÉΓòÉΓòÉ
  1135.  
  1136. The type of the file is determined by the header written to the beginning of 
  1137. the file.  See Save for information how the file type is determined when a file 
  1138. is saved to disk.  Additionally, the user may use the this tool to change the 
  1139. Load Format (displayed in the Info page of the tools notebook).  When the file 
  1140. is saved, the default file format will automatically be set to whatever has 
  1141. been chosen on this page of the notebook.  Changing the file name extension or 
  1142. selecting a file format in the SAVE dialog will override this setting. 
  1143.  
  1144. Each file format utilizes different headers for the actual data.  By selecting 
  1145. one of the standard formats on this page the Info page will show the user how 
  1146. the samples will be saved.  The fields that are most likely to change are the 
  1147. Load Format, Data Type, Data Style, and Data Size. 
  1148.  
  1149.  
  1150. ΓòÉΓòÉΓòÉ 8.5.3. Average ΓòÉΓòÉΓòÉ
  1151.  
  1152. A sample with an even number of channels may be averaged to produce a sample 
  1153. with half the initial number of channels. For example, a sample with four 
  1154. channels can be averaged to produce a sample with two channels and a sample 
  1155. with two samples can be averaged to produce a sample with one channel. 
  1156.  
  1157. Channels may be averaged in three ways.  The simplest is to take the left or 
  1158. right channel data as the final data.  A more complex method is to average the 
  1159. samples of the left and right to produce a center sample. The results of these 
  1160. operations are significantly different and can result in very different output 
  1161. samples. 
  1162.  
  1163. When a sample contains four channels, it is composed of four sound sources at 
  1164. 45 degrees in each quadrant.  This corresponds to the Front Left, Front Right, 
  1165. Rear Left, or Rear Right.  To average these into two channels the user can 
  1166. select to use any of the four channels or to average based on the left or 
  1167. right. To select or average any combination of the channels into either of the 
  1168. output channels, check the box for the channels from the source sample.  To aid 
  1169. in this, two radio buttons have been provided which enable or disable the 
  1170. selection of check boxes in the second channel depending on the number of 
  1171. output channels selected. 
  1172.  
  1173.  
  1174. ΓòÉΓòÉΓòÉ 8.5.4. Dupe ΓòÉΓòÉΓòÉ
  1175.  
  1176. Channels can be duplicated such that a single channel sample can be made to 
  1177. have two channels which are identical or two channels can be duplicated to form 
  1178. four channels. 
  1179.  
  1180. When copying two channels to 4, PMsndX allows the user to specify which of the 
  1181. input channels will be placed on the output channels.  In this way, a single 
  1182. channel of a dual channel sample can be copied to any of the four output 
  1183. channels. 
  1184.  
  1185.  
  1186. ΓòÉΓòÉΓòÉ 8.5.5. Band Pass ΓòÉΓòÉΓòÉ
  1187.  
  1188. This tool provides the ability to apply a band-pass filter to a sample. The 
  1189. frequency response for the filter is designed to drop logarithmically around a 
  1190. center frequency.  The slope of the drop at the desired start (Wp) and end (Ws) 
  1191. of the filter varies with the distance between the Wp and Ws.  This width is 
  1192. used to determine the slope of the dropoff at the edges of the filter.  The 
  1193. frequencies at Wp and Ws will be approximately half of their original 
  1194. amplitudes and all frequencies outside of the Center - Wp and the Center + Ws 
  1195. will be eliminated.  The bandpass filter can be mode oriented to pitched 
  1196. signals (i.e. voice, singing, or instrumental music) or can be modified by 
  1197. adding noise to the filter so that un-pitched signals can be effectively 
  1198. processed. 
  1199.  
  1200. Note:  To aid the user in locating the maximum effective center frequency, a 
  1201.        light blue vertical bar is placed at half the sampling rate for the 
  1202.        data. 
  1203.  
  1204.   The transformation for the Bandpass filter was derived from a a program 
  1205.  called MUSIC56K (as documented in the MUSIC56K source code) and implemented in 
  1206.  C++ for this program. 
  1207.  
  1208.  Operation of the bandpass filter tool is probably one of the most complex 
  1209.  interfaces in the toolbox.  It is based on a simple principle.  The entire 
  1210.  display of the filter represents the frequency response of the filter and is 
  1211.  operated like a slider.  However, since the Start frequency and the Stop 
  1212.  frequency are independent, the sliding bar is divided into identical controls 
  1213.  for each filter edge. Before getting into the operation of the controls the 
  1214.  display needs to be explained to establish the terms that will be used. 
  1215.  
  1216.  As mentioned, the display is designed to illustrate the frequency response of 
  1217.  the bandpass filter (independent of any added noise).  The center of the Start 
  1218.  (Wp) and End (Ws) of the filter are marked by vertical BLUE bars.  The Center 
  1219.  (Wc) of the filter is marked by a vertical RED bar.  These three markers 
  1220.  provide the means for the user to modify the filter.  The region to the left 
  1221.  of the RED center frequency is always the start of the filter.  The user may 
  1222.  click the mouse to the left of Wp to decrease Wp by 1000 Hz.  Clicking between 
  1223.  Wp and Wc increases Wp by 1000 Hz.  Likewise, clicking between Wc and Ws 
  1224.  decreases Ws by 1000 Hz and clicking to the right of Ws increases Ws by 1000 
  1225.  Hz.  The user may also click the mouse near Ws or Wp to drag the respective 
  1226.  ends of the filter quickly. 
  1227.  
  1228.  To provide fine control of the filter, Right and Left arrows are provided for 
  1229.  both Wp and Ws.  Clicking on either the right or left arrow will increase the 
  1230.  indicated filter edge by 1 Hz.  To increase or decrease the filter edges by 10 
  1231.  Hz, the user may select the plus or minus corresponding to the filter edges. 
  1232.  The left set of controls affects Wp and the right set of controls affects Ws. 
  1233.  
  1234.  As the mouse is used to adjust Wp and Ws, the exact frequencies for Wp, Ws, 
  1235.  Wc, and the filter Width are updated in the text input fields.  The user can 
  1236.  use the mouse to select one of the input fields and modify it directly.  To 
  1237.  accept a value in the entry field and recalculated the dependent frequencies 
  1238.  select another window or click on another item which moves the focus from the 
  1239.  notebook.  The rules for the fields are as follows: 
  1240.  
  1241.    1. If the Center frequency is modified, new values for Wp and Ws are 
  1242.       immediately calculated using the current Width. If Wp or Ws are outside 
  1243.       of the possible ranges, then Wp or Ws are set to the limit of the 
  1244.       acceptable range and the Width and Center are recalculated. 
  1245.    2. If the Width of the filter is modified, new values for Wp and Ws are 
  1246.       immediately calculated using the current Center frequency.  If Wp or Ws 
  1247.       are then outside of the acceptable ranges, Wp or Ws is then set to its 
  1248.       limit and the Center and Width are recalculated. 
  1249.    3. If Wp is changed, the Width and Center are automatically recalculated to 
  1250.       reflect the new start of the filter. 
  1251.    4. If Ws is changed, the Width and Center are automatically recalculated to 
  1252.       reflect the new end of the filter. 
  1253.  
  1254.  The bandpass filter has been selected because of the desirable effect on 
  1255.  typical sounds that will be processed by PMsndX such as voice or music. 
  1256.  However, if other types of noise are to be filtered, noise can be added to the 
  1257.  filter which results in a sharper peak of the filter.  To add this noise, 
  1258.  select the checkbox for "Add filter noise". Selecting the checkbox again will 
  1259.  disable the filter noise. 
  1260.  
  1261.  Note:  The display of the frequency response for the filter does not reflect 
  1262.         added noise. 
  1263.  
  1264.  
  1265. ΓòÉΓòÉΓòÉ 8.5.6. Low Pass ΓòÉΓòÉΓòÉ
  1266.  
  1267. A Low Pass filter can be applied to a sample to eliminate high frequencies. 
  1268. Filtering is accomplished in the digital domain through the use of a very 
  1269. simple second order digital Fourier transform.  Future implementation may have 
  1270. a more complex Fourier transform; however, the chosen function is desirable 
  1271. because it provides a smooth dropoff without significant ringing. The 
  1272. performance of the filter is determined by the cutoff frequency and the rate of 
  1273. drop.  If the dropoff is made too quickly, the filter will exhibit a ringing 
  1274. effect at the begin and end of the dropoff.  If the dropoff is performed too 
  1275. slowly, the filter will suppress more frequencies toward the end of the desired 
  1276. range.  The more orders of the filter (more stages), the better the frequency 
  1277. response; however, more orders increase the time for filtering significantly. A 
  1278. two order filter works adequately. 
  1279.  
  1280. When performing the digital convolution of the sample with the step function a 
  1281. Gain factor is used to normalize the output data.  This acts as a Volume 
  1282. control for the sample to prevent losses due to numerical overflow.  Values for 
  1283. the gain range from 0 to 1 in increments of 0.01.  A slider bar is used to set 
  1284. the gain of the low pass filter.  When the low pass filter is first brought up, 
  1285. the Gain will default to a value of 0.8.  If this is changed, it will remain at 
  1286. the new setting until the session is terminated. 
  1287.  
  1288. The Frequency response of the low pass filter is determined by a the 
  1289. centerpoint of the dropoff at the end of the step function.  When performing a 
  1290. digital filter, it is not possible to prevent the gradual drop at the end of 
  1291. the step function due to the convolution of the samples used in the 
  1292. transformation.  This is true for analog components also. The centerpoint of 
  1293. the dropoff can be set in three ways. The user may enter the specific frequency 
  1294. in the text entry box in the lower right corner or may use the filter display 
  1295. like a sliding bar.  As is typical of a sliding bar, the mouse may be used to 
  1296. capture the cutoff frequency by pressing the mouse button while the mouse is 
  1297. near the cutoff frequency.  By holding the button down, the user may drag the 
  1298. frequency to the desired range.  Additionally, the user may click to the right 
  1299. or the left of the frequency cutoff to increase or decrease the frequency by 
  1300. 1000 Hz. The right and left arrows in the corners of the display may be used to 
  1301. increase or decrease the frequency by 1 Hz. The plus and minus buttons in the 
  1302. corners of the display may be used to increase or decrease the frequency by 10 
  1303. Hz. The frequency response curve illustrates the dropoff that occurs at the end 
  1304. of the step function. 
  1305.  
  1306.  
  1307. ΓòÉΓòÉΓòÉ 8.5.7. Rate ΓòÉΓòÉΓòÉ
  1308.  
  1309. Once a sample has been loaded into memory, the current rate information is 
  1310. displayed on the RATE page of the notebook. The user can change the rate of the 
  1311. sample using this page of the tools notebook. 
  1312.  
  1313. Note:  Changing the sampling rate may degrade the quality of the sound. 
  1314.  
  1315.   The user may select from a set of standard sampling rates for common computer 
  1316.  formats or may specify a specific rate. OS/2 and Windows use standard rates 
  1317.  which are multiples of 11025 Hz.  Sun, DEC, and NeXT computers commonly use a 
  1318.  sampling rate of 8000 Hz.  Standard rates of 8000, 11025, 22050, and 44100 Hz 
  1319.  have been provided for the user to select. 
  1320.  
  1321.  If the user wishes to use a sampling rate which is not one of these, the 
  1322.  button for Non-Standard should be pressed.  This will activate the slider bar 
  1323.  and user input windows to allow the user to specify the rate.  The slider bar 
  1324.  can be used to quickly change the rate in the input window or the user may 
  1325.  select the input window and type in the desired rate. 
  1326.  
  1327.  
  1328. ΓòÉΓòÉΓòÉ 8.5.8. Speed ΓòÉΓòÉΓòÉ
  1329.  
  1330. This function will change the playback speed of a sample. This is the same 
  1331. thing as setting a phonograph to a different speed such that the sound is 
  1332. played too fast or too slow.  The controls for this effect simply specify the 
  1333. new playback speed.  Once a new speed is selected, the sample is resampled to 
  1334. interpolate the new playback points. As a result, a sample is still played at 
  1335. the same rate, but the data is modified to play at the new rate.  This allows 
  1336. the sample to be stored in a file which is of a standard rate. 
  1337.  
  1338. The user may select any of the standard rates including 8000 Hz, 11025 Hz, 
  1339. 22050 Hz, and 44100 Hz.  Additionally, the user may specify the playback speed 
  1340. to be either double (x2) or half (x1/2) or may specify a specify playback speed 
  1341. by selecting the User button.  If a speed other than the current speed is 
  1342. specified, the DOIT button will be activated which will allow the user to 
  1343. perform the change. 
  1344.  
  1345.  
  1346. ΓòÉΓòÉΓòÉ 8.5.9. Echo ΓòÉΓòÉΓòÉ
  1347.  
  1348. The echo effect will modify a sample to provide attenuation at specific points 
  1349. in a sample.  The operator must specify the points where the echo effects are 
  1350. to start and an attenuation or Volume for the echo.  The attenuation determines 
  1351. the length of time that it takes for the echo to die away.  If the Attenuation 
  1352. specified for all of the echo points is greater than 1, then the echo will 
  1353. "melt" rather than fading away and consequently may take a long time to 
  1354. complete.  If an attenuation is set to 0 or less, the Echo point is ignored. 
  1355.  
  1356. The echo effect presents an interesting challenge to the user interface.  How 
  1357. do you provide the user with an intuitive method to set the echo locations and 
  1358. the strength of the echo from a dialog box?  Well, look at the ECHO notebook 
  1359. page and follow along in the explanation of the operation.  This notebook page 
  1360. includes a graphical display of the current sample, a text entry field for 
  1361. editing (e.g. adding or deleting) time marks, and a volume control for setting 
  1362. the strength of the echo. 
  1363.  
  1364. The ECHO notebook is centered around the graph at the top of the page.  This 
  1365. display is the primary point of control. However, to allow for a bit more 
  1366. direct control, the user may use the entry fields to add and delete echo points 
  1367. too. To explain it all, I will start with the graphical display first and then 
  1368. lead to the secondary controls. 
  1369.  
  1370. Once a sample has been loaded into memory, the graphical display will become 
  1371. active.  The display is controlled through two slider bars for the position in 
  1372. the sample and for the magnification. The sample is normalized so that the 
  1373. largest sample value will hit the limit of the display.  This makes the display 
  1374. volume independent but gives maximum clarity of the actual waveform in memory. 
  1375. Markers may be added or moved to set the echo points in the waveform.  To aid 
  1376. the operator in locating the desired echo point, the display contains a status 
  1377. bar for the starting timemark for the sample in the window, the current 
  1378. timemark under the mouse, and the magnification factor. 
  1379.  
  1380. To move to the right or left in the display, the horizontal slider bar may be 
  1381. used.  Pressing the end arrows moves the display one displayed sample to the 
  1382. left or right.  When the slider bar is pressed, the display will move one half 
  1383. screen to the right or left.  The user may move the display to a region quickly 
  1384. by selecting the slider button and dragging it to the appropriate position. 
  1385. The display is immediately updated to display the current position. 
  1386.  
  1387. The display area at the bottom of the graph provides a timemark indicator for 
  1388. the first sample appearing at the left of the graph.  This provides a reference 
  1389. for moving through the data.  The time marker is displayed in the form of 
  1390. m:ss.ssss where m is the number of minutes into the sample and ss.ssss is the 
  1391. number of seconds into the sample. 
  1392.  
  1393. Even the smallest sample contains more data than can fit on the graphical 
  1394. display.  For this reason the vertical slider to the right of the graphical 
  1395. display is used to adjust the viewing magnification of the samples.  The 
  1396. maximum magnification of the samples is determined by the length of the sample 
  1397. and is calculated by dividing the total sample length by the largest number of 
  1398. data points which may be scrolled through on the display.  The display is 
  1399. limited to the maximum size of an signed 16 bit value due to the limitations of 
  1400. the signals for the horizontal slider bar. This results in a maximum of 32767 
  1401. data points which can be displayed and scrolled through. 
  1402.  
  1403. Initially, the magnification is set for the maximum displayable.  To decrease 
  1404. the magnification ( i.e. zoom out) on the sample, move the slider down the bar. 
  1405. The arrows on the ends of the bar can be used to increase or decrease the 
  1406. magnification in increments of 1.  Selecting between the button and the arrows 
  1407. doubles or halves the magnification. If the button is selected, the 
  1408. magnification can be set immediately to a value.  Markers are displayed for the 
  1409. nearest point in the zoom.  However, markers can only be set on exact multiples 
  1410. of the zoom.  Therefore, when trying to move a marker, if it is set at a 
  1411. different magnification, it may not be possible to move the marker without 
  1412. returning to that zoom.  Essentially, the marker is displayed but cannot be 
  1413. selected because that exact sample point is not visible. I considered making 
  1414. the mouse select the nearest marker, but this is a point of confusion if many 
  1415. markers are displayed at the same location for a specific magnification. 
  1416.  
  1417. The current magnification is displayed in the status area of the display in the 
  1418. form of "x1/nnnnn" where "nnnnn" is replaced by the current magnification 
  1419. number (i.e. number of points represented by a single point on the display). 
  1420. If the display says that the zoom is x1/2, then the magnification of the 
  1421. display is halved.  If this sounds confusing, then just play with the notebook 
  1422. page for a bit to get a feel for the operation of the zoom. 
  1423.  
  1424. Before going on, another area of the display needs to be described.  The center 
  1425. number on the status area of the display indicates the timemark for the current 
  1426. (or last) mouse position. Whenever the mouse is moved into the display area, 
  1427. this number will be updated to indicate the time offset for that particular 
  1428. point.  This takes into account the magnification. 
  1429.  
  1430. Now for the fun part.  To add an echo point to the sample, move the mouse to 
  1431. the place where you desire the echo.  The status display will provide a 
  1432. reference for the timemark. When the proper position has been selected, click 
  1433. the mouse and a blue marker will be placed.  If the mouse is released, the 
  1434. marker will be set at that location in the sample.  If the mouse is not 
  1435. released, the marker may be dragged across the display. This marker may be 
  1436. moved later if necessary by other means too. 
  1437.  
  1438. Note:  If at any time the mouse pointer is moved outside of the display before 
  1439.        the mouse button is released, the marker will not be set and the blue 
  1440.        mark will be erased from the display. 
  1441.  
  1442.   A echo marker may be moved by positioning the mouse pointer over the marker 
  1443.  and pressing the mouse button.  If the marker is on a multiple of the zoom 
  1444.  level, it will be selected and will follow the mouse as long as the button is 
  1445.  pressed.  When the button is released, the marker will be placed at that 
  1446.  position. 
  1447.  
  1448.  A marker may be moved to another time delay by entering the desired delay 
  1449.  directly through the Time Mark entry field. 
  1450.  
  1451.  Note:  If the mouse is moved off the display area, the marker will be restored 
  1452.         to its original position. 
  1453.  
  1454.   For each marker displayed, the timemark is stored in a Combo Box.  This box 
  1455.  is like an entry field in that the user can edit the time directly; however, 
  1456.  it also has a drop down box that can scroll vertically through all of the 
  1457.  different markers.  This type of box provides a great deal of flexibility for 
  1458.  the user. 
  1459.  
  1460.  To add a marker at a specific time, position the cursor in the Timemark box 
  1461.  and edit the time index.  The format is the same as that used to display the 
  1462.  time marks in the main display.  Enter the number of minutes followed by the 
  1463.  seconds.  The granularity of the seconds is on the order of 1/10000 of a 
  1464.  second.  For example, entering 6:54.4253 would accept a time mark at 6 
  1465.  minutes, 54.4253 seconds.  If a value is entered with is beyond the maximum 
  1466.  sample of the file or less than 0, then the data is ignored. 
  1467.  
  1468.  Once the desired time mark has been entered, the user may press the Add button 
  1469.  to place the marker in the current database.  All timemarks added to the 
  1470.  display use the volume specified for the last timemark, or 0 if no volume has 
  1471.  been set yet. 
  1472.  
  1473.  When the listbox is pulled down for the timemarks, each of the timemarks that 
  1474.  have been entered are displayed in a vertically and horizontally scrollable 
  1475.  window.  Up to 32 markers may be placed in the file and any markers which are 
  1476.  unused are displayed with the word "EMPTY".  The markers are placed in the 
  1477.  database in the order that they are entered unless a free slot is open (from 
  1478.  being deleted).  The user may select any of the time marks using the combo 
  1479.  box. If the selected timemark is not empty, the display will be updated to 
  1480.  display the selected timemark in the center of the graph.  In the event that 
  1481.  the timemark is too close to the end or beginning of the sample to display in 
  1482.  the center of the graph, the timemark will be displayed without being 
  1483.  centered.  Once a timemark has been selected, the Del button may be pressed to 
  1484.  delete the marker from the database.  The entry field is not cleared in order 
  1485.  to allow the user to directly edit the timemark which was deleted and add it 
  1486.  later. 
  1487.  
  1488.  The volume for each timemark may be set by specifying a value in the volume 
  1489.  entry field.  This is a simple entry field in which the user can type or 
  1490.  delete numbers.  Since the volume (attenuation) for each timemark may range 
  1491.  from 0 to infinity, the only method for entering the volume is through the 
  1492.  keyboard.  Sorry, no sliders here.  As each character is typed, it is stored. 
  1493.  The user does not have to press enter or any key to accept the value. 
  1494.  
  1495.  I have not found a big use for numbers greater than 1, but I could not find 
  1496.  any reason to limit the user to a specific range of numbers.  Anyone who has 
  1497.  experience with this effect and knows of a reason for a limitation should 
  1498.  contact the author and I will be happy to set up something to make entry of 
  1499.  the Volume easier. 
  1500.  
  1501.  Note:  The most common mistake for the echo effect is in forgetting to enter a 
  1502.         value in the Volume field.  Remember that you must provide an 
  1503.         attenuation for the echo in the Volume entry field to make the echo 
  1504.         point valid. 
  1505.  
  1506.  
  1507. ΓòÉΓòÉΓòÉ 8.5.10. Invert ΓòÉΓòÉΓòÉ
  1508.  
  1509. A sample is composed of numbers which are digital snapshots of an analog wave 
  1510. at regular intervals.  These numbers can take on positive and negative values 
  1511. which push or release the cone of a speaker to produce sound. The range and 
  1512. channels for this function are selected through the editor. 
  1513.  
  1514. Any series of samples may be inverted such that all positive values become 
  1515. negative and all negative values become positive.  To the human ear, there is 
  1516. no difference in the sound produced; however, mathematically, the new wave is 
  1517. very different.  An inverted wave may be added to a normal wave to 
  1518. mathematically subtract one from another. When this function is combined with 
  1519. the MERGE function of the editor, samples can be added together to eliminate 
  1520. common frequencies. 
  1521.  
  1522.  
  1523. ΓòÉΓòÉΓòÉ 8.5.11. Reverse ΓòÉΓòÉΓòÉ
  1524.  
  1525. This effect allows the user to reverse a section (or all) of a sample.  The 
  1526. range and channels for this function are selected through the editor. 
  1527.  
  1528.  
  1529. ΓòÉΓòÉΓòÉ 8.5.12. Vibro ΓòÉΓòÉΓòÉ
  1530.  
  1531. This function performs the "world-famous" Fender Vibro-Champ sound effect to a 
  1532. sound sample by using a sine wave as the amplitude of the volume at each 
  1533. sample.  This tool requires that the user set the Speed and the Depth of the 
  1534. sine wave. 
  1535.  
  1536. The speed setting gives the frequency of the sine wave in Hertz.  The range of 
  1537. values for the slider are from 1 to 30 in increments of 1 Hertz.  A value of 0 
  1538. would be useless for a frequency and is not allowed. 
  1539.  
  1540. The depth setting gives the amount by which the volume will be cut into by the 
  1541. sine wave.  The range of values for the slider are from 0.0 to 1.0 in 
  1542. increments of 0.01.  The initial value of the slider is 0.5. 
  1543.  
  1544.  
  1545. ΓòÉΓòÉΓòÉ 8.5.13. Fade ΓòÉΓòÉΓòÉ
  1546.  
  1547. This effect allows the user to either fade in or fade out the volume of a 
  1548. sample.  Fading the data in a sample is produced by increasing or decreasing 
  1549. the volume of the sample over a period.  To fade a sample in is to slowly 
  1550. increase the volume of the sample from 0 to the normal volume of the sample 
  1551. over a block of time.  To fade the sound out is just the opposite in which the 
  1552. volume of the sample is slowly reduced over a period. 
  1553.  
  1554. The FADE tool provides three methods for fading which provide a robust means 
  1555. for controlling the volume of the data over the specified range of operation. 
  1556. These are Linear, Slow Geometric, and Fast Geometric. 
  1557.  
  1558.  
  1559. ΓòÉΓòÉΓòÉ 8.5.14. Limit ΓòÉΓòÉΓòÉ
  1560.  
  1561. Most anyone who has received a sound sample from different sources has had the 
  1562. problem that the recorded volume is inconsistent between different samples. 
  1563. After all, there is no standard recording level for the different machines or 
  1564. different software. 
  1565.  
  1566. To allow the user to adjust the volume of a sample, PMsndX provides a tool 
  1567. which can either adjust the volume by multiplying every sample by a fixed 
  1568. amount or by multiplying the samples by a value based on the limit of the data 
  1569. that can held in memory. 
  1570.  
  1571. By specifying a maximum value for the sound sample, all sound samples can be 
  1572. set to have a similar maximum.  The obvious use for this function is to allow a 
  1573. library of sounds to be set at the same volume.  The value used for the maximum 
  1574. volume is based on a percentage of the maximum data that can be held in a 
  1575. single sample.  As an example, a value of 100% for the volume represents a 
  1576. value of 127 for a signed byte sample. 
  1577.  
  1578. When the button for the Maximum is selected, the slider bar directly beneath 
  1579. the button is activated.  Initially, this will be set to the current volume in 
  1580. terms of the percentage of the maximum value for the sample.  The volume may be 
  1581. adjusted by setting the slider to a value between 0 and 100 percent of the 
  1582. maximum. 
  1583.  
  1584. Since the value is based on a percentage of the maximum value of the data that 
  1585. can be stored in a sample, clipping is not possible. 
  1586.  
  1587. When the button for the Fixed value is selected, the slider bar directly 
  1588. beneath the button is activated as well as the checkbox for clipping.  The 
  1589. fixed bar provides the means to multiply all sound samples by a fixed value 
  1590. between 0 and 2 in increments of 0.1. A value of 1 makes no change.  Any value 
  1591. greater than 1 increases the volume and any value less than 1 decreases the 
  1592. volume.  A value of 2 doubles the volume of the sample. 
  1593.  
  1594. When using fixed sampling it is possible to exceed the maximum data that may be 
  1595. stored for a sample.  The Allow Clipping checkbox may be selected to allow the 
  1596. data to be clipped.  If the checkbox is not set and if the fixed multiple will 
  1597. result in clipping, then the multiple will be set to the maximum value that 
  1598. will not result in clipping.  If the clipping box is set, data may exceed the 
  1599. maximum that may be stored for the sample which will result in noise. 
  1600.  
  1601.  
  1602. ΓòÉΓòÉΓòÉ 8.5.15. Balance ΓòÉΓòÉΓòÉ
  1603.  
  1604. When a sample has more than one channel, the volume of the individual channels 
  1605. can be varied.  The balance of the channels can be achieved either 
  1606. instantaneously or over a period of time.  These are the same basic functions 
  1607. as used in the FADE and SWAP effects and are Linear, Slow Geometric, and Fast 
  1608. Geometric, and Step. 
  1609.  
  1610. The volume of a sample may vary by either starting at the specified percentage 
  1611. of the current volume for each channel and progressively approaching full 
  1612. volume.  This is similar to fading in a sample and is achieved by selecting the 
  1613. "IN" button.  The opposite effect is achieved when the volume starts at the 
  1614. current volume and progressively decreases to a percentage of the current 
  1615. volume. 
  1616.  
  1617. When balancing a sample, the user must specify a percentage for each channel. 
  1618. When fading in, this is the percentage that the volume will start at for each 
  1619. respective channel. When fading out, this is the final percentage of the 
  1620. original volume.  The display at the top of this dialog varies depending on the 
  1621. number of channels in the current sample. 
  1622.  
  1623.  
  1624. ΓòÉΓòÉΓòÉ 9. Command Scripts ΓòÉΓòÉΓòÉ
  1625.  
  1626. PMsndX integrates the features of REXX to provide a powerful command scripting 
  1627. capability.  PMsndX provides the necessary extensions to REXX to provide full 
  1628. access to all of the features normally provided through the dialogs of the user 
  1629. interface. 
  1630.  
  1631. Any REXX command script can be run through any of the means for opening a file 
  1632. such as using the OPEN dialog box or through a DRAG/DROP operation.  As with 
  1633. all REXX command scripts, the first line of the file must be a comment of the 
  1634. form /* ... */. PMsndX will automatically recognize a command script using the 
  1635. extension of .CMD or the OPEN dialog allows any file to be recognized as a 
  1636. command script by providing an override in the Format group of the OPEN dialog. 
  1637.  
  1638. As with any REXX script, the SAY command may be used to write to standard 
  1639. output (stdout); and, the PULL command may be used to retrieve information from 
  1640. standard input (stdin). When input is requested from the REXX window, the 
  1641. desktop focus will automatically be directed to the REXX window and it will be 
  1642. brought to the foreground. 
  1643.  
  1644. Note:  Do not use CHARIN to retrieve input from the keyboard. 
  1645.  
  1646.  The syntax of the language is divided up into groups associated with the 
  1647.  buttons on the main control panel. Additionally, a few other controls are 
  1648.  provided to enhance a script capability for enhancing the user interface. 
  1649.  
  1650.  When a REXX command script is run, a REXX OUTPUT window (see illustration 
  1651.  below)  is opened to display any outputs from the script.  All standard 
  1652.  outputs (e.g. output from SAY commands or commands echoed) are displayed in 
  1653.  black.  Outputs from PMsndX commands is written in blue, and any errors are 
  1654.  written in red.  A REXX script can be stopped at any time by closing the REXX 
  1655.  OUTPUT window.  If no errors occur while executing the REXX command script, 
  1656.  the REXX OUTPUT window will automatically be dismissed.  If errors occur, the 
  1657.  window will remain open until the user closes it.  Only one REXX OUTPUT window 
  1658.  can be open at any one time so the window must be closed before another REXX 
  1659.  script can be run. 
  1660.  
  1661.  Note:  As with REXX scripts, all commands can be entered in any combination of 
  1662.         lower and upper case.  For example, the following commands are 
  1663.         equivalent: "file open tmp.au", "FILE open TMP.AU", "FiLe OpEn TmP.Au". 
  1664.  
  1665.  
  1666. ΓòÉΓòÉΓòÉ 9.1. Syntax Conventions ΓòÉΓòÉΓòÉ
  1667.  
  1668. The extensions provided by PMsndX have been designed to utilize a consistent 
  1669. format.  The extensions are divided into three groups:  commands, functions, 
  1670. and arguments. 
  1671.  
  1672. REXX commands are those extensions provided by PMsndX which allow the REXX 
  1673. script to control execution of PMsndX.  The command extensions use the 
  1674. arguments to modify the actions. 
  1675.  
  1676. REXX functions are those extensions provided by PMsndX which require that 
  1677. PMsndX return some value to the calling REXX script.  The function extensions 
  1678. use the arguments to specify the information that is to be returned. 
  1679.  
  1680. REXX arguments are the keywords and parameters which are added to commands and 
  1681. functions to provide information about the specific task to be performed.  All 
  1682. arguments follow a repetitive format which utilizes keywords and associated 
  1683. parameters. 
  1684.  
  1685.  
  1686. ΓòÉΓòÉΓòÉ 9.1.1. Command Syntax ΓòÉΓòÉΓòÉ
  1687.  
  1688. REXX commands are indicated by a name, followed by keyword and parameter 
  1689. combinations separtated by spaces. Commands do not return data to the calling 
  1690. REXX scrip. 
  1691.  
  1692. Following is the general syntax of a command: 
  1693.  
  1694. COMMAND keyword Parameter ... [keyword Parameter ...] 
  1695.  
  1696.  
  1697. ΓòÉΓòÉΓòÉ 9.1.2. Function Syntax ΓòÉΓòÉΓòÉ
  1698.  
  1699. REXX functions are composed of a name followed by keyword and parameter 
  1700. combinations separated by commas and enclosed in parenthesis.  Functions are 
  1701. used to return data to the calling REXX script and so always appear on the 
  1702. right side of an = character. 
  1703.  
  1704. The general syntax of a function is: 
  1705.  
  1706. X=FUNCTION(keyword, Parameter, [,keyword, Parameter,...]) 
  1707.  
  1708.  
  1709. ΓòÉΓòÉΓòÉ 9.1.3. Argument Syntax ΓòÉΓòÉΓòÉ
  1710.  
  1711. The Arguments used in PMsndX should be in order of a keyword followed 
  1712. immediately by a parameter (if one is necessary). All required 
  1713. keyword/parameter combinations must appear first, followed by any optional 
  1714. keyword/parameter combinations. 
  1715.  
  1716. To convey the syntax of the REXX extensions, the individual components are 
  1717. color keyed to indicate their use. The following legend should be referred to 
  1718. when reading the actual command and function syntax: 
  1719.  
  1720. COMMAND or FUNCTION: The name of the command or function is always first and is 
  1721. required. 
  1722.  
  1723. keyword:  Special keywords are used to indicate that a parameter is being 
  1724. specified for a command. The keywords of a command may be entered in any order 
  1725. but must be followed by their corresponding parameter. 
  1726.  
  1727. Parameters:  Portions of a command which are used as variable parameters can 
  1728. take on different formats and must be entered after the corresponding keyword. 
  1729.  
  1730. [...]:  Parameters which are optional will appear between brackets ([]). 
  1731. Anything between the brackets is not required for the command but may be added 
  1732. to modify the operation. 
  1733.  
  1734. When numeric values are required, the format will be indicated as follows: 
  1735.  
  1736. 'mm:ss.hhhh' indicates that a time is to be entered. The format indicates that 
  1737. the time is to be given in minutes followed by a colon (:), the number of 
  1738. seconds followed by a period (.) and the fractions of seconds.  For example, 
  1739. '10:58.0001' indicates 10 minutes, 58 seconds, and 1 ten-thousandth of a 
  1740. second.  Note that the time must be enclosed between single quotes. 
  1741.  
  1742. #.# indicates that a decimal number is to be entered.  The range for the number 
  1743. is provided in braces immediately following.  For example, #.#{0.0-1.0} 
  1744. indicates that a number between 0.0 and 1.0 inclusive is requred. 
  1745.  
  1746. #{range} indicates that a numeric value is required and the range is specified 
  1747. in the braces.  For example, #{1-8192} indicates that a numeric value between 1 
  1748. and 8192 inclusive is required. 
  1749.  
  1750. 'text' indicates that a text string is required.  The text must be enclosed in 
  1751. single quotes and must appear as the last parameter in the line.  All data 
  1752. after the keyword TEXT will be treated as the text for the operation. 
  1753.  
  1754. {item1,item2,...} is used to indicate that a finite set of values are required. 
  1755.  
  1756. Note:  The parameter YES is equivalent to setting a checkbox.  The parameter NO 
  1757.        is equivalent to clearing a checkbox. 
  1758.  
  1759.  Descriptions:  With each command group is a short description of the operation 
  1760.  of the commands in that group. Additionally, every command may also have 
  1761.  special information which is unique to the command or pertinent to the usage 
  1762.  of the command. 
  1763.  
  1764.  
  1765. ΓòÉΓòÉΓòÉ 9.2. File Operations ΓòÉΓòÉΓòÉ
  1766.  
  1767. All of the features of the OPEN and SAVE dialog boxes are available through the 
  1768. FILE operations.  In addition to the standard items in the dialog box, the 
  1769. capability to set the default OPEN and SAVE paths is provided to simplify batch 
  1770. operations. 
  1771.  
  1772. The FILE operations are provided through functions and return the fully 
  1773. qualified path to the file or path provided to the command.  There are two 
  1774. reasons that the FILE commands are implemented as functions instead of 
  1775. subcommands.  The first is that the REXX script may provide a partially 
  1776. qualified filename and PMsndX will return a fully qualified name if it is 
  1777. valid.  Additionally, the parameters of a subcommand are separated by spaces or 
  1778. other special parameters which PMsndX does not receive even if the parameters 
  1779. are in quotations.  By using the function interface to REXX, PMsndX receives 
  1780. the necessary delimiters to allow filenames to contain special characters and 
  1781. spaces. 
  1782.  
  1783. x=FILE(OPENPATH, PATH) 
  1784.  
  1785. Filenames can be specified in any form (i.e. they may contain a drive letter, a 
  1786. file path, and the actual filename).  However, to make batch operations 
  1787. simpler, the path and drive may be specified using this command and any 
  1788. filenames without paths or drives will use the OPENPATH to locate the file.  By 
  1789. default, the current working directory will be used as the OPENPATH. 
  1790.  
  1791. x=FILE(SAVEPATH, PATH) 
  1792.  
  1793. When saving a file, a default path can be saved similar to the OPENPATH 
  1794. command.  All save operations in which the drive and path are not specified 
  1795. will use the specified path.  By default, the current working directory will be 
  1796. used as the SAVEPATH. 
  1797.  
  1798. x=FILE(OPEN, filename, [FORMAT, {AU, AIF, HCM, SF, VOC, SMP, WAV, IFF}]) 
  1799.  
  1800. x=FILE(OPEN, filename, [FORMAT, {UB, SB, UL}, RATE, #{1-65535}, CHANNELS, 
  1801. {1,2,4}]) 
  1802.  
  1803. x=FILE(OPEN, filename, [FORMAT, {UW, SW}, RATE, #{1-65535}, CHANNELS, {1,2,4}, 
  1804. ENDIAN, {BIG, LITTLE}]) 
  1805.  
  1806. Filenames must contain the name of a valid file and may optionally include a 
  1807. drive letter and a specific path. If the path and drive letter are not 
  1808. specified, PMsndX will use the current working directory or the path specified 
  1809. in the OPENPATH command. 
  1810.  
  1811. x=FILE(SAVE, filename, [FORMAT, {AU, AIF, HCM, SF, VOC, SMP, WAV, IFF, UB, SB, 
  1812. UL}]) 
  1813.  
  1814. x=FILE(SAVE, filename, [FORMAT, {UW, SW}, ENDIAN, {BIG, LITTLE}]) 
  1815.  
  1816. Filenames must contain the name of a valid file and may optionally include a 
  1817. drive letter and a specific path. If the path and drive letter are not 
  1818. specified, PMsndX will use the current working directory or the path specified 
  1819. in the SAVEPATH command. 
  1820.  
  1821.  
  1822. ΓòÉΓòÉΓòÉ 9.3. Audio Operations ΓòÉΓòÉΓòÉ
  1823.  
  1824. All operations available through the AUDIO dialog are accessible through the 
  1825. AUDIO Operations group.  When ever an AUDIO command is encountered, the AUDIO 
  1826. dialog is opened if it is not already open.  In the event that the AUDIO file 
  1827. cannot be played, the REXX will hang.  To continue the REXX script without 
  1828. playing the file, close the audio box. 
  1829.  
  1830. AUDIO VOLUME #{0-100} 
  1831.  
  1832. AUDIO PLAY {ASYNC, SYNC} 
  1833.  
  1834. The ASYNC option causes the sound to start playing and lets the REXX script 
  1835. continue.  The SYNC option causes the REXX script to pause while waiting for 
  1836. the playback to complete. 
  1837.  
  1838. AUDIO RECORD {ASYNC, SYNC} TIME 'mm:ss.hhhh' INPUT {MIC, LINE} QUALITY {8, 16} 
  1839. CHANNELS {1, 2} RATE #{1-65535} [OVERWRITE {YES, NO}] [MONITOR {YES, NO}] 
  1840.  
  1841. AUDIO RECORD {ASYNC, SYNC} COUNT #{1-} INPUT {MIC, LINE} QUALITY {8, 16} 
  1842. CHANNELS {1, 2} RATE #{1-65535} [OVERWRITE {YES, NO}] [MONITOR {YES, NO}] 
  1843.  
  1844. AUDIO RECORD {ASYNC, SYNC} MEMORY #{1-} INPUT {MIC, LINE} QUALITY {8, 16} 
  1845. CHANNELS {1, 2} RATE #{1-65535} [OVERWRITE {YES, NO}] [MONITOR {YES, NO}] 
  1846.  
  1847.  
  1848. ΓòÉΓòÉΓòÉ 9.3.1. Audio Playback Options ΓòÉΓòÉΓòÉ
  1849.  
  1850. AUDIO REPEAT {YES, NO} 
  1851.  
  1852. AUDIO CHANNEL_SELECTION {YES, NO} 
  1853.  
  1854. AUDIO RANGE_SELECTION {YES, NO} 
  1855.  
  1856.  
  1857. ΓòÉΓòÉΓòÉ 9.4. Properties Operations ΓòÉΓòÉΓòÉ
  1858.  
  1859. PROPERTIES FOOTNOTES {YES, NO} 
  1860.  
  1861. PROPERTIES SAVE_POSITIONS {YES, NO} 
  1862.  
  1863. PROPERTIES SAVE_OPENPATH {YES, NO} 
  1864.  
  1865. PROPERTIES SAVE_SAVEPATH {YES, NO} 
  1866.  
  1867. PROPERTIES MEMORY AUTO 
  1868.  
  1869. PROPERTIES MEMORY #{1-8192} 
  1870.  
  1871. PROPERTIES ENABLE_MMPM {YES, NO} 
  1872.  
  1873. PROPERTIES SHARE_AUDIO {YES, NO} 
  1874.  
  1875. PROPERTIES PLAY_FROM_COMMANDLINE {YES, NO} 
  1876.  
  1877. PROPERTIES PLAY_ON_LOAD {YES, NO} 
  1878.  
  1879. PROPERTIES EXIT_AFTER_COMMANDLINE_PLAY {YES, NO} 
  1880.  
  1881. PROPERTIES PLAY_16ON8 {YES, NO} 
  1882.  
  1883. PROPERTIES DEVICE devicename 
  1884.  
  1885. PROPERTIES UNDO {YES, NO} 
  1886.  
  1887. PROPERTIES IGNORE_HEADER_STYLE {YES, NO} 
  1888.  
  1889. PROPERTIES REQUIRE_AU_HEADER {YES, NO} 
  1890.  
  1891. PROPERTIES REXX_DISPLAY_HISTORY #{64-32767} 
  1892.  
  1893. PROPERTIES INI_PATH path 
  1894.  
  1895.  
  1896. ΓòÉΓòÉΓòÉ 9.5. Edit Operations ΓòÉΓòÉΓòÉ
  1897.  
  1898. EDIT MANIPULATE {ALL, 1, 2, 3, 4} 
  1899.  
  1900. EDIT AREA ENTIRE_SAMPLE 
  1901.  
  1902. EDIT AREA PART START 'mm:ss.hhhh' END 'mm:ss.hhhh' 
  1903.  
  1904. EDIT OPERATION {COPY, CUT, PASTE, ZERO, REMOVE, CLEAR, MERGE} 
  1905.  
  1906. EDIT UNDO 
  1907.  
  1908.  
  1909. ΓòÉΓòÉΓòÉ 9.6. Effects Operations ΓòÉΓòÉΓòÉ
  1910.  
  1911. TOOLS FORMAT {AU, AIF, HCM, SF, VOC, SMP, WAV, IFF, UB, SB, UL, UW, SW} 
  1912.  
  1913. TOOLS AVERAGE 2_TO_1 FROM {LEFT, CENTER, RIGHT} 
  1914.  
  1915. TOOLS AVERAGE 4_TO_1 FROM {FL, FR, RL, RR} [FROM {FL, FR, RL, RR}...] 
  1916.  
  1917. TOOLS AVERAGE 4_TO_2 FROM {FL, FR, RL, RR} TO {L, R} [FROM {FL, FR, RL, RR} TO 
  1918. {L, R}...] 
  1919.  
  1920. TOOLS DUPE {1_TO_2, 1_TO_4} 
  1921.  
  1922. TOOLS DUPE 2_TO_4 FROM {L, R} TO {FL, FR, RL, RR} [FROM {L, R} TO {FL, FR, RL, 
  1923. RR}...] 
  1924.  
  1925. TOOLS RATE #{1-65535} 
  1926.  
  1927. TOOLS SPEED #{1-65535} 
  1928.  
  1929. TOOLS SPEED {X2, X1/2} 
  1930.  
  1931.  
  1932. ΓòÉΓòÉΓòÉ 9.6.1. Filter Effects Operations ΓòÉΓòÉΓòÉ
  1933.  
  1934. TOOLS FILTER BANDPASS START #{1-65535} CUTOFF #{1-65535} [ADD_NOISE {YES, NO}] 
  1935.  
  1936. TOOLS FILTER BANDPASS CENTER #{1-65535} WIDTH #{1-65535} [ADD_NOISE {YES, NO}] 
  1937.  
  1938. TOOLS FILTER LOWPASS CENTER #{1-65535} GAIN #.#{0.0-1.0} 
  1939.  
  1940.  
  1941. ΓòÉΓòÉΓòÉ 9.6.2. Special Effects Operations ΓòÉΓòÉΓòÉ
  1942.  
  1943. TOOLS EFFECT ECHO MARK 'mm:ss.hhhh' VOLUME #.#{0.0-1.0} [MARK 'mm:ss.hhhh' 
  1944. VOLUME #.#{0.0-1.0} ...] 
  1945.  
  1946. TOOLS EFFECT INVERT 
  1947.  
  1948. TOOLS EFFECT REVERSE 
  1949.  
  1950. TOOLS EFFECT VIBRO SPEED #{0-30} DEPTH #.#{0.0-1.0} 
  1951.  
  1952. TOOLS EFFECT FADE DIRECTION {IN, OUT} METHOD {LINEAR, SLOW, FAST} 
  1953.  
  1954. TOOLS EFFECT LIMIT MAX #{0-100} 
  1955.  
  1956. TOOLS EFFECT LIMIT MULTIPLE #.#{0.0-2.0} 
  1957.  
  1958. TOOLS EFFECT BALANCE2 L #{0-100} R #{0-100} DIRECTION {IN, OUT} METHOD {LINEAR, 
  1959. SLOW, FAST, STEP} 
  1960.  
  1961. TOOLS EFFECT BALANCE4 FL #{0-100} FR #{0-100} RL #{0-100} RR #{0-100} DIRECTION 
  1962. {IN, OUT} METHOD {LINEAR, SLOW, FAST, STEP} 
  1963.  
  1964.  
  1965. ΓòÉΓòÉΓòÉ 9.7. User Operations ΓòÉΓòÉΓòÉ
  1966.  
  1967. PMsndX also provides a dialog method of user input through standard OS/2 
  1968. MESSAGE dialog boxes.  A message dialog provides the user with a means to 
  1969. present text with a dialog containing a icon and standard buttons along with 
  1970. standard OS/2 system sounds to catch the attention of the user.  Since a value 
  1971. is returned from the MESSAGE, it must be formatted as a function. 
  1972.  
  1973. x=MESSAGE(ASK, {OK, OKCANCEL, CANCEL, ENTER, ENTERCANCEL, RETRYCANCEL, 
  1974. ABORTRETRYIGNORE, YESNO, YESNOCANCEL}, ICON, {NOICON, ICONHAND, QUESTION, 
  1975. EXCLAMATION, ASTERISK, INFORMATION, QUERY, WARNING, ERROR}, [MODE, 
  1976. {APPLICATION, SYSTEM},] [MOVEABLE, {YES, NO},] TEXT, 'text', TITLE, 'text') 
  1977.  
  1978. The ASK parameter determines the possible return values. The data returned is a 
  1979. string representing the button pressed by the user.  The possible return values 
  1980. are: 
  1981.  
  1982. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1983. ΓöéType            ΓöéReturn  Γöé
  1984. Γöé                Γöé        Γöé
  1985. ΓöéOK              ΓöéOK      Γöé
  1986. Γöé                Γöé        Γöé
  1987. Γöé                ΓöéERROR   Γöé
  1988. Γöé                Γöé        Γöé
  1989. ΓöéOKCANCEL        ΓöéOK      Γöé
  1990. Γöé                Γöé        Γöé
  1991. Γöé                ΓöéCANCEL  Γöé
  1992. Γöé                Γöé        Γöé
  1993. Γöé                ΓöéERROR   Γöé
  1994. Γöé                Γöé        Γöé
  1995. ΓöéCANCEL          ΓöéCANCEL  Γöé
  1996. Γöé                Γöé        Γöé
  1997. Γöé                ΓöéERROR   Γöé
  1998. Γöé                Γöé        Γöé
  1999. ΓöéENTER           ΓöéENTER   Γöé
  2000. Γöé                Γöé        Γöé
  2001. Γöé                ΓöéERROR   Γöé
  2002. Γöé                Γöé        Γöé
  2003. ΓöéENTERCANCEL     ΓöéENTER   Γöé
  2004. Γöé                Γöé        Γöé
  2005. Γöé                ΓöéCANCEL  Γöé
  2006. Γöé                Γöé        Γöé
  2007. Γöé                ΓöéERROR   Γöé
  2008. Γöé                Γöé        Γöé
  2009. ΓöéRETRYCANCEL     ΓöéRETRY   Γöé
  2010. Γöé                Γöé        Γöé
  2011. Γöé                ΓöéCANCEL  Γöé
  2012. Γöé                Γöé        Γöé
  2013. Γöé                ΓöéERROR   Γöé
  2014. Γöé                Γöé        Γöé
  2015. ΓöéABORTRETRYIGNOREΓöéABORT   Γöé
  2016. Γöé                Γöé        Γöé
  2017. Γöé                ΓöéRETRY   Γöé
  2018. Γöé                Γöé        Γöé
  2019. Γöé                ΓöéIGNORE  Γöé
  2020. Γöé                Γöé        Γöé
  2021. Γöé                ΓöéERROR   Γöé
  2022. Γöé                Γöé        Γöé
  2023. ΓöéYESNO           ΓöéYES     Γöé
  2024. Γöé                Γöé        Γöé
  2025. Γöé                ΓöéNO      Γöé
  2026. Γöé                Γöé        Γöé
  2027. Γöé                ΓöéERROR   Γöé
  2028. Γöé                Γöé        Γöé
  2029. ΓöéYESNOCANCEL     ΓöéYES     Γöé
  2030. Γöé                Γöé        Γöé
  2031. Γöé                ΓöéNO      Γöé
  2032. Γöé                Γöé        Γöé
  2033. Γöé                ΓöéCANCEL  Γöé
  2034. Γöé                Γöé        Γöé
  2035. Γöé                ΓöéERROR   Γöé
  2036. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2037.  
  2038. The following ICONs and the associated sounds for the dialog (from the System 
  2039. Events in the MMPM Sound setup): 
  2040.  
  2041.       NOICON - () - NONE 
  2042.       ICONHAND - () - Error sound 
  2043.       QUESTION - () - Information sound 
  2044.       EXCLAMATION - () - Warning sound 
  2045.       ASTERISK - () - NONE 
  2046.       INFORMATION - () - NONE 
  2047.       QUERY - () - Information sound 
  2048.       WARNING - () - Warning sound 
  2049.       ERROR - () - Error sound 
  2050.  
  2051.  The MODE specifies how the window is displayed with relation to other windows 
  2052.  on the system.  If no MODE keyword is specified or APPLICATION is specified, 
  2053.  then the dialog window will can be covered by other windows from the desktop. 
  2054.  If SYSTEM is specified, then the dialog box will prevent other windows on the 
  2055.  desktop from covering it. 
  2056.  
  2057.  The MOVEABLE keyword is used to determine if a titlebar is provided on the 
  2058.  message dialog box.  If the MOVEABLE keyword is not specified or if it is 
  2059.  specified as NO, then there will be no titlebar on the message dialog and it 
  2060.  cannot be moved around the screen.  Specifying YES allows the user to move the 
  2061.  message dialog box around the screen. 
  2062.  
  2063.  
  2064. ΓòÉΓòÉΓòÉ 9.8. Miscellaneous Operations ΓòÉΓòÉΓòÉ
  2065.  
  2066. PMSNDX EXIT 
  2067.  
  2068. The EXIT keyword sends a message to PMsndX to exit.  This is the same as 
  2069. clicking CLOSE on the system menu of the control panel. 
  2070.  
  2071. PMSNDX UPDATEWINDOWS 
  2072.  
  2073. The UPDATEWINDOWS keyword forces PMsndX to update all windows that are 
  2074. currently displayed.  During the processing of a REXX script, most windows are 
  2075. not updated when they are open.  Of course there are exceptions to this such as 
  2076. the EDITOR and the AUDIO dialogs in which updates are required to allow the 
  2077. user to maintain control over the current operation. 
  2078.  
  2079. PMSNDX CLOSE {YES,NO} 
  2080.  
  2081. If no errors occur during the execution of a REXX script, the REXX output 
  2082. window will automatically close itself.  However, by specifying the CLOSE 
  2083. keyword and the parameter YES, the window can be forced to remain open.  In the 
  2084. event that an error occurs in the REXX script, this command has no effect. 
  2085.  
  2086. PMSNDX IGNORE_SYNTAX_ERRORS {YES,NO} 
  2087.  
  2088. When writing REXX scripts for PMsndX, it may be desirable to pass the REXX 
  2089. through the interpreter to check the syntax of the commands without having 
  2090. PMsndX stop at each error.  When this option is turned on, PMsndX will still 
  2091. display the errors in RED, but will not stop after the error. 
  2092.  
  2093. PMSNDX OUTPUT {YES,NO} 
  2094.  
  2095. By default, PMsndX displays each PMsndX command or function as it is executed. 
  2096. This output can be turned off with this command by specifying NO 
  2097.  
  2098. PMSNDX TEST_MODE {YES,NO} 
  2099.  
  2100. By setting PMsndX into REXX TEST_MODE, REXX scripts will be processed as usual 
  2101. except that the commands will not actually be executed.  This option is 
  2102. primarily used during the testing of the REXX syntax parser during the 
  2103. development of PMsndX, and has been provided to allow scripts to be tested 
  2104. syntatically before using them. 
  2105.  
  2106. return 'text' 
  2107.  
  2108.  
  2109. ΓòÉΓòÉΓòÉ 9.9. Query/Test Operations ΓòÉΓòÉΓòÉ
  2110.  
  2111. The functions which make up the QUERY group return values which are identical 
  2112. to the parameters expected by the indicated command.  To determine the range of 
  2113. values that may be returned, see the corresponding command and keyword 
  2114. combinations. 
  2115.  
  2116. X=QUERY(FILE, OPENPATH) 
  2117.  
  2118. X=QUERY(FILE, SAVEPATH) 
  2119.  
  2120. X=QUERY(FILE, FILENAME) 
  2121.  
  2122. X=QUERY(INFO, FORMAT) 
  2123.  
  2124. X=QUERY(INFO, DATASTYLE) 
  2125.  
  2126. X=QUERY(INFO, CHANNELS) 
  2127.  
  2128. X=QUERY(INFO, RATE) 
  2129.  
  2130. X=QUERY(INFO, DATASIZE) 
  2131.  
  2132. X=QUERY(INFO, SAMPLES) 
  2133.  
  2134. X=QUERY(INFO, TIME) 
  2135.  
  2136. X=QUERY(INFO, MEMORY) 
  2137.  
  2138. X=QUERY(INFO, COMMENT) 
  2139.  
  2140. X=QUERY(INFO, BYTEORDER) 
  2141.  
  2142. X=QUERY(AUDIO, VOLUME) 
  2143.  
  2144. X=QUERY(AUDIO, REPEAT) 
  2145.  
  2146. X=QUERY(AUDIO, CHANNEL_SELECTION) 
  2147.  
  2148. X=QUERY(AUDIO, RANGE_SELECTION) 
  2149.  
  2150. X=QUERY(AUDIO, TIME) 
  2151.  
  2152. X=QUERY(AUDIO, COUNT) 
  2153.  
  2154. X=QUERY(AUDIO, MEMORY) 
  2155.  
  2156. X=QUERY(AUDIO, INPUT) 
  2157.  
  2158. X=QUERY(AUDIO, QUALITY) 
  2159.  
  2160. X=QUERY(AUDIO, CHANNELS) 
  2161.  
  2162. X=QUERY(AUDIO, RATE) 
  2163.  
  2164. X=QUERY(AUDIO, OVERWRITE) 
  2165.  
  2166. X=QUERY(AUDIO, MONITOR) 
  2167.  
  2168. X=QUERY(PROPERTIES, FOOTNOTES) 
  2169.  
  2170. X=QUERY(PROPERTIES, SAVE_POSITIONS) 
  2171.  
  2172. X=QUERY(PROPERTIES, SAVE_OPENPATH) 
  2173.  
  2174. X=QUERY(PROPERTIES, SAVE_SAVEPATH) 
  2175.  
  2176. X=QUERY(PROPERTIES, MEMORY) 
  2177.  
  2178. X=QUERY(PROPERTIES, ENABLE_MMPM) 
  2179.  
  2180. X=QUERY(PROPERTIES, SHARE_AUDIO) 
  2181.  
  2182. X=QUERY(PROPERTIES, PLAY_ON_LOAD) 
  2183.  
  2184. X=QUERY(PROPERTIES, EXIT_AFTER_COMMANDLINE_PLAY) 
  2185.  
  2186. X=QUERY(PROPERTIES, PLAY_16ON8) 
  2187.  
  2188. X=QUERY(PROPERTIES, DEVICE) 
  2189.  
  2190. X=QUERY(PROPERTIES, UNDO) 
  2191.  
  2192. X=QUERY(PROPERTIES, IGNORE_HEADER_STYLE) 
  2193.  
  2194. X=QUERY(PROPERTIES, REQUIRE_AU_HEADER) 
  2195.  
  2196. X=QUERY(PROPERTIES, REXX_DISPLAY_HISTORY) 
  2197.  
  2198. X=QUERY(PROPERTIES, INI_PATH) 
  2199.  
  2200. x=QUERY(PMSNDX, VERSION) 
  2201.  
  2202. Returns the current version number. 
  2203.  
  2204. x=QUERY(PMSNDX, REGISTERED) 
  2205.  
  2206. Returns {YES,NO} to indicate whether PMsndX has been registered. 
  2207.  
  2208. x=QUERY(PMSNDX, ERROR_OCCURRED) 
  2209.  
  2210. Returns {YES,NO} indicating whether an error has occurred.  If this is set to 
  2211. YES then the REXX output window will not close when the REXX script has 
  2212. completed execution. 
  2213.  
  2214. x=QUERY(PMSNDX, CLOSE) 
  2215.  
  2216. Returns {YES,NO} indicating whether the REXX script has told PMsndX not to 
  2217. close the REXX output window when the script completes. 
  2218.  
  2219. x=QUERY(PMSNDX, IGNORE_SYNTAX_ERRORS) 
  2220.  
  2221. Returns {YES,NO} indicating whether the PMsndX has been told to ignore errors. 
  2222.  
  2223. x=QUERY(PMSNDX, OUTPUT) 
  2224.  
  2225. Returns {YES,NO} indicating whether the PMsndX commands are echoed in the REXX 
  2226. output window. 
  2227.  
  2228. x=QUERY(PMSNDX, TEST_MODE) 
  2229.  
  2230. Returns {YES,NO} indicating that the PMsndX is in TEST_MODE. 
  2231.  
  2232.  
  2233. ΓòÉΓòÉΓòÉ 9.10. Animation Operations ΓòÉΓòÉΓòÉ
  2234.  
  2235. During the processing of a REXX script, the various dialogs may be 
  2236. automatically opened and the user may wish to "clean up" the screen before 
  2237. completing the rexx script.  A set of controls is provided to allow for user 
  2238. controlled animation of the desktop. 
  2239.  
  2240. DISPLAY EDITOR {YES, NO} [CHANNEL {1, 2, 3, 4}] 
  2241.  
  2242. If the optional CHANNEL keyword is specified, the editor will display the 
  2243. selected channel when it is opened.  If the editor is already displayed, the 
  2244. channel displayed will change to that specified.  If the new channel to display 
  2245. is larger than the number of channels in the sample, the displayed channel will 
  2246. remain unchanged. 
  2247.  
  2248. DISPLAY TOOLS {YES, NO} 
  2249.  
  2250. DISPLAY TOOLPAGE {INFO, FORMAT, CHANNELS, AVERAGE, DUPE, FILTER, BANDPASS, 
  2251. LOWPASS, SAMPLE, RATE, SPEED, EFFECT, ECHO, INVERT, REVERSE, VIBRO, VOLUME, 
  2252. FADE, LIMIT, BALANCE} 
  2253.  
  2254. DISPLAY OPEN {YES, NO} 
  2255.  
  2256. DISPLAY SAVE {YES, NO} 
  2257.  
  2258. DISPLAY PROPERTIES {YES, NO} 
  2259.  
  2260. DISPLAY PROPPAGE {AUDIO, MEMORY, MISC, REXX, STARTUP} 
  2261.  
  2262. DISPLAY AUDIO {YES, NO} 
  2263.  
  2264.  
  2265. ΓòÉΓòÉΓòÉ 9.11. REXX return values ΓòÉΓòÉΓòÉ
  2266.  
  2267. Both FUNCTIONS and COMMANDS return error codes in the event that an error 
  2268. occurs when processing the commands.  The error codes are composed of two 8 bit 
  2269. numbers logically ORed together. 
  2270.  
  2271. The upper 8 bits of the return code indicates the command command group which 
  2272. caused the error.  The following table lists the possible values. 
  2273.  
  2274. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2275. ΓöéGroup               ΓöéValue       Γöé
  2276. Γöé                    Γöé            Γöé
  2277. ΓöéUnknown             Γöé0x00000100  Γöé
  2278. Γöé                    Γöé            Γöé
  2279. ΓöéFILE                Γöé0x00000200  Γöé
  2280. Γöé                    Γöé            Γöé
  2281. ΓöéAUDIO               Γöé0x00000300  Γöé
  2282. Γöé                    Γöé            Γöé
  2283. ΓöéPROPERTIES          Γöé0x00000400  Γöé
  2284. Γöé                    Γöé            Γöé
  2285. ΓöéEDIT                Γöé0x00000500  Γöé
  2286. Γöé                    Γöé            Γöé
  2287. ΓöéTOOLS               Γöé0x00000600  Γöé
  2288. Γöé                    Γöé            Γöé
  2289. ΓöéMESSAGE             Γöé0x00000700  Γöé
  2290. Γöé                    Γöé            Γöé
  2291. ΓöéPMSNDX              Γöé0x00000800  Γöé
  2292. Γöé                    Γöé            Γöé
  2293. ΓöéQUERY               Γöé0x00000900  Γöé
  2294. Γöé                    Γöé            Γöé
  2295. ΓöéDISPLAY             Γöé0x00000a00  Γöé
  2296. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2297.  
  2298. The lower 8 bits of the result indicate the reason for the error. The possible 
  2299. values are listed in the following table. 
  2300.  
  2301. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2302. ΓöéError               ΓöéValue       Γöé
  2303. Γöé                    Γöé            Γöé
  2304. ΓöéNOT IMPLEMENTED     Γöé0x00000001  Γöé
  2305. Γöé                    Γöé            Γöé
  2306. ΓöéBAD VALUE           Γöé0x00000002  Γöé
  2307. Γöé                    Γöé            Γöé
  2308. ΓöéUNKNOWN PARAMETER   Γöé0x00000003  Γöé
  2309. Γöé                    Γöé            Γöé
  2310. ΓöéUNKNOWN KEYWORD     Γöé0x00000004  Γöé
  2311. Γöé                    Γöé            Γöé
  2312. ΓöéUNKNOWN COMMAND     Γöé0x00000005  Γöé
  2313. Γöé                    Γöé            Γöé
  2314. ΓöéUNKNOWN FUNCTION    Γöé0x00000006  Γöé
  2315. Γöé                    Γöé            Γöé
  2316. ΓöéMISSING PARAMETER   Γöé0x00000007  Γöé
  2317. Γöé                    Γöé            Γöé
  2318. ΓöéMISSING KEYWORD     Γöé0x00000008  Γöé
  2319. Γöé                    Γöé            Γöé
  2320. ΓöéMISSING COMMAND     Γöé0X00000009  Γöé
  2321. Γöé                    Γöé            Γöé
  2322. ΓöéMISSING FUNCTION    Γöé0X0000000a  Γöé
  2323. Γöé                    Γöé            Γöé
  2324. ΓöéUNBALANCED KEYWORD  Γöé0x0000000b  Γöé
  2325. Γöé                    Γöé            Γöé
  2326. ΓöéEXTRA DATA          Γöé0x0000000c  Γöé
  2327. Γöé                    Γöé            Γöé
  2328. ΓöéDUPLICATE KEYWORD   Γöé0x0000000d  Γöé
  2329. Γöé                    Γöé            Γöé
  2330. ΓöéINVALID PATH        Γöé0x00000010  Γöé
  2331. Γöé                    Γöé            Γöé
  2332. ΓöéBAD FILE NAME       Γöé0x00000011  Γöé
  2333. Γöé                    Γöé            Γöé
  2334. ΓöéNO SAMPLES          Γöé0x00000012  Γöé
  2335. Γöé                    Γöé            Γöé
  2336. ΓöéCANNOT PLAYBACK     Γöé0x00000013  Γöé
  2337. Γöé                    Γöé            Γöé
  2338. ΓöéCANNOT RECORD       Γöé0x00000014  Γöé
  2339. Γöé                    Γöé            Γöé
  2340. ΓöéNO MMPM INSTALLED   Γöé0x00000020  Γöé
  2341. Γöé                    Γöé            Γöé
  2342. ΓöéMMPM NOT ENABLED    Γöé0x00000021  Γöé
  2343. Γöé                    Γöé            Γöé
  2344. ΓöéGENERAL FUNCTION    Γöé0x00000030  Γöé
  2345. ΓöéERROR               Γöé            Γöé
  2346. Γöé                    Γöé            Γöé
  2347. ΓöéGENERAL COMMAND     Γöé0x00000031  Γöé
  2348. ΓöéERROR               Γöé            Γöé
  2349. Γöé                    Γöé            Γöé
  2350. ΓöéPROGRAM NOT         Γöé0x000000ff  Γöé
  2351. ΓöéREGISTERED          Γöé            Γöé
  2352. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2353.  
  2354.  
  2355. ΓòÉΓòÉΓòÉ 10. Technical Issues ΓòÉΓòÉΓòÉ
  2356.  
  2357. Memory Usage: I have worked with means for storing and converting from one 
  2358. format to another efficiently.  Initially I tried to store things in a data 
  2359. structure which was a union of all of the types of data that are used by the 
  2360. computers.  However, converting from one format to another was difficult and 
  2361. each effect had to be able to understand the initial and final format.  This 
  2362. became unwieldy considering that there can be either signed or unsigned samples 
  2363. of sizes byte or word.  As new effects were added, it became unmanageable.  At 
  2364. a sacrifice to memory efficiency, I have changed it to store all data as a 
  2365. signed SHORT (2 byte) sample.  The effects then operate generically on the 
  2366. samples and the only time that the type of data is important is when reading or 
  2367. writing the samples.  The savings in complexity justified the memory 
  2368. requirements.  As a result, if a sample is 1k of bytes (.wav format), then in 
  2369. memory it will take up 2k.  Currently the program will only read and write 8 
  2370. and 16 bit samples. Since I don't know of any sound cards that can sample at 
  2371. greater bit sizes, this is the limit.  In the future, this approach to memory 
  2372. usage can be easily extended to 32 bits without rewriting every part of the 
  2373. program.  In fact, to change the storage sizes, two definitions have to be 
  2374. changed and then the proper input/output routines written.  Simple? I think so. 
  2375.  
  2376.  
  2377. ΓòÉΓòÉΓòÉ 10.1. Additional known faults ΓòÉΓòÉΓòÉ
  2378.  
  2379. There is a known problem with PMsndX and version 3.0 of MMPM/2 which affects 
  2380. the performance of the Audio playback. When running PMsndX under Warp, anything 
  2381. which interrupts the playback of a sample (such as a system sound or pressing 
  2382. Pause) will cause PMsndX to hang the next time playback is requested. I have 
  2383. tried to correct this but have found no solution at this time.  For this 
  2384. reason, I have provided the option to have PMsndX open the Audio device without 
  2385. sharing it (the default). This problem does not appear to affect PMsndX on 
  2386. previous versions of OS/2 (i.e. 2.0, 2.1 and 2.11). 
  2387.  
  2388. From an OS/2 window run the command SYSLEVEL.  If you receive the following 
  2389. output, then your system will probably exhibit the problem. 
  2390.  
  2391.       E:\MMOS2\INSTALL\SYSLEVEL.MPM 
  2392.                    IBM Multimedia Presentation Manager/2 
  2393.       Version 3.00   Component ID 562137400 
  2394.       Type W 
  2395.       Current CSD level: XR03000 
  2396.       Prior  CSD level: XR03000 
  2397.  
  2398.  To test to see if your system will encounter this problem, open a sample file 
  2399.  and select the AUDIO button on the main control panel. Start playback by 
  2400.  pressing the PLAY button and then pressing the PAUSE button.  Press the PAUSE 
  2401.  button again to resume playback. If the PLAY button stops moving after the 
  2402.  sample has finished playing, PMsndX will not lock up on your system.  You 
  2403.  should set PMsndX to share the audio device by going to the startup properties 
  2404.  page (from the main control panel system menu). If the playback button does 
  2405.  not stop moving after the sample has finished, then you should avoid using the 
  2406.  PAUSE button and leave PMsndX set so that it does not share the AUDIO device. 
  2407.  
  2408.  I apologize for this problem, and a new revision of MMPM/2 will correct this 
  2409.  in the future. 
  2410.  
  2411.  Minor limitations: 
  2412.  
  2413.    1. When recording a sample, the CD input cannot be used at this time. 
  2414.    2. There is no way to edit multiple sounds at the same time. 
  2415.  
  2416.  
  2417. ΓòÉΓòÉΓòÉ 11. About the Author ΓòÉΓòÉΓòÉ
  2418.  
  2419. My name is William Scott Hiles but I usually go by the name Scott.  I have a 
  2420. masters degree in signal processing and satellite communications. 
  2421. Unfortunately, my occupation utilizes very little of my formal education and 
  2422. takes more advantage of my less formally learned talents.  I work as an 
  2423. electrical engineer for the Navy in the area of LAN and WAN research. My job is 
  2424. centered around promoting open systems in networking within the Navy and I am a 
  2425. Navy expert on fiber optic networking.  I have worked with the ANSI X3 
  2426. committees for the past 5 years and currently (1993-1994) am the chairman of 
  2427. the FDDI Repeater specification.  Enough of that dribble...the point is that I 
  2428. don't use my education in my job. 
  2429.  
  2430. Which leads me into the purpose of this program.  I am an electrical engineer, 
  2431. and my heart lies in hardware design and programming.  Well, with this program 
  2432. I can at least satisfy my need to create software.  So, this program came about 
  2433. because I was playing with sampling and recreating sound with my Sound Blaster 
  2434. 16 when I had the need to convert from the .wav format to the Sun .au format. 
  2435. After finding a little program that would convert Sun audio files to the PC 
  2436. format I found that it had problems with the new version of .WAV files.  So, I 
  2437. set out to write something that worked with the latest versions.  Well, from 
  2438. there it was not difficult to add other formats, and then I started playing 
  2439. with manipulations and so forth.  Over about 11 months of very time consuming 
  2440. work, I came up with the present program called PMsndX. 
  2441.  
  2442. My resources are modest.  I am 29 (1993) and have programmed everything from a 
  2443. PC to a 486 for the past 10 years.  I dumped my 286 in February of 1993 and got 
  2444. me a nice 486.  I decked the thing out and got OS/2.  I had been playing with 
  2445. OS/2 since 1.3 on machines that I did not own, but this was the first time I 
  2446. had it at home to play with as I pleased. Programming under OS/2 provided a 
  2447. unique challenge with unlimited creative abilities.  The company called 
  2448. WiSHware which is listed in the About box was formed as a shareware/freeware 
  2449. incorporated name for anything I write.  I have a significant library of 
  2450. programs for DOS and even a couple for Windows.  PMsndX is the second program 
  2451. for OS/2 that I have written.  The first one was not well received as it did 
  2452. not provide a significant function to the community.  Big deal.  I use it at 
  2453. home and I don't care. 
  2454.  
  2455. So that is my history and my qualification.  I am a bit surprised that you read 
  2456. this far.  Congratulations. By the way, did you wonder why I chose a little 
  2457. blue motorcycle for the icon? Very simply put, the modern day sportsbike 
  2458. represents the art of functional integration while still maintaining the 
  2459. quality and sound of much more expensive motorcycles. 
  2460.  
  2461. I can easily be reached by my current email address 
  2462. (whiles@relay.nswc.navy.mil) or through US mail at: 
  2463.  
  2464.       Scott Hiles 
  2465.       4421 Savannah St. 
  2466.       King George, VA 22485 
  2467.  
  2468.  
  2469. ΓòÉΓòÉΓòÉ 12. Shareware ΓòÉΓòÉΓòÉ
  2470.  
  2471. During the development stages of PMsndX (i.e. until version 1.0 is available) 
  2472. PMsndX is free to all for distribution. After version 1.0 is finished, the 
  2473. program will then be distributed as shareware.  Anyone who does not want to 
  2474. register later versions will still be able to use all of the releases before 
  2475. 1.0. 
  2476.  
  2477. Licensing and registration fees apply to the user interface and style of the 
  2478. program but do not apply to the algorithms used to create the effects.  These 
  2479. algorithms are public domain and may be copied and distributed freely. 
  2480.  
  2481. I have put a lot of effort into making this program robust and very pleasing. 
  2482. It has taken me more than nine months and 35,000 lines of code to get this 
  2483. program to where it is now, and I would hope that if you like the program and 
  2484. use it, you will appreciate it enough to send me a little cash to help fund 
  2485. future work.  I don't expect much. 
  2486.  
  2487. Asking for money is a sticky thing.  The big problem is to give people a 
  2488. program so that they can play with to see what it can do and yet hold back 
  2489. enough to get people to want to register the program.  I put a lot of thought 
  2490. into this and have considered the many ways that authors achieve their goals. 
  2491. My solution was to disable the ability to read or write any formats other than 
  2492. the PC .WAV and the Sun .AU types, and disable the UNDO capibility. 
  2493. Additionally, the multi-channel capability of the program is disabled and the 
  2494. clipboard will not copy or cut anything less than the entire sample in memory. 
  2495.  
  2496.  
  2497. ΓòÉΓòÉΓòÉ 13. Registration ΓòÉΓòÉΓòÉ
  2498.  
  2499. I have three options which I can offer which seem to follow with common 
  2500. SHAREWARE practice.  I have looked in stores for something that provides 
  2501. anything similar and found that a commercial product for Windows with half the 
  2502. functions cost considerably more.  A registration form is provided and the 
  2503. following are the options for registration. 
  2504.  
  2505. 1.  $15.00 will get you a password that will enable all of the functions of the 
  2506. current version. 
  2507.  
  2508. 2.  $30.00 will get you a password that will enable all of the functions for 
  2509. all versions up to the next major release.  If you chose to register using 
  2510. option 1 first and then want to upgrade, I will give you a $10 credit and you 
  2511. can get option 2 for $20.00. 
  2512.  
  2513. 3.  $50.00 will get you a password that will enable all of the functions for 
  2514. all future versions.  If you have chosen to register using option 2 first, I 
  2515. will give you a $20 credit and you can get the lifetime registration for 
  2516. $30.00.  If you have registered with option 1 first, then I will give you $10 
  2517. credit and you can get the lifetime registration for $40.00. 
  2518.  
  2519. Note:  Please note.  These prices cover just the registration.  Shipping 
  2520.        charges for the disks through the Postal service are extra.  If you 
  2521.        order the program through the mail, add $3.00 to cover the media and 
  2522.        shipping costs. 
  2523.  
  2524.   The section describing the Author provides my email and US postal mail 
  2525.  addresses. 
  2526.  
  2527.  Now, what do you get when you register.  Well, you obviously get a password 
  2528.  that will enable all functions of the program.  The functions that are 
  2529.  disabled for unregistered users are: 
  2530.  
  2531.  Formats   Only .AU and .WAV formats can be loaded and saved 
  2532.  Editor    The Cut and Paste operations of the editor only work for the full 
  2533.            sample (i.e. will not work for ranges) 
  2534.  Undo      The UNDO function is disabled 
  2535.  REXX      The REXX functionality will allow the program to run a REXX script 
  2536.            to automate repetitive tasks 
  2537.  
  2538.  In addition to that, I can provide limited technical support through regular 
  2539.  phone service, email, or the US Postal service.  A number of people have 
  2540.  contacted me to ask for special programs (e.g. programs that will just play 
  2541.  any format without the overhead of the editor or a program that will just 
  2542.  convert between formats).  These will be fairly easy to create using the 
  2543.  existing objects of PMsndX.  If you are registered for PMsndX, these programs 
  2544.  will automatically recognize the registration and work on your system. 
  2545.  
  2546.  If and when you register, you will receive a password through whatever means 
  2547.  that you prefer.  If you choose the postal service, you will receive it via 
  2548.  disk along with the latest copy of the program (remember to include an 
  2549.  additional $3.00 to cover the shipping and media).  If you choose to receive 
  2550.  your registration through email, you will receive an email message that can be 
  2551.  imported using the FILE button of the registration dialog.  Registrations will 
  2552.  be sent after your form of payment has cleared. 
  2553.  
  2554.  Although not currently provided, credit cards will eventually be accepted if 
  2555.  the program makes enough profit to afford the service.  Please allow at least 
  2556.  two weeks to receive your registration. 
  2557.  
  2558.  Since PMsndX is provided as ShareWare, there is no provision for refunds.  In 
  2559.  the event that you are dissatisified with the operation of PMsndX due to an 
  2560.  error in loading or saving a format, contact me and I will fix the program if 
  2561.  you can provide me with a copy of the file that is causing the problem or 
  2562.  enough detail that I can recreate the problem. 
  2563.  
  2564.  
  2565. ΓòÉΓòÉΓòÉ 14. Entering Registration Info ΓòÉΓòÉΓòÉ
  2566.  
  2567. Once you receive your registration you have a couple of options for entering it 
  2568. into the program.  First, pull up either the Welcome or About dialog box from 
  2569. the system menu of PMsndX.  Press the REGISTER button to bring up the 
  2570. registration dialog box. 
  2571.  
  2572. You may enter the data directly into the entry fields or you may have the 
  2573. program scan a data file for your registration information. When entering data, 
  2574. enter it exactly as it is shown in the file or text for your registration.  The 
  2575. Name field must not have any additional spaces and it must be entered in exact 
  2576. case. The password is 16 characters long and will never contain any space 
  2577. characters.  It is case sensitive so be careful to get the case right. 
  2578. Passwords never contain the upper case letter O or the upper case letter I to 
  2579. avoid confusion with similar looking numbers. 
  2580.  
  2581. When PMsndX scans a file for the password information, it looks for the 
  2582. following keys: 
  2583.  
  2584.       PMsndX Name: 
  2585.       Through version: 
  2586.       PMsndX Password: 
  2587.  
  2588.  These lines can be anywhere in a file so there is no need to remove a mail 
  2589.  header or extra information.  PMsndX will search the file for the specific 
  2590.  text that it is looking for and extract it. 
  2591.  
  2592.  The registration information is stored in the file called os2.ini.  This 
  2593.  allows a copy of PMsndX to be run from a network and each machine can have 
  2594.  it's own registration. This also allows the pmsndx.ini file to be copied form 
  2595.  one machine to another without violating the licensing agreement.  Five items 
  2596.  are stored in the os2.ini and total about 100 bytes.  Any .ini editor can be 
  2597.  used to remove this information if the user wishes to delete PMsndX from the 
  2598.  system. 
  2599.  
  2600.  Note:  The information in the os2.ini file is only written when the program is 
  2601.         registered.  This avoids adding stuff to the os2.ini file unless the 
  2602.         user has chosen that the program is worth keeping. 
  2603.  
  2604.  
  2605. ΓòÉΓòÉΓòÉ 15. Tradeoffs ΓòÉΓòÉΓòÉ
  2606.  
  2607. When PMsndX is operating on a sample for the clipboard, AUDIO, or the tools, it 
  2608. stores the entire sample in memory.  This has the advantage that the program 
  2609. can double buffer the sample for faster operation; but, it has the disadvantage 
  2610. that it can take up a tremendous amount of memory to hold large samples. 
  2611. PMsndX provides the user with a simple interface at the expense of resources on 
  2612. the host computer. 
  2613.  
  2614.  
  2615. ΓòÉΓòÉΓòÉ 16. Copyright ΓòÉΓòÉΓòÉ
  2616.  
  2617. The author makes NO WARRANTY or representation, either expressed or implied, 
  2618. with respect to PMsndX, its quality, accuracy, merchantability, or fitness for 
  2619. a particular purpose.  This software is provided "AS IS" and you, its user, 
  2620. assume the entire risk as to its quality and accuracy. 
  2621.  
  2622. This software is copyright (C) 1994, William S. Hiles.  All rights Reserved 
  2623. except as specified below. 
  2624.  
  2625. Permission is hereby granted to use, copy, and distribute this software (or 
  2626. portions thereof) for any purpose, without fee, subject to these conditions: 
  2627.  
  2628. (1) The seven files, pmsndx.exe, pmsndx.hlp, readme.txt, history.txt, 
  2629. license.txt, order.txt and file_id.diz must always be included during 
  2630. distribution. Any alterations to the files must be clearly documented.  No 
  2631. changes may be made to the About screen or any of the copyright information. 
  2632.  
  2633. (2) Permission for use of this software is granted only if the user accepts 
  2634. full responsibility for any undesirable consequences.  The author accepts NO 
  2635. LIABILITY for damages of any kind. 
  2636.  
  2637. (3) Permission is not granted for the use of the author's name or company name 
  2638. in advertising or publicity relating to this software or products derived from 
  2639. it. 
  2640.  
  2641. (4) Users are granted permission to collect fees for the distribution of 
  2642. PMsndX, (such as BBS's that have a membership fee or a downloading charge, or 
  2643. FTP sites that sell cdrom versions of their archives) but users are 
  2644. specifically prohibited from selling PMsndX as a product or bundling PMsndX 
  2645. with other products that are then sold. 
  2646.  
  2647. (5) Unless otherwise negotiated in writing with the Author, registration 
  2648. passwords for PMsndX may not be distributed in part or in whole.  Registrations 
  2649. are provided to individuals (or for site licensing as negotiated at time of 
  2650. registration) and may not be distributed or transferred. 
  2651.  
  2652.  
  2653. ΓòÉΓòÉΓòÉ 17. Acknowledgements ΓòÉΓòÉΓòÉ
  2654.  
  2655. Of course, IBM deserves a great deal of recognition for providing an operating 
  2656. system that is robust and stable and affordable enough for the general user. 
  2657. Many thanks to IBM for a fine job on creating OS/2. 
  2658.  
  2659. A special thanks is required for Linden deCarmo for his help in understanding 
  2660. the MMPM/2 portion of OS/2. 
  2661.  
  2662. Many thanks to the fine group of people who made suggestions for corrections 
  2663. and improvements in this program.  This team of very patient individuals from 
  2664. around the world comprised the Beta Test team.  Each and every one of them 
  2665. contributed in some way to the development of PMsndX.  Their names are listed 
  2666. below (in alphabetical order). 
  2667.  
  2668.       David Charlap 
  2669.       Christopher W. Curtis 
  2670.       Linden deCarmo 
  2671.       Terrance L. Eck 
  2672.       Scott E. Garfinkle 
  2673.       Jesse Gearhart 
  2674.       Nicole Greiber 
  2675.       Christopher Hemmer 
  2676.       Rick Huebner 
  2677.       Mark R. Johnson 
  2678.       Dov Nelkin 
  2679.       Lara Olofsson 
  2680.       Steve Patrick 
  2681.       Rupa Schomaker 
  2682.       Kamal Shakker 
  2683.       Brett Sherron-Ferrell 
  2684.       Jimmy Shaw 
  2685.       Kent Williams 
  2686.  
  2687.  And of course, that special person and the kids who took the many hours of 
  2688.  clicking away at the keyboard in stride.  They stuck by me throughout this 
  2689.  entire thing, read all the documentation, tested the user interface, and 
  2690.  actually began to understand how sound really works. 
  2691.  
  2692.  Sounds like a Grammy award, huh. 
  2693.  
  2694.  
  2695. ΓòÉΓòÉΓòÉ 18. Installation ΓòÉΓòÉΓòÉ
  2696.  
  2697. PMsndX includes a rudimentary installation program which copies the necessary 
  2698. files to the user specified destination directories. This program relies on the 
  2699. PATH and HELP variable to select the paths to copy the executable and help 
  2700. files to. 
  2701.  
  2702. From 
  2703.  
  2704. When the installation program is run, a window is displayed with a field which 
  2705. indicates where the source files are located.  By default, this is filled in 
  2706. with the location of the installation program.  If the installation program has 
  2707. been moved from a directory other than where it was originally unzipped to, 
  2708. specify the directory where the files pmsndx.exe, pmsndx.hlp, and smallhlp.hlp 
  2709. are located. 
  2710.  
  2711. Location of executable 
  2712.  
  2713. The paths specified in the system PATH variable are displayed in this window. 
  2714. In order for PMsndX to be run from the command line or used by other programs 
  2715. for playback, PMsndX must be in a directory specified in the PATH variable. 
  2716. The user may enter a different path in the editable window; however, PMsndX may 
  2717. not be able to be run from the command line without specifying a complete path. 
  2718. All directories must exist before running the installation program. 
  2719.  
  2720. Location of Help file 
  2721.  
  2722. The paths specifed in the system HELP variable are displayed in this window. 
  2723. When PMsndX is run, it will look in the directory from where the executable was 
  2724. started and then in the directories specified in the HELP variable.  The user 
  2725. may specify a directory other than one that is listed in the window, but it 
  2726. must exist for the installation program to complete.  Additionally, it is up to 
  2727. the user to add the new path to the help variable of the config.sys. 
  2728.  
  2729. Help Version 
  2730.  
  2731. PMsndX comes with two versions of the HELP file.  The default version is called 
  2732. pmsndx.hlp and includes bitmaps of the various windows and is about three times 
  2733. the size of the other help file.  The condensed help file does not include the 
  2734. bitmaps and is really intended for users who are tight on disk space. 
  2735.  
  2736. Create WPS Object 
  2737.  
  2738. The current revision of the installation program cannot create WPS objects.  To 
  2739. create one by manually, open the Templates folder and drag a PROGRAM opject to 
  2740. the desired location.  Open the SETUP for the object and specify the location 
  2741. of the executable that was specified in the installation program.  You can then 
  2742. drag sound samples to the object for playback from the desktop. 
  2743.  
  2744.  
  2745. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  2746.  
  2747. JoeView is an excellent program written by Joe Burkley.  If you ever need to 
  2748. view a graphics image of virtually any format, this is the program for you!!! 
  2749.  
  2750.  
  2751. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  2752.  
  2753. The .WAV format is actually defined as a RIFF file.  The header and data are 
  2754. very robust and there are extensions for proprietary keywords and formats. 
  2755. PMsndX only supports the standard PCM format and will not load proprietary 
  2756. formats.  You will receive a STYLE error if it contains an unsupported format. 
  2757.  
  2758.  
  2759. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  2760.  
  2761. The bits in a word are stored such that the leftmost bit is stored first in the 
  2762. first byte and the rightmost bit is stored last in the last byte.  If a word is 
  2763. composed of 16 bits, the word would be written to a file starting with bit 16 
  2764. and ending in bit 0. 
  2765.  
  2766. The number 0x1234 (0001 0010 0011 0100) is actually stored as 0001 0010 0011 
  2767. 0100. 
  2768.  
  2769.  
  2770. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  2771.  
  2772. The bits in a word are stored such that the leftmost bit is stored first in the 
  2773. last byte and the rightmost bit is stored last in the first byte.  If a word is 
  2774. composed of 16 bits, the word would be written to a file starting with bit 7 
  2775. and ending in bit 8. 
  2776.  
  2777. The number 0x1234 (0001 0010 0011 0100) is actually stored as 0011 0100 0001 
  2778. 0010. 
  2779.  
  2780.  
  2781. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  2782.  
  2783. There are four methods of transitioning channels in a sample. These methods are 
  2784. used in various tools to provide a smooth transition from one end of a range to 
  2785. another.  The four types of transitions are listed in the following text. 
  2786.  
  2787. The first method is linear.  In this case, the increase or decrease in the 
  2788. volume is constant over time.  This can be defined by the mathematical 
  2789. equation: 
  2790.  
  2791. volume(t) = volume(t) * t/interval 
  2792.  
  2793. A second method for adjusting the volume is to use a geometric expression so 
  2794. that the sample transitions slowly in the beginning of the range and then 
  2795. changes quickly toward the end of the range. To transition a sample out slowly 
  2796. over time a form of the function: 
  2797.  
  2798. volume(t) = volume(t) * (1 - (t/interval))┬ñ 
  2799.  
  2800. The third method is exactly the reverse of the slow transition in which the 
  2801. transition moves very quickly in the beginning of the range and then slowly 
  2802. reaches the end of the range. The equation for this is as follows: 
  2803.  
  2804. volume(t) = volume(t) * (t/interval)┬ñ 
  2805.  
  2806. Finally a fourth method is to have the samples make an immediate transition or 
  2807. a step.  In this case, the transition is made immediately at the beginning of 
  2808. the range.