File: denemomanual.xml

package info (click to toggle)
denemo 2.6.49-0.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 66,916 kB
  • sloc: ansic: 94,587; lisp: 38,713; xml: 22,675; python: 1,930; sh: 1,239; makefile: 642; yacc: 288; sed: 93
file content (2437 lines) | stat: -rw-r--r-- 118,157 bytes parent folder | download | duplicates (2)
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
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="./docbook-complete.css" type="text/css"?>
<article>
  <articleinfo>
    <title>Denemo User Manual</title>


<legalnotice>
    <para><note>When viewed online this manual will lack images and "style".</note></para>
      <para>This Manual is released under the <ulink
    url="http://creativecommons.org/licenses/by-sa/3.0">Creative Commons
Attribution-Share Alike 3.0 Unported</ulink> license.</para>
</legalnotice>

    <copyright>
      <year>2009, 2010, 2011, 2012, 2013, 2014, 2015</year>

      <holder>Denemo Project</holder>
    </copyright><author>
      <firstname>Richard</firstname>

      <surname>Shann</surname>

      <email>richard@rshann.plus.com</email>
    </author>
    
    <productname>Denemo <productnumber>1</productnumber></productname>

    <releaseinfo>Updates for version 1.2.4</releaseinfo>
  </articleinfo>

  <sect1>
    <title>Introduction</title>

    <para>Denemo lets you create musical scores. You can type music in using the keyboard 
    or play it in using a MIDI contoller or the microphone input. You can edit your music - the input display window shows you what you
    are working on in music notation - and you can playback to check how it sounds. 
    The Print View window shows the final printed score and typeset to the highest standards used in the music publishing industry 
    - thanks to the Lilypond music typesetting program.</para>
    <para>This separation of the final typesetting window from the input display avoids the constant dragging about of overlapping notation which is typical of music notation programs.
     Nevertheless, if you do wish to tweak the appearance dragging and re-positioning of notation is possible on the final typeset display.</para>


  </sect1>

  <sect1>
    <title>Getting Started</title>
     <para>Most people will start with playing around with Denemo via the pc keyboard. The default setup means that keys a-g represent the note names and 0-6 the different durations (whole note, half note etc). When the cursor is appending (blue) pressing key "0" will insert a note at the cursor. Pressing key "a" will append the nearest A. If the duration of the next note is the same you can simply type the note name, it will use the last entered duration. There are keypresses (+/-, and plus/minus on the numeric keypad) to set sharp/flat/double-sharp/double-flat for the next entered note and to sharpen or flatten. Use +/- with the shift key for editing. Likewise, Shift with a number key edits the duration. 
</para>
<para>When the cursor is moved on to a note (with the arrow key right or mouse) the cursor turns green and then a-g edits the note name. To insert a note before a note at the cursor use a double strike A,A-G,G. When the cursor is green the keys 0-6 change the duration of the note, while Shift-0 6 insert a note before the cursor. (If you use the numeric keypad you can use Shift-KP 0-6 for this).  The arrow keys move the cursor around, the period key adds a dot while Alt-a-g add notes to the chord at the cursor. Ins inserts a note in a chord whether the cursor is on (green) or after (blue) a note, a double Del, Del removes it. 
<note>
  When in the appending position the cursor shows as a large blue or red rectangle on a note-position. Blue indicates a note can be appended at that point without overflowing the measure. Red indicates that the measure is already full. When the cursor is a smaller green rectangle it indicates that you are not in the appending position: you can edit the note/object at the cursor or insert before it. The vertical blue line indicates the insertion point.
</note>
 </para>
 <para>You can find more shortcuts by exploring the menu system - e.g. under the Notes/Rests menu the Select Duration submenu gives Remove Dot with the shortcut Control-period shown next to the command.
 Alternatively, a list is available in the Help menu. There are thousands of commands in Denemo, so get to know the Command Center where you can search for commands by key words such as slur, ossia, beam, Da Capo, cresc. etc etc).
 </para>
 <para>
     Initially, Denemo starts with tooltips popping up almost everywhere. When they become too annoying you can tame them with Help-&gt;Turn Excessive Tooltips (Off/On), 
     and you can further delay the remaining tooltips appearing via Edit-&gt;Change Preferences.
 </para>


 <sect2>
<title>Some Common Keyboard Shortcuts</title>
<para>Here are a few of the keyboard shortcuts that are commonly used in Denemo.
    <itemizedlist>
      <listitem>
      Letters a-g edit the note at the cursor to be A-G, if the cursor is in the appending position then notes are added. Letters A-G (either caps lock or shift) insert a note at the cursor. 
      </listitem>
      <listitem>
      Numbers 0-6 are used to refer to the note durations Whole Note ... 64th Note. They insert a duration at the cursor, which you then give a pitch to with a note name. With the shift key held (or the CapsLock on) 0-6 edits the duration of the note at the cursor. The corresponding Numeric Keypad keys can be used instead.
      </listitem>
      <listitem>
      "." dots a note, Ctrl-"." undots it.
      </listitem>
      <listitem>
      Alt-0-6 inserts a rest.
      </listitem>
      <listitem>
      Alt-a-g Add notes to a chord. Or position the cursor and use Insert to add a note, Ctrl-Insert to remove it. 
      </listitem>
      <listitem>
      7 starts a slur, 8 extends it, while 9 reduces it.
      </listitem>
      <listitem>
      Shift-/ inserts a cautionary accidental
      </listitem>
      <listitem>
        Esc switches between various views of the music which can allow more music on the screen at once.
      </listitem>
      <listitem>
        TAB alternately inserts a start or stop triplet marker.
      </listitem>  
      <listitem>
        Multiply (on the numeric keypad) ties/unties the note at the cursor.
      </listitem>  
      <listitem>
        Divide (on the numeric keypad) sets/usets the note at the cursor as a grace note.
      </listitem>  
      <listitem>
        Add/Subtract (on the numeric keypad) sharpens/flattens the note at the cursor.
      </listitem>  
    </itemizedlist>
</para>
 </sect2>
 <sect2>
<title>Some Common Mouse Shortcuts</title>
<para>Here are a few of the mouse shortcuts that are commonly used in Denemo (keyboards may vary, for control, shift, alt etc modifiers). Note that under the Input menu is an option to turn on more mouse-friendly buttons, this is the default for Windows users.
    <itemizedlist>
            <listitem>
      Scroll Wheel pans up/down to bring staffs out of view into the window.
      </listitem>
            <listitem>
      Shift Key and Scroll Wheel pans the score left/right.
      </listitem>
            <listitem>
      Control Key and Scroll Wheel zooms.
      </listitem>
      <listitem>
        Right-button click edits at the cursor.
      </listitem>      
     <listitem>
        Shift-right-button click edits things attached to the object at the cursor.
      </listitem>      

      <listitem>
        Double click left-button describes the object clicked on.
      </listitem>      
      <listitem>
        Ctrl-Shift left-button drag allow you to move stuff in the display if it is cluttered. Typesettting is not affected.
      </listitem>      
      <listitem>
      Control-Shift Key and Right mouse button gives the menu of directives to insert at the cursor.
      </listitem>
      <listitem>
      Shift Key and Left mouse button drags notes up and down.
      </listitem>
  
    </itemizedlist>
</para>
     <para> Two-key shortcuts are also available such as "B,s" for start repeat barline and "B,e" for end repeat barline. 
 </para>
 </sect2>
 <sect2>
<title>Some Common Uses of MIDI in</title>
<para>The MIDI keyboard too can be customized to perform different actions. Usually, playing notes adds or edits the score (like hitting note names at the pc-keyboard). 
With the sustain pedal pressed chords are generated (the Alt key can be used for this too). 
If the interval between the notes played is augmented or diminished it is played on a different channel, so that you are
alerted to possible pitch spelling errors (e.g. inputting A-sharp for B-flat). By holding down the Control key a score can be checked by playing the notes - the cursor only advances if the right note is played, and the Shift key can be held down to route the MIDI keyboard straight to the output (e.g. to check a phrase before playing it in). There is a button in the MIDI-in Controls to do this too. The Pitch Bend controller can be used to set the range of sharps and flats to be used, and the modulation controller can be used to mark sections of the music. With the MIDI controller set as Input source (Input menu) the duration keys create pure durations (notes colored yellow/brown) - you can enter as much of the rhythm as you wish, and then play the notes on top.
</para>
 </sect2>
 <sect2>
    <para>Denemo is used via the computer keyboard, MIDI controller or playing in via a musical instrument.
     Clicking on a musical item in the score moves the cursor to it,
      and the status bar at the bottom will describe the item clicked. 
      Double-clicking the item will describe it in more detail.
      Right-clicking on items in the score allows you perform the most common edits on it.
        Clicking on the initial clef, key or timesignature lets you edit these,
         clicking to the right or left of the measures visible moves you forwards and backwards in the score.
           Selections can be made by dragging with the mouse from one note to another or off to one side (the window then scrolls). 
           And right-clicking any menu item gets help and the opportunity to set a shortcuts for the menu item.</para>
            </sect2>
 </sect1>
  <sect1>
    <title>Overall View of Denemo</title>
  <sect2>
    <title>General Concepts</title>
    <para>
    The unit of work in Denemo is a musical score, which can be saved in a single file (with .denemo suffix). This is represented on the screen by a "tab". If you have several tabs open at once they appear just above the music in the main window, and you can switch between them by clicking on the tab.
 </para>
    <para>
    One score may contain several movements, which you can move between (PgUp, PgDown), insert duplicate, merge and delete with the Movements menu. 
    A movement is a continuous piece of music with titles etc.
<note>
  When you have more than one movement numbered buttons appear in the score title bar for you to navigate by. 
  The first thing on the status bar after any pending accidental is the movement number. 
</note>
 </para>
    <para>
    Within a movement there are staffs (arranged vertically) and within the staffs Denemo Objects. These can be notes, chords, key changes, time signature changes
     and Denemo Directives (see  <xref linkend="DenemoDirectives" />). The notes and chords are displayed in conventional format (though not fully typeset). 
     The Denemo Directives are used for most things that are not chords or notes etc: Metronome marks, repeat barlines etc are good examples. 
     They can also be attached to chords, individual notes in a chord, to a staff as a whole and to the score as a whole; in this case the directive can be thought of as an attribute of the object it is attached to. Each Denemo Directive carries its own display method. For example the Close Repeat barline appears as a Denemo Object in the input display, while a Directive attached to a staff (e.g. Instrument Name, or Smaller Staff Size) may appear in a menu under a tools icon to the right of the staff. In the case of "Smaller Staff" the directive directs the LilyPond typesetter to make the staff smaller, and it can be edited from the menu under the tools icon to the left of the clef. Another tools icon appears if directives are attached to voices within a staff, again to the left of the clef, below the staff one.
</para>
    <para>
    If there is more than one voice on a staff it is best displayed on a separate staff in the Denemo Display, for ease of editing - the clef is drawn pale and there is no timesignature for such extra voices so it is easy to understand what is going on. The Print Preview window as usual shows the final typeset appearance.
    </para>
    <para>
    In the Denemo display a cursor shows where the next note will be entered/edited. It is red for an over-full bar, blue for appending into an under-full one and green when editing (i.e. on an already entered object).
    </para>
    <para>
        There are two sorts of titles. Book titles have a separate title page with titles for individual movements which can be listed in an automatically generated
table of contents. Simple titles give a Title and (optionally) movement titles on the same page. Comments can be place on chords in the score and these can be automatically collected into an appendix.
    </para>    
    <para>When a file is loaded it opens at the point where you left off editing it. 
 The position and size of the window is restored as well as the position and size of the source pdf you are transcribing from.
    </para>
          
  </sect2>
  </sect1>
  <sect1>
    <title>The Denemo Input Window</title>
    <figure>
      <title>Main Window</title>

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/denemomain.png" />
        </imageobject>
      </mediaobject>
    </figure>
