home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / tcl / 2356 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  23.0 KB

  1. Path: sparky!uunet!olivea!charnel!rat!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!boulder!csn!cherokee!durian
  2. From: durian@advtech.uswest.com (Mike Durian)
  3. Newsgroups: comp.lang.tcl
  4. Subject: tclm0.1 - tcl with MIDI extensions (4/7)
  5. Message-ID: <1993Jan12.202922.19933@advtech.uswest.com>
  6. Date: 12 Jan 93 20:29:22 GMT
  7. Sender: news@advtech.uswest.com (Radio Free Boulder)
  8. Organization: U S WEST Advanced Technologies
  9. Lines: 992
  10. Nntp-Posting-Host: mongo.advtech.uswest.com
  11.  
  12. # This is a shell archive.  Save it in a file, remove anything before
  13. # this line, and then unpack it by entering "sh file".  Note, it may
  14. # create directories; files and directories will be owned by you and
  15. # have default permissions.
  16. #
  17. # This archive contains:
  18. #
  19. #    tclm0.1/doc
  20. #    tclm0.1/doc/midiconfig.3
  21. #    tclm0.1/doc/midifixtovar.3
  22. #    tclm0.1/doc/midifree.3
  23. #    tclm0.1/doc/midiget.3
  24. #    tclm0.1/doc/midimake.3
  25. #    tclm0.1/doc/midimpu.3
  26. #    tclm0.1/doc/midiplay.3
  27. #    tclm0.1/doc/midiput.3
  28. #    tclm0.1/doc/midiread.3
  29. #    tclm0.1/doc/midirewind.3
  30. #    tclm0.1/doc/midistop.3
  31. #    tclm0.1/doc/miditiming.3
  32. #    tclm0.1/doc/midivartofix.3
  33. #    tclm0.1/doc/midiwrite.3
  34. #
  35. echo c - tclm0.1/doc
  36. mkdir tclm0.1/doc > /dev/null 2>&1
  37. echo x - tclm0.1/doc/midiconfig.3
  38. sed 's/^X//' >tclm0.1/doc/midiconfig.3 << 'END-of-tclm0.1/doc/midiconfig.3'
  39. XMIDICONFIG(3)               BSD Programmer's Manual              MIDICONFIG(3)
  40. X
  41. XNNAAMMEE
  42. X     mmiiddiiccoonnffiigg - tclm command to get or modify the configuration values of a
  43. X     Standard MIDI File
  44. X
  45. XSSYYNNOOPPSSIISS
  46. X     mmiiddiiccoonnffiigg _m_f_i_l_e_I_d _{_f_o_r_m_a_t | _d_i_v_i_s_i_o_n | _t_r_a_c_k_s_} [value]
  47. X
  48. XDDEESSCCRRIIPPTTIIOONN
  49. X     mmiiddiiccoonnffiigg is a tclm command that gets or modifies the configurations
  50. X     values of a Standard MIDI File.
  51. X
  52. X     mmiiddiiccoonnffiigg takes three or four arguments.  The first is a tclm Standard
  53. X     MIDI File descriptor as returned by midiread(3TCLM),  or midimake(3TCLM).
  54. X
  55. X
  56. X     The second argument specifies which configuration value to manipulate.
  57. X     It should be either ``format,'' ``division'' or ``tracks.'' The
  58. X     ``format'' option allows you to get or change the format value of the
  59. X     Standard MIDI File, and should be either 0, 1 or 2.  The ``division'' op-
  60. X     tion allows you to get or set the timing for the file in units per beat.
  61. X     Finally, ``tracks'' allows you to get or change the number of tracks in
  62. X     the file.  This is how you create tracks in an empty file generated by
  63. X     midimake(3TCLM).
  64. X
  65. X     The final optional argument specifies that the configuration value should
  66. X     be changed and contains the new value.  Without this argument, mmiiddiiccoonnffiigg
  67. X     returns the current setting for the specified value.
  68. X
  69. XRREETTUURRNN VVAALLUUEESS
  70. X     mmiiddiiccoonnffiigg returns the current setting of the specified value if the
  71. X     forth argument is missing, otherwise it returns nothing.
  72. X
  73. XSSEEEE AALLSSOO
  74. X     midiread(3TCLM),
  75. X     midimake(3TCLM)
  76. X
  77. XAAUUTTHHOORRSS
  78. X     Mike Durian - durian@advtech.uswest.com
  79. X
  80. X TCLM                            Jan 10, 1993                                1
  81. X
  82. X
  83. X
  84. X
  85. X
  86. X
  87. X
  88. X
  89. X
  90. X
  91. X
  92. X
  93. X
  94. X
  95. X
  96. X
  97. X
  98. X
  99. X
  100. X
  101. X
  102. X
  103. X
  104. X
  105. END-of-tclm0.1/doc/midiconfig.3
  106. echo x - tclm0.1/doc/midifixtovar.3
  107. sed 's/^X//' >tclm0.1/doc/midifixtovar.3 << 'END-of-tclm0.1/doc/midifixtovar.3'
  108. XMIDIFIXTOVAR(3)             BSD Programmer's Manual            MIDIFIXTOVAR(3)
  109. X
  110. XNNAAMMEE
  111. X     mmiiddiiffiixxttoovvaarr - tclm command that converts an integer value to a variable
  112. X     length value
  113. X
  114. XSSYYNNOOPPSSIISS
  115. X     mmiiddiiffiixxttoovvaarr _v_a_l_u_e
  116. X
  117. XDDEESSCCRRIIPPTTIIOONN
  118. X     mmiiddiiffiixxttoovvaarr is a tclm command that converts an integer value to a Stan-
  119. X     dard MIDI File variable length value.  This command takes only one argu-
  120. X     ment, which is the value to be converted.  The value should be repre-
  121. X     sentable in a four byte integer value (typically a long).
  122. X
  123. XRREETTUURRNN VVAALLUUEESS
  124. X     mmiiddiiffiixxttoovvaarr returns a list of bytes representing the specified value in
  125. X     variable length form.  The individual bytes are in hex form (0x??).
  126. X
  127. XAAUUTTHHOORRSS
  128. X     Mike Durian - durian@advtech.uswest.com
  129. X
  130. X TCLM                            Jan 10, 1993                                1
  131. X
  132. X
  133. X
  134. X
  135. X
  136. X
  137. X
  138. X
  139. X
  140. X
  141. X
  142. X
  143. X
  144. X
  145. X
  146. X
  147. X
  148. X
  149. X
  150. X
  151. X
  152. X
  153. X
  154. X
  155. X
  156. X
  157. X
  158. X
  159. X
  160. X
  161. X
  162. X
  163. X
  164. X
  165. X
  166. X
  167. X
  168. X
  169. X
  170. X
  171. X
  172. X
  173. X
  174. END-of-tclm0.1/doc/midifixtovar.3
  175. echo x - tclm0.1/doc/midifree.3
  176. sed 's/^X//' >tclm0.1/doc/midifree.3 << 'END-of-tclm0.1/doc/midifree.3'
  177. XMIDIFREE(3)                 BSD Programmer's Manual                MIDIFREE(3)
  178. X
  179. XNNAAMMEE
  180. X     mmiiddiiffrreeee - tclm command to free the space used by a Standard MIDI File
  181. X
  182. XSSYYNNOOPPSSIISS
  183. X     mmiiddiiffrreeee _m_f_i_l_e_I_d
  184. X
  185. XDDEESSCCRRIIPPTTIIOONN
  186. X     mmiiddiiffrreeee is a tclm command that frees the space used by a Standard MIDI
  187. X     File.  It takes one argument that specifies the Standard MIDI File.  This
  188. X     argument is a value returned by midiread(3TCLM) or midimake(3TCLM).
  189. X
  190. XRREETTUURRNN VVAALLUUEESS
  191. X     mmiiddiiffrreeee does not return anything.
  192. X
  193. XSSEEEE AALLSSOO
  194. X     midiread(3TCLM),
  195. X     midimake(3TCLM)
  196. X
  197. XAAUUTTHHOORRSS
  198. X     Mike Durian - durian@advtech.uswest.com
  199. X
  200. X TCLM                            Jan 10, 1993                                1
  201. X
  202. X
  203. X
  204. X
  205. X
  206. X
  207. X
  208. X
  209. X
  210. X
  211. X
  212. X
  213. X
  214. X
  215. X
  216. X
  217. X
  218. X
  219. X
  220. X
  221. X
  222. X
  223. X
  224. X
  225. X
  226. X
  227. X
  228. X
  229. X
  230. X
  231. X
  232. X
  233. X
  234. X
  235. X
  236. X
  237. X
  238. X
  239. X
  240. X
  241. X
  242. X
  243. END-of-tclm0.1/doc/midifree.3
  244. echo x - tclm0.1/doc/midiget.3
  245. sed 's/^X//' >tclm0.1/doc/midiget.3 << 'END-of-tclm0.1/doc/midiget.3'
  246. XMIDIGET(3)                  BSD Programmer's Manual                 MIDIGET(3)
  247. X
  248. XNNAAMMEE
  249. X     mmiiddiiggeett - tclm command to get one event from a track in a Standard MIDI
  250. X     File
  251. X
  252. XSSYYNNOOPPSSIISS
  253. X     mmiiddiiggeett _m_f_i_l_e_I_d _t_r_a_c_k
  254. X
  255. XDDEESSCCRRIIPPTTIIOONN
  256. X     mmiiddiiggeett is a tclm command that gets one event from the specified track of
  257. X     a Standard MIDI File.  The first argument specifies the Standard MIDI
  258. X     File and should be a value returned by either midiread(3TCLM) or
  259. X     midimake(3TCLM).  The second argument specifies which track from which to
  260. X     get the event.  Successive calls to mmiiddiiggeett on the same track will get
  261. X     successive events from that track.  midirewind(3TCLM) can be used to re-
  262. X     turn to the begining of the track.
  263. X
  264. XRREETTUURRNN VVAALLUUEESS
  265. X     mmiiddiiggeett returns a string of bytes consisting of one complete MIDI event.
  266. X     The bytes are represented in hex form (0x??).
  267. X
  268. XSSEEEE AALLSSOO
  269. X     midiread(3TCLM),
  270. X     midimake(3TCLM),
  271. X     midirewind(3TCLM)
  272. X
  273. XAAUUTTHHOORRSS
  274. X     Mike Durian - durian@advtech.uswest.com
  275. X
  276. X TCLM                            Jan 10, 1993                                1
  277. X
  278. X
  279. X
  280. X
  281. X
  282. X
  283. X
  284. X
  285. X
  286. X
  287. X
  288. X
  289. X
  290. X
  291. X
  292. X
  293. X
  294. X
  295. X
  296. X
  297. X
  298. X
  299. X
  300. X
  301. X
  302. X
  303. X
  304. X
  305. X
  306. X
  307. X
  308. X
  309. X
  310. X
  311. X
  312. END-of-tclm0.1/doc/midiget.3
  313. echo x - tclm0.1/doc/midimake.3
  314. sed 's/^X//' >tclm0.1/doc/midimake.3 << 'END-of-tclm0.1/doc/midimake.3'
  315. XMIDIMAKE(3)                 BSD Programmer's Manual                MIDIMAKE(3)
  316. X
  317. XNNAAMMEE
  318. X     mmiiddiimmaakkee - tclm command to create an empty Standard MIDI File
  319. X
  320. XSSYYNNOOPPSSIISS
  321. X     mmiiddiimmaakkee
  322. X
  323. XDDEESSCCRRIIPPTTIIOONN
  324. X     mmiiddiimmaakkee is a tclm command that creates an empty Standard MIDI File for
  325. X     use by other MIDI specific tclm commands.  By default the Standard MIDI
  326. X     File is created with zero tracks allocated, the format is type one and
  327. X     the division is 120.  These defaults can then be changed with the midi-
  328. X     config(3TCLM) command.
  329. X
  330. X     Since mmiiddiimmaakkee allocates space for the Standard MIDI File, mid-
  331. X     ifree(3TCLM) should be used when the file is no longer needed.
  332. X
  333. XRREETTUURRNN VVAALLUUEESS
  334. X     mmiiddiimmaakkee returns a MIDI file ID for use by other MIDI specific tclm com-
  335. X     mands.
  336. X
  337. XSSEEEE AALLSSOO
  338. X     midiconfig(3TCLM)
  339. X
  340. XAAUUTTHHOORRSS
  341. X     Mike Durian - durian@advtech.uswest.com
  342. X
  343. X TCLM                            Jan 10, 1993                                1
  344. X
  345. X
  346. X
  347. X
  348. X
  349. X
  350. X
  351. X
  352. X
  353. X
  354. X
  355. X
  356. X
  357. X
  358. X
  359. X
  360. X
  361. X
  362. X
  363. X
  364. X
  365. X
  366. X
  367. X
  368. X
  369. X
  370. X
  371. X
  372. X
  373. X
  374. X
  375. X
  376. X
  377. X
  378. X
  379. X
  380. X
  381. END-of-tclm0.1/doc/midimake.3
  382. echo x - tclm0.1/doc/midimpu.3
  383. sed 's/^X//' >tclm0.1/doc/midimpu.3 << 'END-of-tclm0.1/doc/midimpu.3'
  384. XMIDIMPU(3)                  BSD Programmer's Manual                 MIDIMPU(3)
  385. X
  386. XNNAAMMEE
  387. X     mmiiddiimmppuu - tclm command to determine if the MPU-401 commands are available
  388. X
  389. XSSYYNNOOPPSSIISS
  390. X     mmiiddiimmppuu
  391. X
  392. XDDEESSCCRRIIPPTTIIOONN
  393. X     mmiiddiimmppuu is a simple command that returns 1 if the MPU-401 commands,
  394. X     midiplay(3TCLM) and midistop(3TCLM),  are available for use.  Since the
  395. X     MPU-401 commands are currently available only on BSD/386 systems with an
  396. X     MPU-401 compatible MIDI card, this function is useful for writing pro-
  397. X     grams with varying functionality.
  398. X
  399. XRREETTUURRNN VVAALLUUEESS
  400. X     mmiiddiimmppuu returns 1 if the commands midiplay(3TCLM) and midistop(3TCLM) are
  401. X     available and 0 if they are not.
  402. X
  403. XSSEEEE AALLSSOO
  404. X     midiplay(3TCLM),
  405. X     midistop(3TCLM)
  406. X
  407. XAAUUTTHHOORRSS
  408. X     Mike Durian - durian@advtech.uswest.com
  409. X
  410. X TCLM                            Jan 10, 1993                                1
  411. X
  412. X
  413. X
  414. X
  415. X
  416. X
  417. X
  418. X
  419. X
  420. X
  421. X
  422. X
  423. X
  424. X
  425. X
  426. X
  427. X
  428. X
  429. X
  430. X
  431. X
  432. X
  433. X
  434. X
  435. X
  436. X
  437. X
  438. X
  439. X
  440. X
  441. X
  442. X
  443. X
  444. X
  445. X
  446. X
  447. X
  448. X
  449. X
  450. END-of-tclm0.1/doc/midimpu.3
  451. echo x - tclm0.1/doc/midiplay.3
  452. sed 's/^X//' >tclm0.1/doc/midiplay.3 << 'END-of-tclm0.1/doc/midiplay.3'
  453. XMIDIPLAY(3)                 BSD Programmer's Manual                MIDIPLAY(3)
  454. X
  455. XNNAAMMEE
  456. X     mmiiddiippllaayy - tclm command to play a Standard MIDI File
  457. X
  458. XSSYYNNOOPPSSIISS
  459. X     mmiiddiippllaayy [bg | background] [repeat] [tracks _t_r_a_c_k___l_i_s_t] [reltempo
  460. X     _t_e_m_p_o___s_c_a_l_a_r] _m_f_i_l_e_I_d
  461. X
  462. XDDEESSCCRRIIPPTTIIOONN
  463. X     mmiiddiippllaayy is a tclm command that plays a Standard MIDI File through the
  464. X     MPU-401 compatible device under BSD/386.  It will not work on systems
  465. X     without BSDI's MPU-401 device driver.
  466. X
  467. X     In the most basic form mmiiddiippllaayy takes no options and only one argument
  468. X     specifying the file to be played.  This argument should be a MIDI file ID
  469. X     as returned by midiread(3TCLM) or midimake(3TCLM).
  470. X
  471. X     In the other forms, mmiiddiippllaayy can take various options to control how the
  472. X     file is played.  The usage of the various options is as follows:
  473. X
  474. X           bg or background  These options make mmiiddiippllaayy fork and play the
  475. X                             file in a separate process.  The call returns im-
  476. X                             mediately.  Without this option mmiiddiippllaayy will
  477. X                             block until the file is finished playing.
  478. X
  479. X           repeat            This option causes mmiiddiippllaayy to play the file con-
  480. X                             tinuously, repeating from the beginning of the
  481. X                             file when the end is reached.
  482. X
  483. X           reltempo          This option takes one argument which specifies a
  484. X                             value used to scale any tempos found in the file.
  485. X                             This value should be a float and should be in the
  486. X                             range 0 to 4.
  487. X
  488. X           tracks            This option takes an argument consisting of a
  489. X                             list of track numbers.  The list should be en-
  490. X                             closed by curly braces or double quotes.  With
  491. X                             this option, only those tracks specified in the
  492. X                             track list will be played.  Track 0 is the first
  493. X                             track.
  494. X
  495. XRREETTUURRNN VVAALLUUEESS
  496. X     mmiiddiippllaayy returns 0 when called without the _b_g option, and the process ID
  497. X     of forked process when called with the _b_g option.  This process ID can
  498. X     then be used with the midistop(3TCLM) tclm function.
  499. X
  500. XSSEEEE AALLSSOO
  501. X     midiread(3TCLM),
  502. X     midimake(3TCLM),
  503. X     midistop(3TCLM)
  504. X
  505. XAAUUTTHHOORRSS
  506. X     Mike Durian - durian@advtech.uswest.com
  507. X
  508. X TCLM                            Jan 10, 1993                                1
  509. X
  510. X
  511. X
  512. X
  513. X
  514. X
  515. X
  516. X
  517. X
  518. X
  519. END-of-tclm0.1/doc/midiplay.3
  520. echo x - tclm0.1/doc/midiput.3
  521. sed 's/^X//' >tclm0.1/doc/midiput.3 << 'END-of-tclm0.1/doc/midiput.3'
  522. XMIDIPUT(3)                  BSD Programmer's Manual                 MIDIPUT(3)
  523. X
  524. XNNAAMMEE
  525. X     mmiiddiippuutt - tclm command to put an event in a track in a Standard MIDI File
  526. X
  527. XSSYYNNOOPPSSIISS
  528. X     mmiiddiippuutt _m_f_i_l_e_I_d _t_r_a_c_k _e_v_e_n_t
  529. X
  530. XDDEESSCCRRIIPPTTIIOONN
  531. X     mmiiddiippuutt is a tclm command that puts an event at the end of a specified
  532. X     track in a Standard MIDI File.  The first argument specifies the Standard
  533. X     MIDI File and should be a value returned by either midiread(3TCLM) or
  534. X     midimake(3TCLM).  The second argument specifies the track in which to get
  535. X     the event.  The third argument is the event to insert.  It should be in
  536. X     tcl list form, with each value in the list being one byte of the event.
  537. X     The event should be surrounded by either double-quotes or curly braces.
  538. X
  539. XRREETTUURRNN VVAALLUUEESS
  540. X     mmiiddiippuutt returns nothing.
  541. X
  542. XBBUUGGSS
  543. X     mmiiddiippuutt should only be used at the end of a track.  It should be rewrit-
  544. X     ten to handle inserting events in the middle of a track.
  545. X
  546. XSSEEEE AALLSSOO
  547. X     midiread(3TCLM),
  548. X     midimake(3TCLM),
  549. X
  550. XAAUUTTHHOORRSS
  551. X     Mike Durian - durian@advtech.uswest.com
  552. X
  553. X TCLM                            Jan 10, 1993                                1
  554. X
  555. X
  556. X
  557. X
  558. X
  559. X
  560. X
  561. X
  562. X
  563. X
  564. X
  565. X
  566. X
  567. X
  568. X
  569. X
  570. X
  571. X
  572. X
  573. X
  574. X
  575. X
  576. X
  577. X
  578. X
  579. X
  580. X
  581. X
  582. X
  583. X
  584. X
  585. X
  586. X
  587. X
  588. END-of-tclm0.1/doc/midiput.3
  589. echo x - tclm0.1/doc/midiread.3
  590. sed 's/^X//' >tclm0.1/doc/midiread.3 << 'END-of-tclm0.1/doc/midiread.3'
  591. XMIDIREAD(3)                 BSD Programmer's Manual                MIDIREAD(3)
  592. X
  593. XNNAAMMEE
  594. X     mmiiddiirreeaadd - tclm command to read a Standard MIDI File
  595. X
  596. XSSYYNNOOPPSSIISS
  597. X     mmiiddiirreeaadd _f_i_l_e_I_d
  598. X
  599. XDDEESSCCRRIIPPTTIIOONN
  600. X     mmiiddiirreeaadd is a tclm command that reads a Standard MIDI File for use by
  601. X     other MIDI specific tclm commands.
  602. X
  603. X     mmiiddiirreeaadd takes one argument that specifies a file descriptor from which
  604. X     to read the Standard MIDI File.  This argument should be a value returned
  605. X     by the open(3TCL) tcl command, or _s_t_d_i_n.
  606. X
  607. X     Since mmiiddiirreeaadd allocates space for the Standard MIDI File, mid-
  608. X     ifree(3TCLM) should be used when the file is no longer needed.
  609. X
  610. XRREETTUURRNN VVAALLUUEESS
  611. X     mmiiddiirreeaadd returns a MIDI file ID for use by other MIDI specific tclm com-
  612. X     mands.  If there is no data to be read, mmiiddiirreeaadd forces an error and re-
  613. X     turns ``EOF.'' This facilitates determining when there are no more files
  614. X     to be read from _s_t_d_i_n.
  615. X
  616. XSSEEEE AALLSSOO
  617. X     open(3TCL),
  618. X     midifree(3TCLM)
  619. X
  620. XAAUUTTHHOORRSS
  621. X     Mike Durian - durian@advtech.uswest.com
  622. X
  623. X TCLM                            Jan 10, 1993                                1
  624. X
  625. X
  626. X
  627. X
  628. X
  629. X
  630. X
  631. X
  632. X
  633. X
  634. X
  635. X
  636. X
  637. X
  638. X
  639. X
  640. X
  641. X
  642. X
  643. X
  644. X
  645. X
  646. X
  647. X
  648. X
  649. X
  650. X
  651. X
  652. X
  653. X
  654. X
  655. X
  656. X
  657. END-of-tclm0.1/doc/midiread.3
  658. echo x - tclm0.1/doc/midirewind.3
  659. sed 's/^X//' >tclm0.1/doc/midirewind.3 << 'END-of-tclm0.1/doc/midirewind.3'
  660. XMIDIREWIND(3)               BSD Programmer's Manual              MIDIREWIND(3)
  661. X
  662. XNNAAMMEE
  663. X     mmiiddiirreewwiinndd - tclm command to reset a Standard MIDI File to the beginning
  664. X
  665. XSSYYNNOOPPSSIISS
  666. X     mmiiddiirreewwiinndd _m_f_i_l_e_I_d [track_list]
  667. X
  668. XDDEESSCCRRIIPPTTIIOONN
  669. X     mmiiddiirreewwiinndd is a tclm command that sets the internal place keeper of spec-
  670. X     ified tracks of a Standard MIDI File to the beginning.  The next midi-
  671. X     get(3TCLM) on one of the specified tracks will return an event from the
  672. X     start of that track regardless of the location of any previous midi-
  673. X     get(3TCLM) calls.
  674. X
  675. X     mmiiddiirreewwiinndd takes one argument specifying a Standard MIDI File descriptor
  676. X     as returned by midiread(3TCLM) or midimake(3TCLM),  and one optional ar-
  677. X     gument specifying a list of tracks to be rewound.  The track list should
  678. X     be in tcl form and enclosed in either double-quotes or curly braces.  If
  679. X     a track list is not specified, all tracks will be rewound.
  680. X
  681. XRREETTUURRNN VVAALLUUEESS
  682. X     mmiiddiirreewwiinndd does not return anything.
  683. X
  684. XSSEEEE AALLSSOO
  685. X     midiread(3TCLM),
  686. X     midimake(3TCLM),
  687. X     midiget(3TCLM)
  688. X
  689. XAAUUTTHHOORRSS
  690. X     Mike Durian - durian@advtech.uswest.com
  691. X
  692. X TCLM                            Jan 10, 1993                                1
  693. X
  694. X
  695. X
  696. X
  697. X
  698. X
  699. X
  700. X
  701. X
  702. X
  703. X
  704. X
  705. X
  706. X
  707. X
  708. X
  709. X
  710. X
  711. X
  712. X
  713. X
  714. X
  715. X
  716. X
  717. X
  718. X
  719. X
  720. X
  721. X
  722. X
  723. X
  724. X
  725. X
  726. END-of-tclm0.1/doc/midirewind.3
  727. echo x - tclm0.1/doc/midistop.3
  728. sed 's/^X//' >tclm0.1/doc/midistop.3 << 'END-of-tclm0.1/doc/midistop.3'
  729. XMIDISTOP(3)                 BSD Programmer's Manual                MIDISTOP(3)
  730. X
  731. XNNAAMMEE
  732. X     mmiiddiissttoopp - tclm command to stop playing a Standard MIDI File playing in
  733. X     the background
  734. X
  735. XSSYYNNOOPPSSIISS
  736. X     mmiiddiissttoopp _p_r_o_c_e_s_s___I_D
  737. X
  738. XDDEESSCCRRIIPPTTIIOONN
  739. X     mmiiddiissttoopp is a tclm command that stops a Standard MIDI File playing in the
  740. X     background.  It will not work on systems without BSDI's MPU-401 device
  741. X     driver.
  742. X
  743. X     mmiiddiissttoopp takes one argument that specifies the process ID of the process
  744. X     playing the Standard MIDI File.  This value can be obtained by using the
  745. X     return code of the midiplay(3TCLM) command.  mmiiddiissttoopp will only work on
  746. X     files being played by executing midiplay(3TCLM) with the _b_g option.
  747. X
  748. XRREETTUURRNN VVAALLUUEESS
  749. X     mmiiddiissttoopp returns 1 if it could successfully stop playing the file.  It
  750. X     returns 0 if the process ID does not exist.
  751. X
  752. XSSEEEE AALLSSOO
  753. X     midiplay(3TCLM)
  754. X
  755. XAAUUTTHHOORRSS
  756. X     Mike Durian - durian@advtech.uswest.com
  757. X
  758. X TCLM                            Jan 10, 1993                                1
  759. X
  760. X
  761. X
  762. X
  763. X
  764. X
  765. X
  766. X
  767. X
  768. X
  769. X
  770. X
  771. X
  772. X
  773. X
  774. X
  775. X
  776. X
  777. X
  778. X
  779. X
  780. X
  781. X
  782. X
  783. X
  784. X
  785. X
  786. X
  787. X
  788. X
  789. X
  790. X
  791. X
  792. X
  793. X
  794. X
  795. END-of-tclm0.1/doc/midistop.3
  796. echo x - tclm0.1/doc/miditiming.3
  797. sed 's/^X//' >tclm0.1/doc/miditiming.3 << 'END-of-tclm0.1/doc/miditiming.3'
  798. XMIDITIMING(3)               BSD Programmer's Manual              MIDITIMING(3)
  799. X
  800. XNNAAMMEE
  801. X     mmiiddiittiimmiinngg - tclm command that gets the timing portion of a Standard MIDI
  802. X     File event
  803. X
  804. XSSYYNNOOPPSSIISS
  805. X     mmiiddiittiimmiinngg _e_v_e_n_t
  806. X
  807. XDDEESSCCRRIIPPTTIIOONN
  808. X     mmiiddiittiimmiinngg is a tclm command that returns the timing portion of a Stan-
  809. X     dard MIDI File event.  This command takes only one argument; a Standard
  810. X     MIDI File event.  This argument should be in tcl list form, with each
  811. X     value in the list being one byte of the event.  The event should be sur-
  812. X     rounded by either double-quotes or curly braces.
  813. X
  814. XRREETTUURRNN VVAALLUUEESS
  815. X     mmiiddiittiimmiinngg returns the timing portion of the specified event.  Since
  816. X     Standard MIDI File events are in variable length form, one to four bytes
  817. X     may be returned.  The individual bytes will be in hex notation (0x??).
  818. X
  819. XSSEEEE AALLSSOO
  820. X     midiget(3TCLM)
  821. X
  822. XAAUUTTHHOORRSS
  823. X     Mike Durian - durian@advtech.uswest.com
  824. X
  825. X TCLM                            Jan 10, 1993                                1
  826. X
  827. X
  828. X
  829. X
  830. X
  831. X
  832. X
  833. X
  834. X
  835. X
  836. X
  837. X
  838. X
  839. X
  840. X
  841. X
  842. X
  843. X
  844. X
  845. X
  846. X
  847. X
  848. X
  849. X
  850. X
  851. X
  852. X
  853. X
  854. X
  855. X
  856. X
  857. X
  858. X
  859. X
  860. X
  861. X
  862. X
  863. X
  864. END-of-tclm0.1/doc/miditiming.3
  865. echo x - tclm0.1/doc/midivartofix.3
  866. sed 's/^X//' >tclm0.1/doc/midivartofix.3 << 'END-of-tclm0.1/doc/midivartofix.3'
  867. XMIDIVARTOFIX(3)             BSD Programmer's Manual            MIDIVARTOFIX(3)
  868. X
  869. XNNAAMMEE
  870. X     mmiiddiivvaarrttooffiixx - tclm command that converts a variable length value to a
  871. X     fixed length value
  872. X
  873. XSSYYNNOOPPSSIISS
  874. X     mmiiddiivvaarrttooffiixx _e_v_e_n_t
  875. X
  876. XDDEESSCCRRIIPPTTIIOONN
  877. X     mmiiddiivvaarrttooffiixx is a tclm command that converts a variable length value
  878. X     specified in a Standard MIDI File event to a fixed length value.  This
  879. X     command takes only one argument; a series of bytes forming a Standard MI-
  880. X     DI File variable length value.  Additional bytes are ignored so complete
  881. X     events can be passed to mmiiddiivvaarrttooffiixx to convert the timing portion of the
  882. X     event directly to a fixed length value.  This argument should be in tcl
  883. X     list form, with each value in the list being one byte of the event.  The
  884. X     event should be surrounded by either double-quotes or curly braces.
  885. X
  886. XRREETTUURRNN VVAALLUUEESS
  887. X     mmiiddiivvaarrttooffiixx returns a four byte integer (typically a long in C) repre-
  888. X     sentation of a Standard MIDI File variable length value.  Though a vari-
  889. X     able length value could represent a value that would not fit in a long,
  890. X     this never happens in actual usage.
  891. X
  892. XAAUUTTHHOORRSS
  893. X     Mike Durian - durian@advtech.uswest.com
  894. X
  895. X TCLM                            Jan 10, 1993                                1
  896. X
  897. X
  898. X
  899. X
  900. X
  901. X
  902. X
  903. X
  904. X
  905. X
  906. X
  907. X
  908. X
  909. X
  910. X
  911. X
  912. X
  913. X
  914. X
  915. X
  916. X
  917. X
  918. X
  919. X
  920. X
  921. X
  922. X
  923. X
  924. X
  925. X
  926. X
  927. X
  928. X
  929. X
  930. X
  931. X
  932. X
  933. END-of-tclm0.1/doc/midivartofix.3
  934. echo x - tclm0.1/doc/midiwrite.3
  935. sed 's/^X//' >tclm0.1/doc/midiwrite.3 << 'END-of-tclm0.1/doc/midiwrite.3'
  936. XMIDIWRITE(3)                BSD Programmer's Manual               MIDIWRITE(3)
  937. X
  938. XNNAAMMEE
  939. X     mmiiddiiwwrriittee - tclm command to write a Standard MIDI File
  940. X
  941. XSSYYNNOOPPSSIISS
  942. X     mmiiddiiwwrriittee _m_f_i_l_e_I_d _f_i_l_e_I_d
  943. X
  944. XDDEESSCCRRIIPPTTIIOONN
  945. X     mmiiddiiwwrriittee is a tclm command that writes Standard MIDI File to an open tcl
  946. X     file descriptor.
  947. X
  948. X     This command takes two arguments.  The first is a tclm Standard MIDI File
  949. X     descriptor as returned by midiread(3TCLM) or midimake(3TCLM),  while the
  950. X     second is a tcl file descriptor as returned by open(3TCL) or _s_t_d_o_u_t or
  951. X     _s_t_d_e_r_r.
  952. X
  953. XRREETTUURRNN VVAALLUUEESS
  954. X     mmiiddiiwwrriittee does not return anything.
  955. X
  956. XSSEEEE AALLSSOO
  957. X     open(3TCL),
  958. X     midiread(3TCLM),
  959. X     midimake(3TCLM)
  960. X
  961. XAAUUTTHHOORRSS
  962. X     Mike Durian - durian@advtech.uswest.com
  963. X
  964. X TCLM                            Jan 10, 1993                                1
  965. X
  966. X
  967. X
  968. X
  969. X
  970. X
  971. X
  972. X
  973. X
  974. X
  975. X
  976. X
  977. X
  978. X
  979. X
  980. X
  981. X
  982. X
  983. X
  984. X
  985. X
  986. X
  987. X
  988. X
  989. X
  990. X
  991. X
  992. X
  993. X
  994. X
  995. X
  996. X
  997. X
  998. X
  999. X
  1000. X
  1001. X
  1002. END-of-tclm0.1/doc/midiwrite.3
  1003. exit
  1004.