File: snd-help.c

package info (click to toggle)
snd 3.4-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,148 kB
  • ctags: 12,594
  • sloc: ansic: 86,516; lisp: 3,480; sh: 1,507; makefile: 119
file content (1675 lines) | stat: -rw-r--r-- 65,766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
#if (!(HAVE_XmHTML))
#ifndef _MSC_VER
#include "snd.h"
#include "sndlib-strings.h"
#include "vct.h"

/* some of the longer help texts */

static char file_menu_help[] =
"  Open: open a file.\n\
  Close: close the currently selected file.\n\
  Save: save any edits on the current file.\n\
  Save as: save edits on the current file,\n\
      in some new file.\n\
  Revert: undo any edits on the current file.\n\
  Mix: mix in a file.\n\
  Update: reload current sound from disk.\n\
  New: create an empty sound edit window.\n\
  Record: fire up the recorder\n\
  View: open a file in read-only mode.\n\
  Print: produce graph as Postscript file.\n\
  Exit: leave Snd, without saving any edits.\n\
";

char *get_file_menu_help(void) {return(file_menu_help);}


static char edit_menu_help[] =
"  Undo: undo the last edit in the current file.\n\
  Redo: redo the undone edit.\n\
  Find: a global search -- operates across all\n\
     currently sync'd sounds.\n\
  Cut: store, then delete the selection.\n\
  Paste: insert the selection at the current location\n\
  Mix selection: add the selection at the current location\n\
  Play selection: play the current selection.\n\
  Save selection: save the current selection in a file.\n\
  Select all: select entire file (following sync).\n\
  Edit Envelope: start the envelope editor dialog.\n\
  Edit Header: view or edit file's header.\n\
  Show Edit History: show edits as text.\n\
";

char *get_edit_menu_help(void) {return(edit_menu_help);}

static char view_menu_help[] =
"  Show Controls: display the control pane.\n\
  Normalize: During editing with multiple\n\
     files and channels, some data may be\n\
     obscured or compressed by changed window\n\
     sizes.  Normalize returns Snd to a state\n\
     where everything is equally compressed.\n\
  Channel style: combine all channels into\n\
     one graph.\n\
  Graph style: display data as dots, lines or,\n\
     filled polygons.\n\
  Show Marks: display mark locations using a\n\
     long vertical line.\n\
  Show axes: display x and y axes.\n\
  Show Y=0: display the y=0 line.\n\
  Verbose cursor: show cursor loc and sample value.\n\
  Regions: fire up the region browser.\n\
  Files: fire up the file browser.\n\
  Color: color browser for sonogram.\n\
  Orientation: sonogram orientation.\n\
  Hide consoles: currently unimplemented.\n\
  X axis units: x axis labels in seconds, samples, ect.\n\
";

char *get_view_menu_help(void) {return(view_menu_help);}


static char options_menu_help[] = 
"   Transform Options: various fft-related settings\n\
   Speed style: control panel speed scrollbar interpretation.\n\
   Zoom focus: where to focus during zooms.\n\
   Save Options: save the current Options and View menu settings.\n\
   Save state: save current state of Snd.\n\
\n\
";

char *get_options_menu_help(void) {return(options_menu_help);}

static char help_menu_help[] =   
"  Click for Help: if you choose this, the\n\
      mouse cursor becomes a '?'; position\n\
      the cursor over the portion of the Snd\n\
      window that interests you, and click\n\
      the button.\n\
  About Snd: this text.\n\
  FFT: a discussion of Snd's FFT options.\n\
  Find: how to perform searches.\n\
  Undo/Redo: how to back up while editing.\n\
  Sync: how to perform multichannel operations.\n\
  Speed: how to change sampling rate.\n\
  Expand: how to change tempo.\n\
  Reverb: how to reverberate.\n\
  Contrast: how to add contrast enhancement.\n\
  Envelope: how to apply an envelope.\n\
  Marks: about marks in Snd.\n\
  Mixing: about mixing in Snd.\n\
  Formats: Snd-supported formats and headers.\n\
  Customization: how to customize Snd.\n\
  User functions: how to add your own functions to Snd.\n\
  Recording: how to use the recorder.\n\
";

char *get_help_menu_help(void) {return(help_menu_help);}


static char about_snd_help[] = 
"Snd is a sound editor. See snd.html or snd.txt for\n\
full details.  Please send bug reports or suggestions to\n\
bil@ccrma.stanford.edu.\n\
\n\
To get started, go to the File menu, and\n\
open a sound file.  To hear the sound, click\n\
the 'play' button. To see an fft, click the\n\
'f' button on the left.  The left mouse button\n\
is used for most pointing operations; the\n\
middle button pastes in the current selection;\n\
the right button brings up the Snd popup menu.\n\
\n\
";

char *get_about_snd_help(void) {return(about_snd_help);}


static char graph_help[] =
"  [Down] zoom out, amount depends on state keys\n\
  [Up] zoom in\n\
  [Left] move window left, amount depends on state keys\n\
  [Right] move window right\n\
  <:   move cursor to sample 0\n\
  >:   move cursor to last sample\n\
  c-<: move cursor to sample 0\n\
  c->: move cursor to last sample\n\
  c-a: move cursor to window start\n\
  c-b: move cursor back one sample\n\
  c-d: delete sample at cursor\n\
  c-e: move cursor to window end\n\
  c-f: move cursor ahead one sample\n\
  c-g: abort current command\n\
  c-h: delete previous sample\n\
  c-i: display cursor info\n\
  c-j: goto mark\n\
  c-k: delete one line's worth of samples\n\
  c-l: position window so cursor is in the middle\n\
  c-m: place (or remove) mark at cursor location\n\
  c-n: move cursor ahead one 'line'\n\
  c-o: insert one zero sample at cursor\n\
  c-p: move cursor back one 'line'\n\
  c-q: play current channel starting at cursor\n\
  c-r: repeat last search backwards\n\
  c-s: search according to an expression\n\
       'y' is the current sample value,\n\
       'y(n) is the value of the sample n from the current\n\
       the find expression syntax is C-like and\n\
       supports much of C and its math library.\n\
       c-s y>.1 finds the next sample greater than .1\n\
  c-t: stop playing\n\
  c-u: start count definition.  If followed by a\n\
       float, the actual count is that number multiplied\n\
       by the current sampling rate.  If the optional\n\
       number is followed by c-m, the count returned\n\
       is the distance from the cursor to the n-th\n\
       successive mark.  That is, c-u c-m c-f is the\n\
       same as c-j.\n\
  c-v: move cursor to mid-window\n\
  c-w: delete current region\n\
  c-x: start extended command (see below)\n\
  c-y: paste in last deleted region. Use c-u\n\
       to paste in earlier regions.\n\
  c-z: set sample at cursor to 0.0\n\
  c-_: undo\n\
  c-[Space]: start region definition\n\
       - c-[Space] to remove region\n\
\n\
The extended commands (preceded by c-x) are:\n\
  a: apply envelope to selection\n\
  b: position window so cursor is on left margin\n\
  c: define selection from cursor to nth mark\n\
  d: set temp dir name\n\
  e: execute last keyboard macro\n\
  f: position window so cursor is on right margin\n\
  i: insert region\n\
  j: goto named mark\n\
  k: close file\n\
  l: position selection in mid-view\n\
  n: re-evaluate expression over selection\n\
  o: move to next or previous graph\n\
  p: play selection or region n\n\
  q: mix in region\n\
  r: redo last undone edit\n\
  u: undo last edit\n\
  v: position window over current selection\n\
  w: save selection as file\n\
  x: evaluate expression over selection\n\
  z: smooth selection\n\
  /: place named mark\n\
  (: begin keyboard macro definition\n\
  ): end keyboard macro definition\n\
\n\
  c-a: apply envelope.  If a count is specified,\n\
     the envelope is applied from the cursor for\n\
     that number of samples.  Otherwise, the\n\
     envelope is applied to the entire file, and\n\
     if syncing is on, all sync'd channels.\n\
  c-b: set x window bounds (preceded by 1 arg)\n\
  c-c: hide controls\n\
  c-d: print\n\
  c-e: give last keyboard macro a name\n\
  c-f: open file\n\
  c-g: abort command\n\
  c-i: insert file\n\
  c-m: add named mark\n\
  c-n: re-evaluate expression\n\
  c-o: show controls\n\
  c-p: set window size (preceded by 1 arg)\n\
  c-q: mix in file\n\
  c-r: redo last undone edit\n\
  c-s: save file\n\
  c-u: undo last edit\n\
       Snd supports 'unlimited undo/redo'\n\
  c-v: set window size as percentage of total\n\
  c-w: save current channel in file\n\
  c-x: evaluate expression\n\
  c-z: smooth using cosine\n\
\n\
Unless otherwise noted, case is not significant;\n\
c-a is the same as c-A.\n\
\n\
Most commands can be prefaced by an integer or\n\
a float; the integer causes the command to be repeated\n\
that many times; the float is multiplied by the\n\
sound's sampling rate, then applied that many times.\n\
So, for example, c-u 1.0 c-f causes the cursor to move\n\
ahead one second in the sound.\n\
\n\
The y-axis limit (default = 1.0) can be set\n\
in the minibuffer via the variable 'ymax'.\n\
\n\
To change a key binding, use " S_bind_key ".\n\
\n\
The Tab key in a text field invokes a\n\
context-sensitive completion function that tries\n\
to figure out what the rest of the text probably\n\
should be.  If it finds no matches, the text\n\
flashes red; if it finds multiple matches and\n\
can't extend the current text, it flashes green,\n\
and pops up the help window with a list of possible\n\
completions.  If there is no completion routine active,\n\
Tab is a no-op.\n\
";

