home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
hc
/
hypermid.sit
/
HyperMIDI
/
card_3831.txt
< prev
next >
Wrap
Text File
|
1988-02-23
|
8KB
|
240 lines
-- card: 3831 from stack: in
-- bmap block id: 5287
-- flags: 0000
-- background id: 2702
-- name:
----- HyperTalk script -----
global radix
on opencard
if hilite of card button "hex" is true then
put "hex" into radix
else
put empty into radix
end if
end opencard
-- part 2 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=165 top=75 right=293 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Display
-- part 3 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=43 top=86 right=107 bottom=152
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Load Display
----- HyperTalk script -----
on mouseUp
get GetFile("TEXT")
if it <> "" then
put it into filename
open file filename
read from file filename until ""
put it into card field "Display"
close file filename
end if
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=44 top=109 right=129 bottom=150
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Save Display
----- HyperTalk script -----
on mouseUp
get PutFile()
if it <> "" then
put it into filename
open file filename
write card field "Display" to file filename
close file filename
end if
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=18 top=168 right=190 bottom=157
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: MIDI in to Display
----- HyperTalk script -----
on mouseUp
global radix
put RxMIDI(radix,"all") after card field "Display"
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=18 top=238 right=261 bottom=158
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Flush MIDI Rx buffer
----- HyperTalk script -----
on mouseUp
put RxMIDI("flush") into dummy -- flush receive buffer
end mouseUp
-- part 8 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=18 top=265 right=287 bottom=159
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Clear Display
----- HyperTalk script -----
on mouseUp
put empty into card field "Display" -- clear the display field
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: A005
-- rect: left=113 top=149 right=168 bottom=164
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Hex
----- HyperTalk script -----
on mouseUp
global radix
if hilite of me is true then
put "hex" into radix
else
put empty into radix
end if
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=18 top=194 right=216 bottom=157
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Display to MIDI out
----- HyperTalk script -----
on mouseUp
if hilite of card button "hex" is true then
TxMIDI "hex",card field "Display"
else
TxMIDI card field "Display"
end if
end mouseUp
-- part 12 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=313 top=49 right=71 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Decimal to Symbolic
----- HyperTalk script -----
on mouseUp
put card field "Display" into junk
put convertmidi("symbolic",junk) into card field "Display"
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=20 top=36 right=58 bottom=168
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Save Patch To File
----- HyperTalk script -----
on mouseUp
get RxMIDI("flush")
answer "Initiate data dump, press OK when completed" with "OK"
if it <> "Cancel" then
put RxMIDI("all") into myBuf
get PutFile()
if it <> "" then
put it into filename
open file filename
write myBuf to file filename
close file filename
end if
end if
end mouseUp
-- part contents for card part 2
----- text -----
144 72 52 144 72 0 144 70 64 224 6 67 224 10 69 224 16 72 224 20 74 224 26 77 224 30 79 224 36 82 224 40 84 224 44 86 224 48 88 224 50 89 224 54 91 224 56 92 224 58 93 224 60 94 224 62 95 224 64 96 224 66 97 224 68 98 224 70 99 224 72 100 224 74 101 224 72 100 224 70 99 224 68 98 224 64 96 224 62 95 224 52 90 224 32 80 224 6 67 144 70 0 224 0 64 144 67 64 144 67 0 144 65 91 176 1 1 176 1 2 176 1 4 176 1 6 176 1 8 176 1 9 176 1 11 176 1 13 176 1 15 176 1 17 176 1 18 176 1 20 176 1 21 176 1 23 176 1 25 176 1 26 176 1 27 176 1 29 176 1 30 176 1 32 176 1 33 176 1 35 176 1 36 176 1 38 176 1 39 176 1 40 176 1 41 176 1 43 176 1 44 176 1 45 176 1 46 176 1 47 176 1 49 176 1 50 176 1 51 176 1 52 176 1 53 176 1 54 176 1 55 176 1 56 176 1 57 176 1 58 176 1 59 176 1 60 176 1 59 176 1 57 176 1 56 176 1 55 176 1 53 176 1 52 176 1 50 176 1 48 176 1 46 176 1 44 176 1 41 176 1 39 176 1 36 176 1 33 144 65 0 176 1 30 176 1 24 144 67 60 176 1 19 176 1 15 176 1 11 176 1 8 176 1 4 176 1 1 176 1 0 144 67 0 144 60 60 144 60 0 192 115 144 60 48 224 2 65 224 6 67 224 8 68 224 12 70 224 16 72 224 20 74 224 24 76 224 28 78 224 32 80 224 34 81 224 38 83 224 42 85 224 44 86 224 48 88 224 50 89 224 54 91 224 56 92 224 58 93 224 60 94 224 62 95 224 64 96 224 60 94 224 58 93 224 56 92 224 54 91 224 50 89 224 44 86 224 40 84 224 36 82 224 30 79 224 24 76 224 18 73 224 12 70 224 4 66 224 0 64 144 60 0 144 63 40 144 63 0 144 60 48 144 60 0 144 48 64 144 48 0 192 119 144 72 52 176 1 1 176 1 2 176 1 3 176 1 4 176 1 6 176 1 7 176 1 8 176 1 9 176 1 10 176 1 11 176 1 13 176 1 14 176 1 15 176 1 16 176 1 17 176 1 18 176 1 19 176 1 20 176 1 21 176 1 23 176 1 24 176 1 25 176 1 27 176 1 28 176 1 29 176 1 30 176 1 31 176 1 32 176 1 33 176 1 34 176 1 35 176 1 36 176 1 37 176 1 38 176 1 39 176 1 40 176 1 41 176 1 42 176 1 43 176 1 45 176 1 46 176 1 48 176 1 49 176 1 50 176 1 51 176 1 52 176 1 53 176 1 54 176 1 55 176 1 56 176 1 57 176 1 56 176 1 55 176 1 54 176 1 53 176 1 52 176 1 50 176 1 49 176 1 48 176 1 46 176 1 45 176 1 43 176 1 41 176 1 39 176 1 37 176 1 35 176 1 32 176 1 29 176 1 26 176 1 22 176 1 18 176 1 15 144 72 0 176 1 11 176 1 6 176 1 1 176 1 0 144 77 48 224 4 66 224 6 67 224 8 68 224 10 69 224 12 70 224 14 71 224 16 72 224 18 73 224 20 74 224 22 75 224 24 76 224 26 77 224 28 78 224 30 79 224 32 80 224 34 81 224 36 82 224 38 83 224 40 84 224 42 85 224 46 87 224 48 88 224 52 90 224 54 91 224 56 92 224 58 93 224 60 94 224 62 95 224 66 97 224 68 98 224 70 99 224 72 100 224 74 101 224 76 102 224 72 100 224 70 99 224 66 97 224 64 96 224 60 94 224 52 90 144 77 0 224 28 78 224 0 64 144 72 16 144 72 0 144 70 48 144 70 0 144 67 52 144 67 0 144 60 40 144 60 0