home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 1 / BBS in a box - Trilogy I.iso / Files / MIDI / A-G / D10 LIBRARIAN / D10 LIBRARIAN / background_11943.txt < prev    next >
Encoding:
Text File  |  1992-03-03  |  21.4 KB  |  964 lines

  1. -- background: 11943 from stack: in
  2. -- bmap block id: 14271
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: Memory Library
  6. ----- HyperTalk script -----
  7. on openBackground
  8.   hide bg btn "information"
  9.   hide bg fld "information"
  10. end openbackground
  11.  
  12. on openCard
  13.   lock screen
  14.   if bg fld bulkData1 is empty then
  15.     show bg btn "Extract from D-10"
  16.     show bg btn id 3
  17.     show bg btn id 5
  18.     show bg btn id 6
  19.     show bg btn id 7
  20.     show bg btn id 8
  21.     show bg btn id 9
  22.     show bg btn id 10
  23.     show bg btn id 11
  24.     show bg btn id 12
  25.     show bg fld "white"
  26.     hide bg btn "Dump to D-10"
  27.     hide bg btn "Replace This Data"
  28.   else
  29.     hide bg btn "Extract from D-10"
  30.     hide bg btn id 3
  31.     hide bg btn id 5
  32.     hide bg btn id 6
  33.     hide bg btn id 7
  34.     hide bg btn id 8
  35.     hide bg btn id 9
  36.     hide bg btn id 10
  37.     hide bg btn id 11
  38.     hide bg btn id 12
  39.     hide bg fld "white"
  40.     show bg btn "Dump to D-10"
  41.     show bg btn "Replace this Data"
  42.   end if
  43.   unlock screen
  44. end openCard
  45.  
  46.  
  47. on changeType
  48.   global bulkType
  49.   set the hilite of bg btn id 3 to false
  50.   set the hilite of bg btn id 5 to false
  51.   set the hilite of bg btn id 6 to false
  52.   set the hilite of bg btn id 7 to false
  53.   set the hilite of bg btn id 8 to false
  54.   set the hilite of bg btn id 9 to false
  55.   set the hilite of bg btn id 10 to false
  56.   set the hilite of bg btn id 11 to false
  57.   set the hilite of bg btn id 12 to false
  58.   set the hilite of bg btn id bulkType to true
  59. end changeType
  60.  
  61. on showDialog
  62.   lock Screen
  63.   show bg btn id 18
  64.   show bg fld "dialog"
  65.   show bg btn "OK"
  66.   show bg btn "CANCEL"
  67.   unlock screen with barn door open
  68. end showDialog
  69.  
  70. on hideDialog
  71.   lock Screen
  72.   hide bg btn id 18
  73.   hide bg fld "dialog"
  74.   hide bg btn "OK"
  75.   hide bg btn "CANCEL"
  76.   unlock screen with barn door close
  77. end hideDialog
  78.  
  79. on doExtract
  80.   global sysexReq, tym, bulkX, pulses, singOrMult, dataPres
  81.   global sys1, sys2, sys3
  82.   put "" into bg fld "bulkdata1"
  83.   put "" into bg fld "bulkdata2"
  84.   put "" into bulkX
  85.   if singOrMult = 0 then
  86.     get RxMIDI("flush")
  87.     TxMIDI sysexReq
  88.     wait tym secs
  89.     put RxMidi() into bulkX
  90.     testforData
  91.     testForClock
  92.     if dataPres = 0 then exit doExtract
  93.     if pulses = 1 then exit doExtract
  94.   end if
  95.   if singOrMult=1 then
  96.     get RxMIDI("flush")
  97.     TxMIDI sys1
  98.     wait 3 secs
  99.     put RxMidi() into bulkX
  100.     testforData
  101.     testForClock
  102.     if dataPres = 0 then exit doExtract
  103.     if pulses = 1 then exit doExtract
  104.     get RxMIDI("flush")
  105.     TxMIDI sys2
  106.     wait 3 secs
  107.     put RxMidi() into z
  108.     put bulkX&" "&z into bulkX
  109.     get RxMIDI("flush")
  110.     TxMIDI sys3
  111.     wait tym secs
  112.     put RxMidi() into z
  113.     put bulkX&" "&z into bulkX
  114.   end if
  115.   get the length of bulkX
  116.   if it<29990 then
  117.     put bulkX into bg fld "bulkData1"
  118.   else
  119.     put char 1 to 29900 of bulkX into y
  120.     put y into bg fld "bulkData1"
  121.     delete char 1 to 29990 of bulkX
  122.     put bulkX into bg fld "bulkData2"
  123.   end if
  124. end doExtract
  125.  
  126. on testForClock
  127.   global bulkX, pulses
  128.   put 0 into pulses
  129.   put char 1 to 3 of bulkX into y    -------- Test for clock pulses
  130.   if y=248 then
  131.     set the name of bg btn id 18 to "CLOCK PULSES"
  132.     put "This data contains MIDI clock pulses" &return&"Set D10 clock to MIDI"&return& "(not INTERNAL) and try again" into bg fld dialog
  133.     beep 2
  134.     show bg fld dialog
  135.     show bg btn id 18
  136.     wait 2 seconds
  137.     lock screen
  138.     hide bg fld dialog
  139.     hide bg btn id 18
  140.     unlock screen with dissolve
  141.     put 1 into pulses
  142.   end if
  143. end testForClock
  144.  
  145. on testforData
  146.   global bulkX, dataPres
  147.   if bulkX is empty then
  148.     put 0 into dataPres
  149.     set the name of bg btn id 18 to "NO DATA EXTRACTED"
  150.     put "Check all MIDI connections and operation of MIDI interface" into bg fld dialog
  151.     beep 2
  152.     show bg fld dialog
  153.     show bg btn id 18
  154.     wait 2 seconds
  155.     lock screen
  156.     hide bg fld dialog
  157.     hide bg btn id 18
  158.     unlock screen with dissolve
  159.   else
  160.     put 1 into dataPres
  161.   end if
  162. end testforData
  163.  
  164.  
  165. on doType
  166.   global blah
  167.   get the name of bg btn id blah
  168.   put it into ww
  169.   delete char 1 to 14 of ww
  170.   put the length of ww into x
  171.   delete char x of ww
  172.   put ww into bg fld dataType
  173. end doType
  174.  
  175. on warn1
  176.   global contFlag
  177.   answer "D-10 must be in MULTITIMBRAL mode" with "Cancel" or "OK"
  178.   if it is "Cancel" then put 0 into contFlag
  179. end warn1
  180.  
  181. on warn2
  182.   global contFlag
  183.   answer "D-10 must be in PERFORMANCE mode" with "Cancel" or "OK"
  184.   if it is "Cancel" then put 0 into contFlag
  185. end warn2
  186.  
  187. on closeCard
  188.   put bg fld dataName into zz
  189.   set the name of this card to zz
  190. end closeCard
  191.  
  192.  
  193.  
  194. -- part 45 (field)
  195. -- low flags: 00
  196. -- high flags: 0004
  197. -- rect: left=284 top=53 right=196 bottom=497
  198. -- title width / last selected line: 0
  199. -- icon id / first selected line: 0 / 0
  200. -- text alignment: 0
  201. -- font id: 3
  202. -- text size: 12
  203. -- style flags: 0
  204. -- line height: 16
  205. -- part name: white
  206.  
  207.  
  208. -- part 3 (button)
  209. -- low flags: 00
  210. -- high flags: C005
  211. -- rect: left=294 top=56 right=72 bottom=484
  212. -- title width / last selected line: 0
  213. -- icon id / first selected line: 0 / 0
  214. -- text alignment: 1
  215. -- font id: 0
  216. -- text size: 12
  217. -- style flags: 0
  218. -- line height: 16
  219. -- part name: Tones & Timbres
  220. ----- HyperTalk script -----
  221. on mouseUp
  222.   global bulkType
  223.   put 3 into bulkType
  224.   changeType
  225. end mouseUp
  226.  
  227.  
  228.  
  229. -- part 5 (button)
  230. -- low flags: 00
  231. -- high flags: 8005
  232. -- rect: left=294 top=71 right=87 bottom=484
  233. -- title width / last selected line: 0
  234. -- icon id / first selected line: 0 / 0
  235. -- text alignment: 1
  236. -- font id: 0
  237. -- text size: 12
  238. -- style flags: 0
  239. -- line height: 16
  240. -- part name: Tone Memory
  241. ----- HyperTalk script -----
  242. on mouseUp
  243.   global bulkType
  244.   put 5 into bulkType
  245.   changeType
  246. end mouseUp
  247.  
  248.  
  249.  
  250. -- part 6 (button)
  251. -- low flags: 00
  252. -- high flags: 8005
  253. -- rect: left=294 top=86 right=102 bottom=484
  254. -- title width / last selected line: 0
  255. -- icon id / first selected line: 0 / 0
  256. -- text alignment: 1
  257. -- font id: 0
  258. -- text size: 12
  259. -- style flags: 0
  260. -- line height: 16
  261. -- part name: Timbre Memory
  262. ----- HyperTalk script -----
  263. on mouseUp
  264.   global bulkType
  265.   put 6 into bulkType
  266.   changeType
  267. end mouseUp
  268.  
  269.  
  270.  
  271. -- part 7 (button)
  272. -- low flags: 00
  273. -- high flags: 8005
  274. -- rect: left=294 top=101 right=117 bottom=484
  275. -- title width / last selected line: 0
  276. -- icon id / first selected line: 0 / 0
  277. -- text alignment: 1
  278. -- font id: 0
  279. -- text size: 12
  280. -- style flags: 0
  281. -- line height: 16
  282. -- part name: Performance Patches
  283. ----- HyperTalk script -----
  284. on mouseUp
  285.   global bulkType
  286.   put 7 into bulkType
  287.   changeType
  288. end mouseUp
  289.  
  290.  
  291.  
  292. -- part 8 (button)
  293. -- low flags: 00
  294. -- high flags: 8005
  295. -- rect: left=294 top=116 right=132 bottom=484
  296. -- title width / last selected line: 0
  297. -- icon id / first selected line: 0 / 0
  298. -- text alignment: 1
  299. -- font id: 0
  300. -- text size: 12
  301. -- style flags: 0
  302. -- line height: 16
  303. -- part name: Rythm Setup
  304. ----- HyperTalk script -----
  305. on mouseUp
  306.   global bulkType
  307.   put 8 into bulkType
  308.   changeType
  309. end mouseUp
  310.  
  311.  
  312.  
  313. -- part 9 (button)
  314. -- low flags: 00
  315. -- high flags: 8005
  316. -- rect: left=294 top=131 right=147 bottom=484
  317. -- title width / last selected line: 0
  318. -- icon id / first selected line: 0 / 0
  319. -- text alignment: 1
  320. -- font id: 0
  321. -- text size: 12
  322. -- style flags: 0
  323. -- line height: 16
  324. -- part name: Rhythm Patterns
  325. ----- HyperTalk script -----
  326. on mouseUp
  327.   global bulkType
  328.   put 9 into bulkType
  329.   changeType
  330. end mouseUp
  331.  
  332.  
  333.  
  334. -- part 10 (button)
  335. -- low flags: 00
  336. -- high flags: 8005
  337. -- rect: left=294 top=146 right=162 bottom=484
  338. -- title width / last selected line: 0
  339. -- icon id / first selected line: 0 / 0
  340. -- text alignment: 1
  341. -- font id: 0
  342. -- text size: 12
  343. -- style flags: 0
  344. -- line height: 16
  345. -- part name: Rhythm Track
  346. ----- HyperTalk script -----
  347. on mouseUp
  348.   global bulkType
  349.   put 10 into bulkType
  350.   changeType
  351. end mouseUp
  352.  
  353.  
  354.  
  355. -- part 11 (button)
  356. -- low flags: 00
  357. -- high flags: 8005
  358. -- rect: left=294 top=161 right=177 bottom=484
  359. -- title width / last selected line: 0
  360. -- icon id / first selected line: 0 / 0
  361. -- text alignment: 1
  362. -- font id: 0
  363. -- text size: 12
  364. -- style flags: 0
  365. -- line height: 16
  366. -- part name: Tones & Timbres Parts 1-8
  367. ----- HyperTalk script -----
  368. on mouseUp
  369.   global bulkType
  370.   put 11 into bulkType
  371.   changeType
  372. end mouseUp
  373.  
  374.  
  375.  
  376. -- part 12 (button)
  377. -- low flags: 00
  378. -- high flags: 8005
  379. -- rect: left=294 top=176 right=192 bottom=484
  380. -- title width / last selected line: 0
  381. -- icon id / first selected line: 0 / 0
  382. -- text alignment: 1
  383. -- font id: 0
  384. -- text size: 12
  385. -- style flags: 0
  386. -- line height: 16
  387. -- part name: Single Performance Patch
  388. ----- HyperTalk script -----
  389. on mouseUp
  390.   global bulkType
  391.   put 12 into bulkType
  392.   changeType
  393. end mouseUp
  394.  
  395.  
  396.  
  397. -- part 13 (button)
  398. -- low flags: 00
  399. -- high flags: 8003
  400. -- rect: left=294 top=28 right=50 bottom=438
  401. -- title width / last selected line: 0
  402. -- icon id / first selected line: 0 / 0
  403. -- text alignment: 1
  404. -- font id: 0
  405. -- text size: 12
  406. -- style flags: 0
  407. -- line height: 16
  408. -- part name: Extract from D-10
  409. ----- HyperTalk script -----
  410. on mouseUp
  411.   global carryLoc, sysexReq, blah, tym, singOrMult, pulses, dataPres
  412.   global sys1, sys2, sys3, contFlag
  413.   set cursor to 4
  414.   set the name of bg btn id 18 to "EXTRACT DATA"
  415.   put "Extract data checked from D-10."&return& "N.B. D-10 clock must be set to MIDI." into bg fld "dialog"
  416.   showDialog
  417.   set cursor to arrow
  418.   waitforClick
  419.   hideDialog
  420.   if carryloc is within the rect of bg btn "OK" then
  421.     put "" into bg fld dataName
  422.     put "" into bg fld datatype
  423.     set cursor to 4
  424.     put "" into sys2
  425.     put "" into sys3
  426.     put 0 into singOrMult
  427.     if the hilite of bg btn id 3 is true then
  428.       put "240 65 16 22 17 5 0 0 0 8 0 115 247" into sys1
  429.       put "240 65 16 22 17 8 0 0 0 127 118 3 247" into sys3
  430.       put 3 into blah
  431.       put 10 into tym
  432.       put 1 into singOrMult
  433.     end if
  434.     if the hilite of bg btn id 5 is true then
  435.       put "240 65 16 22 17 8 0 0 0 127 118 3 247" into sysexReq
  436.       put 5 into blah
  437.       put 9 into tym
  438.     end if
  439.     if the hilite of bg btn id 6 is true then
  440.       put "240 65 16 22 17 5 0 0 0 8 0 115 247" into sysexReq
  441.       put 6 into blah
  442.       put 1 into tym
  443.     end if
  444.     if the hilite of bg btn id 7 is true then
  445.       put "240 65 16 22 17 7 0 0 0 38 0 83 247" into sysexReq
  446.       put 7 into blah
  447.       put 3 into tym
  448.     end if
  449.     if the hilite of bg btn id 8 is true then
  450.       put "240 65 16 22 17 9 0 0 0 2 84 33 247" into sysexReq
  451.       put 8 into blah
  452.       put 1 into tym
  453.     end if
  454.     if the hilite of bg btn id 9 is true then
  455.       put "240 65 16 22 17 10 0 0 1 19 0 98 247" into sysexReq
  456.       put 9 into blah
  457.       put 10 into tym
  458.     end if
  459.     if the hilite of bg btn id 10 is true then
  460.       put "240 65 16 22 17 12 0 0 0 3 118 123 247" into sysexReq
  461.       put 10 into blah
  462.       put 1 into tym
  463.     end if
  464.     if the hilite of bg btn id 11 is true then
  465.       put "240 65 16 22 17 3 0 0 0 1 0 124 247 "& "240 65 16 22 17 4 0 0 0 1 118 5 247 "& "240 65 16 22 17 4 1 118 0 1 118 14 247 "& "240 65 16 22 17 4 3 108 0 1 118 22 247 "& "240 65 16 22 17 4 5 98 0 1 118 30 247 "& "240 65 16 22 17 4 7 88 0 1 118 38 247 "& "240 65 16 22 17 4 9 78 0 1 118 46 247 "& "240 65 16 22 17 4 11 68 0 1 118 54 247 "& "240 65 16 22 17 4 13 58 0 1 118 62 247"   into sysexReq
  466.       put 11 into blah
  467.       put 2 into tym
  468.       warn1
  469.       if contFlag = 0 then exit mouseUp
  470.     end if
  471.     if the hilite of bg btn id 12 is true then
  472.       put "240 65 16 22 17 3 4 0 0 0 38 83 247 "& "240 65 16 22 17 4 0 0 0 1 118 5 247 "& "240 65 16 22 17 4 1 118 0 1 118 14 247" into sysexReq
  473.       put 12 into blah
  474.       put 2 into tym
  475.       warn2
  476.       if contFlag = 0 then exit mouseUp
  477.     end if
  478.     doExtract
  479.     if dataPres = 0 then exit mouseUp
  480.     if pulses = 1 then exit mouseUp
  481.     doType
  482.     set the name of bg btn id 18 to "DATA STORED"
  483.     put ""&return&"Enter a name for this data in the NAME box." into bg fld dialog
  484.     lock screen
  485.     show bg btn id 18
  486.     show bg fld dialog
  487.     unlock screen
  488.     wait 1 secs
  489.     lock screen
  490.     hide bg btn id 18
  491.     hide bg fld dialog
  492.     hide bg btn "Extract from D-10"
  493.     hide bg btn id 3
  494.     hide bg btn id 5
  495.     hide bg btn id 6
  496.     hide bg btn id 7
  497.     hide bg btn id 8
  498.     hide bg btn id 9
  499.     hide bg btn id 10
  500.     hide bg btn id 11
  501.     hide bg btn id 12
  502.     hide bg fld "white"
  503.     show bg btn "Dump to D-10"
  504.     show bg btn "Replace This Data"
  505.     unlock screen with dissolve
  506.     get the loc of bg fld dataName
  507.     click at it
  508.   end if
  509. end mouseUp
  510.  
  511.  
  512.  
  513. -- part 14 (button)
  514. -- low flags: 80
  515. -- high flags: 8003
  516. -- rect: left=77 top=207 right=228 bottom=202
  517. -- title width / last selected line: 0
  518. -- icon id / first selected line: 0 / 0
  519. -- text alignment: 1
  520. -- font id: 0
  521. -- text size: 12
  522. -- style flags: 0
  523. -- line height: 16
  524. -- part name: Dump to D-10
  525. ----- HyperTalk script -----
  526. on mouseUp
  527.   global carryLoc, contFlag
  528.   put 1 into contFlag
  529.   if bg fld dataType contains "Parts" then warn1
  530.   if bg fld dataType contains "Single Performance" then warn2
  531.   if contFlag = 0 then exit mouseUp
  532.   set cursor to 4
  533.   set the name of bg btn id 18 to "LOAD DATA"
  534.   put "Are you sure you want to load this data? It will overwrite "& "data of this type currently stored in the D-10." into bg fld dialog
  535.   showDialog
  536.   set cursor to arrow
  537.   waitforClick
  538.   if carryLoc is within the rect of bg btn OK then
  539.     hideDialog
  540.     set cursor to 4
  541.     if bg fld "bulkData2" is empty then
  542.       put bg fld "bulkdata1" into allData
  543.     else
  544.       put bg fld "bulkData1" into x
  545.       put bg fld "bulkData2" into y
  546.       put x&y into allData
  547.     end if
  548.     txMIDI alldata
  549.   else
  550.     hideDialog
  551.   end if
  552. end mouseUp
  553.  
  554.  
  555.  
  556. -- part 15 (field)
  557. -- low flags: 00
  558. -- high flags: 2002
  559. -- rect: left=38 top=109 right=138 bottom=256
  560. -- title width / last selected line: 0
  561. -- icon id / first selected line: 0 / 0
  562. -- text alignment: 0
  563. -- font id: 3
  564. -- text size: 14
  565. -- style flags: 256
  566. -- line height: 18
  567. -- part name: dataName
  568.  
  569.  
  570. -- part 16 (field)
  571. -- low flags: 01
  572. -- high flags: 2002
  573. -- rect: left=38 top=170 right=194 bottom=256
  574. -- title width / last selected line: 0
  575. -- icon id / first selected line: 0 / 0
  576. -- text alignment: 0
  577. -- font id: 3
  578. -- text size: 12
  579. -- style flags: 0
  580. -- line height: 16
  581. -- part name: dataType
  582.  
  583.  
  584. -- part 17 (field)
  585. -- low flags: 80
  586. -- high flags: 0002
  587. -- rect: left=7 top=30 right=330 bottom=495
  588. -- title width / last selected line: 0
  589. -- icon id / first selected line: 0 / 0
  590. -- text alignment: 0
  591. -- font id: 15
  592. -- text size: 10
  593. -- style flags: 0
  594. -- line height: 13
  595. -- part name: bulkData1
  596.  
  597.  
  598. -- part 18 (button)
  599. -- low flags: 80
  600. -- high flags: C002
  601. -- rect: left=78 top=101 right=133 bottom=289
  602. -- title width / last selected line: 0
  603. -- icon id / first selected line: 0 / 0
  604. -- text alignment: 1
  605. -- font id: 2
  606. -- text size: 12
  607. -- style flags: 256
  608. -- line height: 16
  609. -- part name: DATA STORED
  610.  
  611.  
  612. -- part 22 (field)
  613. -- low flags: 81
  614. -- high flags: 0002
  615. -- rect: left=8 top=28 right=325 bottom=501
  616. -- title width / last selected line: 0
  617. -- icon id / first selected line: 0 / 0
  618. -- text alignment: 0
  619. -- font id: 15
  620. -- text size: 10
  621. -- style flags: 0
  622. -- line height: 13
  623. -- part name: bulkData2
  624.  
  625.  
  626. -- part 27 (button)
  627. -- low flags: 00
  628. -- high flags: 0000
  629. -- rect: left=226 top=312 right=335 bottom=252
  630. -- title width / last selected line: 0
  631. -- icon id / first selected line: 1014 / 1014
  632. -- text alignment: 1
  633. -- font id: 0
  634. -- text size: 12
  635. -- style flags: 0
  636. -- line height: 16
  637. -- part name: Prev
  638. ----- HyperTalk script -----
  639. on mouseUp
  640.   go to prev card
  641. end mouseUp
  642.  
  643.  
  644.  
  645. -- part 28 (button)
  646. -- low flags: 00
  647. -- high flags: 0000
  648. -- rect: left=251 top=312 right=335 bottom=276
  649. -- title width / last selected line: 0
  650. -- icon id / first selected line: 1013 / 1013
  651. -- text alignment: 1
  652. -- font id: 0
  653. -- text size: 12
  654. -- style flags: 0
  655. -- line height: 16
  656. -- part name: Next
  657. ----- HyperTalk script -----
  658. on mouseUp
  659.   go to next card
  660. end mouseUp
  661.  
  662.  
  663.  
  664. -- part 29 (button)
  665. -- low flags: 00
  666. -- high flags: 0000
  667. -- rect: left=197 top=313 right=333 bottom=227
  668. -- title width / last selected line: 0
  669. -- icon id / first selected line: 30557 / 30557
  670. -- text alignment: 1
  671. -- font id: 0
  672. -- text size: 12
  673. -- style flags: 0
  674. -- line height: 16
  675. -- part name: FIRST
  676. ----- HyperTalk script -----
  677. on mouseUp
  678.   go to first cd in this bg
  679. end mouseUp
  680.  
  681.  
  682.  
  683. -- part 30 (button)
  684. -- low flags: 00
  685. -- high flags: 0000
  686. -- rect: left=275 top=313 right=333 bottom=305
  687. -- title width / last selected line: 0
  688. -- icon id / first selected line: 26865 / 26865
  689. -- text alignment: 1
  690. -- font id: 0
  691. -- text size: 12
  692. -- style flags: 0
  693. -- line height: 16
  694. -- part name: LAST
  695. ----- HyperTalk script -----
  696. on mouseUp
  697.   go to last cd in this bg
  698. end mouseUp
  699.  
  700.  
  701.  
  702. -- part 31 (button)
  703. -- low flags: 00
  704. -- high flags: 0000
  705. -- rect: left=234 top=278 right=303 bottom=263
  706. -- title width / last selected line: 0
  707. -- icon id / first selected line: 21700 / 21700
  708. -- text alignment: 1
  709. -- font id: 0
  710. -- text size: 12
  711. -- style flags: 0
  712. -- line height: 16
  713. -- part name: New Button
  714. ----- HyperTalk script -----
  715. on mouseUp
  716.   go home
  717. end mouseUp
  718.  
  719.  
  720.  
  721. -- part 32 (button)
  722. -- low flags: 00
  723. -- high flags: 0000
  724. -- rect: left=344 top=209 right=232 bottom=452
  725. -- title width / last selected line: 0
  726. -- icon id / first selected line: 0 / 0
  727. -- text alignment: 1
  728. -- font id: 0
  729. -- text size: 12
  730. -- style flags: 0
  731. -- line height: 16
  732. -- part name: Library
  733. ----- HyperTalk script -----
  734. on mouseUp
  735.   set cursor to 4
  736.   lock screen
  737.   go to first card in bg "Tone Library"
  738.   unlock screen with dissolve
  739. end mouseUp
  740.  
  741.  
  742.  
  743. -- part 33 (button)
  744. -- low flags: 00
  745. -- high flags: 0000
  746. -- rect: left=347 top=235 right=258 bottom=447
  747. -- title width / last selected line: 0
  748. -- icon id / first selected line: 0 / 0
  749. -- text alignment: 1
  750. -- font id: 0
  751. -- text size: 12
  752. -- style flags: 0
  753. -- line height: 16
  754. -- part name: Banks
  755. ----- HyperTalk script -----
  756. on mouseUp
  757.   set cursor to 4
  758.   lock screen
  759.   go to first cd in bg "Bank Library"
  760.   unlock screen with dissolve
  761. end mouseUp
  762.  
  763.  
  764.  
  765. -- part 34 (button)
  766. -- low flags: 80
  767. -- high flags: 8003
  768. -- rect: left=78 top=231 right=253 bottom=204
  769. -- title width / last selected line: 0
  770. -- icon id / first selected line: 0 / 0
  771. -- text alignment: 1
  772. -- font id: 0
  773. -- text size: 12
  774. -- style flags: 0
  775. -- line height: 16
  776. -- part name: Replace This Data
  777. ----- HyperTalk script -----
  778. on mouseUp
  779.   global carryLoc
  780.   set the name of bg btn id 18 to "EXTRACT NEW DATA"
  781.   put "Are you sure?"&return& "This will overwrite any data already stored on this card!" into bg fld "dialog"
  782.   showDialog
  783.   waitforClick
  784.   if carryloc is within the rect of bg btn OK then
  785.     hideDialog
  786.     lock screen
  787.     show bg btn "Extract from D-10"
  788.     show bg btn id 3
  789.     show bg btn id 5
  790.     show bg btn id 6
  791.     show bg btn id 7
  792.     show bg btn id 8
  793.     show bg btn id 9
  794.     show bg btn id 10
  795.     show bg btn id 11
  796.     show bg btn id 12
  797.     show bg fld "white"
  798.     hide bg btn "Dump to D-10"
  799.     hide bg btn "Replace This Data"
  800.     unlock screen with wipe right
  801.   else
  802.     hideDialog
  803.   end if
  804. end mouseUp
  805.  
  806.  
  807.  
  808. -- part 35 (field)
  809. -- low flags: 81
  810. -- high flags: 0002
  811. -- rect: left=78 top=133 right=244 bottom=289
  812. -- title width / last selected line: 0
  813. -- icon id / first selected line: 0 / 0
  814. -- text alignment: 1
  815. -- font id: 3
  816. -- text size: 12
  817. -- style flags: 0
  818. -- line height: 16
  819. -- part name: Dialog
  820.  
  821.  
  822. -- part 36 (button)
  823. -- low flags: 80
  824. -- high flags: 8003
  825. -- rect: left=87 top=218 right=239 bottom=163
  826. -- title width / last selected line: 0
  827. -- icon id / first selected line: 0 / 0
  828. -- text alignment: 1
  829. -- font id: 0
  830. -- text size: 12
  831. -- style flags: 0
  832. -- line height: 16
  833. -- part name: OK
  834.  
  835.  
  836. -- part 37 (button)
  837. -- low flags: 80
  838. -- high flags: 8003
  839. -- rect: left=207 top=219 right=240 bottom=283
  840. -- title width / last selected line: 0
  841. -- icon id / first selected line: 0 / 0
  842. -- text alignment: 1
  843. -- font id: 0
  844. -- text size: 12
  845. -- style flags: 0
  846. -- line height: 16
  847. -- part name: CANCEL
  848.  
  849.  
  850. -- part 38 (button)
  851. -- low flags: 00
  852. -- high flags: 0000
  853. -- rect: left=348 top=259 right=281 bottom=448
  854. -- title width / last selected line: 0
  855. -- icon id / first selected line: 0 / 0
  856. -- text alignment: 1
  857. -- font id: 0
  858. -- text size: 12
  859. -- style flags: 0
  860. -- line height: 16
  861. -- part name: BULK STORAGE
  862. ----- HyperTalk script -----
  863. on mouseUp
  864.   set cursor to 4
  865.   lock screen
  866.   go to first card in bg "Bulk Storage"
  867.   unlock screen with dissolve
  868. end mouseUp
  869.  
  870.  
  871.  
  872. -- part 39 (button)
  873. -- low flags: 00
  874. -- high flags: 0000
  875. -- rect: left=344 top=295 right=319 bottom=449
  876. -- title width / last selected line: 0
  877. -- icon id / first selected line: 0 / 0
  878. -- text alignment: 1
  879. -- font id: 0
  880. -- text size: 12
  881. -- style flags: 0
  882. -- line height: 16
  883. -- part name: new card
  884. ----- HyperTalk script -----
  885. on mouseUp
  886.   doMenu "New Card"
  887. end mouseUp
  888.  
  889.  
  890.  
  891. -- part 42 (button)
  892. -- low flags: 80
  893. -- high flags: C002
  894. -- rect: left=48 top=64 right=88 bottom=414
  895. -- title width / last selected line: 0
  896. -- icon id / first selected line: 0 / 0
  897. -- text alignment: 1
  898. -- font id: 2
  899. -- text size: 12
  900. -- style flags: 256
  901. -- line height: 16
  902. -- part name: INFORMATION
  903. ----- HyperTalk script -----
  904. on mouseUp
  905.   set cursor to 4
  906.   lock screen
  907.   hide me
  908.   hide bg fld "information"
  909.   unlock screen with dissolve
  910. end mouseUp
  911.  
  912.  
  913.  
  914. -- part 43 (button)
  915. -- low flags: 00
  916. -- high flags: 0000
  917. -- rect: left=89 top=302 right=330 bottom=122
  918. -- title width / last selected line: 0
  919. -- icon id / first selected line: 25002 / 25002
  920. -- text alignment: 1
  921. -- font id: 0
  922. -- text size: 12
  923. -- style flags: 0
  924. -- line height: 16
  925. -- part name: GetInfo
  926. ----- HyperTalk script -----
  927. on mouseUp
  928.   set cursor to 4
  929.   lock screen
  930.   push card
  931.   go to cd "mainTitle"
  932.   put bg fld "bulkLibInfo" into ww
  933.   pop card
  934.   put ww into bg fld "information"
  935.   show bg fld "information"
  936.   show bg btn "information"
  937.   set scroll of bg fld "information" to 0
  938.   unlock screen with barn door open
  939. end mouseUp
  940.  
  941.  
  942.  
  943. -- part 44 (field)
  944. -- low flags: 81
  945. -- high flags: 2007
  946. -- rect: left=48 top=88 right=342 bottom=414
  947. -- title width / last selected line: 0
  948. -- icon id / first selected line: 0 / 0
  949. -- text alignment: 0
  950. -- font id: 3
  951. -- text size: 10
  952. -- style flags: 0
  953. -- line height: 12
  954. -- part name: INFORMATION
  955. ----- HyperTalk script -----
  956. on mouseUp
  957.   set cursor to 4
  958.   lock screen
  959.   hide me
  960.   hide bg btn "information"
  961.   unlock screen with dissolve
  962. end mouseUp
  963.  
  964.