char *get_graph_help(void) {return(graph_help);}

static char fft_keypad_help[] = 
"The keypad keys are mapped to various variables as follows:\n\
\n\
    variable         increase           decrease\n\
  " S_spectro_cutoff "   PageUp (9)          PageDown (3)\n\
  " S_spectro_hop "      Add (+)             Subtract (-)\n\
  " S_spectro_z_angle "  RightArrow (6)      LeftArrow (4)\n\
  " S_spectro_x_angle "  Ctrl-UpArrow (8)    Ctrl-DownArrow (2)\n\
  " S_spectro_y_angle "  Ctrl-RightArrow (6) Ctrl-LeftArrow (4)\n\
  " S_spectro_z_scale "  UpArrow (8)         DownArrow (2)\n\
  " S_fft_size "         Multiply (*)        Divide (/)\n\
  " S_dot_size "         Delete (.)          Insert (0)\n\
\n\
You can rotate the spectrogram around the various axes\n\
by holding down the keypad and control keys.  You can get\n\
arbitrarily small or large ffts with the Multiply and\n\
Divide keys.  The x and y axis scalers are named\n\
" S_spectro_x_scale " and " S_spectro_y_scale "; they can be set via\n\
M-X and setf.  The keypad Enter key resets all the\n\
spectrogram variables to their default values.\n\
(In Linux, use the corresponding numbered keys --\n\
add shift to the key sequences given above).\n\
See also the Color and Orientation menu options\n\
in the View menu.\n\
\n\
";

char *get_fft_keypad_help(void) {return(fft_keypad_help);}

static char fft_menu_help[] = 
"The FFT performs a projection of the\n\
time domain into the frequency domain.\n\
Good discussions of the Fourier Transform\n\
and the trick used in the FFT itself\n\
can be found in many DSP books; those\n\
I know of include 'A Digital Signal Processing\n\
Primer', Ken Steiglitz, Addison-Wesley,\n\
1996; or 'Numerical Recipes in C', mentioned\n\
below.\n\
\n\
The FFT size can be any power of 2. The\n\
larger, the longer it takes to compute,\n\
and the larger the amount of the time domain\n\
that gets consumed.  Interpretation of the\n\
FFT results is not straightforward!\n\
\n\
The window choices are taken primarily\n\
from Harris' article.\n\
\n\
  Fredric J. Harris, 'On the Use of Windows\n\
     for Harmonic Analysis with the Discrete\n\
     Fourier Transform', Proceedings of the\n\
     IEEE, Vol. 66, No. 1, January 1978.\n\
\n\
with updates from:\n\
\n\
  Albert H. Nuttall, 'Some Windows with Very\n\
     Good Sidelobe Behaviour', IEEE Transactions\n\
     of Acoustics, Speech, and Signal Processing,\n\
     Vol. ASSP-29, 1, February 1981.\n\
\n\
\n\
Nearly all the transform-related choices are set\n\
by the transform dialog launched from the Options\n\
Menu Transform item. Most of this dialog should be\n\
self-explanatory.  Some of the windows take an\n\
additional parameter sometimes known as alpha or\n\
beta.  This is set in Snd by the scroller in the\n\
transform dialog.\n\
\n\
The FFT display is activated by setting the 'f'\n\
button on the channel's window.  It then updates\n\
itself each time the time domain waveform moves or\n\
changes.  The update function runs in the\n\
background, so in some cases, notably very large\n\
FFTs, you will notice that the FFT updates less\n\
often than the time domain.\n\
\n\
The spectrum data is usually normalized to fit\n\
between 0.0 to 1.0; if you'd rather have un-normalized\n\
data (the y-axis in this case changes to reflect the\n\
data values, to some extent), set the variable\n\
" S_normalize_fft " to 0.\n\
\n\
The actual FFT algorithm used here is the\n\
'realft' function from 'Numerical Recipes in C',\n\
by Press et al, Cambridge Univ Press, 1989.\n\
\n\
The harmonic analysis function is normally the\n\
Fourier Transform, but others are available,\n\
including about 20 wavelet choices, the Hankel and\n\
Chebyshev transforms, and perhaps others.\n\
\n\
";

char *get_fft_menu_help(void) {return(fft_menu_help);}

static char find_menu_help[] = 
"Searches in Snd refer to the sound data, and are\n\
in general patterned after Emacs.  When you type\n\
c-s or c-r, the minibuffer below the graph is\n\
activated and you are asked for the search expression.\n\
The expression is a piece of C-like code that describes\n\
which sample satisifies the search.  For example,\n\
to look for the next sample that is greater than\n\
.1, we could type: y>.1.  The cursor then moves\n\
to the next such sample, if any.  Successive c-s\n\
or c-r repeat the search.  c-x c-s can redefine the\n\
search pattern, which is also cleared in other\n\
events, much like Emacs.\n\
\n\
The search (and c-x c-x eval) expression\n\
syntax includes most of C's operators, and the\n\
standard math library, as well as a few variables\n\
internal to Snd.  To get at the current sample's\n\
value, use 'y'.  'y(n)' refers to the sample\n\
n samples from the current one. 'x' is the current\n\
sample number. 'samples' is the total number of\n\
samples.\n\
\n\
Normally, the search applies only to the current channel.\n\
To search all current files at once, use the Edit menu's\n\
find option.\n\
\n\
";

char *get_find_menu_help(void) {return(find_menu_help);}

static char expression_help[] = 
"The C operators implemented are:\n\
\n\
+ - * / > >= < <= == != ( ) { }\n\
=+ *= /= -= = || && ? : !\n\
\n\
The math library functions included are:\n\
\n\
log log10 exp cos sin abs (i.e. fabs)\n\
pow sqrt atan acos asin cosh sinh tanh fmod\n\
ceil floor pi\n\
";

char *get_expression_help(void) {return(expression_help);}


static char undo_menu_help[] = 
"Snd supports unlimited undo in the\n\
sense that you can backup through all\n\
the edits since the last save, and at\n\
any point redo those edits.  Certain\n\
operations require that temporary files\n\
be written, so disk space may eventually\n\
become a problem.  Revert is the same\n\
as backing up to the last save.\n\
\n\
In addition, eight or so of the previous\n\
selections are saved on a stack accessible\n\
via c-y.\n\
\n\
";

char *get_undo_menu_help(void) {return(undo_menu_help);}


static char sync_menu_help[] = 
"The sync button causes certain operations to\n\
apply to all channels simultaneously.  In mono\n\
sounds, the sync button has a similar effect,\n\
but applied across multiple sounds.\n\
\n\
To get multi-channel selections, set the sync\n\
button, then define the selection (by dragging\n\
the mouse) in one channel, and the parallel\n\
portions of the other channels will also be\n\
selected.\n\
\n\
";

char *get_sync_menu_help(void) {return(sync_menu_help);}


static char speed_menu_help[] = 
"'Speed' here refers to the rate at which the\n\
sound data is consumed during playback.\n\
Another term might be 'srate'.  Snd uses\n\
linear interpolation to perform the speed\n\
change.  The arrow button on the right determines\n\
the direction we move through the data.\n\
The scroll bar position is normally interpreted\n\
as a float between .05 and 20.  The Options\n\
Speed Style menu (or the " S_speed_style " variable)\n\
can change this to use semitones (actually microtones)\n\
or just-intonation ratios.  The number of equal\n\
divisions to the octave in the semitone case is\n\
set by the variable " S_speed_tones " (normally 12).\n\
\n\
";

char *get_speed_menu_help(void) {return(speed_menu_help);}


static char expand_menu_help[] = 
"'Expand' here refers to a kind of granular\n\
synthesis used to change the tempo of events\n\
in the sound without changing pitch.  Successive\n\
short slices of the file are overlapped with\n\
the difference in size between the input and\n\
output hops (between successive slices) giving\n\
the change in tempo.  This doesn't work in all\n\
files -- it sometimes sounds like execrable reverb\n\
or is too buzzy -- but it certainly is more\n\
robust than the phase vocoder approach to the\n\
same problem. \n\
\n\
There are a variety of variables that control\n\
hop sizes, segment lengths, and overall segment\n\
envelopes.  These can be set in the minibuffer\n\
via m-x and setf, or in your Snd init file.\n\
The variables are:\n\
\n\
  " S_default_expand_ramp ": the length of the ramp up (.4, 0 to .5)\n\
  " S_default_expand_length ": the length of each slice (.15)\n\
  " S_default_expand_hop ": the hop size (.05)\n\
\n\
The expander is on only if the expand\n\
button is set.\n\
\n\
";

