CCARH data formats

From CCARH Wiki
Jump to navigation Jump to search

CCARH has created several data formats for music processing. The following schematic shows their relationship to each other and to other data formats which can be derived from the CCARH file formats.

Ccarh-data-formats.png


Primary formats

MuseData "Stage 1"
This is the initial step in creating full MuseData files. Most notational aspects of the music are missing, since the data is typically generated directly from MIDI keyboard data entry. This format contains the pitch and a tick-based description of the rhythm, along with barlines. Each part is in a separate file, and if a part contains multiple time signatures, the music for a part will be broken into separate files for each time signature.
MuseData "Stage 2"
Also called an "S-file" (Source file). This is the primary symbolic form of the musical data. It adds symbolic descriptions of graphical elements of notation, such as which direction the stem of a note is pointing, what shape is the notehead on each note, slurs and dynamics.
I-File
"Intermediate File" which is a graphical layout of the music in a data format quite different than for MuseData files. The music is positions in a continuous single-system form.
Music PaGe (MPG) File
A variant of the I-file which breaks the continous system into lines of music. Each MPG file contains the content of a single page of music.
Compressed FormaT (CFT) File
CFT files are a compressed form of multiple MPG files representing a complete movement, work, or collection of works.

Data formats which can be derived from CCARH data files

MIDI files
Output format for listening to the music on a digital synthesizer.
Humdrum files
Output format for music analysis in the Humdrum Toolkit
SCORE files
Output format which is similar in scope to a Music PaGe (MPG) file for use in the SCORE program.
MusicXML files
Output format for import into other music processing programs such as MuseScore, Finale and Sibelius.
TIFF files
Output of graphical music typesetting as a bitmap.
PostScript files
Similar visual display as TIFF output, but contains music in a bitmapped font for more flexible post-processing.

Both TIFF and PostScript files can be converted into PDF files.

Samples of CCARH data file formats

MuseData, Stage 1

157
15    1
Bach Gesells
chaft ii

9 1
25 0 16 4
4 4 0 1 75
measure 1
rest 16
measure 2
rest 16
measure 3
rest 16
measure 4
rest 16
measure 5
rest 16
measure 6
rest  1
C5    1
C5    1
C5    1
C5    2
G4    2
rest  1
E5    1
E5    1
E5    1
E5    2
C5    2
measure 7
rest  1
G5    1
G5    1
G5    1
G5    2
E5    2
rest  2
E5    2
D5    1
E5    1
F5    1
G5    1
measure 8

MuseData, Stage 2

(C) 1997, 2002 Center for Computer Assisted Research in the Humanities.
ID: {bach/bg/cant/0014/stage2/01/04} [KHM:2995393650]
TIMESTAMP: DEC/26/2001 [md5sum:5ed41b47101603b959b766d7f18f433d]
12/12/97 E. Correia
WK#:14        MV#:1
Bach Gesellschaft ii
W\a3r' Gott nicht mit uns diese Zeit
Chorus
Violino 2
0 72
Group memberships: data
data: part 4 of 10
$  K:-2   Q:8   T:3/8  C:4
rest  12
measure 2
rest  12
measure 3
rest  12
measure 4
rest  12
measure 5
rest  12
measure 6
rest   4        e
D4     4        e     u  [     (
E4     4        e n   u  ]     )
measure 7
F4     4        e     u
F#4    8        q #   u        t
measure 8
G4     8        q     u
D4     4        e     u
measure 9
A4     6        e.    u  [     (
G4     2        s     u  =[    )
F#4    2        s #   u  ==    (
A4     2        s     u  ]]    )
measure 10
G4    12-       q.    u        -
measure 11
G4     4        e     u  [
G4     2        s     u  =[    (
F4     2        s     u  ==    )
Ef4    2        s f   u  ==    (+
G4     2        s     u  ]]    )
measure 12
F4     4        e     u  [
G4     4        e     u  =     (
F4     4        e     u  ]     )
measure 13


I-File

L 0 0 14 !39corno da caccia
J D 4 500 -120 1 6913 0 0
W 0 0 44 Chorus
J D 1 75 -37 1 6913 0 0
W 0 -56 44 Chorus:  corno da caccia
J C 4 5 42 2 6913 0 0
K 0 0 33
K 0 0 34
J T 308 66 0 2 6913 0 0
K -10 28 74
K -10 56 79
J S 4 113 21 9 12 0 0
K 0 0 62
K 0 3 62
K 0 7 92
K 30 7 92
K 60 7 92
K 90 0 62
K 90 3 62
K 45 7 73
K 24 7 72
J B 13 233 1 82 6913 1 0
J N 7 254 14 4 1 0 1 1
K 0 0 43
K 0 0 60
K 0 21 60
A D 2 8
J N 6 283 7 3 4609 576 1 1
K 0 0 43
K 0 0 54
A D 1 8
H 1 S 0 0 0 0 0 0 0 0 0
J B 14 316 1 82 6913 288 0
J N 7 337 0 5 1 0 0
K 0 0 43
K 24 -6 44
K 0 0 60
K 0 21 60
A D 3 8
J B 15 381 1 82 6913 864 0
J N 7 408 0 7 1 0 0
K -18 0 63
K 0 0 43
K 24 -6 44
K 0 -17 236
K 0 0 60
K 0 21 60
A D 3 8
J B 16 452 1 82 6913 864 0

MPG File