<para>
The main window has menus and toolbars at the top, and palettes at top and right hand side. Which menus and palettes are shown are selected via the View menu.
At the bottom is a status line showing which movement you are in and what sort of object the cursor is on. If there are any MIDI filters that active they will be noted at the right in the status bar. The small colored rectangle is the Denemo Cursor, which shows where notes etc will be added/edited next - the insertion point is marked as a blue vertical bar. Selected music is indicated by a green background.
</para>
<para>
In between is where the music input is displayed, the Denemo Display area. When zoomed out you see just the few measures you are working on. By dragging the red bar at the bottom of the score upwards you get space for more of the music. If you have many staffs they may not all fit: you can still drag the red bar upwards to see several lines of just one or two staffs for instance.
If you need more room you can hide the menus (using the View Menu), and arrange a "page view" of the input music - useful when using playback.
</para>
<para>
The menus in Denemo are unusual: they not only let you do some particular action, but also each menu item lets add the command to a palette, enquire what the action does in more detail and set keyboard/mouse shortcuts for the action. 
A single keystroke can be set as a shortcut simply by pressing the key while the menu item is selected. 
All the extra functionality of menu items can be accessed by right-clicking the menu item, while the usual left click is for executing the action itself. 
The menus can always be torn off for working with particular items (e.g. working with different movements or with measures, dynamics etc.).
When you place a commands in a palette, and you can choose or create any number of these, free-floating or docked in the main display. 
Also available by right-clicking is creating new actions - often by modifying ones that are already there - using the Scheme scripting window.
</para>
  </sect1>

  <sect1>
    <title>The Main Menubar</title>


    <para>The Main Menubar has menus for overall control of the program. It
    contains the following submenus:</para>

    <itemizedlist>
      <listitem>
        <para>File</para>
      </listitem>

      <listitem>
        <para>Navigation</para>
      </listitem>


      <listitem>
        <para>Edit</para>
      </listitem>

      <listitem>
        <para>View</para>
      </listitem>

      <listitem>
        <para>Input</para>
      </listitem>

      <listitem>
        <para>Playback</para>
      </listitem>
      <listitem>
        <para>More</para>
      </listitem>



      <listitem>
        <para>Educational</para>
      </listitem>

      <listitem>
        <para>Help</para>
      </listitem>

    </itemizedlist>

    <sect2>
      <title>File</title>
<note>
            <para>This menu has been re-organized and much expanded, so the following is only a rough guide.</para>
          </note>
      <para>Use the <guimenu>File</guimenu> menu to perform global operations related to storing and retrieving from file systems.
      The File menu contains the following Menu Items:</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Menu Item</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>New</entry>

              <entry>Create score from scratch.</entry>
            </row>

            <row>
              <entry>Open</entry>

              <entry>Open an existing <productname>Denemo</productname>
              file.</entry>
            </row>
            <row>
              <entry>Add Staffs</entry>
              <entry>Open an existing <productname>Denemo</productname>
              file and append the staffs from the (first) movement of it to the staffs in the current movement.</entry>
            </row>
            <row>
              <entry>Add Movements</entry>
              <entry>Open an existing <productname>Denemo</productname>
              file and append the movements from it to the current score.</entry>
            </row>

            <row>
              <entry>Open Recent</entry>

              <entry>Open a file recently edited.</entry>
            </row>

            <row>
              <entry>Open Standard Template</entry>

              <entry>Create score from a stock template.</entry>
            </row>
            <row>
              <entry>Open from Gallery</entry>

              <entry>Create score from an example in the Gallery.</entry>
            </row>

            <row>
              <entry>Open Custom Template</entry>

              <entry>Create score from a template you have saved.</entry>
            </row>

            <row>
              <entry>New Window</entry>

              <entry>Open another instance of
              <productname>Denemo</productname>.</entry>
            </row>


            <row>
              <entry>Open in New</entry>

              <entry>Open an existing <productname>Denemo</productname> file
              in a new tab (or "page") so that both can be used at once.</entry>
            </row>

            <row>
              <entry>Save</entry>

              <entry>Save the current file.</entry>
            </row>

            <row>
              <entry>Save As</entry>

              <entry>Save the current file with a new name.</entry>
            </row>

            <row>
              <entry>Save Parts</entry>

              <entry>Saves a set of parts (staves) in LilyPond format.</entry>
            </row>

            <row>
              <entry>Export PDF</entry>

              <entry>Run LilyPond on the current file to create a PDF.</entry>
            </row>

            <row>
              <entry>Print</entry>

              <entry>Displays the score in a pdf view, from which it can be printed.</entry>
            </row>
        <row>
              <entry>Print excerpt</entry>

              <entry>Displays only the selection in image viewer, from which it can be saved.</entry>
            </row>

        <row>
              <entry>Print Current Part</entry>

              <entry>Displays one part taken from the score in a pdf view, from which it can be printed.</entry>
        </row>
            <row>
              <entry>Close</entry>

              <entry>Close the current score but keep other
              <productname>Denemo</productname> scores open.</entry>
            </row>

            <row>
              <entry>Quit</entry>

              <entry>Close the current scores and exit
              <productname>Denemo</productname>.</entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
    </sect2>

    <sect2>
      <title>Edit</title>
<note>
            <para>This menu has been expanded, so the following only covers some of the possibilities.</para>
          </note>
      <para>Use the <guimenu>Edit</guimenu> menu to access common editing
      commands.</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Menu Item</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>Undo</entry>

              <entry>Undo the pitch and rhythm just added.</entry>
            </row>

            <row>
              <entry>Redo</entry>

              <entry>Redo the pitch and rhythm just added.</entry>
            </row>

            <row>
              <entry>Select</entry>

              <entry>Menu items for selecting music in the score.</entry>
            </row>


            <row>
              <entry>Cut</entry>

              <entry>Copy the selected notation to the clipboard and delete
              the selection.</entry>
            </row>

            <row>
              <entry>Copy</entry>

              <entry>Copy the selected notation to the clipboard.</entry>
            </row>

            <row>
              <entry>Paste</entry>

              <entry>Paste the copied notation at the cursor point.</entry>
            </row>
            <row>
              <entry>Paste LilyPond Notes</entry>

              <entry>Paste text as LilyPond notes. Open a .ly file in a text editor, copy some notes and then execute this command to capture them into Denemo.</entry>
            </row>


            <row>
              <entry>Edit Object</entry>

              <entry>A general interface to editing whatever is at the cursor, especially Directives attached to notes/chords.</entry>
            </row>

            <row>

              <entry>Change Preferences</entry>
              <entry>Set external programs (LilyPond, Browser, Graphics Editor etc.), autosave interval etc. These values will be remembered when you re-start the program</entry>
            </row>

            <row>
              <entry>Commands Behavior</entry>
 
            </row>
            <row>
              <entry>Quick settings checkbox
</entry> <entry>One touch setting of keyboad shortcuts</entry>
            </row>
           
          </tbody>
        </tgroup>
      </informaltable>
    </sect2>

    <sect2>
      <title>View</title>

      <para>Use the <guimenu>View</guimenu> menu to toggle toolbars and
      palettes used with the mouse.</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Menu Item</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>Hide/Show Menus</entry>

              <entry>Three ways of showing the Denemo display area are supported. With/without the menus and as a multiline page. This cycles through the three displays.</entry>
            </row>

            <row>
              <entry>Typeset Music</entry>

              <entry>Shows the score as engraved by the LilyPond typesetter. You cannot edit in this window, but you can position the cursor in the display and drag some items to indicate how you want an item edited.</entry>
            </row>
            <row>
              <entry>Command Center</entry>

              <entry>Search for commands by entering likely words, set up one or two key shortcuts, load customized shortcuts or commands ...</entry>
            </row>   
            <row>
              <entry>Score Layout</entry>

              <entry>Show the score layouts associated with this score. The score layout is the final section of the LilyPond syntax that describes how to layout the staffs, voices, lyrics, titles etc.</entry>
            </row>              
            <row>
              <entry>Lyrics</entry>

              <entry>Shows any lyrics for the current staff/voice. Each verse has its own tab, when selected the lyric placement shows in the Denemo display, so you can adjust by typing in the lyrics view window</entry>
            </row>

            <row>
              <entry>Snippets</entry>

              <entry>Shows a menu bar with snippets - custom rhythm patterns. Enter snippets by selecting patterns and then use them as the an extended version of the prevailing duration, or insert them and overlay the inserted rhythms with pitches via keyboard, MIDI-keyboard or microphone</entry>
            </row>

            <row>
              <entry>Tools</entry>

              <entry>The conventional icons for Open, Print etc</entry>
            </row>

            <row>
              <entry>Playback Controls</entry>

              <entry>When checked a set of playback/record controls are placed above the display</entry>
            </row>
            <row>
              <entry>Midi In Control</entry>

              <entry>When checked a set of controls for a connected MIDI keyboard are placed above the display</entry>
            </row>

            <row>
              <entry>Score Titles, Controls etc</entry>

              <entry>If this is checked any Titles, indent settings etc applying to the score can be shown as buttons above the display. They must be created with their graphic field set for this.</entry>
            </row>

              
            <row>
              <entry>Object Menu</entry>

              <entry>Menus of all the Denemo commands listed under type of object from Score down to individual notes and directives.</entry>
            </row>


            <row>
              <entry>LilyPond</entry>

              <entry>Pops up a window for customizing the syntax that Denemo generates for the LilyPond engraver to typeset</entry>
            </row>

            <row>
              <entry>Scheme Script</entry>

              <entry>Pops up a window for showing scripts written in Scheme. These can be executed or saved as new commands. Sequences of commands can be recorded here.</entry>
            </row>

            <row>
              <entry>Score</entry>

              <entry>This hides/shows the main Denemo display.</entry>
            </row>
            <row>
              <entry>Palettes</entry>

              <entry>Gives access to palettes of buttons that can be arraged to make commands available via mouse or keyboard (via the Activate Palette Button command).</entry>
            </row>
            
            <row>
              <entry>Display Zoom</entry>

              <entry>Zoom the main Denemo display (usually done with ctrl-mouse wheel).</entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
    </sect2>



     <sect2>
      <title>Input</title>
       <para>Choose whether to use external sources (Audio from the Mic input or MIDI) for Denemo. To use these you may need to review the settings in Edit->Prefs first.</para>
      
    <para>Here too there are commands to change the way the inputs (keyboard, mouse and MID) behave.</para>
          
   </sect2>
  
    <sect2>
      <title>More</title>
       <para>Add commands to Denemo. Extra commands are available (those which not everyone will want) via this menu.
        More Commands gives commands shipped with Denemo, while My Commands gives ones that you have created locally. 
        Note that the extra commands can also be loaded at the menu where you are looking for them (you right-click on a menu item, and if there are more commands for that menu the More Commands for this Menu item will show),</para> <para>