char *get_expand_menu_help(void) {return(expand_menu_help);}


static char reverb_menu_help[] = 
"The Snd reverberator is a version of Michael\n\
McNabb's Nrev.  In addition to the controls\n\
in the control pane, you can set the reverb\n\
feedback gains and the coefficient of the low\n\
pass filter in the allpass bank. The variables\n\
are '" S_default_reverb_feedback "' and '" S_default_reverb_lowpass "'.\n\
The reverb is on only if the reverb button is set.\n\
";
char *get_reverb_menu_help(void) {return(reverb_menu_help);}


static char contrast_menu_help[] = 
"'Contrast enhancement' is my name for this\n\
somewhat weird waveshaper or compander.  It\n\
phase-modulates a sound, which can in some\n\
cases make it sound sharper or brighter.\n\
For softer sounds, it causes only an amplitude\n\
change.  Contrast is on only if the contrast\n\
button is set.\n\
";
char *get_contrast_menu_help(void) {return(contrast_menu_help);}


static char env_menu_help[] = 
"An envelope in Snd is a list of x y\n\
break-point pairs. The x axis range is\n\
arbitrary. For example, to define a triangle\n\
curve: '(0 0 1 1 2 0). There is no (obvious) limit\n\
on the number of breakpoints.\n\
\n\
To apply an envelope to a sound, use the extended\n\
command C-x C-a. If this command gets a numeric\n\
argument, the envelope is applied from the cursor\n\
for that many samples.\n\
\n\
  C-x a     apply amplitude envelope to selection\n\
  C-x C-a   apply amplitude envelope to channel\n\
\n\
You can also specify a envelope name to the C-x C-a\n\
prompt.\n\
\n\
To scale a file or selection by or to some\n\
amplitude, use the M-x commands:\n\
\n\
  " S_scale_by " args\n\
  " S_scale_to " args\n\
  " S_scale_selection_by " args\n\
  " S_scale_selection_to " args\n\
\n\
" S_scale_by " scales the current sync'd channels by its\n\
arguments, and " S_scale_to " scales them to its\n\
arguments (a normalization). The arguments in\n\
each case are either a list of floats\n\
corresponding to each successsive member of the\n\
current set of sync'd channels, or just one\n\
argument. In the latter case, " S_scale_by " uses that\n\
scaler for all its channels, and " S_scale_to "\n\
normalizes all the channels together so that the\n\
loudest reaches that amplitude (that is, " S_scale_to "\n\
.5) when applied to a stereo file means that both\n\
channels are scaled by the same amount so that the\n\
loudest point in the file becomes .5).\n\
";
char *get_env_menu_help(void) {return(env_menu_help);}


static char format_menu_help[] = 
"Snd can read and write any of the sound\n\
file data and header formats that CLM can\n\
handle:\n\
\n\
read/write (many data formats):\n\
     NeXT/Sun/DEC/AFsp\n\
     AIFF/AIFC\n\
     RIFF (Microsoft wave)\n\
     IRCAM (old style)\n\
     NIST-sphere\n\
     no header\n\
     ----\n\
read-only (in selected data formats):\n\
     8SVX (IFF), IRCAM Vax float, EBICSF, INRS, ESPS,\n\
     SPPACK, ADC (OGI), AVR, VOC,\n\
     Sound Tools, Turtle Beach SMP, SoundFont 2.0,\n\
     Sound Designer I and II, PSION, MAUD, Kurzweil 2000,\n\
     Tandy DeskMate, Gravis Ultrasound, ASF,\n\
     Comdisco SPW, Goldwave sample, omf, quicktime\n\
     Sonic Foundry, SBStudio II, Delusion digital,\n\
     Digiplayer ST3, Farandole Composer WaveSample,\n\
     Ultratracker WaveSample, Sample Dump exchange,\n\
     Yamaha SY85, SY99, and TX16, Covox v8, SPL, AVI,\n\
     ----\n\
automatically translated to Sun 16-bit, then read/write:\n\
     IEEE text, Mus10 SAM 16-bit (modes 1 and 4), IBM CVSD, AVI\n\
     NIST shortpack, HCOM, Intel and Oki (Dialogic) ADPCM, MIDI sample dump\n\
     G721, G723_24, G723_40, IFF Fibonacci and Exponential\n\
\n\
'Linear' here means 2's complement integer.\n\
The files can have any number of channels.\n\
Data can be either big or little endian.\n\
\n\
When edits are saved, files in the first\n\
group are changed in place; those in the second\n\
group are changed to use one of the first\n\
group's headers (normally Sun); those in\n\
the third group are translated when opened\n\
and an new (perhaps redundant) '.snd' extension\n\
is added to distinguish the original from the\n\
translated form; the latter is then treated\n\
as the original by the editor.\n\
\n\
";

char *get_format_menu_help(void) {return(format_menu_help);}


static char info_help[] = 
"This is the 'minibuffer', to use Emacs\n\
jargon.  Although it looks inert and wasted,\n\
there is in fact a text window lurking beneath\n\
that has access to the Lisp evaluator, not\n\
to mention much of the innards of the Snd program.\n\
";

char *get_info_help(void) {return(info_help);}


static char play_help[] =
"Snd can play any number of sounds at once\n\
or should be able to anyway.  A sort of\n\
clumsy realtime mixer, although it was not\n\
intended to fill that role. \n\
\n\
";

char *get_play_help(void) {return(play_help);}


static char mark_help[] = 
"A mark in Snd is attached to a particular\n\
sample in the sound data.  It moves with that\n\
sample as you edit the data, and if the sample\n\
is deleted, so is its mark.  Marks also follow\n\
the undo/redo edit history -- I'm not sure this\n\
is a good idea, but it seemed more intuitive\n\
than other alternatives.  This means that marks\n\
are 'undone' and 'redone' alongside the edits\n\
that they accompany.\n\
\n\
The mark symbol itself has three or four\n\
parts.  The name, if any, is at the top.\n\
Then a 'tab'.  You can click the name or\n\
tab portion and drag the mark to redefine it.\n\
Then a line to the bottom of the graph, showing\n\
where the mark is. And, below the x axis, an\n\
arrow.  You can click and drag the arrow to\n\
play the data following the mouse -- sort of\n\
like listening to a tape as you rock it back\n\
and forth by hand on the spindles. Or just\n\
click the arrow to play the data starting\n\
at the mark.\n\
\n\
";

char *get_mark_help(void) {return(mark_help);}


