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