</para>
   </sect2>

    
   
    <sect2>
      <title>Playback</title>
           <note> <para>This menu has been expanded, so the following only covers some of the possibilities.</para>
            </note>
      <para>Use the Playback menu to listen to your score. Denemo lets
      you hear your score, using an internal synthesizer. Playing of sections of the music and looping is possible (including editing as the music loops, so that you can listen to different possibilities)
      as well as recording the audio output
       (mixed with anything you play on your MIDI keyboard if you have recording set in the MIDI controls)</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Menu Item</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>Play</entry>

              <entry>Plays from the start marker to the end marker</entry>
            </row>
           <row>
              <entry>Stop</entry>

              <entry>Stops the playback</entry>
            </row>

            
         
          </tbody>
        </tgroup>
      </informaltable>
    </sect2>

    <sect2>
      <title>Help</title>
           <note> <para>This menu has been expanded, so the following only covers some of the possibilities.</para>
            </note>

      <para>Use the Help menu to get help using Denemo.</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Menu Item</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>Help</entry>

              <entry>Launch a browser to view this manual.</entry>
            </row>
           <row>
              <entry>Chat to Other Users</entry>

              <entry>Connects you to a site with other users to give advice.</entry>
            </row>

            <row>
              <entry>About</entry>

              <entry>View Denemo version information.</entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
    </sect2>
   </sect1>

    <sect1>
      <title>Toolbar</title>

      <para>Use the Toolbar to access common Denemo commands via a mouse click. The Tool
      Bar contains the following icons:</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Icon</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/new.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Creates a new document.</entry>
            </row>
 
        
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/open.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Opens the Open File dialog box.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/save.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Saves the current file</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/print.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Runs LilyPond to convert the current file to PDF and
              sends it to the printer for printing</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/undo.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Undoes the last action.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/redo.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Redoes the previous undo action.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/cut.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Cuts the current selection to the clipboard.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/copy.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Copies the selected notation to the clipboard.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/paste.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Pastes the current clipboard item at the cursor
              position.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/gotobegin.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Jumps to the first measure of the movement.</entry>
            </row>

            <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/gotoend.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Jumps to the last measure of the movement.</entry>
            </row>

 
          </tbody>
        </tgroup>
      </informaltable>
  </sect1>


    <sect1>
      <title>Playback Controls</title>
<mediaobject>
                  <imageobject>
                    <imagedata fileref="images/playbackcontrols.png" />
                  </imageobject>
                </mediaobject>
        <note> <para>This panel has been expanded, so the following only covers some of the possibilities.</para>
        </note>
      <para>Use this panel to control playback of the current movement. It has  the following controls:</para>
      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Icon</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/first.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Runs DenemoFirst script.</entry>
            </row>

        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/goback.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Runs DenemoGoBack script.</entry>
            </row>

        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/goback.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Moves the start playback position backwards. Runs DenemoGoBack script.</entry>
            </row>

        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/goup.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Sets start playback position to cursor. Runs DenemoStartToCursor script.</entry>
            </row>


        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/next.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Moves the start playback position forwards. Runs DenemoNext script.</entry>
            </row>

        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/rewind.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Runs DenemoRewind script.</entry>
            </row>


        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/stop.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Runs DenemoStop script.</entry>
            </row>
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/play.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Runs DenemoPlay script.</entry>
            </row>

        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/record.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Starts playing back while recording from MIDI-in.(Runs DenemoRecord scriptto do this).</entry>
            </row>


        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/forward.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Moves the end playback position backwards.Runs DenemoGoForward script.</entry>
            </row>
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/down.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Sets the end playback position to the cursor.Runs DenemoEndToCursor script.</entry>
            </row>
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/last.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Moves the end playback position forwards. Runs DenemoLast script.</entry>
            </row>
        <row>
              <entry>Loop</entry>
              <entry>Runs DenemoLoop script.</entry>
            </row>
        <row>
              <entry>Conductor</entry>
              <entry>When you press Play the music advances past the cursor only while the mouse is moving.</entry>
            </row>


        <row>
              <entry>Reset</entry>
              <entry>Internal Synth only. Performs a reset on the synth. Also resets the start/end play positions to whole piece (the visual display shows just a red bar at the start)</entry>
            </row>
        <row>
              <entry>Panic</entry>
              <entry>Jack only. Emits jack panic.</entry>
            </row>

        <row>
              <entry>Set from Selection</entry>
              <entry>Sets the selection to be the start/end. Note first use in a session is buggy.</entry>
            </row>
        
        <row>
              <entry>Tempo</entry>
              <entry>For movements with a single tempo this tempo is changed for rest of the playback. If the movement has an embedded MIDI tempo change, the change will be altered proportionally. The movement tempo setting itself is not altered - you are just altering the playback.(See next button or Movements->MIDI Tempo for setting that)</entry>
            </row>
        <row>
              <entry>Set Tempo</entry>
              <entry>Sets the overall tempo of the movement to the value fixed by the Tempo slider</entry>
            </row>
        
        <row>
              <entry>Volume</entry>
              <entry>Reduces the current volume by the % set. Again, this applies only to playback and proportionally affects embedded dynamics.</entry>
            </row>
        <row>
              <entry>Set</entry>
              <entry>Calls the DenemoSetPlaybackIntervalToSelection script.</entry>
            </row>
       
       
          </tbody>
        </tgroup>
      </informaltable>
  </sect1>


    <sect1>
      <title>Midi In Controls</title>
<mediaobject>
                  <imageobject>
                    <imagedata fileref="images/midiincontrols.png" />
                  </imageobject>
                </mediaobject>
        <note><para>This panel has been extended, the following is a rough guide.</para>
        </note>
      <para>Use this panel to control MIDI input to the current movement. It has  the following controls:</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Icon</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
        
        <row>
              <entry><mediaobject>
                  <imageobject>
                    <imagedata fileref="images/enharmonicselection.png" />
                  </imageobject>
                </mediaobject></entry>

              <entry>Sets the end sharps and flats to use.</entry>
            </row>
       
          <row>
        <entry>MIDI-&gt;Score</entry>
              <entry>Directs the MIDI in to the score or to a MIDI recorder. The MIDI recorder is active when Record button is pressed. When you wish to return to score editing, this button re-directs MIDI-in to the score.</entry>
            </row>
       
            <row>
        <entry>Delete</entry>
              <entry>Deletes your MIDI recording.</entry>
            </row>
       
           <row>
        <entry>Convert</entry>
              <entry>Converts your MIDI recording to Notation. Not yet at all practical!</entry>
            </row>
       
           <row>
        <entry>MIDI status</entry>
              <entry>Tells you how MIDI in will be treated. Press Control/Shift/Alt keys to modify or click and select Listening to input MIDI, Checking notes in the score against input MIDI or Appending/Editing at the cursor.</entry>
            </row>
       
          
          <row>
        <entry>Switch to Play Along Playback</entry>
              <entry>With this set, when you press Play the music will not advance past the cursor until you play the note. (Mute the current staff to prevent double sounding of notes)</entry>
            </row>
 
          </tbody>
        </tgroup>
      </informaltable>
  </sect1>

  <sect1>

      <title>Object Menu</title>

      <para>The object menus give you actions (such as insert, delete ...) ordered by the objects (notes, staffs, measures ...) that they act on.</para>

      <informaltable>
        <tgroup cols="2">
          <thead>
            <row>
              <entry>Menu Item</entry>

              <entry>Description</entry>
            </row>
          </thead>

          <tbody>
            <row>
              <entry>Score</entry>
              <entry>Settings that apply to the whole score.</entry>
            </row>
            <row>
              <entry>Movements</entry>
              <entry>Insert/remove navigate, change the properties of movements.</entry>
            </row>
            <row>
              <entry>Staffs/Voices</entry>
              <entry>Insert/remove, navigate, swap, change the properties of staffs or voices</entry>
            </row>
             <row>
              <entry>Clefs</entry>
              <entry>Insert change or set the initial clef.</entry>
            </row>
            <row>
              <entry>Keys</entry>
              <entry>Insert a change or set the initial key.</entry>
            </row>
            <row>
              <entry>Time Signatures</entry>
              <entry>Insert a change or set the initial time signature.</entry>
            </row>
            <row>
              <entry>Measures</entry>
              <entry>Insert/remove navigate measures .</entry>
            </row>  
            <row>
              <entry>Chords</entry>
              <entry>Insert/remove notes from a chord.</entry>
            </row>
                    
            <row>
              <entry>Notes/Rests</entry>

              <entry>Menu items for inserting/changing/deleting note and rests,
               beaming, ties, slurs, setting the notehead style, grace notes, triplets, transposing, markings (e.g. hairpins) attached to notes and more </entry>
            </row>
           
            <row>
            <entry>Directives</entry>
            <entry>These are objects inserted between the notes of a score to place marks or start/stop spanning effects such as textual cresc. dim., cadenzas, ottava, chord symbols, figured basses, fret diagrams and more ... </entry>
            </row>
            <row>
              <entry>Lyrics</entry>
              <entry>Create and delete lyrics.</entry>
            </row>

          </tbody>
        </tgroup>
      </informaltable>

  <sect2>
    <title>Score</title>

    <para>
    In the score properties dialog things that affect the whole piece can be set. In the score properties dialog you can include directives to apply to all the movements.
    </para>

         <note>
            <para>When a file is loaded it opens with the cursor at the last saved position.</para>
          </note>
  </sect2>


  <sect2 revision="0.75">
    <title>Adding Markings</title>

    <para>Dynamics, Slurs, Trills, Tempo Indications etc are in the Notes/Rests menu (if attached to a note or chord) or Directives menu (if standalone objects) </para>
    <para>You can collect together your favorite ones, either by assigning shortcuts, or creating a palette of favorite commands which just invoke the action you use. </para>
   
 
  </sect2>

  </sect1>
<sect1>
    <title>Palettes</title>
    <para>
     In the View menu you can select palettes of commands to use.
     Palette items can be invoked from the keyboard (see the Edit Menu) or by clicking on them.
     Right-clicking on a palette button allows you to edit the button or the entire palette. 
     You can dock the palette in the main display, arrange it as a column, line or block and much more.
   </para> 
 </sect1>     
 <sect1 id="CommandCenter">
    <title>The Command Center</title>
    <para>
     In the View menu you can show the Command Center. This has a list of all the Denemo commands, hidden or not, with their shortcut(s).
     The box at the top left gives full details of the currently selected command and its location in the menu system.
     Below that is a search box for finding any command you need by matching words in its description or label.
     </para>
     <para>
     The search starts as you type in the first letter of any key words you want, so check after each letter to see if you have found the command you need. 
     To search for further commands matching your keywords press the arrow next to the search box.
   </para> 
   <para>The command center is also where you can set one-key shortcuts such as Ctrl-x and
    two-key shortcuts such as Shift-a followed by Shift-a (which is written as A,A next to the command).
    You can also lookup which command responds to a given shortcut, and execute the selected command here.</para>
      <para>In addition you can save and load whole sets of shortcuts and commands.</para>
 </sect1>     
     
     
 <sect1>
    <title>Music Snippets</title>
    <para>The Music Snippet toolbar lets you keep a number of snippets of music for pasting into your score. You can enter notes following a rhythmic pattern of a snippet. If you have a pattern in your music that appears many times you only need to type it once. By selecting it and clicking Create Snippet you install that snippet on the toolbar. Then as you enter notes (in Insert Mode) the notes follow the rhythmic pattern chosen. Pressing a duration key goes back to adding notes of the prevailing duration. You can have several snippets like this and switch between them using the space bar (or other keybinding of your choice). Another (more musical) way of entering rhythms is to "drum" them in using the keys on the computer keyboard for quarter-note, eighth-note etc, a curious sort of "musical instrument" where you change key for different durations. Use the numeric keypad for this. Drumming in is quickly learnt and, by playing in the notes rhythmically you can keep your place in the music. Use the immediate feedback option for this, so that you get a bell to confirm when you have completed a measure.</para>
 <para>
   The snippets toolbar is also where "special" notes such as Breve, Longa will appear.
</para>

 <para>Using Input->Midi or Audio allows you to enter pitches directly. If you have entered your piece of music as pure rhythm you can overlay with the pitches using a MIDI controller or musical instrument with mic, headphones out or pickup attached to your soundcard.