static char init_file_help[] =
"Nearly everything in Snd can be set in an initialization file, loaded at any\n\
time from a saved-state (Guile) file, specified via inter-process communciation from any\n\
other program, invoked via M-x in the minibuffer, imbedded in a keyboard\n\
macro, or dealt with from the lisp listener panel. The syntax used is lisp;\n\
if the Guile library is loaded, the underlying language is actually Scheme,\n\
these entities are fully incorporated into lisp, and all of them can be used\n\
in arbitrarily complicated functions. I've tried to bring out to lisp nearly\n\
every portion of Snd, both the signal-processing functions, and much of the\n\
user interface. You can, for example, add your own menu choices, editing\n\
operations, or graphing alternatives. These extensions can be loaded at any\n\
time.\n\
\n\
Sndlib (selected header and data format types):\n\
  " S_next_sound_file "    " S_aiff_sound_file "     " S_riff_sound_file "\n\
  " S_nist_sound_file "    " S_raw_sound_file "      " S_ircam_sound_file "\n\
  " S_snd_16_linear "      " S_snd_8_mulaw "         " S_snd_8_linear "     " S_snd_32_linear_little_endian "\n\
  " S_snd_32_linear "      " S_snd_8_alaw "          " S_snd_8_unsigned "   " S_snd_32_float_little_endian "\n\
  " S_snd_64_double "      " S_snd_24_linear "       " S_snd_32_float "     " S_snd_16_linear_little_endian "\n\
\n\
FFT style (the Transform Options Display choice):\n\
  " S_normal_fft "         " S_sonogram "            " S_spectrogram "\n\
\n\
Transform type:\n\
  " S_fourier_transform "  " S_wavelet_transform "   " S_hankel_transform "  " S_chebyshev_transform "   " S_legendre_transform "\n\
  " S_autocorrelation "    " S_walsh_transform "\n\
\n\
FFT Window type:\n\
  " S_rectangular_window " " S_hanning_window "     " S_welch_window "      " S_parzen_window "\n\
  " S_bartlett_window "    " S_hamming_window "     " S_blackman2_window "  " S_blackman3_window "\n\
  " S_blackman4_window "   " S_exponential_window " " S_riemann_window "    " S_kaiser_window "\n\
  " S_cauchy_window "      " S_poisson_window "     " S_gaussian_window "   " S_tukey_window "\n\
\n\
Zoom Focus style:\n\
  " S_focus_left "         " S_focus_right "        " S_focus_active "      " S_focus_middle "\n\
\n\
X-axis Label:\n\
  " S_x_in_seconds "       " S_x_in_samples "       " S_x_to_one "\n\
\n\
Speed Control style:\n\
  " S_speed_as_float "     " S_speed_as_ratio "     " S_speed_as_semitone "\n\
\n\
Channel Combination style;\n\
  " S_channels_separate "  " S_channels_combined "  " S_channels_superimposed "\n\
\n\
Envelope Editor target:\n\
  " S_amplitude_env "      " S_spectrum_env "       " S_srate_env "\n\
\n\
Graph Line style:\n\
  " S_graph_lines "        " S_graph_dots "         " S_graph_filled "    " S_graph_lollipops "\n\
  " S_graph_dots_and_lines "\n\
\n\
Keyboard action choices:\n\
  " S_cursor_in_view "     " S_cursor_on_left "     " S_cursor_on_right "   " S_cursor_in_middle "\n\
  " S_cursor_update_display " " S_cursor_no_action " " S_cursor_claim_selection " " S_keyboard_no_action "\n\
\n\
These variables are accessed as though each were a function\n\
of no arguments, and set using a function with \"set-\" prepended\n\
to the variable name.  For example, " S_auto_resize "'s current\n\
value can be accessed via (" S_auto_resize "), and set to a\n\
new value via (" S_set_auto_resize " #t). \n\
\n\
  " S_ask_before_overwrite "  #f\n\
  " S_audio_output_device "   " S_sndlib_default_device "\n\
  " S_auto_resize "           #t\n\
  " S_auto_update "           #f\n\
  " S_basic_color "           ivory2\n\
  " S_channel_style "         " S_channels_separate "\n\
  " S_color_cutoff "          0.003\n\
  " S_color_inverted "        #t\n\
  " S_color_scale "           0.5\n\
  " S_colormap "             -1\n\
  " S_cursor_color "          red\n\
  " S_dac_size "              256\n\
  " S_data_color "            black\n\
  " S_default_amp "           1.0\n\
  " S_default_contrast "      0.0\n\
  " S_default_contrast_amp "  1.0\n\
  " S_default_contrasting "   #f\n\
  " S_default_expand "        1.0\n\
  " S_default_expand_hop "    0.05\n\
  " S_default_expand_length " 0.15\n\
  " S_default_expand_ramp "   0.4\n\
  " S_default_expanding "     0\n\
  " S_default_filter_order "  2\n\
  " S_default_filtering "     #f\n\
  " S_default_output_type "   " S_next_sound_file "\n\
  " S_default_reverb_feedback " 1.09\n\
  " S_default_reverb_length " 1.0\n\
  " S_default_reverb_lowpass " 0.7\n\
  " S_default_reverb_scale "  0.0\n\
  " S_default_reverbing "     #f\n\
  " S_default_speed "         1.0\n\
  " S_dot_size "              1\n\
  " S_edit_history_width "    100\n\
  " S_enved_base "            1.0\n\
  " S_enved_clipping "        #f\n\
  " S_enved_dBing "           #f\n\
  " S_enved_exping "          #f\n\
  " S_enved_power "           3.0\n\
  " S_enved_target "          " S_amplitude_env "\n\
  " S_enved_waveform_color "  blue\n\
  " S_enved_waving "          #f\n\
  " S_eps_file "              \"snd.eps\"\n\
  " S_fft_beta "              0.0\n\
  " S_fft_log_frequency "     #f\n\
  " S_fft_log_magnitude "     #f\n\
  " S_fft_size "              256\n\
  " S_fft_style "             " S_normal_fft "\n\
  " S_fft_window "            " S_blackman2_window "\n\
  " S_filter_env_order "      40\n\
  " S_filter_waveform_color " blue\n\
  " S_fit_data_on_open "      #f\n\
  " S_graph_color "           white\n\
  " S_graph_cursor "          XC_crosshair (34)\n\
  " S_graph_style "           " S_graph_lines "\n\
  " S_highlight_color "       ivory1\n\
  " S_initial_x0 "            0.0\n\
  " S_initial_x1 "            0.1\n\
  " S_initial_y0 "           -1.0\n\
  " S_initial_y1 "            1.0\n\
  " S_line_size "             128\n\
  " S_listener_color "        aliceblue\n\
  " S_listener_prompt "       \">\"\n\
  " S_mark_color "            red\n\
  " S_min_dB "               -60.0\n\
  " S_mix_amp_scaler "        1.0\n\
  " S_mix_color "             lightgreen\n\
  " S_mix_focus_color "       green2\n\
  " S_mix_speed_scaler "      1.0\n\
  " S_mix_tempo_scaler "      1.0\n\
  " S_mix_waveform_color "    darkgray\n\
  " S_mix_waveform_height "   20\n\
  " S_mixer_group_max_out_chans " 4\n\
  " S_mixer_groups "          6\n\
  " S_mixer_save_state_file " \"" MIXER_SAVE_STATE_FILE "\"\n\
  " S_movies "                #t\n\
  " S_normalize_fft "         #t\n\
  " S_normalize_on_open "     #t\n\
  " S_position_color "        ivory3\n\
  " S_prefix_arg "            nil\n\
  " S_print_length "          12\n\
  " S_pushed_button_color "   lightsteelblue1\n\
  " S_raw_chans "             1\n\
  " S_raw_format "            " S_snd_16_linear "\n\
  " S_raw_srate "             44100\n\
  " S_raw_type "              " S_next_sound_file "\n\
  " S_recorder_autoload "     #f\n\
  " S_recorder_buffer_size "  4096\n\
  " S_recorder_file "         nil\n\
  " S_recorder_in_format "    " S_snd_16_linear "\n\
  " S_recorder_max_duration " 1000000.0\n\
  " S_recorder_out_chans "    2\n\
  " S_recorder_out_format "   same as above\n\
  " S_recorder_srate "        22050\n\
  " S_recorder_trigger "      0.0\n\
  " S_reverb_decay "          1.0\n\
  " S_save_state_on_exit "    #f\n\
  " S_save_state_file "       nil\n\
  " S_selected_data_color "   black\n\
  " S_selected_graph_color "  white\n\
  " S_selection_color "       lightsteelblue1\n\
  " S_show_axes "             #t\n\
  " S_show_edit_history "     #f\n\
  " S_show_fft_peaks "        #f\n\
  " S_show_marks "            #t\n\
  " S_show_mix_consoles "     #t\n\
  " S_show_mix_waveforms "    #f\n\
  " S_show_selection_transform " #f\n\
  " S_show_usage_stats "      #f\n\
  " S_show_y_zero "           #f\n\
  " S_sinc_width "            10\n\
  " S_spectro_cutoff "        1.0\n\
  " S_spectro_hop "           4\n\
  " S_spectro_x_angle "       90.0\n\
  " S_spectro_x_scale "       1.0\n\
  " S_spectro_y_angle "       0.0\n\
  " S_spectro_y_scale "       1.0\n\
  " S_spectro_z_angle "      -2.0\n\
  " S_spectro_z_scale "       0.1\n\
  " S_speed_style "           " S_speed_as_float "\n\
  " S_speed_tones "           12\n\
  " S_temp_dir "              nil\n\
  " S_text_focus_color "      white\n\
  " S_transform_type "        " S_fourier_transform "\n\
  " S_trap_segfault "         #t\n\
  " S_use_raw_defaults "      #f\n\
  " S_verbose_cursor "        #f\n\
  " S_vu_font "               nil\n\
  " S_vu_font_size "          1.0\n\
  " S_vu_size "               1.0\n\
  " S_wavelet_type "          0\n\
  " S_wavo "                  #f\n\
  " S_wavo_hop "              3\n\
  " S_wavo_trace "            64\n\
  " S_window_height "         0\n\
  " S_window_width "          0\n\
  " S_window_x "             -1\n\
  " S_window_y "             -1\n\
  " S_x_axis_style "          " S_x_in_seconds "\n\
  " S_xmax "                  0.0\n\
  " S_xmin "                  0.0\n\
  " S_ymax "                  1.0\n\
  " S_ymin "                  1.0\n\
  " S_zero_pad "              0\n\
  " S_zoom_color "            ivory4\n\
  " S_zoom_focus_style "      " S_focus_active "\n\
\n\
The hooks provide a way to customize various situations that arise through\n\
user-interface manipulations. Each is a string containing whatever lisp code\n\
should be evaluated. See the Examples section for examples.\n\
\n\
  " S_open_hook "\n\
  " S_close_hook "\n\
  " S_fft_hook "\n\
  " S_graph_hook "\n\
  " S_exit_hook "\n\
  " S_start_hook "\n\
  " S_stop_playing_hook "\n\
  " S_start_playing_hook "\n\
  " S_mark_click_hook "\n\
\n\
In the argument lists below, snd as an\n\
argument refers to the sound's index, and defaults to the currently selected\n\
sound. Similarly, chn is the channel number, starting from 0, and defaults\n\
to the currently selected channel. So if there's only one sound active, and\n\
it has only one channel, (" S_cursor ") (" S_cursor " 0), and (" S_cursor " 0 0)\n\
all refer to the same thing.\n\
\n\
  " S_abort "             ()\n\
  " S_abortQ "            ()\n\
  " S_activate_listener " ()\n\
  " S_active_sounds "     ()\n\
  " S_add_mark "          (sample snd chn)\n\
  " S_add_to_main_menu "  (menu-label)\n\
  " S_add_to_menu "       (top-menu menu-label callback)\n\
  " S_amp "               (snd)\n\
  " S_append_to_minibuffer " (msg snd)\n\
  " S_autocorrelate "     (data)\n\
  " S_backward_graph "    (count)\n\
  " S_backward_mark "     (count)\n\
  " S_backward_mix "      (count)\n\
  " S_backward_sample "   (count)\n\
  " S_bind_key "          (key state code ignore-prefix)\n\
  " S_call_plug "         (plug)\n\
  " S_call_plug_selection " (plug)\n\
  " S_change_menu_label " (top-menu old-label new-label)\n\
  " S_channels "          (snd)\n\
  " S_chans "             (snd)\n\
  " S_clear_audio_inputs " ()\n\
  " S_clm_dialog "        (msg)\n\
  " S_close_sound "       (snd)\n\
  " S_close_sound_file "  (fd bytes)\n\
  " S_color_dialog "      ()\n\
  " S_colorQ "            (obj)\n\
  " S_comment "           (snd)\n\
  " S_contrast "          (snd)\n\
  " S_contrast_amp "      (snd)\n\
  " S_contrasting "       (snd)\n\
  " S_convolve_arrays "   (vect1 vect2)\n\
  " S_convolve_selection_with " (file amp)\n\
  " S_convolve_with "     (file amp snd chn)\n\
  " S_count_matches "     (c-expr start snd chn)\n\
  " S_cursor "            (snd chn)\n\
  " S_cursor_follows_play " (snd)\n\
  " S_cut "               ()\n\
  " S_data_format "       (snd)\n\
  " S_data_location "     (snd)\n\
  " S_delete_mark "       (id snd chn)\n\
  " S_delete_marks "      (snd chn)\n\
  " S_delete_region "     (reg)\n\
  " S_delete_sample "     (samp snd chn)\n\
  " S_delete_samples "    (samp samps snd chn)\n\
  " S_describe_audio "    ()\n\
  " S_describe_plug "     (plug)\n\
  " S_dismiss_all_dialogs " ()\n\
  " S_edit_header_dialog "()\n\
  " S_edits "             (snd chn)\n\
  " S_env_selection "     (envelope env-base snd chn)\n\
  " S_env_sound "         (envelope samp samps env-base snd chn)\n\
  " S_enved_dialog "      ()\n\
  " S_exit "              ()\n\
  " S_expand "            (snd)\n\
  " S_expand_hop "        (snd)\n\
  " S_expand_length "     (snd)\n\
  " S_expand_ramp "       (snd)\n\
  " S_expanding "         (snd)\n\
  " S_fft "               (rl im sgn)\n\
  " S_ffting "            (snd chn)\n\
  " S_file_dialog "       ()\n\
  " S_file_name "         (snd)\n\
  " S_filter_env "        (snd)\n\
  " S_filter_order "      (snd)\n\
  " S_filter_selection "  (env order)\n\
  " S_filter_sound "      (env order snd chn)\n\
  " S_filtering "         (snd)\n\
  " S_find "              (c-expr start snd chn)\n\
  " S_find_mark "         (samp snd chn)\n\
  " S_find_sound "        (filename)\n\
  " S_forward_graph "     (count)\n\
  " S_forward_mark "      (count)\n\
  " S_forward_mix "       (count)\n\
  " S_forward_sample "    (count)\n\
  " S_graph "             (data xlabel x0 x1 snd chn)\n\
  " S_graphing "          (snd chn)\n\
  " S_graph_ps "          ()\n\
  " S_group_amp "         (group chan)\n\
  " S_group_beg "         (group)\n\
  " S_group_dialog "      ()\n\
  " S_group_end "         (group)\n\
  " S_group_okQ "         (group)\n\
  " S_group_speed "       (group)\n\
  " S_group_tempo "       (group)\n\
  " S_groups "            ()\n\
  " S_header_type "       (snd)\n\
  " S_help_dialog "       (subject help)\n\
  " S_hide_listener "     ()\n\
  " S_in "                (ms code)\n\
  " S_insert_sound "      (file in_chan snd chn)\n\
  " S_insert_region "     (beg reg snd chn)\n\
  " S_insert_sample "     (samp value snd chn)\n\
  " S_insert_samples "    (samp data snd chn)\n\
  " S_key "               (key state)\n\
  " S_left_sample "       (snd chn)\n\
  " S_list2vct "          (lst)\n\
  " S_sound_length "      (snd chn)\n\
  " S_make_color "        (r g b)\n\
  " S_make_region "       (beg end snd chn)\n\
  " S_make_vct "          (len)\n\
  " S_mark_name "         (mark snd chn)\n\
  " S_mark_sample "       (mark snd chn)\n\
  " S_marks "             (snd chn)\n\
  " S_max_sounds "        ()\n\
  " S_maxamp "            (snd chn)\n\
  " S_mix "               (file samp in_chan snd chn)\n\
  " S_mix_amp "           (mix chan)\n\
  " S_mix_anchor "        (mix)\n\
  " S_mix_groups "        (mix)\n\
  " S_mix_length "        (mix)\n\
  " S_mix_position "      (mix)\n\
  " S_mix_region "        (samp scaler reg snd chn)\n\
  " S_mix_speed "         (mix)\n\
  " S_mix_state "         (mix)\n\
  " S_new_sound "         (name type format srate chans)\n\
  " S_normalize_view "    ()\n\
  " S_okQ "               (snd)\n\
  " S_open_raw_sound "    (name chans srate format)\n\
  " S_open_sound "        (name)\n\
  " S_open_sound_file "   (name chans srate comment)\n\
  " S_open_alternate_sound "(name)\n\
  " S_orientation_dialog "()\n\
  " S_peaks "             (file snd chn)\n\
  " S_play "              (samp snd chn)\n\
  " S_play_and_wait "     (samp snd chn)\n\
  " S_play_region "       (reg)\n\
  " S_preload_directory " (dir)\n\
  " S_preload_file "      (file)\n\
  " S_protect_region "    (reg protect)\n\
  " S_read_only "         (snd)\n\
  " S_recorder_dialog "   ()\n\
  " S_recorder_gain "     (gain)\n\
  " S_recorder_in_amp "   (in out)\n\
  " S_recorder_out_amp "  (out)\n\
  " S_redo "              (edits snd chn)\n\
  " S_region_chans "      (reg)\n\
  " S_region_dialog "     ()\n\
  " S_region_length "     (reg)\n\
  " S_region_maxamp "     (reg)\n\
  " S_region_sample "     (samp reg chn)\n\
  " S_region_samples "    (samp samps reg chn)\n\
  " S_region_samples_vct "(samp samps reg chn)\n\
  " S_region_srate "      (reg)\n\
  " S_regions "           ()\n\
  " S_report_in_minibuffer " (msg snd)\n\
  " S_restore_control_panel " (snd)\n\
  " S_reverb_feedback "   (snd)\n\
  " S_reverb_length "     (snd)\n\
  " S_reverb_lowpass "    (snd)\n\
  " S_reverb_scale "      (snd)\n\
  " S_reverbing "         (snd)\n\
  " S_reverse_selection " ()\n\
  " S_reverse_sound "     (snd chn)\n\
  " S_revert_sound "      (snd)\n\
  " S_right_sample "      (snd chn)\n\
  " S_sample "            (samp snd chn)\n\
  " S_samples "           (samp samps snd chn)\n\
  " S_samples_vct "      (samp samps snd chn)\n\
  " S_save_control_panel " (snd)\n\
  " S_save_edit_history " (file snd chn)\n\
  " S_save_macros "       ()\n\
  " S_save_marks "        (snd)\n\
  " S_save_region "       (reg filename format)\n\
  " S_save_selection "    (file)\n\
  " S_save_sound "        (snd)\n\
  " S_save_sound_as "     (filename snd type format srate)\n\
  " S_save_state "        ()\n\
  " S_scale_by "          (scalers snd chn)\n\
  " S_scale_selection_by "(scalers)\n\
  " S_scale_selection_to "(scalers)\n\
  " S_scale_to "          (scalers snd chn)\n\
  " S_select_channel "    (chn)\n\
  " S_select_region "     (reg)\n\
  " S_select_sound "      (snd)\n\
  " S_selected_channel "  (snd)\n\
  " S_selected_sound "    ()\n\
  " S_selection_beg "     ()\n\
  " S_selection_length "  ()\n\
  " S_selection_member "  (snd chn)\n\
  " S_selection_to_temp " (type format)\n\
  " S_selection_to_temps "(type format)\n\
  " S_set_amp "           (amp snd)\n\
  " S_set_contrast "      (contrast snd)\n\
  " S_set_contrast_amp "  (contrast-amp snd)\n\
  " S_set_contrasting "   (contrasting snd)\n\
  " S_set_cursor "        (samp snd chn)\n\
  " S_set_cursor_follows_play " (cursor-follows snd)\n\
  " S_set_expand "        (expand-amount snd)\n\
  " S_set_expand_hop "    (expand-hop snd)\n\
  " S_set_expand_length " (expand-length snd)\n\
  " S_set_expand_ramp "   (expand-ramp snd)\n\
  " S_set_expanding "     (contrasting snd)\n\
  " S_set_ffting "        (on snd chn)\n\
  " S_set_filter_order "  (filter-order snd)\n\
  " S_set_filter_env "    (filter-env snd)\n\
  " S_set_filtering "     (filtering snd)\n\
  " S_set_graph_style "   (style)\n\
  " S_set_graphing "      (on snd chn)\n\
  " S_set_group_amp "     (group chan amp)\n\
  " S_set_group_beg "     (group beg)\n\
  " S_set_group_end "     (group end)\n\
  " S_set_group_speed "   (group speed)\n\
  " S_set_group_tempo "   (group tempo)\n\
  " S_set_just_sounds "   (just-sounds)\n\
  " S_set_left_sample "   (samp snd chn)\n\
  " S_set_mark_name "     (mark name snd chn)\n\
  " S_set_mark_sample "   (mark sample snd chn)\n\
  " S_set_menu_sensitive " (top-menu label on)\n\
  " S_set_mix_amp "       (mix chan amp)\n\
  " S_set_mix_anchor "    (mix anchor)\n\
  " S_set_mix_groups "    (mix groups)\n\
  " S_set_mix_length "    (mix length)\n\
  " S_set_mix_position "  (mix samp)\n\
  " S_set_mix_speed "     (mix speed)\n\
  " S_set_mix_state "     (mix state)\n\
  " S_set_read_only "     (read-only snd)\n\
  " S_set_recorder_gain "(gain amp)\n\
  " S_set_recorder_in_amp "(in out amp)\n\
  " S_set_recorder_out_amp "(out amp)\n\
  " S_set_reverb_decay "  (decay snd)\n\
  " S_set_reverb_feedback "(feedback snd)\n\
  " S_set_reverb_length "(length snd)\n\
  " S_set_reverb_lowpass "(lowpass snd)\n\
  " S_set_reverb_scale "(scale snd)\n\
  " S_set_reverbing "     (on snd)\n\
  " S_set_right_sample "  (samp snd chn)\n\
  " S_set_sample "        (samp value snd chn)\n\
  " S_set_samples "       (samp samps data snd chn)\n\
  " S_set_showing_controls " (showing snd)\n\
  " S_set_speed "         (speed snd)\n\
  " S_set_syncing "       (syncing snd)\n\
  " S_set_uniting "       (style snd)\n\
  " S_set_waving "        (on snd chn)\n\
  " S_set_x_bounds "      (x0 x1 snd chn)\n\
  " S_set_y_bounds "      (y0 y1 snd chn)\n\
  " S_short_file_name "   (snd)\n\
  " S_showing_controls "  (snd)\n\
  " S_show_listener "     ()\n\
  " S_smooth "            (beg num snd chn)\n\
  " S_smooth_selection "  ()\n\
  " S_sound_to_temp "     (type format)\n\
  " S_sound_to_temps "    (type format)\n\
  " S_snd_spectrum "      (data window length linear)\n\
  " S_snd_print "         (str)\n\
  " S_speed "             (snd)\n\
  " S_squelch_update "    (snd chn)\n\
  " S_srate "             (snd)\n\
  " S_src_selection "     (num-or-env base)\n\
  " S_src_sound "         (num-or-env base)\n\
  " S_stop_playing "      (snd)\n\
  " S_syncing "           (snd)\n\
  " S_temp_filenames "    (data)\n\
  " S_temp_to_selection " ()\n\
  " S_temp_to_sound "     ()\n\
  " S_temps_to_selection "()\n\
  " S_temps_to_sound "    ()\n\
  " S_transform_dialog "  ()\n\
  " S_transform_sample "  (bin slice snd chn)\n\
  " S_transform_samples " (snd chn()\n\
  " S_transform_samples_vct " (snd chn)\n\
  " S_unbind_key "        (key state)\n\
  " S_undo "              (edits snd chn)\n\
  " S_uniting "           (snd)\n\
  " S_update_sound "      ()\n\
  " S_update_fft "        (snd chn)\n\
  " S_update_graph "      (snd chn)\n\
  " S_vct_p "             (vobj)\n\
  " S_vct_addB "          (vobj1 vobj2)\n\
  " S_vct_copy "          (obj)\n\
  " S_vct_fillB "         (vobj val)\n\
  " S_vct_length "        (vobj)\n\
  " S_vct_multiplyB "     (vobj1 vobj2)\n\
  " S_vct_offsetB "       (vobj val)\n\
  " S_vct_ref "           (vobj pos)\n\
  " S_vct_scaleB "        (vobj scl)\n\
  " S_vct_setB "          (vobj pos val)\n\
  " S_vct_samples "       (samp samps data snd chn)\n\
  " S_vct_sound_file "    (fd vobj vals)\n\
  " S_version "           ()\n\
  " S_view_sound "        (filename)\n\
  " S_waving "            (snd chn()\n\
  " S_window_height "     ()\n\
  " S_window_width "      ()\n\
  " S_x_bounds "          (snd chn)\n\
  " S_y_bounds "          (snd chn)\n\
  " S_yes_or_no_p "       (ques)\n\
\n\
Some of the underlying sound library (Sndlib functions are available in lisp\n\
(and more could be made available, if they're needed).\n\
\n\
  " S_sound_samples " (filename)\n\
  " S_sound_frames " (filename)\n\
  " S_sound_datum_size " (filename)\n\
  " S_sound_data_location " (filename)\n\
  " S_sound_chans " (filename)\n\
  " S_sound_srate " (filename)\n\
  " S_sound_header_type " (filename)\n\
  " S_sound_data_format " (filename)\n\
  " S_sound_length " (filename)\n\
  " S_sound_type_specifier " (filename)\n\
  " S_sound_type_name " (type)\n\
  " S_sound_format_name " (format)\n\
  " S_sound_comment " (filename)\n\
  " S_sound_bytes_per_sample " (format)\n\
  " S_audio_error " ()\n\
  " S_audio_error_name "(err)\n\
\n\
";

