home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol056 / prog1.doc < prev    next >
Encoding:
Text File  |  1984-04-29  |  18.3 KB  |  459 lines

  1. {j:a
  2. {m:1=10,75
  3. {m:2=18,75
  4. {m:3=24,75
  5. {m:4=50,75
  6. {m:1
  7. IV. PROGRAM DESCRIPTIONS
  8.  
  9. This section of the manual describes the operation and use of each
  10. program in Musicraft.
  11.  
  12.  
  13. IV.A. SETUP
  14.  
  15.  
  16. IV.A.1. Command Sequence
  17.  
  18. A>^^SETUP^(press^return)
  19.  
  20.  
  21. IV.A.2. Discussion
  22.  
  23. You must run SETUP before you attempt to use EDIT. SETUP
  24. constructs a configuration file which is used by all other
  25. programs. This file consists of one record which contains
  26. the following information:
  27.  
  28. {m:2
  29. {i:-8
  30. 1.
  31. CPU type
  32. {i:-8
  33. 2.
  34. CPU clock speed
  35. {i:-8
  36. 3.
  37. DAC address
  38. {i:-8
  39. 4.
  40. Absolute cursor function parameters
  41. {i:-8
  42. 5.
  43. CRT clear functions
  44. {i:-8
  45. 6.
  46. Keyboard function keys
  47. {i:-8
  48. 7.
  49. Printer characteristics
  50.  
  51. {m:1
  52. Before attempting to run SETUP, read and fill out the worksheet
  53. provided in Appendix A. It is recommended that you
  54. use pencil in filling out the worksheet so that you can make
  55. corrections or updates as needed. Once you have completed the
  56. worksheet, run SETUP.
  57.  
  58. When you run SETUP, you must make sure that the Musicraft System
  59. diskette is on the default drive to insure that the configuration
  60. file will be placed on the system diskette.
  61.  
  62. Unless some aspect of the characteristics of your system changes,
  63. you will need to run
  64. SETUP only once for a system diskette.
  65.  
  66.  
  67. {c:VERY IMPORTANT NOTE
  68.  
  69. In general, whenever 
  70. you operate the system, it is necessary to have the system diskette 
  71. reside on the default drive so that the programs can
  72. successfully retrieve the configuration file.
  73.  
  74.  
  75. IV.B. EDIT
  76.  
  77.  
  78. IV.B.1. Command Sequence
  79.  
  80. A>^^EDIT^songname^(press^return)
  81.  
  82.  
  83. IV.B.2. Introduction
  84.  
  85. The editor is an in-memory editor. If the song named in the calling
  86. sequence has been stored on floppy disk, EDIT will
  87. retrieve the song into working storage in main memory. If the
  88. song is new, EDIT will ask that the number of voices be
  89. entered. You may enter 1, 2, 3, or 4 followed by a carriage return
  90. in response. From this moment, the number of voices associated with
  91. the song is fixed at this number.
  92.  
  93. Two pseudo_option lines will always appear in conjunction with a 
  94. song which is displayed for edit. These two lines are not part of the 
  95. song but are "terminal" lines. EDIT permits you to insert song 
  96. lines and option lines between the terminal lines but never outside 
  97. them. EDIT permits no way of placing the cursor beyond either of 
  98. them. The construction of a song involves inserting the 
  99. song lines needed to represent the song using the Insert_mode of 
  100. EDIT. Therefore, even a new song will always have the two terminal 
  101. lines:
  102.  
  103. {l:        *da capo
  104. {l:        *da end
  105.  
  106.  
  107. IV.B.3. Tutorial
  108.  
  109. This section will introduce to you some of the characteristics
  110. of EDIT. We'll assume that you are at your CRT and that you
  111. have already run SETUP, answering all questions asked by it. Computer
  112. displays will be shown indented while your responses, where called
  113. for, will be doubly indented. In the course of the discussion, it
  114. may prove necessary to rerun SETUP. Whenever this need becomes
  115. apparent, rerun SETUP and begin the exercise at the top to insure
  116. that you have run SETUP correctly in all aspects.
  117.  
  118. Place your work disk in drive A, boot up, if necessary, then type:
  119.  
  120. A>^^EDIT^INVENT1^(press^return)
  121.  
  122. INVENT1 is the piece you played when you were checking out the system 
  123. in the INITIAL CHECKOUT section.
  124.  
  125. The screen should clear and the following message should appear
  126. at the top of your screen:
  127.  
  128. Loading song. Please stand by.
  129.  
  130. {m:2
  131. If the screen does not clear, you must rerun SETUP giving it
  132. the correct answer for the clear screen function for your
  133. terminal. Also, if only a portion (or none) of the message is 
  134. displayed, then rerun SETUP specifying a larger number 
  135. of null characters (control_@) required after the screen clear function.
  136. Most terminals 
  137. require about 40 milliseconds to clear the screen and the number
  138. of null characters  required to 
  139. fill out that amount of time will depend on the speed at which you 
  140. are running your terminal. For example, you should be able to use 
  141. about 40 nulls when 
  142. the terminal is running at 9600 baud. Null characters are used 
  143. because they are not displayed and have no effect over the display
  144. so are ideal to "kill" time in the computer.
  145.  
  146. {m:1
  147. After a brief pause, during which the program loads the song
  148. into memory, the screen will again clear and display
  149. the first page of the song along with the Edit_mode Menu. The menu 
  150. will be discussed in the reference section below. Suffice it here to 
  151. say that the menu reminds you of what mode you are using and what the 
  152. choices of inputs are available to you. You can compare what you see 
  153. on the screen with the illustration in the section MUSIC NOTATION 
  154. SYSTEM. You will note that the first line of the display is missing 
  155. from the illustration. This, of course is the "da capo" terminal 
  156. line.
  157.  
  158. {m:2
  159. If the display on your screen is not arranged in columns and 
  160. does not look like the illustration in the MUSIC NOTATION SYSTEM 
  161. section,  then there is
  162. probably an error in the information you gave SETUP about the way in 
  163. which your terminal implements the cursor address function.
  164. You must rerun SETUP,
  165. giving the correct information about the cursor address function of your
  166. terminal. Since the methods used by various terminals for cursor 
  167. addressing are usually complicated, you may wish to go back to the 
  168. manual for your terminal to get a good understanding of how the 
  169. function is performed before you rerun SETUP.
  170.  
  171. {m:1
  172. This comment is to apply over the entire tutorial. You will 
  173. occasionally strike a key which either you did not intend or EDIT 
  174. will not allow. If this happens, EDIT will display an error message 
  175. at the top of the screen and will ring the bell if you have one. 
  176. Don't panic. The message will tell you to press the space key to 
  177. continue. That is exactly what you should do. EDIT will return the 
  178. cursor where it was at the moment you struck the key in error and no 
  179. harm will be done. Just continue as if nothing happened.
  180.  
  181. It is also possible that you may strike a key which you did not 
  182. intend but that EDIT WILL ALLOW. A special key is provided to allow 
  183. you to quit EDIT without updating the song stored on the diskette.
  184. This will cover any errors you make, so relax. 
  185.  
  186.  
  187. IV.B.3.a. Navigation
  188.  
  189. The first exercises are to navigate within the song. That is,
  190. to move the cursor around within the song.
  191.  
  192. You use
  193. the cursor to inform EDIT of the locality of the song in which
  194. you wish to operate. It is very important that you understand the 
  195. importance of the cursor. It is your primary way of informing the 
  196. computer of the meaning of your entries. In other words, if the 
  197. cursor is in a voice field and you enter a period...which only has 
  198. meaning when used to adjust the duration...EDIT will consider your 
  199. entry as an error. This is because EDIT expects input consistent with 
  200. the area (the voice field in this instance) designated by the cursor.
  201.  
  202. The cursor can be moved around through the use of several different 
  203. keys. Which key you use to navigate will depend on the 
  204. distance the cursor must move to reach its destination. What we will 
  205. now do is to introduce you to each of the navigational aids so that 
  206. you can make intelligent choices later.
  207.  
  208.  
  209. IV.B.3.a.i. The Home Function
  210.  
  211. This function moves the cursor from one end of the song to the other.
  212. If you have a home_key, press it. If you do not, press
  213. control_Y. The screen should clear and display the
  214. end of the song. You should notice the last line. It should be the 
  215. terminal line "da end."
  216.  
  217. {m:2
  218. If this does not happen, you must rerun SETUP, giving it
  219. the correct answer for the home_key assignment for your
  220. terminal and/or the correct information describing the
  221. cursor addressing function for your terminal.
  222.  
  223. {m:1
  224. Now press the home_key again. The screen should look as
  225. it did before you pressed the home_key the first time. The home 
  226. function is designed to move the cursor to opposite ends of the song 
  227. on alternate uses of it. This way, only one key need be assigned to 
  228. the function.
  229.  
  230.  
  231. IV.B.3.a.ii. The Direction Function
  232.  
  233. Note the arrow in the upper left_hand corner of your screen.
  234. This character tells the direction to be taken by the home
  235. function. Press the home_key several times and observe what
  236. happens to the direction arrow. You can control the direction
  237. manually
  238. by pressing the direction keys on your keyboard (the
  239. direction keys are the ones labeled with "<" and ">"). Try this
  240. and observe the change. The "<" represents the up direction
  241. while the ">" represents the down direction.
  242.  
  243.  
  244. IV.B.3.a.iii. The Page Function
  245.  
  246. The letter "P" has a special use in EDIT. Press the home_key
  247. once or twice until the "da capo" line appears to tell you that you 
  248. are at the top of the song. Then press the letter "P" once. The screen
  249. should display the page following the first page.
  250.  
  251. By pressing the letter "P", you can "page" through your song at
  252. the rate of 23 lines per page. Try doing this with the
  253. direction arrow pointing both ways. The direction arrow
  254. affects the direction of the page function just as
  255. it affects the direction of the home function. Notice that when 
  256. the cursor reaches the top or bottom of the song, the direction arrow 
  257. reverses and the page function also reverses. Again, only one key 
  258. need be assigned to the page function as a consequence.
  259.  
  260.  
  261. IV.B.3.a.iv. The Cursor Functions
  262.  
  263. While both the home function and the page function affect the 
  264. movement of the cursor, they are long range operations. Obviously, 
  265. you need some more delicate operations if you are to get to any point 
  266. in the song. We will now discuss the short range cursor functions.
  267.  
  268. If your keyboard has special keys with arrows each
  269. pointing in the four directions up, down, left and right,
  270. then you are ready
  271. to navigate. If your CRT does not have these keys, then use
  272. control_K for up, control_J for down, control_H for left and
  273. control_L for right. Also, as an added convenience, you may use 
  274. the return key (sometimes labeled "enter") or the line_feed key 
  275. for the down function.
  276.  
  277. Use these four keys and observe the movement of the cursor.
  278. It should go down one song line when you press the down_key,
  279. up one song line when you press the up_key, left one column
  280. when you press the left_key, and right one column when you
  281. press the right_key. Note especially that the cursor moves
  282. from the first character of each column to the first character
  283. of the next column as you press the left_key or right_key.
  284. Also note that both keys "wrap around" and you can get to
  285. the same column by using either key and going in either
  286. direction.
  287.  
  288. Normally, the direction arrow is unaffected by the use of the four 
  289. cursor keys. However, if you move the cursor up to the top of the 
  290. song with the up_key, the direction arrow will change and the up_key 
  291. will become ineffective. The same applies to the down_key at the 
  292. bottom of the song. You can try these special situations and observe 
  293. the effects.
  294.  
  295. Place the first page of the song on the screen. (You should now know 
  296. how to do this with ease.) Press the down_key a number of times
  297. until the cursor reaches
  298. the bottom of the screen. Continue pressing the down_key. Note that the
  299. song scrolls up. This scrolling process can continue until the 
  300. bottom of the song is reached whereupon the down_key becomes 
  301. inoperative as we discussed earlier.
  302.  
  303. Place the bottom of the song on the screen. Then press the up_key
  304. until the cursor reaches the top of the screen.
  305. Press it once more. Note that the screen is replaced with the
  306. cursor on the center line of the screen.
  307.  
  308.  
  309. IV.B.3.a.v. The Space Function
  310.  
  311. The space_key is used to move around within a particular column
  312. whether it be a duration or voice column. Try the space_key
  313. and observe how it "wraps around" within whatever voice or
  314. duration the cursor happens to be in at the time. Try it in
  315. various columns. 
  316.  
  317. Incidentally, you may notice that the left_key has a strange
  318. effect whenever the cursor is NOT at the first character of a
  319. column. It backs up only one character until it reaches the
  320. first character of the column whereupon it begins jumping whole
  321. columns. Try this by pressing first the space_key then the
  322. left_key.
  323.  
  324. Choose some particular point in the song presently displayed and 
  325. attempt to use a combination of cursor functions to place the 
  326. cursor at your chosen point. Choose several other points and repeat 
  327. the process. Try to get to the accidental at song line 37, voice 2.
  328. How about the octave number at song line 
  329. 5, voice 1? Just practice awhile until you are confident you can move 
  330. the cursor to any place in the song. Notice that you can 
  331. place the cursor even on option lines. When you need to excise a 
  332. measure line you inadvertantly entered, you will see why you can do 
  333. this.
  334.  
  335.  
  336. IV.B.3.a.vi. Modes of Edit
  337.  
  338. EDIT operates in four modes. Each mode is distinguished by a 
  339. menu line at the top of the screen whenever EDIT is in that mode.
  340. EDIT always begins in Edit_mode. To get to any other mode, you must 
  341. be in Edit_mode, consequently, you can look upon Edit_mode as "home base." The 
  342. other three modes are Insert_mode, Excise_mode and Option_mode. We 
  343. will discuss all but Option_mode in the tutorial.
  344.  
  345.  
  346. IV.B.3.a.vi.1. Edit Mode
  347.  
  348. Now that you can place the cursor anywhere within the song,
  349. let's try making changes to the notes in the song.
  350. Place the cursor at either of the two voice columns.
  351.  
  352. In the following, be sure that you do NOT press the I, O, M or
  353. X keys. These are keys which cause EDIT to operate in modes
  354. different from the basic Edit_mode.
  355. Each mode will be covered in turn. If you hit one of these keys
  356. and the menu at the top of the screen no longer has the word EDIT
  357. in it, then press control_Q one time before attempting to continue.
  358. This should return you to the Edit mode which you can recognize
  359. by the word EDIT in the menu at the top of the screen.
  360.  
  361. Now type a valid note name. Remember, they are A, B, C, D, E, F,
  362. G and R. Notice that the cursor does not move to the accidental
  363. position but moves instead to the octave position. This
  364. characteristic, coupled with the flat and sharp tables (we'll
  365. discuss these later), will greatly simplify your work in entering
  366. music. Also, you may note that the accidental is set to a natural
  367. (or @ symbol.) That's because the key signature is set to C major
  368. when EDIT is begun. You can change the accidental by first pressing
  369. the left_key to back up to the accidental position and then typing
  370. the appropriate accidental. Try different accidentals. Note that
  371. you can use the numbers 1, 2 and 3 to 
  372. obtain flat, natural and sharp respectively.
  373.  
  374. Try pressing a key which is not an accidental while the cursor is
  375. in the accidental position. An error message will appear at the top 
  376. of the screen and, if your terminal has a bell, the bell will
  377. ring. To show that you recognize the error, type a space.
  378. You can continue by experimenting with changing note names,
  379. accidentals and octaves. If you need to, refresh your memory by
  380. re-reading the section about Voices in the MUSIC NOTATION SYSTEM 
  381. section of the manual.
  382.  
  383. After you have become comfortable with changing voice information,
  384. move the cursor over to the duration column and try the same
  385. experiments with duration information. If you need to refresh
  386. your memory about the duration codes, reread the section in this
  387. manual on Duration. Try some dotted and doubly-dotted durations. 
  388. change a dotted or doubly-dotted duration back to a non-adjusted 
  389. duration. Note that the adjustment disappears automatically whenever 
  390. the duration is replaced.
  391.  
  392.  
  393. IV.B.3.a.vi.2. Insert Mode
  394.  
  395. You cannot use the Edit_mode
  396. when you first begin entering a song or when
  397. you need to add new lines
  398. to an already existing song. This is because Edit_mode operates only
  399. on song lines which already exist. Adding new song lines is done
  400. only when you place EDIT in the Insert_mode. You do this by
  401. typing the letter "I" when you are in the Edit_mode. Place the cursor at
  402. a voice column of any song line and type an I. You will note that
  403. the Insert_mode menu appears at the top of the screen.
  404.  
  405. For practice, enter the note A@4 by typing first the letter "A", then 
  406. the number 4. Press return. See how the note
  407. information
  408. is carried down to the new song line. Type the letter "B". Again press
  409. return. Continue entering the scale in the fourth octave.
  410. Observe that you need to type only the note name and the return
  411. as long as you remain in the same octave and do not have any
  412. accidentals. Now return to the Edit_mode by typing a control_Q.
  413.  
  414. Note that the new song lines precede the song line which was
  415. under the cursor when you first entered the Insert_mode. All 
  416. insertions occur between the line
  417. marked by the cursor and the line above. So make sure that you place 
  418. the cursor at the proper place when preparing to add new song lines.
  419.  
  420. Move the cursor up to the second voice column at the first song
  421. line which you inserted earlier. Again press the letter "I". You
  422. are back in
  423. Insert_mode for the next voice. Proceed as you did for the
  424. first voice. That is, key in some notes.  Attempt to insert
  425. additional song lines beyond
  426. the lines you previously entered. You will get a message
  427. informing you that you must quit Insert_mode. Press space.
  428. EDIT will return to Edit_mode.
  429.  
  430. Complete the duration column
  431. for the insertion using Insert_mode. Note that you cannot
  432. use the up_key while in Insert_mode. You
  433. must always return to the Edit_mode to begin at the top of
  434. another column.
  435.  
  436.  
  437. IV.B.3.a.vi.3. Excise Mode
  438.  
  439. Enter Excise_mode from Edit_mode by typing the letter "X". 
  440. Observe that the cursor is moved to the extreme left of
  441. the current song line. Press the up_key. The line above should
  442. disappear. Press
  443. the up_key again. The same thing happens to the next line above.
  444. Now press the down_key. The line last excised reappears. Press
  445. the down_key twice more. The first line reappears and the line
  446. where the cursor was originally now disappears. You excise
  447. a line by causing it to disappear while in Excise_mode
  448. and then pressing the control_Q key to return to Edit_mode.
  449. Excise a few lines, return to Edit_mode and note how those
  450. lines have been removed from the song.
  451.  
  452. This is the end of the tutorial section. Because you have made 
  453. audacious changes to J. S. Bach's Invention #1, you must return to the 
  454. operating system without updating the song as it is stored on the 
  455. diskette. Press control_C to cancel the edit session.
  456. {a:p=1
  457.  
  458.  
  459.