</para>

  </sect1>
  <sect1>
    <title>The Print View Window</title>
 <para>The print view window is shown by checking View->Print View. At the top are buttons to turn continuous typesetting off or on, and to select Full score or Parts. The mouse scroll buttons enable vertical panning and with Control pressed, zooming. Use Ctrl+Shft for finer control zoom. Right click for help with tweaking beam angles, slurs etc.</para>
 <para> Right clicking in this pane also allows you to drag offsets to apply to items that LilyPond has positioned badly. 
 Slurs and beaming can be altered here, and page or line breaks added.
 Or you can select an amount of padding to apply to some object. 
 This is generally a better way of indicating that it is too close to something else, 
 since other objects will move away from it as needed - that is, if you later edit something it will behave more intelligently.
 </para>
  </sect1>
  
 <sect1>
    <title>The Score Layouts Window</title>
 <para>The score layouts window is shown by checking View->Score Layout. 
 You can use layouts to print the music in different ways. 
 For example, one layout may have the score transposed, or be for just two parts printed together.
 </para>
 <para>
 You can customize any layout in this window - positioning lyrics above the staff rather than below for example, or setting the staff groupings.
 </para>
 <para>You can make Denemo Directives conditional on the score layout, 
so that for example a page break only applies when printing the full score, or is just for printing one part. 
In this way if, for example, one part does not need separate first and second time bars, then these can be marked as not being for that layout.
See Directives->Conditional Directives for setting this.</para>
<note>
The score layout can only be edited graphically when first created. Once re-loaded from disk it is reduced to its LilyPond text form and can then only
be edited in the LilyPond view.
</note>
  </sect1>
 <sect1>
        <title>Score and Movement Button Bars</title>
         <para>The View->Titles, Buttons etc" checkbox makes two horizontal button bars visible (if they have buttons on them).
        What they the buttons show are titles/composer etc for the score and for the current movement. The score button bar holds the movement indicator buttons for scores
        that have several movements - you can click on one of these to move quickly to a different movement.
        In addition other score-wide settings create buttons on the score titles bar and movement wide settings on the movement titles bar.
        The menu items that populate these are under Score->Titles etc
        and Movement->Titles etc and other menus. </para>
  </sect1>
  <sect1>
      <title>A Survey of the Input Methods</title>
    <sect2>
      <subtitle>Introduction</subtitle>
      <para>
        Denemo allows you to explore all the actions (insert/delete/edit/navigate...) using the menus. So, for example, inserting notes can be found under Notes/Rests while inserting a Staff comes under Staffs/Voices.
         When you have found the action you need hovering over the item will give an explanation of what it does.
        The keyboard or mouse shortcut to use for the command is in blue on the right.
         You can set the keyboard shortcut just by pressing the desired key while the menu item is selected. 
         You can right click on the menu item to set a a two-key keyboard shortcut or mouse shortcut to activate the action.
         In addition you can customize the mouse actions to initiate commands, and set the cursor that will show while certain mouse conditions apply.
      </para>
      <para>
          Denemo offers several ways of entering music: typing at the keyboard, playing in via a MIDI keyboard (controller), 
      playing in acoustically using a microphone or choosing items from the menu system. 
      </para>
      <para>
          Using the menus for everything would be very slow, but next to each menu item is the keypress that you can use instead. 
      If there is no keypress shown, and you want to use that item often, then right click on the menu item and you can set a key combination for that menu action. 
      Right clicking is also useful for getting a description of what the menu action is. 
      </para>
      <para> 
        Typing at the keyboard can be very fast, if you forget which keypress you need you can consult the menu system to find out. This method is good for touch typists.
      </para>

      <para role="persom">For entering a lot of already written-out music, playing the music in via a MIDI keyboard or microphone can offer the fastest and most musical method.
      </para>
      <para>
          One way to do this is enter the music as pure rhythms, ignoring the note names. 
          The durations show as yellow/brown notes. Each duration sounds its own pitch and length as you enter the durations. 
          As you start each measure the bell will sound so that you can keep your eyes on the score you are copying 
          without needing to look up and check that you haven't miss-typed. If you are a reading musician 
          you will find that you tap in the rhythm rhythmically which helps to keep your place in the piece you are entering. 
      </para>
      <para>Once you have entered the rhythms for one or two measures you play the notes via MIDI - they automatically fill in the rhythm for you. When you play notes in via MIDI they give their pitches to the rhythm you have notated. By this means you can enter a piece of music in the time taken to play it twice - once to give the rhythm and once to give the pitches. If the piece modulates strongly you may need to shift the set of accidentals used to match the score. If entering pitches via a mic you need to navigate to the start point, but this isn't needed for MIDI in.
    </para>
 </sect2>
 
  <sect2>
    <subtitle>Playing Notes into Denemo - MIDI</subtitle>
        <para>
            Denemo can take pitches directly from MIDI input. Select Input->Midi Input. 
            The control panel allows you to choose the enharmonic range, the default centers around the initial key signature (e.g. E-flat to G-sharp for C-major).
            If you enter a diminished or augmented interval the note will be played in a separate MIDI channel which can be used to alert you to pitch-spelling mistakes 
            (e.g. entering A-flat when G-sharp was meant, you will get a lot more augmented and dimished intervals if you have the enharmonic range set wrongly for your piece).
            Under Input-&gt;MIDI are various "MIDI filters" that allow you to control how the MIDI input is used: 
            with none active the behavior is as if you had entered the notes using the pc-keyboard, but with the following advantages 
         <itemizedlist>
           <listitem>
             The octave, accidental and note name are all entered in one press of the MIDI key. 
           </listitem>
           the cursor automatically advances so you can continue to play in
           <listitem>
             The duration keys enter the yellow/brown duration-only notes, when you play a MIDI key the cursor automatically moves to the first of these.
           </listitem>
           <listitem>
             Holding down the Alt key (or sustain pedal) lets you enter chords.
           </listitem>
           <listitem>
             Holding down the Ctrl key lets you check the pitches of a piece already entered. The cursor only advances if the note played is the one at the cursor.
           </listitem>
           <listitem>
             Holding down the Shift key lets you listen to the MIDI keyboard without affecting the score.
           </listitem>
             <listitem>
             The problem of entering the wrong enharmonic is largely avoided by Denemo's simple pitch-spelling strategy.
             The more extreme intervals are played in a separate MIDI channel so that if, for example you enter F - A-sharp it sounds quite distinct from F - B-flat.
           </listitem>
         </itemizedlist>
        </para>
        <para>
           The MIDI filters are scheme scripts, so they can be tailored to do whatever you wish. One example is a filter that enables you to enter Figured Bass figures by playing the notes corresponding to the figures while holding down the bass note. 
        Another is the "AngryDelete" filter. With this filter on notes are entered normally with the cursor advancing automatically, but if you make a mistake and press the wrong note just hit the next one much louder and it will make the correction for you! MIDI filters are found under Input-&gt;MIDI
        </para>
  </sect2>
  <sect2>
    <subtitle>Playing Notes into Denemo - Audio (Souncard Mic Input)</subtitle>

        <para>
        Denemo can listen for, and detect the pitch of notes on the mic input of the computer; it doesn't attempt to guess the rhythm - such systems do not work well - but you will find that playing the notes in time will help you to play them in, as well as make playing them in a musical experience rather than a chore.
        </para>

         <para>Playing the notes in can be much quicker than using the keyboard since the note octave and accidental are all given just by playing the note. 
         If you are able to play a musical instrument then this will probably be much faster for you than typing note names, 
         octave shifts and accidentals at the computer keyboard. Using the headphones out of an electronic keyboard avoids "noises-off" interfering with the pitch detection.
          Many microphones and pickups benefit from some pre-amplification - it is worth getting the level right before you begin.
          </para>

        <para>When you select the Input->Audio on the Main Menu the Pitch Recognition window pops up. While the mouse pointer is inside the score drawing area the score is sensitive to pitches heard via the microphone input. The background colour of the score changes to show that the notes will be entered into the score. </para>
        <para>There are two ways of using the pitch entry - Overlay mode (default) and Insert mode. The button marked Insert causes notes to be entered into the current measure in the prevailing rhythm - the mode is set to Insert for this. The button marked Overlays overlays the notes already present with the pitches you sound. There is a third button, marked Tuning, which is a state-of-the art musical instrument tuner.</para>
        <para>
        Music is entered into the measure which holds the cursor. If you are overlaying a rhythm already entered, then the first un-overlayed note in the measure is overlayed by the note detected. You can delete the overlay using the regular delete keys, or clear them altogether if you want to start over in a measure. If you are in Insert mode then the notes detected will be inserted at the cursor position.
        </para>
        <para>Use the enharmonic shift to select whether Bb or A# should be entered when you enter the given pitch - you can usefully go as far as B# and Fb.</para>
        <para>Use the transpose control to shift up or down by octaves.</para>
         <para>Most of the other settings would require study of the Aubio documentation to understand, but the one marked threshold may be useful to make the detection less sensitive to ambient noises if using a microphone with an acoustic instrument.</para>
        <para> The best set-up is to plug the headphones-out socket of an electronic keyboard into the mic input, and choose a piano setting on the electronic keyboard.</para>
        <para> If you don't have any musical instrument that you can plug directly into the mic in, then you can use an acoustic instrument with a microphone, in which case move your microphone closer or further from your instrument to get reliable detection. Too close and you get double detections, too far and you get missed ones. To check for good detection open a piece of music, set Overlay mode and put the cursor in the first measure and play the piece in – the notes should all turn blue if you have perfect detection. It is worth while getting perfect detection – more than one or two miss-detects per piece of music and you may want to use the Insert rather than the Overlay method.</para>
         <para>
            The Audio Input button introduces a special entry mode where the pitches you play in will overlay the rhythm, appearing as blue notes. You can delete any wrong pitches using the usual delete keys, without deleting the rhythm. In fact if you have an "interloper" (an extra spurious note) you can delete it and the other pitches will all move along to their correct places.</para>
        <para>Another method of playing music in acoustically doesn't involve entering the rhythm separately. For this select Input->Audio and then choose Insert instead of Overlays on the Pitch Recognition Panel that pops up. With Insert the sounded notes are entered as in the prevailing rhythm. 
              The same applies if you have MIDI - by choosing a rhythm (e.g. half-note, quarter-note, or a custom rhythm pattern) 
              and playing in the pitches you can enter the music into a blank score.</para>
    </sect2>
  
  <sect2>
        <title>Using the Denemo From the PC keyboard</title>

    <sect3>
      <subtitle>Note Entry</subtitle>
      
        <para>Basic Note entry is to type a number key 0-6 for the duration of the note followed by a letter key a-g for the note name.
          (The shorter duration notes are available, but the keys 7,8,9  are used for starting and extending/reducing slurs).
           If the duration is the same as the last entered note then just the note name is needed. 
           The duration can be dotted with the period key, and the octave adjusted with comma (for down) or apostrophe (for up).
        </para>
        <para>When you append music by pressing a duration key with a MIDI controller active, you get a brown note, indicating a duration which has not been given a pitch. 
            Once you have pressed a note-name it becomes that note printed in black. 
            Prior to that it is a pure rhythm and will play back as a drum beat and will print as a space.
        </para>
        <para>
            When not appending music, you need to use the shift key to insert a new note, or set the caps lock. So Shift-a,Shift-a inserts the note A etc. Plain "a" edits the note at the cursor to be an A.  Likewise with the numeric keypad the Shift key can be used to edit a note duration, while the plain number keys insert the duration of the note at the cursor. 
            (If you do not have a numeric keypad, you have to use the number keys - best to plug in an additional USB keyboard with numeric keypad, they are very cheap nowadays).
        </para>
    </sect3>
    <sect3>
      <subtitle>Chord Entry</subtitle>
      <para>
            The standard keybinding for entering a note in a chord is the Insert key, Del,Del deletes. This enters the note at the cursor position, use - and = to flatten/sharpen the note before you enter it (avoiding hearing both notes if you flatten/sharpen afterwards).
           There are also commands to enter a named note Alt-a, Alt-b... are the standard shortcuts for this.
           Spacer rests have shortcuts too, but on Windows machines you will need to reclaim the "Windows" Mod-4 key from Microsoft or re-define the shortcuts.
     </para>
    </sect3>
  </sect2>