char *get_init_file_help(void) {return(init_file_help);}

static char resource_help[] =
"Snd-specific resources are:\n\
\n\
initFile           \"~/.snd\"\n\
epsFile            \"snd.eps\"\n\
overwriteCheck      0\n\
groups              6\n\
autoResize          1\n\
horizontalPanes     0\n\
defaultOutputType  NeXT_sound_file\n\
\n\
buttonFont         -*-times-medium-r-*-*-14-*-*-*-*-*-iso8859-1\n\
boldbuttonFont     -*-times-bold-r-*-*-14-*-*-*-*-*-iso8859-1\n\
axisLabelFont      -*-times-medium-r-normal-*-20-*-*-*-*-*-iso8859-1\n\
axisNumbersFont    -*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1\n\
helpTextFont       9x15\n\
listenerFont       9x15\n\
\n\
useSchemes         none\n\
highlightcolor      ivory1\n\
basiccolor          ivory2\n\
positioncolor       ivory3\n\
zoomcolor           ivory4\n\
cursorcolor         red\n\
selectioncolor      lightsteelblue1\n\
mixcolor            lightgreen\n\
mixfocuscolor       green2\n\
listenercolor       aliceblue\n\
envedwaveformcolor  blue\n\
filterwaveformcolor blue\n\
mixwaveformcolor    darkgray\n\
graphcolor          white\n\
selectedgraphcolor  white\n\
datacolor           black\n\
selecteddatacolor   black\n\
markcolor           red\n\
pushedbuttoncolor   lightsteelblue1\n\
sashcolor           green\n\
\n\
zoomSliderWidth     10\n\
positionSliderWidth 13\n\
toggleSize          0\n\
envedPointSize     10\n\
channelSashIndent -10\n\
channelSashSize     0\n\
sashSize           14\n\
sashIndent         -6\n\
\n\
If you use schemes, the color resources are ignored.\n\
\n";

