Home » Archimedes archive » Acorn User » AU 1998-02 A.adf » PDScheme » ArtToSpr/WavePlayer/Help/TextHelp/2f-Scripts

ArtToSpr/WavePlayer/Help/TextHelp/2f-Scripts

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1998-02 A.adf » PDScheme
Filename: ArtToSpr/WavePlayer/Help/TextHelp/2f-Scripts
Read OK:
File size: 0897 bytes
Load address: 0000
Exec address: 0000
File contents
+---------------------------------------------------------------------------+
|                                WAVE PLAYER                                |
|                          � 1997, Matthew Wilson                           |
+---------------------------------------------------------------------------+
|                                 SCRIPTS                                   |
+---------------------------------------------------------------------------+

  Usually, Wave Player plays one sample at a time. However, Wave Player can
be set to play a sequence of samples. The simplest way is to drag a
selection of samples to its icon/window *holding down Shift*. When Shift is
released, the samples commence playing. Note that this requires the use of a
Scrap directory (!Scrap).

  Another way is to use Edit/Zap/StrongEd (et al) to create a list of sample
files. In most editors, instead of typing in the full pathname, drag the
sample to the text window holding down Shift. Every line must end with a
linefeed, including the last line, ie. press Return/Enter after each name.
Now save the file, and use the File->Settype filer menu to make the type
�WPScript�. If the pathname starts with a period '.', then
the sample is assumed to be in the same directory as the script file was. See
the examples directory for suitable files.

  Each sample is played as if it had been dragged to Wave Player�s icon,
including unrecognised filetypes. Whenever the sample is stopped, either due
to the pressing of the Stop button, or when it has reached the end of the
sample, the next sample is loaded. If there are no more samples to play, then
the last sample is left loaded.

  In addition to the pathnames, some commands can be used. They are added to the end of the pathname:

    ADFS::MyDisc.$.Samples.Bang! -buffersize=31 -volume 40

  The valid parameters are:
    -buffersize=nn       Set buffer size to nn kilobytes
    -volume=nn           Set the volume to nn% of full volume
    -pause	         Start paused, as opposed to automatically playing

  All the parameters may be used, and in any order, separated by spaces. The