</sect1>

<sect1>
<title>Transcribing from Facsimile or Hand-written Score</title>

    <sect2>
        <subtitle>Opening Source PDF</subtitle>
        <para>In the File-&gt;Open menu is an option for opening a PDF containing music to be transcribed from.
                The PDF is opened in a Source View window. Right-click in this window at the point that your transcription will start.
                This will create a link in your score at the cursor, 
                which can be clicked on to open the source view window with the blue highlight marker
                on that point in the score. 
                (Depending on the position of the top of the page you may need to scroll the Source View window up or down to bring it into view).
                When you re-open the score to check or edit at some point you can click on a nearby link and the source file will be opened and the position highlighted once again.
        </para>
    </sect2>
    <sect2>
        <subtitle>Taking Snapshots of a Facsimile</subtitle>

        <note>This feature is now largely redundant as you can use the above method, which is quicker to do</note>
        <para>
        This is particularly useful for difficult-to-read scores. Each measure of the original can be captured as an image and stored along with the Denemo measure that is your transcription. This makes the transcribing process much easier as you can glance at your original without losing your place in a large messy manuscript. Capturing the images of the measures is done using a screenshot type of process - you need to have the original visible on the screen so you can indicate the extent of each measure.
        </para>
        <para>
        First display the original score or part on the screen using your pdf viewer or other image display software. Then, in Denemo, choose one of the Capture Measures commands. For a Full score you can capture all the parts at once - choose Movement->Capture Score->Capture Measures (Score). If you have parts use Staff->Capture Score->Capture Measures (One Staff).
        </para>
        <para>
        Now you can continuously enter measures by left clicking at each measure. You can adjust the start position of the measure (which is normally the end of the last one) by right-clicking. As you enter a measure image a Denemo measure is entered into the score and the image placed underneath it. To stop entering images press a key on the keyboard. There are also commands to delete an erroneous measure-image and to insert a new one - N.B. when you delete the image for a measure all the other measures shift along by one, so they are under the wrong bars until you insert a new screenshot for the measure.
        </para>
        <para>
        Now you can transcribe the music straight from the images directly under the measure you have selected. 
        <ulink url="https://www.denemo.org/dl21">LaManina.denemo </ulink> is an example: the original print made in Venice is quite difficult to decipher and has a couple of errors. In this Denemo file each measure for each part can be seen directly beneath the transcription. 
        You will notice that in places the original measure was split across two lines; at the moment there is no mechanism for joining up the two halves, so instead the following measure has an image containing the remainder of the measure plus the next measure.
        </para>
    </sect2>
 </sect1>

