Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199611.adf » Regulars » MikeC/!PresetAud/Preset

MikeC/!PresetAud/Preset

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199611.adf » Regulars
Filename: MikeC/!PresetAud/Preset
Read OK:
File size: 03B1 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM>Develop.!PresetAud.Preset
   20DIM Sgain%(3),XYpan%(3,1),Vol%(3),Bass%(3),Treble%(3),Mute%(3,3),PBK% 4,Pan%(3,3)
   30F%=OPENIN("<Obey$Dir>.Settings")
   40IF F%<>0 THEN
   50INPUT#F%,Select%
   60FOR A%=0 TO 3
   70INPUT#F%,Sgain%(A%),XYpan%(A%,0),XYpan%(A%,1),Vol%(A%),Bass%(A%),Treble%(A%)
   80FOR B%=0 TO 3
   90INPUT#F%,Mute%(A%,B%),Pan%(A%,B%)
  100NEXT:NEXT
  110CLOSE#F%
  120
  130PROCiOUT(&40 OR Select% OR ((Sgain%(Select%) EOR 3)<<3))
  140IF Mute%(Select%,0) THEN PROCiOUT(&9F) ELSE PROCiOUT(&80 OR Pan%(Select%,0))
  150IF Mute%(Select%,1) THEN PROCiOUT(&DF) ELSE PROCiOUT(&C0 OR Pan%(Select%,1))
  160IF Mute%(Select%,2) THEN PROCiOUT(&FF) ELSE PROCiOUT(&E0 OR Pan%(Select%,2))
  170IF Mute%(Select%,3) THEN PROCiOUT(&BF) ELSE PROCiOUT(&A0 OR Pan%(Select%,3))
  180IF Treble%(Select%)<0 THEN A%=7-ABS(Treble%(Select%)/2) ELSE A%=(Treble%(Select%)/2) EOR &F
  190PROCiOUT(&70 OR A%)
  200IF Bass%(Select%)<0 THEN A%=7-ABS(Bass%(Select%)/2) ELSE A%=(Bass%(Select%)/2) EOR &F
  210PROCiOUT(&60 OR A%)
  220ENDIF
  230
  240END
  250
  260DEF PROCiOUT(V%)
  270LOCAL Fl
  280?PBK%=V%
  290SYS "XIIC_Control",&88,PBK%,1 TO ;Fl
  300ENDPROC

