Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199611.adf » Extras » Harrison/!FBackQTM/Docs/FlashForm

Harrison/!FBackQTM/Docs/FlashForm

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199611.adf » Extras
Filename: Harrison/!FBackQTM/Docs/FlashForm
Read OK:
File size: 05FE bytes
Load address: 0000
Exec address: 0000
File contents
Flashback music fileformat                /decoded and decyphered by Phoenix/
--------------------------

For all those who are interested, this is the file format of the Flashback
music files, stored uncompressed in the Flashback application as
"!Flashback.m.<file>", where <file> is a letter from "a" to "u".


Offset Meaning
------ ----------------------------------------------------------------------

+&0000 Song sequence, made up of 1 byte pattern numbers
   ..
   ..
    -> until &FF terminator


+&0020 Sample blocks

       A sample block consists of 6 words per sample:
       
       +&00 offset from start of file to sample data
       +&04 length of sample in bytes
       +&08 finetune value (-8 to +7)
       +&0C linear volume (0 to 64)
       +&10 repeat offset from sample start
       +&14 repeat length (no repeat if <=2)

   ..
   ..
    -> until sample offset at +&00 < last sample offset


+&01A0 Pattern data blocks, number of patterns=<max. entry in sequence>+1

       Each pattern 1024 bytes (1 word per channel, 4 channels, 64 entries)

       A channel word is split into 4*1 byte values:
       
       +&00 sample number, first sample is number 1  \
       +&01 note number                               \_ Any entry can be 0
       +&02 effect number in first 4 bits             /  for do nothing
       +&03 effect information byte                  /
       
       Note number range 1 to 36: 1="C-1", 2="C#1"... 35="A#3", 36="B-3"