<sect1>
<title>Using a Proof-Read PDF</title>
<para>If you send the PDF output of your score to someone to proof-read they can make PDF annotations to it.
        In the File-&gt;Open menu choose Open Proof Read PDF to open a proof-read PDF. It will open at the first annotation, and,
        by clicking on the note the annotation applies to, the annotation is transferred as a comment into the score before the note chosen.
        When you have done all the annotations on the first page advance to the next page with annotations using the button "Next".
        </para><para>
        There are limitations - the PDF must be created from your score with point-and-click (the default) and you must not alter the score
        in a way that would invalidate the point-and-click. (Basically, don't edit again until the proof-reading is done, always good practice!)
        Also, enter the annotations in order from the start
        and don't edit before you have entered all the annotations, as this could invalidate the point-and-click.</para>



</sect1>
 
      <sect1 id="scoresetup">
        <title>Score Setup</title>

    <para>Denemo provides different ways to set up scores: <itemizedlist>
            <listitem>
        <para>Create template with the special name "default.denemo". If this is placed at the top level of your templates directory (that is ~/.denemo/templates/default.denemo), then it will be opened each time you start a new score. </para> </listitem>
            <listitem>
              <para>Create an init.denemo  score with everything you want to start up with, and any actions you want to be taken before you begin. This will be opened when you first start Denemo (that is once per Denemo session). See <xref linkend="initDotDenemo" /> for details on what actions you can have Denemo perform before you start.</para>
            </listitem>

            <listitem>
              <para>Use a Template</para>
            </listitem>

            <listitem>
              <para>Use shortcut keys to add staves and set attributes</para>
            </listitem>


            <listitem>
              <para>Use Menus</para>
            </listitem>
 </itemizedlist></para>
        <sect4>
          <title>Using Templates to Setup Scores</title>

          <para>Denemo comes with a few preinstalled templates.
          You can also create your own templates as well, in fact you can use any Denemo file as a template, just open it using File-&gt;Open-&gt;Open Custom Template.
          (The only difference is that, opened this way, the score is a new i.e. untitled score)</para>

          <procedure>
            <step>
              <para>Navigate to <guimenu>File</guimenu>, <guisubmenu>Open</guisubmenu>
              <guisubmenu>
              Template</guisubmenu>, The <interface>Open</interface> dialog
              box appears.</para>
            </step>

            <step>
              <para>Double click on a template name from the list of
              templates. The dialog box closes and the template appears.
          <!-- Alternately type @NewfromTemplate@, the <guisubmenu>New From
              Template </guisubmenu> dialog box appears. Double click on a
              template name from the list of templates. The dialog box closes
          and the template appears. 
          -->
            </para>

            </step>
          </procedure>

          <note>
            <para>Adjust the clef, key and time signatures as needed.</para>
          </note>
        </sect4>

       
 
  </sect1>

    <sect1 id="customizingDenemo">
      <title>Adding Key/Mouse Shortcuts</title>
      <para><productname>Denemo</productname> allows you to choose which keys activate which commands (shortcuts). 
      It also allows you to choose Mouse press/release gestures (in combination with keys such as Shift, NumLock, CapsLock etc).
    </para>
    <para>See <xref linkend="CommandCenter"/> for setting shortcuts. The following method can also be used.
    To choose a shortcut for a menu item, select the item (it becomes highlighted) and press the key that you want to become the shortcut.
    For mouse shortcuts right-click the menu item and choose the Create Mouse Shortcut, to change the pointer shape during mouse operations invoke the Command Center with the Edit Shortcuts option. 
    The Set Mouse Shortcut Dialog requires you to set which button and action you want to use and then to hold/lock the keyboard modifier while clicking on the big button. 
    The setting you have chosen is shown, and you click ok to accept it. 
    <note>Mouse Shortcuts are tricky to set - you are able to control what happens on mouse button press and release, which can be used to do things like drag notes
    up and down. But they are tricky to set up!</note>
 </para>

 <para>
    If your choice of keyboard shortcut already belongs to another command, you are warned about this, and given the chance to change your mind or steal the shortcut. 
    Also, you can choose whether to distinguish between keypresses with, say the NumLock down and those without or to ignore it. 
    If the NumLock is set but no command for that key specifically requires it then the setting of NumLock is ignored and the keypress is treated as if the NumLock was off.
 </para>
 <para>
 The menu item that activates the command shows the shortcuts that exist in bright blue lettering. 
 PrsL-CapsLoc, for example, is the Press action on the Left mouse key while the CapsLock light is on.  
 In the default command set this is linked to the BeginSlur command, so that together with the RlsL-CapsLoc for the release of the left mouse button, 
 you can "draw" slurs by using the mouse. Similarly, Shift with left mouse button (MveL-Shift) is set to allow you to drag notes up and down the staff. 
 (This is using Command MoveNoteToCursor).
 </para>
    </sect1>



<sect1>
    <title>More Commands</title>
<sect2>
     <title>Adding More Features </title>
   <para>
It is possible to add more commands to the set that Denemo ships with. Some of these are shipped with Denemo, but not added automatically so as to keep the menu sizes manageable. Generally, you right-click to find more menu items to add; once added you can set a keyboard/mouse shortcut and keep the command in your default setup.
Scheme to be executed at startup can be placed in the denemo.scm file.
<sect3>
    <title>An example - quicker dynamics selection</title>
It can be slow to choose dynamics (Ctrl-D) because the list is quite long to move down (or move to the mouse).
You can define a list of the dynamics you actually want to be readily available as for example:

(define DenemoDynamicList '(("f" "127" "Forte") ("p" "127" "Piano")))

This makes forte available just by pressing Return and piano available by pressing down arrow Return. (The others via More of course).

If you place this in (home directory)/.denemo-x.x.x/actions/denemo.scm then it will be defined when you start Denemo.
</sect3>
  </para>
</sect2>
<sect2>
     <title>Adding Your Own Features </title>
   <para>
You can also get Denemo to record a frequently used sequence of actions - it can be installed in the menu system and given a keyboard shortcut just like any other command. </para>
  <para> To do this choose View-&gt;Scheme Script. (You do not have to understand what a Scheme Script is to use this!). In the window that pops up check Record Scheme Script and then do the set of steps you wish Denemo to record.
  </para> 
 <para>As a simple example, suppose you wanted a command to delete the next note (there are commands to delete the previous note and the current note, so why not?). You would enter some notes, put on Record Scheme Script and then move the cursor right two steps and delete the previous note (with Backspace if that is your shortcut).
  (Each time you use a command you will see the Scheme syntax for that command entered into the Scheme window). Now turn off Record Scheme Script and you can experiment with your new command by pressing Execute in the Scheme Script window. 
 To save this new command for future use, you right click on a menu item (in the menu where you would like the command to appear) 
 and choose "Save Script as New Menu Item", this will ask you to make up a name for your new command as well as a label for the menu item etc.

 </para>  
<para> You can save the command in your default sequence of commands (via Edit->Customize Commands...->Manage Command Set->Save as Default Command Set). If not you will be asked if you want to save your new commands when you exit. Otherwise you can re-load via the More->My Commands menu item.</para> 
</sect2>
<sect2>
     <title>Another way ...</title>
   <para>
   There is another way of adding your own favorite LilyPond tweaks, which is by modifying a tweak that has already been done. This can be done by using the text-edit dialog on an existing Denemo Directive (usually found under the Advanced button provided by an edit script). Here you can see the actual LilyPond text that will be inserted, and there is a button to create a script to generate whatever you choose to enter. You can also enter the name of graphic images (.png files) that are to be used to represent your item in the display, and say where it should be positioned.
  </para>
   <para>
Once you have created the script, it can be saved in the menu system by right clicking on an item in the menu where you want to place the command, and choosing "Save Script as New Menu Item" as above.
   </para>
</sect2>
<sect2>
 <title>Writing Scheme Scripts </title>
 <para>
 If you are a programmer you will have guessed that you can edit the Scheme Script window to create any command you want. Even if you are not familiar with Scheme you may find that you can adapt other scripts to do what you want.
 </para> 
 <para>
 A good example of this is a script to insert a particular LilyPond directive into the score. This is all that many scripts do: it is easy to see the piece of LilyPond in the Scheme Script window, and by changing it you can create a new command.
 </para> 
 <para>
 For example, from the More menu select the command /menus/ObjectMenu/Instruments/Orchestral/RehearsalMark (the files are laid out in folders/directories in the same way as the menu system itself). Then choose Get Script from the right click menu. With this command its script is appended to the Scheme Script window. Here you can see the part that says
<itemizedlist>
 <listitem>
             (d-DirectivePut-standalone-postfix "RehearsalMark"  " \\mark \\default" )
</listitem>
</itemizedlist>
which is inserting the LilyPond directive "\mark \default" which inserts the default rehearsal mark. (The extra \s are needed to tell Scheme that you literally mean a \ sign). You can change this to insert any other LilyPond that you need - always doubling the \ signs. The you can save as a new menu item, or use Save Script to customize the script you started with.
 </para>
 
 <para> 
 More ambitious programmers will need to know all the commands available. Besides the complete Denemo command set (the list is given in the Command Center window) there are the following additional Scheme procedures defined.
 </para>
</sect2>

<sect2>
<subtitle>Commands Getting User Input</subtitle>
<para>All these commands are invoked from scheme as (d-<emphasis>Command</emphasis> <emphasis>args...</emphasis>)</para>
<itemizedlist>
<listitem>GetChar returns a string containing a single character from the user (blocks waiting for a keypress)
</listitem>
<listitem>GetKeypress returns a string representing a keypress from the user (blocks waiting for a keypress) (e.g. Up for the up arrow key etc.)
</listitem>
<listitem>GetCommand returns a string containing the command name for the user's keypress (blocks waiting for a keypress)
</listitem>
<listitem>GetCommandFromUser
</listitem>
<listitem>GetUserInput takes three strings, displays and returns the user's response as a string.
</listitem>
<listitem>RadioBoxMenu takes an arbitrary number of arguments, each argument is a pair, presents a menu of the first items in the pairs and returns the second item as chosen.
</listitem>
<listitem>RadioBoxMenuList like RadioBoxMenu but takes a list
</listitem>
<listitem>GetUserInput takes three arguments (title, prompt, suggested value) and returns the string typed by the user in the pop-up dialog or #f if Cancelled.
</listitem>
</itemizedlist>
</sect2>
<sect2>
<subtitle>Commands Getting Information about Object at Cursor</subtitle>
<itemizedlist>
<listitem>GetType returns a scheme string indicating the type of the current object</listitem>
<listitem>GetNoteName returns  a scheme string, giving the note name a-g of the current note</listitem>
<listitem>GetNote returns  a scheme string, the note name, accidental and octave of the current note (LilyPond notation)</listitem>
<listitem>GetNotes returns  a scheme string, the notes of a chord separated by NULL characters</listitem>
</itemizedlist>
</sect2>
<subtitle>To be sorted and added to ...</subtitle>

<itemizedlist>
<listitem>d-InitializeScript deprecated - init.scm is now run automatically. (parameter: action-name) runs a script init.scm in the menupath attached to the action whose name is given. Used by commands that need a time-consuming initialization step which can be skipped on subsequent calls.
</listitem>
<listitem>d-PutNoteName takes a string argument, a note in LilyPond notation. Changes the note at the cursor. Not for use with multi-note chords.
</listitem>
<listitem>d-DiatonicShift Deprecated.
</listitem>
<listitem>d-NextObject moves cursor to next object, returning TRUE if current object has changed
</listitem>
<listitem>d-NextChord as d-NextObject, but skipping non-chord objects. chords includes rests and chords with 1 or more notes.
</listitem>
<listitem>d-NextNote as d-NextChord but skipping rests (i.e. chords with 0 notes).
</listitem>
<listitem>d-NextStandaloneDirective as NextObject, stopping on a standalone directive. Using d-DirectiveGet-standalone tag a directive of a particular tag can be found.
</listitem>


<listitem>(d-Directive-<emphasis>type</emphasis>? optional-tag) where <emphasis>type</emphasis> is one of score, scoreheader, movementcontrol, header, paper, layout, clef, timesig, keysig, staff, voice, standalone, chord or note.This  returns #t if the cursor is on a directive of <emphasis>type</emphasis> (with tag optional-tag if optional-tag is present) else #f
</listitem>

<listitem>(d-DirectivePut-standalone? tag) inserts a standalone directive with the given tag at the current cursor position and places the cursor on it.
</listitem>
<listitem>(d-DirectiveGetTag-<emphasis>type</emphasis>) where <emphasis>type</emphasis> is one of score, scoreheader, movementcontrol, header, paper, layout, clef, timesig, keysig, staff, voice, standalone, chord or note. This returns the tag if the cursor is on a directive of <emphasis>type</emphasis>  else #f
</listitem>
<listitem>(d-DirectiveGetTagForTag-<emphasis>type</emphasis> tag) returns the tag passed in if the cursor is on directive of <emphasis>type</emphasis> with that tag, else it returns the tag of the first directive of  <emphasis>type</emphasis> that is present at the cursor, else  #f
</listitem>


<listitem>d-WarningDialog Pass a string argument to pop up a warning.
</listitem>
<listitem>d-GetOption (parameter string of options). Takes a null separated set of options and pops up a dialog offering them to the user. Returns the one chosen or #f if the user cancels.
</listitem>



<listitem>
d-GetMidi
</listitem>
  <listitem>
d-PutMidi
</listitem>
  <listitem>
d-PlayMidiKey
</listitem>
  <listitem>
d-BassFigure
  </listitem>
  <listitem>
d-GetNoteAsMidi  
  </listitem>
  <listitem>
d-RefreshDisplay
  </listitem>
  <listitem>
d-InputFilterNames  sets the status bar
  </listitem>
  <listitem>
d-Chordize Ensure that even a single note is treated as a chord - needed for some LilyPond constructs (e.g. fingerings)
  </listitem>



</itemizedlist>

  <para>
  Standard Denemo commands that pop up dialogs will work as usual if no argument is passed to them from Scheme. In general if a string consisting of strings of the form "name=value" is passed these will be used and no popup will occur. The field "name" will be given the value "value". The \0 is a NULL character that separates the assignment strings. 
  As a shorthand if there is only one value being passed you can just pass the value. The names of the fields depend on the action being called. So for example
<example id="schemecalls">
(d-Open "filename=myfile.denemo")
</example>
will open the file "myfile.denemo".
  </para>
  <para>
This feature is being rolled out, and currently works for
<itemizedlist>
<listitem>
d-InsertLilyDirective (directive, display. minpixels) (deprecated function)
</listitem>
<listitem>
d-AttachLilyToChord (prefix, postfix, display) deprecated see d-DirectiveGet-chord-* and d-DirectivePut-chord-* below
</listitem>
<listitem>
d-AttachLilyToNote (prefix, postfix, display) deprecated see d-DirectiveGet-note* and Put below
</listitem>
<listitem>
d-StaffProperties   understands a couple of property=value settings
</listitem>
<listitem>
d-InitialClef
</listitem>
<listitem>
d-InsertClef
</listitem>
<listitem>
d-InitialKey 
</listitem>
<listitem>
d-InsertKey
</listitem>
<listitem>
d-Open filename
</listitem>
<listitem>
d-ScoreProperties (fontsize= size of font to be used for score)
</listitem>


</itemizedlist>
  </para>
</sect1>

  <sect1 id="DenemoDirectives">
   <title>Denemo Directives</title>
    <para>
  Denemo directives are things like special barlines, rehearsal marks that appear amongst the notes, as well things like trills that are attached to notes and modifications
   to other things in the score to give them a different appearance or behavior. If they are objects in their own right ("Standalone Directives"), 
   like the first time bar marker then they appear betwen notes
   and the cursor can be placed on them. If they are attached to other things (such as a page break attached to a movement) then they are modified with the command used to create them.
  </para>
  
     <para>
  Double clicking on Standalone Directives, gives information about the directive, while right-clicking will edit it.
  </para> 
  
</sect1>
 

 <sect1>
    <title>LilyPond Editing</title>
<sect2>
     <title>Introduction</title>
 
   <para>
From version 0.7.8 we have the ability to edit the LilyPond output within Denemo. This approach immediately makes Denemo able to do many more things (e.g. multiple verses for songs) with the music still editable from within Denemo. The gallery of examples and the standard templates contain examples which you can use.
  </para>
   <para>
These can be used without knowing the LilyPond language (provided a suitable template or example file exists). Alternatively, with a general idea of how a LilyPond file works tweaks from the LilyPond documentation can be inserted into the LilyPond output and stored with the Denemo, leaving open the possibility of further editing of the notes within Denemo without the need to re-apply tweaks or keep separate LilyPond files.
  </para>
</sect2>
<sect2>
     <title>Using the LilyPond Window</title>
    <para>
Under the View menu is a Show LilyPond item which pops up a window with the LilyPond output in it. The text is interspersed with buttons which enable you to hide or show the various sections or to create custom versions. The text in bold can be altered and the alterations are kept in the Denemo file.
 </para>

    <para>
The two windows are kept in sync, so you can move back and forth between editing textually and editing in Denemo.
   </para>
   <para>
Right clicking on the text gives a menu for actions on the LilyPond text. LilyPond text can be inserted between notes, and the final section (the score layout) can be turned into editable text (see Score Layout).
 There is one for moving the cursor to the LilyPond text for the current Denemo object.
  Moving the cursor in the text window with the arrow keys causes the Denemo window cursor to move in synchronism.
  </para>
   <para>
This menu also includes a Print command that operates on the visible LilyPond text in the window.  
This means you can open specific custom score layouts and print from them, or even make a temporary edit for just one print.
 If you save the score with custom layouts then these are remembered. So when you reload and the custom score layout will be printed.</para>

</sect2>
<sect2>
     <title>Detail</title>
   <para>
Several custom layouts can be kept, selecting them in the Score Layout view enables the same Denemo file to print a variety of things from the same music input. 
For example, a full score or a set of parts, 
or several voices on group of staffs or even a piano reduction. 
  </para>

   <para>
The various Voices/Staffs for the different Movements are separated by buttons. These are labelled by enumerating the movements and staffs in order, so the first voice in the first movement has the music defined as
"MvmntIVoiceIMusic" and so on. Within these music blocks you can insert arbitrary LilyPond text between notes, (the insertion points are marked by grey blocks)
and the text inserted will appear as a LilyPond directives in the main Denemo window. 
 </para>

   <para>The main Denemo window also moves its cursor to correspond with where you are editing. (It should of course move the cursor immediately you click on a point in the music, but, as yet, it only moves the cursor when you press a key just before the note name - one of the arrow keys will do).
  </para>


 
   <para>
Custom layout blocks can be created by right-clicking on the Standard score layout and selecting create custom score layout. 
The Score Layout window allows creation of customized layouts via a GUI.
If you print a single part from all movements, you get the standard scoreblock for this and can add it to your custom score block so that a single print command prints, e.g. both a full score and parts. Using the \book {} block you can put these into separate files (stored in the folder .denemo in your home folder).
</para>
  <para>
The music defined by MvmntIVoiceIMusic is then used in the score blocks at the end of the LilyPond window, by the expression \MvmntIVoiceIMusic. This means that the same music can be output in several different ways, so that the same Denemo file can contain custom score blocks to output the music as a Piano Score with several voices or separate parts, for example.
  </para>
  <para>
The definitions for MvmntIVoiceIMusic actually look like this
<itemizedlist>
<listitem>
MvmntIVoiceIProlog = {\MvmntIVoiceITimeSig \MvmntIVoiceIKeySig \MvmntIVoiceIClef}
</listitem>
<listitem>
MvmntIVoiceIMusic = {\MvmntIVoiceIProlog \MvmntIVoiceI}
</listitem>
</itemizedlist>
Where \MvmntIVoiceI is the actual block of notes you have written, while the other definitions hold the time signature, clef etc. By using these, you can print the same music with different clefs, still maintaining the ability to edit the notes in Denemo.
  </para>

   <para>Note that the normal Denemo Print commands are still operate as they do if you never look at the LilyPond window. What happens is that if you select the Print Current Part menu item then this creates a tailored standard scoreblock for that part. However, if you use the File->Print command then it prints the first custom scoreblock that is open (visible) (or the standard scoreblock if you do not have any custom scoreblocks).
  </para>
   <note>
Bugs:
Clicking (as opposed to using the arrow keys) in the LilyPond text does not move the cursor in the Denemo window.
When you delete a LilyPond directive textually you have to move the cursor to start re-inserting it.
   </note>
</sect2>
  </sect1>

 


 

    <sect2 revision="0.76">
      <title>Note and Rest Entry Palettes</title>

      <para>On starting Denemo for the very first time a series of palettes are placed to the right of the main window with buttons to insert and change notes.
            For more serious use these just waste space, so by right clicking on them and choosing Edit this Palette they can be hidden.</para>
    </sect2>

  <sect1>
    <title>More Features</title>


   <sect2 revision="0.70">
      <title>Piano Staffs, Orchestral Scores etc</title>

      <para>
    A piano staff can be added using the Staff->Add Staff menu. In addition,
    piano staffs, and staff groups such as choir staff can be created using the Staff Groupings menu under the staff menu. You can set a piano staff within a staff group by setting successively the StartPiano and StartGroup contexts on a single staff, or more generally setting StartPiano, EndPiano on adjacent staffs within a staff group.

</para>
</sect2>
    <sect2 revision="0.70">
      <title>Single Staff Polyphony</title>
        
      <para>Use the Staffs/Voices->Voices menu for placing more than one voice on a staff. You can set the initial voice number from this menu 
      (voices 1 and 3 are stem up with slurs and ties etc adjusting to suit, voices 2 and 4 are stem down). 
      Directives can be placed in the music to change voice, see Directives->Typesetter->Voices menu.
      </para>
    <para>
        You will also need spacer rests for voices that are silent, and commands to displace rests vertically and horizontally (see Notes/Rests-&gt;Rest Insertion menu),
        and commands from the Voices menu under the Staffs/Voices and Directives-&gt;Typesetter menus.
    </para>
    </sect2>


    <sect2>
      <title>Entering Vocal Music</title>

      <para>Choose Lyrics->Add Verse. 
      You need to have the Lyrics View visible (see View menu). 
      Each verse has a separate tab, with the current verse for the current staff being visible at any one time. 
      Stanza numbers can be entered as well as font-changing commands. 
      Use -- to extend syllables over more notes (see LilyPond documentation).</para>
    </sect2>

    <sect2>
      <title>Entering Figured Bass</title>

      <para>To enter figures choose Notes/Rests->Markings->Figured Bass. There are some shortcuts that enable all the work to be done with the numeric keypad. A brief summary is given by right clicking the option. The conventions are described in the LilyPond docs.</para>
    </sect2>

    <sect2>
      <title>Fret Diagrams</title>

      <para>
          Fret Diagrams can be placed on the score using the command Fret Diagram in the ObjectMenu->Directives->Markings menu
          In addition by assigning a Denemo staff to display as fret diagrams, chords can be entered
          in standard notation  which will then be dislayed as fret diagrams. 
          See ObjectMenu->StaffMenu->StaffPropertiesMenu->FretDiagrams for this.
      </para>
    </sect2>
     <sect2>
      <title>Tablature</title>

      <para>
          Music can be displayed in tablature - the default is for standard guitar tuning but others can be set.
          The menus to explore are
            <itemizedlist>
            <listitem>ObjectMenu->StaffMenu->StaffPropertiesMenu->Tablature</listitem>
            <listitem>ObjectMenu->Directives->Typesetter->Tablature</listitem>
            </itemizedlist>
          It is possible to display the same music as both notation and tablature, and example of how to do this will be found under File->Open->Open Example.
      </para>
    </sect2>      
    <sect2>
      <title>Entering Chord Symbols</title>

      <para>To enter chord symbols choose Notes/Rests->Markings->Chord Symbols. A brief summary is given by right clicking the option. 
      The conventions are described in the LilyPond docs.</para>
      <para>Chord Charts can also be created - see the Chord Charts palette for these.</para>
    </sect2>

   <sect2 revision="0.70">
      <title>Musical Scores that Do Things!</title>
<para>
By saving a Denemo score with a script defined (in the script window) you can create music lessons, automatic midi player ... the possibilities are (literally) endless. When you open such a score, the script is run - it can take user input and manipulate the score, or do other actions as your fancy takes you.
</para>
<para id="initDotDenemo">
There is a special score init.denemo that is run on startup. By editing this you can startup with whatever template and whatever actions you wish to be performed. If you set it to do something that quits Denemo, you may need to delete the file before using Denemo normally again. Your local init.denemo is stored in the directory .denemo/actions in your home directory.To create it put the script you want in the script window and use SaveAs selecting ~/.denemo/actions/init.denemo as your file to save to.</para>
</sect2>
 <sect2>
<title>What Happens at Startup</title>
    <para>On starting the scheme script ~/.denemo-(version number)/actions/denemo.scm is executed (where ~ means your home directory and version number is 1.1.2 or later).
    A denemo file called init.denemo is/was loaded, but this is deprecated.
</para>
    <para>
        In addition, on startup a set of keyboard and mouse shortcuts, 
        and a selection of optional menu items are loaded. Other sets are available via the Edit->Customize Commands ...->Manage Command Set dialog.

 

    </para>
 </sect2>
  </sect1>

  <sect1>
    <title><productname>Denemo</productname> Command Line Options</title>

    <para><productname>Denemo</productname> --help shows the options at startup.</para>
  </sect1>
  
  <sect1 id="DenemoDirectivesTechnical">
   <title>Denemo Directives - Technical</title>   
   
  <para>
  These give attributes to objects that are not built-in but can be changed by the user.
  </para>
  <para>
 Denemo Directives can be attached at almost every level of a Denemo score and can modify the behavior of the element concerned. They contain fields to describe how the element's properties should be modified, either in the display or in the printing. Elements, such as clefs notes etc have their own built-in display and print properties; Denemo Directives allow you (or scripts you invoke) to modify them for many more purposes than the built-in set allows. This means Denemo can grow - you can add features - without getting a new version.
  </para>
  <para>
For example the drum clef is not built-in to Denemo. Instead a directive attached to the clef has a field (graphic) set to an image of the drum clef, and another field (postfix) set to the LilyPond syntax for a drum clef, while another field (override) is set to indicate that these values should replace the normal ones, rather than adding to them.
  </para>
  <para>
The elements that can be modified in this way are the following:
<itemizedlist>
<listitem>
score: the LilyPond fields (prefix and postfix) are placed at the start of the score and just before each movement. The display field is shown at the top of the display.
</listitem>

<listitem>
scoreheader: Attached to the score. The postfix field is put inside a \header{} block at the start of the score.
</listitem>
<listitem>
movementcontrol: Attached to a movement. The prefix field is placed before the movements \score{} block, the postfix after it.
</listitem>
<listitem>
header: Attached to a movement. As scoreheader but for \header[] blocks inside the movement's score block.
</listitem>
<listitem>
paper: Attached to the score. The postfix is placed inside a \paper{} block.
</listitem>

<listitem>
layout: Attached to a movement. The postfix is placed inside a \layout{} block in the movement's scoreblock.
</listitem>

<listitem>
clef: Attached to a clef or clef change. The graphic holds the displayed icon, gx,gy its position. The postfix field is put into the music at the point where the clef is found, replacing the normal text if the override is set.
</listitem>


<listitem>
timesig: Attached to a time signature or time signature change. The graphic holds the displayed icon, gx,gy its position. The postfix field is put into the music at the point where the time signature is found, replacing the normal text if the override is set.
</listitem>

<listitem>
keysig: as timesig but for key signatures. (e.g. used to supress keysignatures in drum clef).
</listitem>
<listitem>
staff: The postfix field modifies the whole staff context, with the display field printed at the start of the staff
</listitem>
<listitem>
voice: The postfix field modifies the voice context, with the display field printed at the start of the staff containing the voice
</listitem>
<listitem>
standalone: A directive not attached to an music element - it comes with the music and is used for things like repeat bars etc.
</listitem>
<listitem>
chord: The prefix field is emitted before the LilyPond for the chord and the postfix after it.
</listitem>
<listitem>
note: The prefix field is emitted before the LilyPond for the note and the postfix after it. Examples are fingerings attached to notes etc. Again the display and graphic fields a placed in the display positioned relative to the note via the coordinate fields gx, gy (for the graphic) and tx, ty for the display text.
</listitem>

</itemizedlist>

  </para>
  <para>
The Directives are sufficiently important to have their own commands.
  </para>
  <para>
<itemizedlist>

<listitem>
d-DirectivePut-type-field where type is one of score, scoreheader, movementcontrol, header, paper, layout, clef, timesig, keysig, staff, voice, standalone, chord or note  and field  is one of display, tx, ty, gx, gy, graphic, prefix, postfix, override, midibytes. These commands take two arguments, a tag (string) and a value to set. For example
<example id="schemecalls">
 (d-DirectivePut-note-postfix "LHFinger" "3")
</example>
will put the fingering 3 on (after) the note at the cursor.
</listitem>
<listitem>
d-DirectiveGet-type-field type is one of score, scoreheader, movementcontrol, header, paper, layout, clef, timesig, keysig, staff, voice, standalone, chord or note  and field  is one of display, tx, ty, gx, gy, graphic, prefix, postfix, override, midibytes. This function returns the value in the field or #f if there is no directive with the given tag at the cursor.
</listitem>

<listitem>
d-DirectiveDelete-type type is one of score, scoreheader, movementcontrol, header, paper, layout, clef, timesig, keysig, staff, voice, standalone, chord or note. This function returns #t or #f if a directive with the given tag was deleted.
</listitem>


</itemizedlist> 
  </para>

<sect2>
   <title>The Directive Fields</title>

 The fields of the Denemo Directive can control the Denemo Display and the LilyPond output.
  <para>
The fields in d-DirectiveGet/Put have the following meanings
<itemizedlist>
<listitem>
postfix - A fragment of LilyPond to be output (after the LilyPond for any object the directive is attached to). 
</listitem>
<listitem>
prefix - A fragment of LilyPond to be output (before  the LilyPond for any object the directive is attached to). 
</listitem>
<listitem>
display - text to be shown in the Denemo Display
</listitem>
<listitem>
tx, ty - where to show the text in the Denemo Display
</listitem>
<listitem>
graphic - For directives that are in the music this is a .png image to be shown in the Denemo Display (the directory bitmaps holds these). The graphic can be saved for a command using the right-click -> Save Graphic command, after selecting a portion of the print preview as the image required. For directives attached to the score, movement etc the string set here will be displayed on the button in the button box for that sort of directive (see Show Score Titles etc in view menu for showing this button box).
</listitem>
<listitem>
gx, gy - where to show thegraphic in the Denemo Display
</listitem>
<listitem>
minpixels - how much space to leave for this item in the Denemo Display
</listitem>
<listitem>
override - Contains bits to determine whether the LilyPond contained in the Directive (postfix and/or prefix fields) should override the normal LilyPond output, and whether the Graphic should replace the normal Denemo display for the item. A further tranche of bits controls MIDI output for the directive, which can override the normal MIDI interpretation of the music and provide additional information not explicit in the music notation (e.g. the tempo of an Adagio marking).
</listitem>
<listitem>
midibytes - a string of numbers (in hexadecimal format) whose interpretation is given by the MIDI bits in the override field
</listitem>


</itemizedlist>
  </para>


  <para>
The override field contains the following bits:
<itemizedlist>
<listitem>
DENEMO_OVERRIDE_LILYPOND : override the LilyPond output normally used at this point, rather than adding to the normal output. The text used is in the prefix and postfix fields.
</listitem>


<listitem>
DENEMO_OVERRIDE_GRAPHIC : overrides what Denemo would normally show in the display with the image named in the graphic field of the directive
</listitem>
</itemizedlist>
The MIDI bits in the override field are as follows
<itemizedlist>
<listitem>
DENEMO_OVERRIDE_VOLUME : the MIDI velocity to use
</listitem>

<listitem>
DENEMO_OVERRIDE_DURATION : affects the duration of a note. not yet implemented
</listitem>
<listitem>
DENEMO_OVERRIDE_REPEAT : indicates that an earlier passage should be repeated (from a directive of the same tag). not yet implemented
</listitem>

<listitem>
DENEMO_OVERRIDE_CHANNEL : midibytes field gives the MIDI channel to use (? implemented?)
</listitem>

<listitem>
DENEMO_OVERRIDE_TEMPO : midibytes field gives the tempo to use.
</listitem>
</itemizedlist>
The interpretation of these flags is modified by the following flags:
<itemizedlist>

<listitem>
DENEMO_OVERRIDE_ONCE : the value in midibytes is to be used just for the item the directive is attached to. not yet implemented
</listitem>
<listitem>
DENEMO_OVERRIDE_STEP : the value in midibytes is to be used from this point on
</listitem>
<listitem>
DENEMO_OVERRIDE_RAMP : the value in midibytes is to be used as a starting value, a corresponding directive (i.e. with the same tag) gives the findal value, values are then interpolated between these.  not yet implemented
</listitem>

<listitem>
DENEMO_OVERRIDE_RELATIVE : value in midibytes  is used relative to the current value (otherwise it is an absolute value; e.g. an absolute velocity etc)
</listitem>
<listitem>
DENEMO_OVERRIDE_PERCENT : value in midibytes is interpreted as percentage value. not yet implemented
</listitem>
</itemizedlist>
  </para>
  <para>
These flags are combined together to get the combination required for the directive using the scheme procedure called logior.</para>
<para>Here is an example, making a step-change in volume of 0x40 in the MIDI output, and printing "più mosso" in the output score </para>
<para></para>
<para>;;;;;;;;;; piu mosso</para>
<para>(d-DirectivePut-standalone-minpixels "StepTempo" 20)</para>
<para>(d-CursorLeft)</para>
<para>(d-DirectivePut-standalone-override "StepTempo" (logior DENEMO_OVERRIDE_TEMPO DENEMO_OVERRIDE_STEP DENEMO_OVERRIDE_RELATIVE))</para>
<para>(d-DirectivePut-standalone-midibytes "StepTempo" "40")</para>
<para>(d-DirectivePut-standalone-display "StepTempo" "piu mosso")</para>
<para>(d-DirectivePut-standalone-postfix "StepTempo" "^\\markup {\\bold \\italic \"più mosso\"}")</para>
<para>(d-RefreshDisplay)</para>

<para>In this example the directive is a standalone directive. MIDI commands are being extended to apply to chords and notes. Implementation of the commands for Voices, Movements, Score etc are not yet done.</para>
</sect2>

  </sect1>

 <sect1>
    <title>Directive Edit Scripts</title>
<sect2>
     <title>Introduction</title>
    <para>
    Score and movement directives can define a value for their graphic - a button then appears at the top of the score which can be used to edit the directive. Likewise Staff and Voice directives show as a properties icon before the staff to which they apply (staff directives above, voice directives below). Clicking on these lets you edit the directive.
  </para>
   <para>
   The command EditDirective can be used when the cursor is on a Denemo Directive object, or an object with a Denemo Directive attached to it. What happens then is determined by a script named after the "tag", or name of the directive. For example the command RehearsalMark creates a Directive with tag "RehearsalMark" and EditDirective runs a script called RehearsalMark.scm.
  </para>
   <para>
   There is also a low-level editing dialog which is invoked if no editing script exists or directly from scheme using (d-DirectiveTextEdit-* tagname). This allows you to edit and delete a directive directly. The other directive editing commands are EditScoreDirective EditMovementDirective EditStaffDirective EditVoiceDirective EditClefDirective EditKeysigDirective EditTimesigDirective for directives attached to the relevant objects.
  </para>

   <para>
   The low level edit of directives from scheme uses the following command:
<itemizedlist>
<listitem>
 (d-DirectiveTextEdit-&lt;field&gt; &lt;tagname&gt;). Where &lt;tagname&gt; specifies the directive to be edited and &lt;field&gt; is one of score, scoreheader, movementcontrol, header, paper, layout, clef, timesig, keysig, staff, voice, standalone, chord or note.
</listitem>
</itemizedlist>
  </para>
 <para>
   For example     (d-DirectiveTextEdit-paper "PrintAllHeaders") gives low-level access to the directive setting the print all headers command in the paper block of the LilyPond output.
 </para>
</sect2>

<sect2>
     <title>Initialization Scripts</title>
<para>
Each menu can have an initialization script, which can contain procedures that would be too time consuming to define every time they are needed. These scripts are guaranteed to be run before any menu item is activated within the menu. They can be read/written using the right click menu on any scripted menu item.
</para>
</sect2>


<sect2>
     <title>Edit Scripts</title>
 
   <para>
   Each directive has a tag field, so that it can be recognized by the scripts that manipulate it. In particular for each tag there can be an edit script, for editing a directive of that tag. 
   Edit scripts are kept in a directory actions/editscripts parallel with the directory actions/menus where the commands themselves are kept. </para>   
<para> 
You can read and write edit scripts by using the low level editing dialog on a directive with the tag you are writing for. 
<note>The low level editing dialog is the one that is presented if there is no edit script. Edit scripts can themselves give access to this dialog by including an option cue-Advanced which calls (d-DirectiveTextEdit-field tag) for the appropriate field and tag. For an example see the edit script for Instruments -&gt; Orchestra -&gt; RehearsalMark.
</note>
</para> 
<para >
 They have available functions to enable editing of directives which are defined in actions//denemo.scm executed at startup. The functions and variables for script editing are
 </para>

<itemizedlist>
<listitem>
d-GetOption followed by a nul separated list of options, offers the options to the user and returns one, or #f if the user cancels.
</listitem>
<listitem>
Extra-Offset tag type context. Takes three string options: tag is the name of the directive to be edited, which must be the name of a LilyPond object, type is the type of directive (note, chord, standalone, staff, voice or score), context is the LilyPond context of the object. Only tag is required. Shifts the object in the LilyPond output.
</listitem>
<listitem>
SetPadding tag type context. As Extra-Offset, it sets the space left around the item in the LilyPond engraving process.
</listitem>
<listitem>
SetRelativeFontSize tag type context. As Extra-Offset, it shifts the font size of the following text in the LilyPond engraving process.
</listitem>
<listitem>
CreateButton tag label this is just a convenience function to put a button with the passed in label onto a button box at the top of the screen. Scripts can attach actions to such tagged buttons.
</listitem>
d-SetDirectiveTagActionScript tag scheme-actions. This command sets scheme-actions as the actions to be performed when the button of the given tag is clicked. The default action is to run any editscript associated with tag, and if none to run the d-DirectiveTextEdit-score on the directive that displays the button.
<listitem>
</listitem>
d-DirectiveGetForTag-field tag 
<listitem>
Useful variables defined:
(define stop "\0")
(define cue-Advanced "Advanced")
(define cue-PlaceAbove "Place above staff")
(define cue-PlaceBelow "Place below staff")
(define cue-SetRelativeFontSize "Set Relative Font Size")
(define cue-OffsetPositionAll "Offset Position (All)")
(define cue-OffsetPositionOne "Offset Position (One)")
(define cue-EditText "Edit Text")
(define cue-SetPadding "Set Padding")
(define cue-Delete "Delete")

</listitem>
</itemizedlist>

</sect2>



  </sect1>
 
  
  
  <sect1>
    <title>Obtaining and Installing Denemo</title>
 <para>Denemo is available from the Downloads page of the Denemo website <ulink
    url="http://www.denemo.org"></ulink>, where more up-to-date information will be found.</para>
    <para>Denemo is available from a variety of sources for different
    distributions. The latest stable release (tar.gz and .deb formats) is
    available for download from <ulink
    url="http://download.savannah.gnu.org/releases/denemo/"></ulink>. You can install
    Denemo from the Debian unstable repositories, using the command apt-get
    install denemo. Builds for Macintosh are available from the Gnu-Darwin
    project. The Denemo development branch can be downloaded using anonymous
    CVS or Git.</para>
        <para>Anonymous Git checkout:</para>

        <para>git clone git://git.savannah.gnu.org/denemo.git</para>
    
        <para>Anonymous CVS checkout:</para> 
        <para>cvs -d:pserver:anonymous@pserver.git.sv.gnu.org:/denemo.git co -d denemo master</para>
 

  </sect1>
    <sect2>
      <title>Dependencies</title>

      <para>To build Denemo from a source package, the following  !!out of date!!
      dependent packages should be installed first. (See website for up-to-date list). Remember to install the
      development packages as well (check your distribution for the specific
      package name):<note>
          <title>For Debian Users</title>

          <para>Type <command>apt-cache showsrc denemo</command> at a command
          line to determine what are the package names for Denemo
          dependencies. Type <command>apt-get build-dep denemo</command> to
          build the dependent files or use apt-get to install the packages
          individually by copying and pasting their names to the command
          line.</para>
        </note></para>

      <itemizedlist>
        <listitem>
          <para>g++ 2.95 or higher</para>
        </listitem>

 
        <listitem>
          <para>cdbs</para>
        </listitem>

        <listitem>
          <para>gettext</para>
        </listitem>

        <listitem>
          <para>libgtk2.0-dev or 3</para>
        </listitem>

        <listitem>
          <para>gtk+ 2 or 3</para>
        </listitem>

        <listitem>
          <para>libglib2.0-dev</para>
        </listitem>

        <listitem>
          <para>libxml2</para>
        </listitem>

        <listitem>
          <para>libxml2-dev</para>
        </listitem>

 

        <listitem>
          <para>autoconf 2.59 or higher</para>
        </listitem>

        <listitem>
          <para>automake1.7</para>
        </listitem>

        <listitem>
          <para>libaubio</para>
        </listitem>
        <listitem>
          <para>libfftw3-dev</para>
        </listitem>

        <listitem>
          <para>libportaudio</para>
        </listitem>


      </itemizedlist>
    </sect2>


    <sect2>
      <title>Installing Denemo from Source Code</title>

      <para>Denemo is available in a variety of formats. The current stable
      release is available either as source code or in binary format. The
      Development branch of Denemo is available as a GIT source tree.</para>

      <procedure>
        <title>To install from source code:</title>

        <step>
          <para>Open a terminal window.</para>
        </step>

        <step>
          <para>Change directory to the directory to which you downloaded
          the Denemo source package.</para>
        </step>

        <step>
          <para>Uncompress the source package using standard Linux tools (tar
          and gunzip).</para>
        </step>

        <step>
          <para>Change directory to the uncompressed source directory.</para>
        </step>
      </procedure>

      <procedure>
        <title>Generating a Configure Script</title>

        <para>Git does not come with a Configure script; generate one by
        typing and pressing Enter after the line:</para>

        <step>
          <para>./autogen.sh</para>
        </step>
      </procedure>

      <sect3>

        <procedure>
          <title>To build from source, press Enter after each line:</title>

          <step>
            <para>./configure</para>
          </step>

          <step>
            <para>make</para>
          </step>

          <step>
            <para>make install</para>
          </step>

          <step>
            <para>If you are not logged in as root user, for the last step type su and your root
            password, or alternately type sudo make install.</para>
          </step>
        </procedure>
      </sect3>
    </sect2>
</article>