char *get_resource_help(void) {return(resource_help);}


static char region_browser_help[] =
"This is the 'region browser'.  The scrolled\n\
window contains the list of current regions\n\
with a brief title to indicate the provenance\n\
thereof, and two buttons.  The 'save' button\n\
protects or unprotects the region from deletion.\n\
The 'play' button plays the associated region.\n\
One channel of the currently selected region\n\
is displayed in the graph window.  The up and\n\
down arrows move up or down in the region's\n\
list of channels.  If you click a region's\n\
title, the text is highlighted, and that region\n\
is displayed in the graph area.  You can cause\n\
that region to become the current 'selection'\n\
by clicking the 'Select' button (this merely\n\
moves the region to the top slot in the region\n\
list).  You can delete the selected region by\n\
clicking the 'Delete' button.  To dismiss the\n\
browser, click 'Ok'.  The 'edit' button\n\
loads the region into the main editor as a temporary\n\
file.  It can be edited or renamed, etc.  If you save\n\
the file, the region is updated to reflect any edits\n\
you made.\n\
\n";

char *get_region_browser_help(void) {return(region_browser_help);}

static char mixing_help[] =
"Since mixing is the most common and most useful\n\
editing operation performed on sounds, there is\n\
relatively elaborate support for it in Snd. Each\n\
individual mix portion has a mix console, a\n\
small box displayed in above the waveform\n\
containing various controls. These consoles\n\
follow the sync buttons where relevant. More\n\
importantly, consoles can be edited together by\n\
collecting related mix portions into a group,\n\
then firing up the Group Editor (via the View\n\
menu Groups option). In a sense, a group can be\n\
viewed as Snd's way of implementing a more normal\n\
mixer's tracks.\n\
\n\
To mix in a file, use either the File Mix menu\n\
option or the command C-x C-q. Currently the only\n\
difference between these two is that the Mix menu\n\
option tries to take the current sync state into\n\
account, whereas the C-x C-q command does not. To\n\
mix a selection, use C-x q. The mix starts at the\n\
current cursor location.\n\
\n\
When a section or file is mixed into the current\n\
file a mix console is associated with it, each\n\
output channel getting its own console. The\n\
console is displayed at first as a row of widgets\n\
giving the input file name, the begin and end\n\
times of the mixed-in portion (click to change\n\
from seconds to samples), then three icons:\n\
\n\
  a speaker:   while pushed, the input is played\n\
  an 'x':      click to remove the console permanently\n\
  a box:       click to open (or close) the console\n\
\n\
You can drag the widgets to change the position\n\
of the mix. Once opened, each console presents a\n\
pane with an amplitude slider for each input\n\
channel, and a speed control (srate change on the\n\
input). The initial state of the console sets the\n\
speed to 1.0, and all the input amplitudes 0.0\n\
except the channel that matches the current\n\
output channel, which is set to 1.0 (a straight\n\
mix). To return to this state at any time, click\n\
the 'amp:' label. To turn the mix off ('mute' it,\n\
set all amps to 0.0), double click the label; to\n\
return to the last settings you made, click it\n\
with control or meta down. Similarly, click the\n\
'speed:' label to reset it to 1.0, and click it\n\
with control or meta to return to your last\n\
settings. Each time you release the mouse button\n\
(or click the amp label) counts as another 'edit'\n\
of the file, so it is usually better to use\n\
'undo' and 'redo' in this context, rather than\n\
repeated clicks and shift-clicks. The srate scale\n\
is interpreted in the same way as the sound pane\n\
speed control -- as a float normally, but also,\n\
if you like, quantized to semitones or integer\n\
ratios.\n\
\n\
To change the scale interpretation, set the\n\
variables " S_mix_amp_scaler ", " S_mix_speed_scaler ", and\n\
in the group editor " S_mix_tempo_scaler "; all default\n\
to 1.0 which gives a scaling from 0 to around\n\
12. These numbers actually scale an exponent, so\n\
(for example) if " S_mix_amp_scaler " is set to 0.5,\n\
the scale goes from 0.0 to around 3.5; similarly\n\
if " S_mix_tempo_scaler " is 0.025, its scale goes from\n\
around .95 to 1.05.\n\
\n\
To reduce the mix console title to a single letter,\n\
double click the file name. Double click the\n\
label to return to the original row of icons. Since\n\
screen space is at a premium, this minimal form\n\
of the console can reduce clutter. You can still\n\
drag the little label to reposition the mix.\n\
\n\
When any edit is performed that changes the file\n\
within the mixed portion, the affected mix\n\
consoles are removed from the display, and the\n\
only way to return to them is to undo the\n\
offending edit. That is, if you mix a portion,\n\
then cut some part of that portion, the mix will\n\
be locked in place from then on, as if you had\n\
clicked the 'x' button on the mix console.\n\
\n\
To turn off the constant graphics updates (which\n\
can slow down old machines like mine, and which\n\
can also be annoying when you know what you're\n\
doing), set the variable movies to 0 (it is also\n\
accessible in the Group Editor).\n\
\n\
When a sound is mixed into a file that has its\n\
sync button on, the separate channels are tied\n\
together so that as long as the sync button is\n\
on, if you move one mix console the other sync'd\n\
consoles move with it. Similarly, any speed\n\
change is reflected automatically in the other\n\
consoles; amplitude changes however, are not\n\
copied. To make the sync'd consoles independent,\n\
turn off the sync button. Once unsync'd, the\n\
consoles remain independent unless you 'undo'\n\
enough edits to return to the sync'd state.\n\
\n";
char *get_mixing_help(void) {return(mixing_help);}