+&nnnn 8-bit linear signed sample data, stored after pattern data
00000000  46 6c 61 73 68 62 61 63  6b 20 6d 75 73 69 63 20  |Flashback music |
00000010  66 69 6c 65 66 6f 72 6d  61 74 20 20 20 20 20 20  |fileformat      |
00000020  20 20 20 20 20 20 20 20  20 20 2f 64 65 63 6f 64  |          /decod|
00000030  65 64 20 61 6e 64 20 64  65 63 79 70 68 65 72 65  |ed and decyphere|
00000040  64 20 62 79 20 50 68 6f  65 6e 69 78 2f 0a 2d 2d  |d by Phoenix/.--|
00000050  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000060  2d 2d 2d 2d 2d 2d 2d 2d  0a 0a 46 6f 72 20 61 6c  |--------..For al|
00000070  6c 20 74 68 6f 73 65 20  77 68 6f 20 61 72 65 20  |l those who are |
00000080  69 6e 74 65 72 65 73 74  65 64 2c 20 74 68 69 73  |interested, this|
00000090  20 69 73 20 74 68 65 20  66 69 6c 65 20 66 6f 72  | is the file for|
000000a0  6d 61 74 20 6f 66 20 74  68 65 20 46 6c 61 73 68  |mat of the Flash|
000000b0  62 61 63 6b 0a 6d 75 73  69 63 20 66 69 6c 65 73  |back.music files|
000000c0  2c 20 73 74 6f 72 65 64  20 75 6e 63 6f 6d 70 72  |, stored uncompr|
000000d0  65 73 73 65 64 20 69 6e  20 74 68 65 20 46 6c 61  |essed in the Fla|
000000e0  73 68 62 61 63 6b 20 61  70 70 6c 69 63 61 74 69  |shback applicati|
000000f0  6f 6e 20 61 73 0a 22 21  46 6c 61 73 68 62 61 63  |on as."!Flashbac|
00000100  6b 2e 6d 2e 3c 66 69 6c  65 3e 22 2c 20 77 68 65  |k.m.<file>", whe|
00000110  72 65 20 3c 66 69 6c 65  3e 20 69 73 20 61 20 6c  |re <file> is a l|
00000120  65 74 74 65 72 20 66 72  6f 6d 20 22 61 22 20 74  |etter from "a" t|
00000130  6f 20 22 75 22 2e 0a 0a  0a 4f 66 66 73 65 74 20  |o "u"....Offset |
00000140  4d 65 61 6e 69 6e 67 0a  2d 2d 2d 2d 2d 2d 20 2d  |Meaning.------ -|
00000150  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000190  2d 2d 2d 2d 2d 0a 0a 2b  26 30 30 30 30 20 53 6f  |-----..+&0000 So|
000001a0  6e 67 20 73 65 71 75 65  6e 63 65 2c 20 6d 61 64  |ng sequence, mad|
000001b0  65 20 75 70 20 6f 66 20  31 20 62 79 74 65 20 70  |e up of 1 byte p|
000001c0  61 74 74 65 72 6e 20 6e  75 6d 62 65 72 73 0a 20  |attern numbers. |
000001d0  20 20 2e 2e 0a 20 20 20  2e 2e 0a 20 20 20 20 2d  |  ...   ...    -|
000001e0  3e 20 75 6e 74 69 6c 20  26 46 46 20 74 65 72 6d  |> until &FF term|
000001f0  69 6e 61 74 6f 72 0a 0a  0a 2b 26 30 30 32 30 20  |inator...+&0020 |
00000200  53 61 6d 70 6c 65 20 62  6c 6f 63 6b 73 0a 0a 20  |Sample blocks.. |
00000210  20 20 20 20 20 20 41 20  73 61 6d 70 6c 65 20 62  |      A sample b|
00000220  6c 6f 63 6b 20 63 6f 6e  73 69 73 74 73 20 6f 66  |lock consists of|
00000230  20 36 20 77 6f 72 64 73  20 70 65 72 20 73 61 6d  | 6 words per sam|
00000240  70 6c 65 3a 0a 20 20 20  20 20 20 20 0a 20 20 20  |ple:.       .   |
00000250  20 20 20 20 2b 26 30 30  20 6f 66 66 73 65 74 20  |    +&00 offset |
00000260  66 72 6f 6d 20 73 74 61  72 74 20 6f 66 20 66 69  |from start of fi|
00000270  6c 65 20 74 6f 20 73 61  6d 70 6c 65 20 64 61 74  |le to sample dat|
00000280  61 0a 20 20 20 20 20 20  20 2b 26 30 34 20 6c 65  |a.       +&04 le|
00000290  6e 67 74 68 20 6f 66 20  73 61 6d 70 6c 65 20 69  |ngth of sample i|
000002a0  6e 20 62 79 74 65 73 0a  20 20 20 20 20 20 20 2b  |n bytes.       +|
000002b0  26 30 38 20 66 69 6e 65  74 75 6e 65 20 76 61 6c  |&08 finetune val|
000002c0  75 65 20 28 2d 38 20 74  6f 20 2b 37 29 0a 20 20  |ue (-8 to +7).  |
000002d0  20 20 20 20 20 2b 26 30  43 20 6c 69 6e 65 61 72  |     +&0C linear|
000002e0  20 76 6f 6c 75 6d 65 20  28 30 20 74 6f 20 36 34  | volume (0 to 64|
000002f0  29 0a 20 20 20 20 20 20  20 2b 26 31 30 20 72 65  |).       +&10 re|
00000300  70 65 61 74 20 6f 66 66  73 65 74 20 66 72 6f 6d  |peat offset from|
00000310  20 73 61 6d 70 6c 65 20  73 74 61 72 74 0a 20 20  | sample start.  |
00000320  20 20 20 20 20 2b 26 31  34 20 72 65 70 65 61 74  |     +&14 repeat|
00000330  20 6c 65 6e 67 74 68 20  28 6e 6f 20 72 65 70 65  | length (no repe|
00000340  61 74 20 69 66 20 3c 3d  32 29 0a 0a 20 20 20 2e  |at if <=2)..   .|
00000350  2e 0a 20 20 20 2e 2e 0a  20 20 20 20 2d 3e 20 75  |..   ...    -> u|
00000360  6e 74 69 6c 20 73 61 6d  70 6c 65 20 6f 66 66 73  |ntil sample offs|
00000370  65 74 20 61 74 20 2b 26  30 30 20 3c 20 6c 61 73  |et at +&00 < las|
00000380  74 20 73 61 6d 70 6c 65  20 6f 66 66 73 65 74 0a  |t sample offset.|
00000390  0a 0a 2b 26 30 31 41 30  20 50 61 74 74 65 72 6e  |..+&01A0 Pattern|
000003a0  20 64 61 74 61 20 62 6c  6f 63 6b 73 2c 20 6e 75  | data blocks, nu|
000003b0  6d 62 65 72 20 6f 66 20  70 61 74 74 65 72 6e 73  |mber of patterns|
000003c0  3d 3c 6d 61 78 2e 20 65  6e 74 72 79 20 69 6e 20  |=<max. entry in |
000003d0  73 65 71 75 65 6e 63 65  3e 2b 31 0a 0a 20 20 20  |sequence>+1..   |
000003e0  20 20 20 20 45 61 63 68  20 70 61 74 74 65 72 6e  |    Each pattern|
000003f0  20 31 30 32 34 20 62 79  74 65 73 20 28 31 20 77  | 1024 bytes (1 w|
00000400  6f 72 64 20 70 65 72 20  63 68 61 6e 6e 65 6c 2c  |ord per channel,|
00000410  20 34 20 63 68 61 6e 6e  65 6c 73 2c 20 36 34 20  | 4 channels, 64 |
00000420  65 6e 74 72 69 65 73 29  0a 0a 20 20 20 20 20 20  |entries)..      |
00000430  20 41 20 63 68 61 6e 6e  65 6c 20 77 6f 72 64 20  | A channel word |
00000440  69 73 20 73 70 6c 69 74  20 69 6e 74 6f 20 34 2a  |is split into 4*|
00000450  31 20 62 79 74 65 20 76  61 6c 75 65 73 3a 0a 20  |1 byte values:. |
00000460  20 20 20 20 20 20 0a 20  20 20 20 20 20 20 2b 26  |      .       +&|
00000470  30 30 20 73 61 6d 70 6c  65 20 6e 75 6d 62 65 72  |00 sample number|
00000480  2c 20 66 69 72 73 74 20  73 61 6d 70 6c 65 20 69  |, first sample i|
00000490  73 20 6e 75 6d 62 65 72  20 31 20 20 5c 0a 20 20  |s number 1  \.  |
000004a0  20 20 20 20 20 2b 26 30  31 20 6e 6f 74 65 20 6e  |     +&01 note n|
000004b0  75 6d 62 65 72 20 20 20  20 20 20 20 20 20 20 20  |umber           |
000004c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000004d0  20 20 20 20 5c 5f 20 41  6e 79 20 65 6e 74 72 79  |    \_ Any entry|
000004e0  20 63 61 6e 20 62 65 20  30 0a 20 20 20 20 20 20  | can be 0.      |
000004f0  20 2b 26 30 32 20 65 66  66 65 63 74 20 6e 75 6d  | +&02 effect num|
00000500  62 65 72 20 69 6e 20 66  69 72 73 74 20 34 20 62  |ber in first 4 b|
00000510  69 74 73 20 20 20 20 20  20 20 20 20 20 20 20 20  |its             |
00000520  2f 20 20 66 6f 72 20 64  6f 20 6e 6f 74 68 69 6e  |/  for do nothin|
00000530  67 0a 20 20 20 20 20 20  20 2b 26 30 33 20 65 66  |g.       +&03 ef|
00000540  66 65 63 74 20 69 6e 66  6f 72 6d 61 74 69 6f 6e  |fect information|
00000550  20 62 79 74 65 20 20 20  20 20 20 20 20 20 20 20  | byte           |
00000560  20 20 20 20 20 20 20 2f  0a 20 20 20 20 20 20 20  |       /.       |
00000570  0a 20 20 20 20 20 20 20  4e 6f 74 65 20 6e 75 6d  |.       Note num|
00000580  62 65 72 20 72 61 6e 67  65 20 31 20 74 6f 20 33  |ber range 1 to 3|
00000590  36 3a 20 31 3d 22 43 2d  31 22 2c 20 32 3d 22 43  |6: 1="C-1", 2="C|
000005a0  23 31 22 2e 2e 2e 20 33  35 3d 22 41 23 33 22 2c  |#1"... 35="A#3",|
000005b0  20 33 36 3d 22 42 2d 33  22 0a 0a 0a 2b 26 6e 6e  | 36="B-3"...+&nn|
000005c0  6e 6e 20 38 2d 62 69 74  20 6c 69 6e 65 61 72 20  |nn 8-bit linear |
000005d0  73 69 67 6e 65 64 20 73  61 6d 70 6c 65 20 64 61  |signed sample da|
000005e0  74 61 2c 20 73 74 6f 72  65 64 20 61 66 74 65 72  |ta, stored after|
000005f0  20 70 61 74 74 65 72 6e  20 64 61 74 61 0a        | pattern data.|
000005fe