parameters affect all samples past that point in the script.
00000000  2b 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |+---------------|
00000010  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2b 0a 7c 20  |------------+.| |
00000050  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 57  |               W|
00000070  41 56 45 20 50 4c 41 59  45 52 20 20 20 20 20 20  |AVE PLAYER      |
00000080  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000090  20 20 20 20 20 20 20 20  20 20 7c 0a 7c 20 20 20  |          |.|   |
000000a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000b0  20 20 20 20 20 20 20 a9  20 31 39 39 37 2c 20 4d  |       . 1997, M|
000000c0  61 74 74 68 65 77 20 57  69 6c 73 6f 6e 20 20 20  |atthew Wilson   |
000000d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000e0  20 20 20 20 20 20 20 20  7c 0a 2b 2d 2d 2d 2d 2d  |        |.+-----|
000000f0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000130  2d 2d 2d 2d 2d 2d 2b 0a  7c 20 20 20 20 20 20 20  |------+.|       |
00000140  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000150  20 20 20 20 20 20 20 20  20 20 53 43 52 49 50 54  |          SCRIPT|
00000160  53 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |S               |
00000170  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000180  20 20 20 20 7c 0a 2b 2d  2d 2d 2d 2d 2d 2d 2d 2d  |    |.+---------|
00000190  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000001d0  2d 2d 2b 0a 0a 20 20 55  73 75 61 6c 6c 79 2c 20  |--+..  Usually, |
000001e0  57 61 76 65 20 50 6c 61  79 65 72 20 70 6c 61 79  |Wave Player play|
000001f0  73 20 6f 6e 65 20 73 61  6d 70 6c 65 20 61 74 20  |s one sample at |
00000200  61 20 74 69 6d 65 2e 20  48 6f 77 65 76 65 72 2c  |a time. However,|
00000210  20 57 61 76 65 20 50 6c  61 79 65 72 20 63 61 6e  | Wave Player can|
00000220  0a 62 65 20 73 65 74 20  74 6f 20 70 6c 61 79 20  |.be set to play |
00000230  61 20 73 65 71 75 65 6e  63 65 20 6f 66 20 73 61  |a sequence of sa|
00000240  6d 70 6c 65 73 2e 20 54  68 65 20 73 69 6d 70 6c  |mples. The simpl|
00000250  65 73 74 20 77 61 79 20  69 73 20 74 6f 20 64 72  |est way is to dr|
00000260  61 67 20 61 0a 73 65 6c  65 63 74 69 6f 6e 20 6f  |ag a.selection o|
00000270  66 20 73 61 6d 70 6c 65  73 20 74 6f 20 69 74 73  |f samples to its|
00000280  20 69 63 6f 6e 2f 77 69  6e 64 6f 77 20 2a 68 6f  | icon/window *ho|
00000290  6c 64 69 6e 67 20 64 6f  77 6e 20 53 68 69 66 74  |lding down Shift|
000002a0  2a 2e 20 57 68 65 6e 20  53 68 69 66 74 20 69 73  |*. When Shift is|
000002b0  0a 72 65 6c 65 61 73 65  64 2c 20 74 68 65 20 73  |.released, the s|
000002c0  61 6d 70 6c 65 73 20 63  6f 6d 6d 65 6e 63 65 20  |amples commence |
000002d0  70 6c 61 79 69 6e 67 2e  20 4e 6f 74 65 20 74 68  |playing. Note th|
000002e0  61 74 20 74 68 69 73 20  72 65 71 75 69 72 65 73  |at this requires|
000002f0  20 74 68 65 20 75 73 65  20 6f 66 20 61 0a 53 63  | the use of a.Sc|
00000300  72 61 70 20 64 69 72 65  63 74 6f 72 79 20 28 21  |rap directory (!|
00000310  53 63 72 61 70 29 2e 0a  0a 20 20 41 6e 6f 74 68  |Scrap)...  Anoth|
00000320  65 72 20 77 61 79 20 69  73 20 74 6f 20 75 73 65  |er way is to use|
00000330  20 45 64 69 74 2f 5a 61  70 2f 53 74 72 6f 6e 67  | Edit/Zap/Strong|
00000340  45 64 20 28 65 74 20 61  6c 29 20 74 6f 20 63 72  |Ed (et al) to cr|
00000350  65 61 74 65 20 61 20 6c  69 73 74 20 6f 66 20 73  |eate a list of s|
00000360  61 6d 70 6c 65 0a 66 69  6c 65 73 2e 20 49 6e 20  |ample.files. In |
00000370  6d 6f 73 74 20 65 64 69  74 6f 72 73 2c 20 69 6e  |most editors, in|
00000380  73 74 65 61 64 20 6f 66  20 74 79 70 69 6e 67 20  |stead of typing |
00000390  69 6e 20 74 68 65 20 66  75 6c 6c 20 70 61 74 68  |in the full path|
000003a0  6e 61 6d 65 2c 20 64 72  61 67 20 74 68 65 0a 73  |name, drag the.s|
000003b0  61 6d 70 6c 65 20 74 6f  20 74 68 65 20 74 65 78  |ample to the tex|
000003c0  74 20 77 69 6e 64 6f 77  20 68 6f 6c 64 69 6e 67  |t window holding|
000003d0  20 64 6f 77 6e 20 53 68  69 66 74 2e 20 45 76 65  | down Shift. Eve|
000003e0  72 79 20 6c 69 6e 65 20  6d 75 73 74 20 65 6e 64  |ry line must end|
000003f0  20 77 69 74 68 20 61 0a  6c 69 6e 65 66 65 65 64  | with a.linefeed|
00000400  2c 20 69 6e 63 6c 75 64  69 6e 67 20 74 68 65 20  |, including the |
00000410  6c 61 73 74 20 6c 69 6e  65 2c 20 69 65 2e 20 70  |last line, ie. p|
00000420  72 65 73 73 20 52 65 74  75 72 6e 2f 45 6e 74 65  |ress Return/Ente|
00000430  72 20 61 66 74 65 72 20  65 61 63 68 20 6e 61 6d  |r after each nam|
00000440  65 2e 0a 4e 6f 77 20 73  61 76 65 20 74 68 65 20  |e..Now save the |
00000450  66 69 6c 65 2c 20 61 6e  64 20 75 73 65 20 74 68  |file, and use th|
00000460  65 20 46 69 6c 65 2d 3e  53 65 74 74 79 70 65 20  |e File->Settype |
00000470  66 69 6c 65 72 20 6d 65  6e 75 20 74 6f 20 6d 61  |filer menu to ma|
00000480  6b 65 20 74 68 65 20 74  79 70 65 0a 90 57 50 53  |ke the type..WPS|
00000490  63 72 69 70 74 91 2e 20  49 66 20 74 68 65 20 70  |cript.. If the p|
000004a0  61 74 68 6e 61 6d 65 20  73 74 61 72 74 73 20 77  |athname starts w|
000004b0  69 74 68 20 61 20 70 65  72 69 6f 64 20 27 2e 27  |ith a period '.'|
000004c0  2c 20 74 68 65 6e 0a 74  68 65 20 73 61 6d 70 6c  |, then.the sampl|
000004d0  65 20 69 73 20 61 73 73  75 6d 65 64 20 74 6f 20  |e is assumed to |
000004e0  62 65 20 69 6e 20 74 68  65 20 73 61 6d 65 20 64  |be in the same d|
000004f0  69 72 65 63 74 6f 72 79  20 61 73 20 74 68 65 20  |irectory as the |
00000500  73 63 72 69 70 74 20 66  69 6c 65 20 77 61 73 2e  |script file was.|
00000510  20 53 65 65 0a 74 68 65  20 65 78 61 6d 70 6c 65  | See.the example|
00000520  73 20 64 69 72 65 63 74  6f 72 79 20 66 6f 72 20  |s directory for |
00000530  73 75 69 74 61 62 6c 65  20 66 69 6c 65 73 2e 0a  |suitable files..|
00000540  0a 20 20 45 61 63 68 20  73 61 6d 70 6c 65 20 69  |.  Each sample i|
00000550  73 20 70 6c 61 79 65 64  20 61 73 20 69 66 20 69  |s played as if i|
00000560  74 20 68 61 64 20 62 65  65 6e 20 64 72 61 67 67  |t had been dragg|
00000570  65 64 20 74 6f 20 57 61  76 65 20 50 6c 61 79 65  |ed to Wave Playe|
00000580  72 91 73 20 69 63 6f 6e  2c 0a 69 6e 63 6c 75 64  |r.s icon,.includ|
00000590  69 6e 67 20 75 6e 72 65  63 6f 67 6e 69 73 65 64  |ing unrecognised|
000005a0  20 66 69 6c 65 74 79 70  65 73 2e 20 57 68 65 6e  | filetypes. When|
000005b0  65 76 65 72 20 74 68 65  20 73 61 6d 70 6c 65 20  |ever the sample |
000005c0  69 73 20 73 74 6f 70 70  65 64 2c 20 65 69 74 68  |is stopped, eith|
000005d0  65 72 20 64 75 65 0a 74  6f 20 74 68 65 20 70 72  |er due.to the pr|
000005e0  65 73 73 69 6e 67 20 6f  66 20 74 68 65 20 53 74  |essing of the St|
000005f0  6f 70 20 62 75 74 74 6f  6e 2c 20 6f 72 20 77 68  |op button, or wh|
00000600  65 6e 20 69 74 20 68 61  73 20 72 65 61 63 68 65  |en it has reache|
00000610  64 20 74 68 65 20 65 6e  64 20 6f 66 20 74 68 65  |d the end of the|
00000620  0a 73 61 6d 70 6c 65 2c  20 74 68 65 20 6e 65 78  |.sample, the nex|
00000630  74 20 73 61 6d 70 6c 65  20 69 73 20 6c 6f 61 64  |t sample is load|
00000640  65 64 2e 20 49 66 20 74  68 65 72 65 20 61 72 65  |ed. If there are|
00000650  20 6e 6f 20 6d 6f 72 65  20 73 61 6d 70 6c 65 73  | no more samples|
00000660  20 74 6f 20 70 6c 61 79  2c 20 74 68 65 6e 0a 74  | to play, then.t|
00000670  68 65 20 6c 61 73 74 20  73 61 6d 70 6c 65 20 69  |he last sample i|
00000680  73 20 6c 65 66 74 20 6c  6f 61 64 65 64 2e 0a 0a  |s left loaded...|
00000690  20 20 49 6e 20 61 64 64  69 74 69 6f 6e 20 74 6f  |  In addition to|
000006a0  20 74 68 65 20 70 61 74  68 6e 61 6d 65 73 2c 20  | the pathnames, |
000006b0  73 6f 6d 65 20 63 6f 6d  6d 61 6e 64 73 20 63 61  |some commands ca|
000006c0  6e 20 62 65 20 75 73 65  64 2e 20 54 68 65 79 20  |n be used. They |
000006d0  61 72 65 20 61 64 64 65  64 20 74 6f 20 74 68 65  |are added to the|
000006e0  20 65 6e 64 20 6f 66 20  74 68 65 20 70 61 74 68  | end of the path|
000006f0  6e 61 6d 65 3a 0a 0a 20  20 20 20 41 44 46 53 3a  |name:..    ADFS:|
00000700  3a 4d 79 44 69 73 63 2e  24 2e 53 61 6d 70 6c 65  |:MyDisc.$.Sample|
00000710  73 2e 42 61 6e 67 21 20  2d 62 75 66 66 65 72 73  |s.Bang! -buffers|
00000720  69 7a 65 3d 33 31 20 2d  76 6f 6c 75 6d 65 20 34  |ize=31 -volume 4|
00000730  30 0a 0a 20 20 54 68 65  20 76 61 6c 69 64 20 70  |0..  The valid p|
00000740  61 72 61 6d 65 74 65 72  73 20 61 72 65 3a 0a 20  |arameters are:. |
00000750  20 20 20 2d 62 75 66 66  65 72 73 69 7a 65 3d 6e  |   -buffersize=n|
00000760  6e 20 20 20 20 20 20 20  53 65 74 20 62 75 66 66  |n       Set buff|
00000770  65 72 20 73 69 7a 65 20  74 6f 20 6e 6e 20 6b 69  |er size to nn ki|
00000780  6c 6f 62 79 74 65 73 0a  20 20 20 20 2d 76 6f 6c  |lobytes.    -vol|
00000790  75 6d 65 3d 6e 6e 20 20  20 20 20 20 20 20 20 20  |ume=nn          |
000007a0  20 53 65 74 20 74 68 65  20 76 6f 6c 75 6d 65 20  | Set the volume |
000007b0  74 6f 20 6e 6e 25 20 6f  66 20 66 75 6c 6c 20 76  |to nn% of full v|
000007c0  6f 6c 75 6d 65 0a 20 20  20 20 2d 70 61 75 73 65  |olume.    -pause|
000007d0  09 20 20 20 20 20 20 20  20 20 53 74 61 72 74 20  |.         Start |
000007e0  70 61 75 73 65 64 2c 20  61 73 20 6f 70 70 6f 73  |paused, as oppos|
000007f0  65 64 20 74 6f 20 61 75  74 6f 6d 61 74 69 63 61  |ed to automatica|
00000800  6c 6c 79 20 70 6c 61 79  69 6e 67 0a 0a 20 20 41  |lly playing..  A|
00000810  6c 6c 20 74 68 65 20 70  61 72 61 6d 65 74 65 72  |ll the parameter|
00000820  73 20 6d 61 79 20 62 65  20 75 73 65 64 2c 20 61  |s may be used, a|
00000830  6e 64 20 69 6e 20 61 6e  79 20 6f 72 64 65 72 2c  |nd in any order,|
00000840  20 73 65 70 61 72 61 74  65 64 20 62 79 20 73 70  | separated by sp|
00000850  61 63 65 73 2e 20 54 68  65 0a 70 61 72 61 6d 65  |aces. The.parame|
00000860  74 65 72 73 20 61 66 66  65 63 74 20 61 6c 6c 20  |ters affect all |
00000870  73 61 6d 70 6c 65 73 20  70 61 73 74 20 74 68 61  |samples past tha|
00000880  74 20 70 6f 69 6e 74 20  69 6e 20 74 68 65 20 73  |t point in the s|
00000890  63 72 69 70 74 2e 0a                              |cript..|
00000897