static char grouping_help[] = 
"To tie together an arbitrary collection of mix\n\
consoles, use the 'group' buttons in the upper\n\
right corner of the mixer. Any mixers that share\n\
a button can be changed in parallel using the\n\
Group Editor (the Groups option under the View\n\
menu). The group editor gives amplitude control\n\
over each output channel that has a mix that is\n\
a member of the group. The speed control affects\n\
the sampling rate, and the tempo control affects\n\
the spacing of the individual members of the\n\
group. The play button plays just the group\n\
members.\n\
\n\
The group editor envelope fields use the same\n\
syntax as other Snd envelopes: '(0 0 1 1) is a\n\
ramp, for example, and '(0 0 1 1 2 0) is a sort\n\
of pyramid. The envelope data in a given field\n\
only takes effect after the field has been\n\
activated (normally by a carriage return). The\n\
tempo envelope is interpreted in terms of the\n\
current group times using the placement of the\n\
given mix within the group to find the parallel\n\
place on the (arbitrary) tempo envelope x axis.\n\
The value of the envelope at that point becomes\n\
another tempo multiplier; that is, these\n\
envelopes are not time maps (perhaps someday!).\n\
Since a tempo value of 2 makes things happen\n\
twice as slowly (it essentially multiplies begin\n\
times), the tempo envelope causes things to go\n\
faster as it gets closer to zero -- weird!\n\
\n\
The underlying mix consoles have independent\n\
envelopes, but my original plan to include\n\
envelope text fields in the consoles made them\n\
too big, cluttered, and unwieldy; an attempt to\n\
make each console a scrollable (or paned) window\n\
failed due to unfortunate limitations in\n\
Motif. These could be overcome, but would\n\
require much more programming than I think the\n\
issue is worth. I'm interested in better ideas,\n\
if anyone has any. One idea I'm goofing around\n\
with makes the mix matrix entries visicalc-like\n\
expressions.\n\
\n\
Since a mix is viewed in Snd as just another\n\
edit which you can undo and redo, and since one\n\
mix console can be participating in any number\n\
of groups, and since any number of files can\n\
have these grouped mixes active at once, and\n\
since you can ungroup a mix, then undo the\n\
related edit, it becomes a bit of a pain to\n\
describe what each sequence of actions will do.\n\
In general, think of a group as simply another\n\
kind of 'sync' button. The Group Editor itself\n\
does not follow the undo/redo chains (edits in\n\
Snd are considered to be local to each channel,\n\
but the group editor affects all mixes together,\n\
possibly across many channels). Each change to a\n\
group control immediately affects all mixes\n\
associated with that group, in each case as a\n\
single edit of each participating channel. Each\n\
change to the mix console takes into account the\n\
state of the groups that it is a member of.\n\
Undo of any edit simply undoes the edit -- the\n\
mix console will back up one state, but if the\n\
group controls have changed in the meantime, the\n\
two are now out of sync. Similarly, if you\n\
remove a mix from a group, the group's effect\n\
upon the mix is removed as well. If it joins a\n\
group with current state, that causes an\n\
immediate change in the mixed portion's\n\
state. The tempo control, however, only affects\n\
mixes that are under its control when it is\n\
changed (does that make sense? -- the idea is\n\
that you might want to leave a group briefly to\n\
fix a local mix position or speed, then rejoin\n\
the group, but in that process you don't want\n\
the tempo control to cause the mix to jump about\n\
randomly in time). Similar complications affect\n\
the group envelopes. You can choose whether the\n\
envelope is applied over the entire output\n\
duration, or just the group duration; in the\n\
latter case, you need to be aware that adding or\n\
removing mixes can change that duration,\n\
changing the effect of the envelope. Group state\n\
changes by themselves are not edits (i.e. if a\n\
group has no members, undo and redo will not\n\
notice that you've been fiddling with its amp\n\
scalers). If a mix is participating in several\n\
groups, all associated groups affect the mix\n\
together (group states are multiplied, and\n\
envelopes are melded into something resembling a\n\
gathering of the various envelopes). If a mix is\n\
synced to others, and joins or leaves a group,\n\
all the synced mixes follow its lead. All of\n\
this can be summarized: groups act like the sync\n\
buttons. And if it's confusing, consider the\n\
alternatives; or better, decide once and for all\n\
which mixes are grouped together, and use only\n\
one group per mix. Then everything should be\n\
intuitive.\n\
\n\
";
char *get_grouping_help(void) {return(grouping_help);}


