Home » Archimedes archive » Zipped Apps » ScoreDraw » TechSpec2

TechSpec2

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Zipped Apps » ScoreDraw
Filename: TechSpec2
Read OK:
File size: 07F6 bytes
Load address: 0000
Exec address: 0000
File contents
Extensions to Rhapsody File Format
----------------------------------

In order to save the additional parameters can be controlled by
by ScoreDraw, the Rhapsody file format has been extended to include
a second formatting data slot.  This immediately follows the
normal Rhapsody formatting data slot that sits between the header
and the beginning of the music data slots.  The structure of the
extended formatting data slot is as follows:

    [1]    &FF
    [1]    slot_length
    [1]    0
    [1]    2                 (code for ScoreDraw formatting data)
    [2]    checksum of formatting slot 1, MOD &10000
    [1]    formatting scale  (20% to 200%, 100 means 100%)
    [2]    page height * 10  (low byte, high byte)
    [2]    page_width * 10   (low byte, high byte)
    [1]    top margin tenths    (added to figure in first slot)
    [1]    bottom margin tenths
    [1]    left margin tenths
    [1]    right margin tenths
    [1]    bar and page numbering
           bit 0        0 = no bar numbers      1 = bar numbers
           bit 1        0 = no page numbers     1 = page numbers
           bit 2        0 = hide score titles   1 = show score titles
           bits 3-4     0 = show stave names    1 = show stave names on all staves    2 = hide stave names
           bits 5-7     page number position (top/bottom, left/centre/right/alternate)
    [1]    page number offset (default = 1)
    [n]    font name for title font (0 terminated)
    [n]    font name for text font  (0 terminated)
    [n]    font name for dynamics font (0 terminated)


ScoreDraw uses the checksum to detect if the score has been reformatted
using Rhapsody.  If it has, then ScoreDraw ignores the rest of the data.
In this way, it is possible to keep swapping scores between Rhapsody and
ScoreDraw, with ScoreDraw always following Rhapsody's settings but keeping
to its own if ScoreDraw was the last one to format it.  Reformatting a
score with Rhapsody therefore loses the additional ScoreDraw data, as would
be expected.