X 46 575 120 Choral, \0"W\a3r' Gott nicht mit uns diese Zeit"
S 0 500 240 1750 1456 10 "(.)(.){(.)(.)}(.)[(.)(.)(.)(.)](.)"
L 0 0 0 0 0 * 0 14
J D 0 -300 42 1 6913 0 0
W 0 0 39 Corno da caccia
J C 4 5 42 2 6913 0 0
K 0 0 33
K 0 0 34
J T 308 108 0 2 6913 0 0
K -10 28 74
K -10 56 79
J R 9 185 28 46 1 0 0
J R 9 379 28 46 1 0 0
J R 9 583 28 46 1 0 0
J R 9 776 28 46 1 0 0
J R 9 950 28 46 1 0 0
J R 9 1129 28 46 1 0 0
J R 9 1352 28 46 1 0 0
J R 9 1608 28 46 1 0 0
E *
L 140 0 0 0 0 * 0 14
J D 0 -300 42 1 6913 0 0
W 0 0 39 Oboe 1, 2
J C 4 5 42 2 6913 0 0
K 0 0 33
K 0 0 34
J K -2 57 0 2 6913 0 0
K 0 28 65
K 13 7 65
J T 308 108 0 2 6913 0 0
K -10 28 74
K -10 56 79
J R 9 185 28 46 1 0 0
J R 9 379 28 46 1 0 0
J R 9 583 28 46 1 0 0
J R 9 776 28 46 1 0 0
J R 9 950 28 46 1 0 0
J R 9 1129 28 46 1 0 0
J R 9 1352 28 46 1 0 0
J R 9 1608 28 46 1 0 0
E *
L 280 0 0 0 0 * 0 14
J D 0 -300 42 1 6913 0 0
W 0 0 39 Violino 1
J C 4 5 42 2 6913 0 0
K 0 0 33
K 0 0 34
J K -2 57 0 2 6913 0 0
K 0 28 65
K 13 7 65
J T 308 108 0 2 6913 0 0
K -10 28 74
K -10 56 79
J R 9 185 28 46 1 0 0
J R 9 379 28 46 1 0 0
J R 9 583 28 46 1 0 0
J R 9 776 28 46 1 0 0
J R 9 950 28 46 1 0 0
J R 9 1129 28 46 1 0 0

CFT File

4c 4f 43 41 4c 20 20 20 00 00 01 01 00 00 00 00 00 00 00 60 00 00 00 e0 0f
4d 69 78 65 64 20 43 6f 6d 70 6f 73 65 72 73 0b 4d 69 78 65 64 20 57 6f 72
6b 73 1d 4d 69 78 65 64 20 54 79 70 65 73 20 6f 66 20 52 65 70 72 65 73 65
6e 74 61 74 69 6f 6e 0d 33 30 30 20 64 6f 74 73 2f 69 6e 63 68 02 05 70 61
67 65 73 04 0a 4d 6f 76 65 6d 65 6e 74 20 31 16 32 31 20 64 6f 74 73 20 70
65 72 20 73 74 61 66 66 20 6c 69 6e 65 02 30 31 02 00 02 0a 4d 6f 76 65 6d
65 6e 74 20 32 16 32 31 20 64 6f 74 73 20 70 65 72 20 73 74 61 66 66 20 6c
69 6e 65 02 30 32 01 00 04 0a 4d 6f 76 65 6d 65 6e 74 20 33 16 32 31 20 64
6f 74 73 20 70 65 72 20 73 74 61 66 66 20 6c 69 6e 65 02 30 33 01 00 05 00
00 01 08 00 00 06 ba 00 00 07 c2 00 00 28 1d 00 00 2f df 00 00 28 14 00 00
57 f3 00 00 16 cd 00 00 6e c0 00 00 24 6b 01 bf b5 27 b6 0e 13 25 24 b4 65
12 18 14 96 81 b9 15 17 34 bb ba 09 be 16 2e 46 93 54 55 33 29 22 47 4a 35
8a 8b b7 b8 8c 8d 37 bc bd 44 9a 2f 8e 8f 91 9b 92 19 94 95 90 98 30 97 00
01 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 0f 24 33 00 00 03 01 00
00 01 00 00 00 00 01 00 00 13 93 12 19 17 1a be b8 18 99 b9 9b 15 14 bb 16
00 05 0a 01 00 00 00 00 ba b9 16 bb bd 97 b5 b8 11 b6 bc b7 be 1a 17 14 13
19 15 18 12 91 9a 8c 98 96 8e 00 06 15 b7 12 b8 b6 11 1a 18 16 13 19 17 14
bd be bc 8d 8a 8c 95 93 8e 3d 92 9b 96 99 85 1c 94 83 00 06 11 bc 16 b7 b8
12 bb b9 be 14 19 1a 18 17 8d 15 13 93 8c 91 8b 9b 3d 9a 90 95 99 97 96 00
03 1a bc 8f bb bd b8 14 b9 11 be 19 17 16 18 13 15 12 3d 93 95 90 98 9b 94
8e 96 97 91 8b 99 8c 8d 0d 00 06 b8 bc ba bd 14 b9 b5 94 b6 19 11 bb 16 18
12 1a 15 17 97 9a 3d 90 13 96 91 98 8f 8a 93 8b 92 00 03 be b5 b9 1a b8 ba
b6 bd 18 16 11 bc 19 12 17 15 13 14 96 3d 9b 8f 8e 90 8d 98 65 8c 99 91 92
94 8a 00 07 b5 b9 1a ba 11 b7 14 bb be bd 19 15 b6 16 17 18 13 bc 8b 12 99
91 96 8a 97 8f 9b 3d 94 8e 00 05 b8 b5 ba bb bc 17 11 1a 16 15 18 be b6 b9