static char recording_help[] = 
"To make a recording, choose 'Record' from the\n\
File menu. A window opens with the various\n\
recording controls.  The top three panes display\n\
the status of the input and output lines. If a\n\
channel is active, its meter will glow\n\
yellow. If some signal clips during recording,\n\
the meter will flash red. The numbers below the\n\
channel buttons indicate the signal maximum\n\
since it was last reset. The sliders underneath\n\
the meters scale the audio data in various ways\n\
before it is mixed into the output. The vertical\n\
sliders on the right scale the line-in and\n\
microphone signals before the meter, and the\n\
output signal before it gets to the speaker\n\
(these are needed to avoid clipping on input,\n\
and to set the 'monitor' volume of the output\n\
independent of the output file volume).\n\
\n\
The fourth pane has information about the\n\
current output file (its name and so on), and\n\
the layout of the window. The buttons on the\n\
right can be used to open and close panes\n\
painlessly. If the button is not square (a\n\
diamond on the SGI), the underlying audio\n\
hardware can't handle input from that device at\n\
the same time as it reads other 'radio' button\n\
devices. So, in that case, opening the panel via\n\
the button also turns off the other incompatible\n\
device. The fifth pane contains a history of\n\
whatever the recorder thought worth\n\
reporting. The duration field gives the current\n\
output file's duration. The bottom row of\n\
buttons dismiss the window, start recording,\n\
cancel the current take, and provide some\n\
help. There's also a slider on the far right\n\
that controls the speaker output volume\n\
(independent of the output file volume).\n\
\n\
To make a recording, choose the inputs and\n\
outputs you want; for example, to record channel\n\
A from the microphone to channel A of the output\n\
file, click the Microphone panel's A button and\n\
the Output panel's A button. Then when you're\n\
ready to go, click the Record button. Click it\n\
again to finish the recording.\n\
\n\
If the record window's VU meters are too big (or\n\
too small) for your screen, you can fool around\n\
with the variable " S_vu_size " which defaults to 1.0.\n\
Similarly the variable " S_vu_font_size " tries to\n\
change the size of the numbers on the label, and\n\
" S_vu_font " chooses the family name of the font\n\
used.\n\
\n\
Digital input is slightly tricky -- you\n\
need to set the sampling rate before you\n\
click the 'digital input' button; otherwise\n\
you'll get a stuttering effect because the output\n\
(monitor) rate doesn't match the input rate.\n\
";

char *get_recording_help(void) {return(recording_help);}


static char envelope_editor_help[] = 
"The Edit Envelope dialog (under the Edit menu)\n\
fires up a window for viewing and editing\n\
envelopes. The dialog has a display showing either\n\
the envelope currently being edited or a panorama\n\
of all currently loaded envelopes. The current\n\
envelope can be edited with the mouse: click at\n\
some spot in the graph to place a new breakpoint,\n\
drag an existing breakpoint to change its\n\
position, and click an existing breakpoint to\n\
delete it. The Undo and Redo buttons can be used\n\
to move around in the list of envelope edits; the\n\
current state of the envelope can be saved with\n\
the 'save' button, or printed with 'print'.\n\
\n\
Envelopes can be defined using defvar, and loaded\n\
from a separate file of envelope definitions via\n\
the load function.  For example, the file:\n\
\n\
  (defvar ramp '(0 0 1 1))\n\
  (defvar pyramid '(0 0 1 1 2 0))\n\
\n\
defines two envelopes that can be used in Snd\n\
wherever an envelope is needed (e.g. C-x C-a). You\n\
can also define a new envelope in the dialog's\n\
text field; '(0 0 1 1) followed by return fires up\n\
a ramp as a new envelope.\n\
\n\
In the overall view of envelopes, click an\n\
envelope, or click its name in the scrolled list\n\
on the left to select it; click the selected\n\
envelope to load it into the editor portion,\n\
clearing out whatever was previously there.  To\n\
load an exisiting envelope into the editor, you\n\
can also type its name in the text field; to give\n\
a name to the envelope as it is currently defined\n\
in the graph viewer, type its name in this field,\n\
then either push return or the 'save' button.\n\
\n\
Once you have an envelope in the editor, it can be\n\
applied to the currently active sounds via the\n\
'Apply' or 'Undo&Apply' buttons; the latter first\n\
tries to undo the previous edit, then applies the\n\
envelope. The envelope can be applied to the\n\
amplitude, the spectrum, or the sampling rate. The\n\
choice is made via the three buttons marked 'amp',\n\
'flt', and 'src'. The filter order is the variable\n\
" S_filter_env_order " which defaults to 40.\n\
The sampling rate conversion sinc width is\n\
the variable " S_sinc_width " which defaults to 10.\n\
To interrupt the application of the envelope, click\n\
the 'Stop' button.\n\
\n\
The two toggle buttons at the lower right choose\n\
whether to show a light-colored version of the\n\
currently active sound (the 'wave' button), and\n\
whether to clip mouse movement at the current y\n\
axis bounds (the 'clip' button).\n\
";

char *get_envelope_editor_help(void) {return(envelope_editor_help);}


static char edit_history_help[] = 
"The current state of the undo/redo list can be\n\
viewed as a scrolled list of strings by choosing\n\
the Edit menu's Show edit history option. The list\n\
is placed on the left of the associated channel\n\
pane. If there are no current edits, it just lists\n\
the associated file name (i.e. the zero-edits\n\
state).  As you edit the sound, the operations\n\
appear in the edit list window. Click on a member\n\
of the list to move to that point in the edit list\n\
(equivalent to some number of undo's or\n\
redo's). To move to a given edit point and follow\n\
the sync chain (if any), use control-click.\n\
\n\
Use " S_edit_history_width " to change the edit list's\n\
width. examp.scm has key bindings that might make\n\
this process simpler. If Guile is loaded, the\n\
function " S_save_edit_history " saves the current edit\n\
list as a loadable program.\n\
";

char *get_edit_history_help(void) {return(edit_history_help);}

#else

char *get_graph_help(void) {return((char *)"nope");}
char *get_file_menu_help(void) {return((char *)"nope");}
char *get_edit_menu_help(void) {return((char *)"nope");}
char *get_view_menu_help(void) {return((char *)"nope");}
char *get_options_menu_help(void) {return((char *)"nope");}
char *get_help_menu_help(void) {return((char *)"nope");}
char *get_about_snd_help(void) {return((char *)"nope");}
char *get_fft_menu_help(void) {return((char *)"nope");}
char *get_fft_keypad_help(void) {return((char *)"nope");}
char *get_find_menu_help(void) {return((char *)"nope");}
char *get_undo_menu_help(void) {return((char *)"nope");}
char *get_sync_menu_help(void) {return((char *)"nope");}
char *get_speed_menu_help(void) {return((char *)"nope");}
char *get_expand_menu_help(void) {return((char *)"nope");}
char *get_reverb_menu_help(void) {return((char *)"nope");}
char *get_contrast_menu_help(void) {return((char *)"nope");}
char *get_env_menu_help(void) {return((char *)"nope");}
char *get_format_menu_help(void) {return((char *)"nope");}
char *get_info_help(void) {return((char *)"nope");}
char *get_play_help(void) {return((char *)"nope");}
char *get_mark_help(void) {return((char *)"nope");}
char *get_mixing_help(void) {return((char *)"nope");}
char *get_grouping_help(void) {return((char *)"nope");}
char *get_init_file_help(void) {return((char *)"nope");}
char *get_resource_help(void) {return((char *)"nope");}
char *get_region_browser_help(void) {return((char *)"nope");}
char *get_expression_help(void) {return((char *)"nope");}
char *get_recording_help(void) {return((char *)"nope");}
char *get_envelope_editor_help(void) {return((char *)"nope");}
char *get_edit_history_help(void) {return((char *)"nope");}

#endif
#endif