Andrew Harding, 10 Aug 91
00000000  45 78 74 65 6e 73 69 6f  6e 73 20 74 6f 20 52 68  |Extensions to Rh|
00000010  61 70 73 6f 64 79 20 46  69 6c 65 20 46 6f 72 6d  |apsody File Form|
00000020  61 74 0a 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |at.-------------|
00000030  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000040  2d 2d 2d 2d 2d 0a 0a 49  6e 20 6f 72 64 65 72 20  |-----..In order |
00000050  74 6f 20 73 61 76 65 20  74 68 65 20 61 64 64 69  |to save the addi|
00000060  74 69 6f 6e 61 6c 20 70  61 72 61 6d 65 74 65 72  |tional parameter|
00000070  73 20 63 61 6e 20 62 65  20 63 6f 6e 74 72 6f 6c  |s can be control|
00000080  6c 65 64 20 62 79 0a 62  79 20 53 63 6f 72 65 44  |led by.by ScoreD|
00000090  72 61 77 2c 20 74 68 65  20 52 68 61 70 73 6f 64  |raw, the Rhapsod|
000000a0  79 20 66 69 6c 65 20 66  6f 72 6d 61 74 20 68 61  |y file format ha|
000000b0  73 20 62 65 65 6e 20 65  78 74 65 6e 64 65 64 20  |s been extended |
000000c0  74 6f 20 69 6e 63 6c 75  64 65 0a 61 20 73 65 63  |to include.a sec|
000000d0  6f 6e 64 20 66 6f 72 6d  61 74 74 69 6e 67 20 64  |ond formatting d|
000000e0  61 74 61 20 73 6c 6f 74  2e 20 20 54 68 69 73 20  |ata slot.  This |
000000f0  69 6d 6d 65 64 69 61 74  65 6c 79 20 66 6f 6c 6c  |immediately foll|
00000100  6f 77 73 20 74 68 65 0a  6e 6f 72 6d 61 6c 20 52  |ows the.normal R|
00000110  68 61 70 73 6f 64 79 20  66 6f 72 6d 61 74 74 69  |hapsody formatti|
00000120  6e 67 20 64 61 74 61 20  73 6c 6f 74 20 74 68 61  |ng data slot tha|
00000130  74 20 73 69 74 73 20 62  65 74 77 65 65 6e 20 74  |t sits between t|
00000140  68 65 20 68 65 61 64 65  72 0a 61 6e 64 20 74 68  |he header.and th|
00000150  65 20 62 65 67 69 6e 6e  69 6e 67 20 6f 66 20 74  |e beginning of t|
00000160  68 65 20 6d 75 73 69 63  20 64 61 74 61 20 73 6c  |he music data sl|
00000170  6f 74 73 2e 20 20 54 68  65 20 73 74 72 75 63 74  |ots.  The struct|
00000180  75 72 65 20 6f 66 20 74  68 65 0a 65 78 74 65 6e  |ure of the.exten|
00000190  64 65 64 20 66 6f 72 6d  61 74 74 69 6e 67 20 64  |ded formatting d|
000001a0  61 74 61 20 73 6c 6f 74  20 69 73 20 61 73 20 66  |ata slot is as f|
000001b0  6f 6c 6c 6f 77 73 3a 0a  0a 20 20 20 20 5b 31 5d  |ollows:..    [1]|
000001c0  20 20 20 20 26 46 46 0a  20 20 20 20 5b 31 5d 20  |    &FF.    [1] |
000001d0  20 20 20 73 6c 6f 74 5f  6c 65 6e 67 74 68 0a 20  |   slot_length. |
000001e0  20 20 20 5b 31 5d 20 20  20 20 30 0a 20 20 20 20  |   [1]    0.    |
000001f0  5b 31 5d 20 20 20 20 32  20 20 20 20 20 20 20 20  |[1]    2        |
00000200  20 20 20 20 20 20 20 20  20 28 63 6f 64 65 20 66  |         (code f|
00000210  6f 72 20 53 63 6f 72 65  44 72 61 77 20 66 6f 72  |or ScoreDraw for|
00000220  6d 61 74 74 69 6e 67 20  64 61 74 61 29 0a 20 20  |matting data).  |
00000230  20 20 5b 32 5d 20 20 20  20 63 68 65 63 6b 73 75  |  [2]    checksu|
00000240  6d 20 6f 66 20 66 6f 72  6d 61 74 74 69 6e 67 20  |m of formatting |
00000250  73 6c 6f 74 20 31 2c 20  4d 4f 44 20 26 31 30 30  |slot 1, MOD &100|
00000260  30 30 0a 20 20 20 20 5b  31 5d 20 20 20 20 66 6f  |00.    [1]    fo|
00000270  72 6d 61 74 74 69 6e 67  20 73 63 61 6c 65 20 20  |rmatting scale  |
00000280  28 32 30 25 20 74 6f 20  32 30 30 25 2c 20 31 30  |(20% to 200%, 10|
00000290  30 20 6d 65 61 6e 73 20  31 30 30 25 29 0a 20 20  |0 means 100%).  |
000002a0  20 20 5b 32 5d 20 20 20  20 70 61 67 65 20 68 65  |  [2]    page he|
000002b0  69 67 68 74 20 2a 20 31  30 20 20 28 6c 6f 77 20  |ight * 10  (low |
000002c0  62 79 74 65 2c 20 68 69  67 68 20 62 79 74 65 29  |byte, high byte)|
000002d0  0a 20 20 20 20 5b 32 5d  20 20 20 20 70 61 67 65  |.    [2]    page|
000002e0  5f 77 69 64 74 68 20 2a  20 31 30 20 20 20 28 6c  |_width * 10   (l|
000002f0  6f 77 20 62 79 74 65 2c  20 68 69 67 68 20 62 79  |ow byte, high by|
00000300  74 65 29 0a 20 20 20 20  5b 31 5d 20 20 20 20 74  |te).    [1]    t|
00000310  6f 70 20 6d 61 72 67 69  6e 20 74 65 6e 74 68 73  |op margin tenths|
00000320  20 20 20 20 28 61 64 64  65 64 20 74 6f 20 66 69  |    (added to fi|
00000330  67 75 72 65 20 69 6e 20  66 69 72 73 74 20 73 6c  |gure in first sl|
00000340  6f 74 29 0a 20 20 20 20  5b 31 5d 20 20 20 20 62  |ot).    [1]    b|
00000350  6f 74 74 6f 6d 20 6d 61  72 67 69 6e 20 74 65 6e  |ottom margin ten|
00000360  74 68 73 0a 20 20 20 20  5b 31 5d 20 20 20 20 6c  |ths.    [1]    l|
00000370  65 66 74 20 6d 61 72 67  69 6e 20 74 65 6e 74 68  |eft margin tenth|
00000380  73 0a 20 20 20 20 5b 31  5d 20 20 20 20 72 69 67  |s.    [1]    rig|
00000390  68 74 20 6d 61 72 67 69  6e 20 74 65 6e 74 68 73  |ht margin tenths|
000003a0  0a 20 20 20 20 5b 31 5d  20 20 20 20 62 61 72 20  |.    [1]    bar |
000003b0  61 6e 64 20 70 61 67 65  20 6e 75 6d 62 65 72 69  |and page numberi|
000003c0  6e 67 0a 20 20 20 20 20  20 20 20 20 20 20 62 69  |ng.           bi|
000003d0  74 20 30 20 20 20 20 20  20 20 20 30 20 3d 20 6e  |t 0        0 = n|
000003e0  6f 20 62 61 72 20 6e 75  6d 62 65 72 73 20 20 20  |o bar numbers   |
000003f0  20 20 20 31 20 3d 20 62  61 72 20 6e 75 6d 62 65  |   1 = bar numbe|
00000400  72 73 0a 20 20 20 20 20  20 20 20 20 20 20 62 69  |rs.           bi|
00000410  74 20 31 20 20 20 20 20  20 20 20 30 20 3d 20 6e  |t 1        0 = n|
00000420  6f 20 70 61 67 65 20 6e  75 6d 62 65 72 73 20 20  |o page numbers  |
00000430  20 20 20 31 20 3d 20 70  61 67 65 20 6e 75 6d 62  |   1 = page numb|
00000440  65 72 73 0a 20 20 20 20  20 20 20 20 20 20 20 62  |ers.           b|
00000450  69 74 20 32 20 20 20 20  20 20 20 20 30 20 3d 20  |it 2        0 = |
00000460  68 69 64 65 20 73 63 6f  72 65 20 74 69 74 6c 65  |hide score title|
00000470  73 20 20 20 31 20 3d 20  73 68 6f 77 20 73 63 6f  |s   1 = show sco|
00000480  72 65 20 74 69 74 6c 65  73 0a 20 20 20 20 20 20  |re titles.      |
00000490  20 20 20 20 20 62 69 74  73 20 33 2d 34 20 20 20  |     bits 3-4   |
000004a0  20 20 30 20 3d 20 73 68  6f 77 20 73 74 61 76 65  |  0 = show stave|
000004b0  20 6e 61 6d 65 73 20 20  20 20 31 20 3d 20 73 68  | names    1 = sh|
000004c0  6f 77 20 73 74 61 76 65  20 6e 61 6d 65 73 20 6f  |ow stave names o|
000004d0  6e 20 61 6c 6c 20 73 74  61 76 65 73 20 20 20 20  |n all staves    |
000004e0  32 20 3d 20 68 69 64 65  20 73 74 61 76 65 20 6e  |2 = hide stave n|
000004f0  61 6d 65 73 0a 20 20 20  20 20 20 20 20 20 20 20  |ames.           |
00000500  62 69 74 73 20 35 2d 37  20 20 20 20 20 70 61 67  |bits 5-7     pag|
00000510  65 20 6e 75 6d 62 65 72  20 70 6f 73 69 74 69 6f  |e number positio|
00000520  6e 20 28 74 6f 70 2f 62  6f 74 74 6f 6d 2c 20 6c  |n (top/bottom, l|
00000530  65 66 74 2f 63 65 6e 74  72 65 2f 72 69 67 68 74  |eft/centre/right|
00000540  2f 61 6c 74 65 72 6e 61  74 65 29 0a 20 20 20 20  |/alternate).    |
00000550  5b 31 5d 20 20 20 20 70  61 67 65 20 6e 75 6d 62  |[1]    page numb|
00000560  65 72 20 6f 66 66 73 65  74 20 28 64 65 66 61 75  |er offset (defau|
00000570  6c 74 20 3d 20 31 29 0a  20 20 20 20 5b 6e 5d 20  |lt = 1).    [n] |
00000580  20 20 20 66 6f 6e 74 20  6e 61 6d 65 20 66 6f 72  |   font name for|
00000590  20 74 69 74 6c 65 20 66  6f 6e 74 20 28 30 20 74  | title font (0 t|
000005a0  65 72 6d 69 6e 61 74 65  64 29 0a 20 20 20 20 5b  |erminated).    [|
000005b0  6e 5d 20 20 20 20 66 6f  6e 74 20 6e 61 6d 65 20  |n]    font name |
000005c0  66 6f 72 20 74 65 78 74  20 66 6f 6e 74 20 20 28  |for text font  (|
000005d0  30 20 74 65 72 6d 69 6e  61 74 65 64 29 0a 20 20  |0 terminated).  |
000005e0  20 20 5b 6e 5d 20 20 20  20 66 6f 6e 74 20 6e 61  |  [n]    font na|
000005f0  6d 65 20 66 6f 72 20 64  79 6e 61 6d 69 63 73 20  |me for dynamics |
00000600  66 6f 6e 74 20 28 30 20  74 65 72 6d 69 6e 61 74  |font (0 terminat|
00000610  65 64 29 0a 0a 0a 53 63  6f 72 65 44 72 61 77 20  |ed)...ScoreDraw |
00000620  75 73 65 73 20 74 68 65  20 63 68 65 63 6b 73 75  |uses the checksu|
00000630  6d 20 74 6f 20 64 65 74  65 63 74 20 69 66 20 74  |m to detect if t|
00000640  68 65 20 73 63 6f 72 65  20 68 61 73 20 62 65 65  |he score has bee|
00000650  6e 20 72 65 66 6f 72 6d  61 74 74 65 64 0a 75 73  |n reformatted.us|
00000660  69 6e 67 20 52 68 61 70  73 6f 64 79 2e 20 20 49  |ing Rhapsody.  I|
00000670  66 20 69 74 20 68 61 73  2c 20 74 68 65 6e 20 53  |f it has, then S|
00000680  63 6f 72 65 44 72 61 77  20 69 67 6e 6f 72 65 73  |coreDraw ignores|
00000690  20 74 68 65 20 72 65 73  74 20 6f 66 20 74 68 65  | the rest of the|
000006a0  20 64 61 74 61 2e 0a 49  6e 20 74 68 69 73 20 77  | data..In this w|
000006b0  61 79 2c 20 69 74 20 69  73 20 70 6f 73 73 69 62  |ay, it is possib|
000006c0  6c 65 20 74 6f 20 6b 65  65 70 20 73 77 61 70 70  |le to keep swapp|
000006d0  69 6e 67 20 73 63 6f 72  65 73 20 62 65 74 77 65  |ing scores betwe|
000006e0  65 6e 20 52 68 61 70 73  6f 64 79 20 61 6e 64 0a  |en Rhapsody and.|
000006f0  53 63 6f 72 65 44 72 61  77 2c 20 77 69 74 68 20  |ScoreDraw, with |
00000700  53 63 6f 72 65 44 72 61  77 20 61 6c 77 61 79 73  |ScoreDraw always|
00000710  20 66 6f 6c 6c 6f 77 69  6e 67 20 52 68 61 70 73  | following Rhaps|
00000720  6f 64 79 27 73 20 73 65  74 74 69 6e 67 73 20 62  |ody's settings b|
00000730  75 74 20 6b 65 65 70 69  6e 67 0a 74 6f 20 69 74  |ut keeping.to it|
00000740  73 20 6f 77 6e 20 69 66  20 53 63 6f 72 65 44 72  |s own if ScoreDr|
00000750  61 77 20 77 61 73 20 74  68 65 20 6c 61 73 74 20  |aw was the last |
00000760  6f 6e 65 20 74 6f 20 66  6f 72 6d 61 74 20 69 74  |one to format it|
00000770  2e 20 20 52 65 66 6f 72  6d 61 74 74 69 6e 67 20  |.  Reformatting |
00000780  61 0a 73 63 6f 72 65 20  77 69 74 68 20 52 68 61  |a.score with Rha|
00000790  70 73 6f 64 79 20 74 68  65 72 65 66 6f 72 65 20  |psody therefore |
000007a0  6c 6f 73 65 73 20 74 68  65 20 61 64 64 69 74 69  |loses the additi|
000007b0  6f 6e 61 6c 20 53 63 6f  72 65 44 72 61 77 20 64  |onal ScoreDraw d|
000007c0  61 74 61 2c 20 61 73 20  77 6f 75 6c 64 0a 62 65  |ata, as would.be|
000007d0  20 65 78 70 65 63 74 65  64 2e 0a 0a 0a 41 6e 64  | expected....And|
000007e0  72 65 77 20 48 61 72 64  69 6e 67 2c 20 31 30 20  |rew Harding, 10 |
000007f0  41 75 67 20 39 31                                 |Aug 91|
000007f6