�>Develop.!PresetAud.Preset
S� Sgain%(3),XYpan%(3,1),Vol%(3),Bass%(3),Treble%(3),Mute%(3,3),PBK% 4,Pan%(3,3)
F%=�("<Obey$Dir>.Settings")
(
� F%<>0 �
2�#F%,Select%
<� A%=0 � 3
FL�#F%,Sgain%(A%),XYpan%(A%,0),XYpan%(A%,1),Vol%(A%),Bass%(A%),Treble%(A%)
P� B%=0 � 3
Z!�#F%,Mute%(A%,B%),Pan%(A%,B%)
d�:�
n�#F%
x
�5�iOUT(&40 � Select% � ((Sgain%(Select%) � 3)<<3))
�B� Mute%(Select%,0) � �iOUT(&9F) � �iOUT(&80 � Pan%(Select%,0))
�B� Mute%(Select%,1) � �iOUT(&DF) � �iOUT(&C0 � Pan%(Select%,1))
�B� Mute%(Select%,2) � �iOUT(&FF) � �iOUT(&E0 � Pan%(Select%,2))
�B� Mute%(Select%,3) � �iOUT(&BF) � �iOUT(&A0 � Pan%(Select%,3))
�T� Treble%(Select%)<0 � A%=7-�(Treble%(Select%)/2) � A%=(Treble%(Select%)/2) � &F
��iOUT(&70 � A%)
�N� Bass%(Select%)<0 � A%=7-�(Bass%(Select%)/2) � A%=(Bass%(Select%)/2) � &F
��iOUT(&60 � A%)
��
�
��
�
� �iOUT(V%)
� Fl
?PBK%=V%
"&ș "XIIC_Control",&88,PBK%,1 � ;Fl
,�
�
00000000  0d 00 0a 1f f4 3e 44 65  76 65 6c 6f 70 2e 21 50  |.....>Develop.!P|
00000010  72 65 73 65 74 41 75 64  2e 50 72 65 73 65 74 0d  |resetAud.Preset.|
00000020  00 14 53 de 20 53 67 61  69 6e 25 28 33 29 2c 58  |..S. Sgain%(3),X|
00000030  59 70 61 6e 25 28 33 2c  31 29 2c 56 6f 6c 25 28  |Ypan%(3,1),Vol%(|
00000040  33 29 2c 42 61 73 73 25  28 33 29 2c 54 72 65 62  |3),Bass%(3),Treb|
00000050  6c 65 25 28 33 29 2c 4d  75 74 65 25 28 33 2c 33  |le%(3),Mute%(3,3|
00000060  29 2c 50 42 4b 25 20 34  2c 50 61 6e 25 28 33 2c  |),PBK% 4,Pan%(3,|
00000070  33 29 0d 00 1e 1f 46 25  3d 8e 28 22 3c 4f 62 65  |3)....F%=.("<Obe|
00000080  79 24 44 69 72 3e 2e 53  65 74 74 69 6e 67 73 22  |y$Dir>.Settings"|
00000090  29 0d 00 28 0d e7 20 46  25 3c 3e 30 20 8c 0d 00  |)..(.. F%<>0 ...|
000000a0  32 10 e8 23 46 25 2c 53  65 6c 65 63 74 25 0d 00  |2..#F%,Select%..|
000000b0  3c 0e e3 20 41 25 3d 30  20 b8 20 33 0d 00 46 4c  |<.. A%=0 . 3..FL|
000000c0  e8 23 46 25 2c 53 67 61  69 6e 25 28 41 25 29 2c  |.#F%,Sgain%(A%),|
000000d0  58 59 70 61 6e 25 28 41  25 2c 30 29 2c 58 59 70  |XYpan%(A%,0),XYp|
000000e0  61 6e 25 28 41 25 2c 31  29 2c 56 6f 6c 25 28 41  |an%(A%,1),Vol%(A|
000000f0  25 29 2c 42 61 73 73 25  28 41 25 29 2c 54 72 65  |%),Bass%(A%),Tre|
00000100  62 6c 65 25 28 41 25 29  0d 00 50 0e e3 20 42 25  |ble%(A%)..P.. B%|
00000110  3d 30 20 b8 20 33 0d 00  5a 21 e8 23 46 25 2c 4d  |=0 . 3..Z!.#F%,M|
00000120  75 74 65 25 28 41 25 2c  42 25 29 2c 50 61 6e 25  |ute%(A%,B%),Pan%|
00000130  28 41 25 2c 42 25 29 0d  00 64 07 ed 3a ed 0d 00  |(A%,B%)..d..:...|
00000140  6e 08 d9 23 46 25 0d 00  78 04 0d 00 82 35 f2 69  |n..#F%..x....5.i|
00000150  4f 55 54 28 26 34 30 20  84 20 53 65 6c 65 63 74  |OUT(&40 . Select|
00000160  25 20 84 20 28 28 53 67  61 69 6e 25 28 53 65 6c  |% . ((Sgain%(Sel|
00000170  65 63 74 25 29 20 82 20  33 29 3c 3c 33 29 29 0d  |ect%) . 3)<<3)).|
00000180  00 8c 42 e7 20 4d 75 74  65 25 28 53 65 6c 65 63  |..B. Mute%(Selec|
00000190  74 25 2c 30 29 20 8c 20  f2 69 4f 55 54 28 26 39  |t%,0) . .iOUT(&9|
000001a0  46 29 20 8b 20 f2 69 4f  55 54 28 26 38 30 20 84  |F) . .iOUT(&80 .|
000001b0  20 50 61 6e 25 28 53 65  6c 65 63 74 25 2c 30 29  | Pan%(Select%,0)|
000001c0  29 0d 00 96 42 e7 20 4d  75 74 65 25 28 53 65 6c  |)...B. Mute%(Sel|
000001d0  65 63 74 25 2c 31 29 20  8c 20 f2 69 4f 55 54 28  |ect%,1) . .iOUT(|
000001e0  26 44 46 29 20 8b 20 f2  69 4f 55 54 28 26 43 30  |&DF) . .iOUT(&C0|
000001f0  20 84 20 50 61 6e 25 28  53 65 6c 65 63 74 25 2c  | . Pan%(Select%,|
00000200  31 29 29 0d 00 a0 42 e7  20 4d 75 74 65 25 28 53  |1))...B. Mute%(S|
00000210  65 6c 65 63 74 25 2c 32  29 20 8c 20 f2 69 4f 55  |elect%,2) . .iOU|
00000220  54 28 26 46 46 29 20 8b  20 f2 69 4f 55 54 28 26  |T(&FF) . .iOUT(&|
00000230  45 30 20 84 20 50 61 6e  25 28 53 65 6c 65 63 74  |E0 . Pan%(Select|
00000240  25 2c 32 29 29 0d 00 aa  42 e7 20 4d 75 74 65 25  |%,2))...B. Mute%|
00000250  28 53 65 6c 65 63 74 25  2c 33 29 20 8c 20 f2 69  |(Select%,3) . .i|
00000260  4f 55 54 28 26 42 46 29  20 8b 20 f2 69 4f 55 54  |OUT(&BF) . .iOUT|
00000270  28 26 41 30 20 84 20 50  61 6e 25 28 53 65 6c 65  |(&A0 . Pan%(Sele|
00000280  63 74 25 2c 33 29 29 0d  00 b4 54 e7 20 54 72 65  |ct%,3))...T. Tre|
00000290  62 6c 65 25 28 53 65 6c  65 63 74 25 29 3c 30 20  |ble%(Select%)<0 |
000002a0  8c 20 41 25 3d 37 2d 94  28 54 72 65 62 6c 65 25  |. A%=7-.(Treble%|
000002b0  28 53 65 6c 65 63 74 25  29 2f 32 29 20 8b 20 41  |(Select%)/2) . A|
000002c0  25 3d 28 54 72 65 62 6c  65 25 28 53 65 6c 65 63  |%=(Treble%(Selec|
000002d0  74 25 29 2f 32 29 20 82  20 26 46 0d 00 be 13 f2  |t%)/2) . &F.....|
000002e0  69 4f 55 54 28 26 37 30  20 84 20 41 25 29 0d 00  |iOUT(&70 . A%)..|
000002f0  c8 4e e7 20 42 61 73 73  25 28 53 65 6c 65 63 74  |.N. Bass%(Select|
00000300  25 29 3c 30 20 8c 20 41  25 3d 37 2d 94 28 42 61  |%)<0 . A%=7-.(Ba|
00000310  73 73 25 28 53 65 6c 65  63 74 25 29 2f 32 29 20  |ss%(Select%)/2) |
00000320  8b 20 41 25 3d 28 42 61  73 73 25 28 53 65 6c 65  |. A%=(Bass%(Sele|
00000330  63 74 25 29 2f 32 29 20  82 20 26 46 0d 00 d2 13  |ct%)/2) . &F....|
00000340  f2 69 4f 55 54 28 26 36  30 20 84 20 41 25 29 0d  |.iOUT(&60 . A%).|
00000350  00 dc 05 cd 0d 00 e6 04  0d 00 f0 05 e0 0d 00 fa  |................|
00000360  04 0d 01 04 0f dd 20 f2  69 4f 55 54 28 56 25 29  |...... .iOUT(V%)|
00000370  0d 01 0e 08 ea 20 46 6c  0d 01 18 0c 3f 50 42 4b  |..... Fl....?PBK|
00000380  25 3d 56 25 0d 01 22 26  c8 99 20 22 58 49 49 43  |%=V%.."&.. "XIIC|
00000390  5f 43 6f 6e 74 72 6f 6c  22 2c 26 38 38 2c 50 42  |_Control",&88,PB|
000003a0  4b 25 2c 31 20 b8 20 3b  46 6c 0d 01 2c 05 e1 0d  |K%,1 . ;Fl..,...|
000003b0  ff                                                |.|
000003b1