I spent a little time on this last night and have made good progress. I had to rewrite the script a bit.
I'm currently:
- pulling (and cross-checking) dates from the file name and venue content.
- pulling (possible) venue
- pulling artist from the venue
- pulling track numbers and names (and assigning track numbers when they don't exist)
- pulling disc or set number (and converting roman numerals to integers)
- pulling comments (everything that remains un-parsed goes to comments)
Of the 10 sample info files, I'm parsing most of them correctly. Until I get a feel for how many malformed files you have in actuality, I can't know if the file formatting is rare or common. So I'll need your feedback. You might just have to edit the few that are odd, and do something like insert some line breaks, or ...?
To Do:
- fix a few edge cases
- handle multi-disc sets
- correlate parsed info with file names in a directory (and probably use file names to help parsing)
- run the conversion tool and output the XML.
$ ls
Garcia730504/ galactic2011-06-12/ gd1966-07-03.39/ gd66-11-19/ jg1962-06-11/
ddbb2010-12-11/ gd1966-03-25.38/ gd1969-01-17/ ja-1970-05-07/ pfunk1976-09-26/
$ perl ../parse-etree.pl ddbb2010-12-11/ddbb2010-12-11.textfile.txt
**** ddbb2010-12-11/ddbb2010-12-11.textfile.txt
Artist: Dirty Dozen Brass Band
Date: 2010/12/11
____Venue____
Warren Haynes Christmas Jam
Asheville Civic Center
Asheville, North Carolina
------
Disc: 1
Track: 1 Name: Introduction By Warren Haynes
Track: 2 Name: Ain't Nothin' But A Party
Track: 3 Name: Papa Was A Rolling Stone >
Track: 4 Name: *#Spanish Moon
Track: 5 Name: *@$^Superstitious
Track: 6 Name: @$^+Use Me
____Comments____
Source: Schoeps CCM4V'S(din)>Lunatec V2>Benchmark AD2K>
Sound Devices 722 (24/48)
FOB/DFC/KFC/ZFC/AARP 40' From Stage, 6 1/2' High
DSP: Sound Devices 722>Sound Forge 9.0>CD Wave>flac(16)
Recorded By: Z-Man
Seeded By: Z-Man
* With Warren Haynes On Guitar And Vocals
# With Artemis Pyle On Percussion
@ With John Bell On Vocals
$ With Jojo On Keyboards
^ With Ron Holloway On Saxaphone
+ With Mike Barnes On Guitar
Flac Fingerprint
ddbb2010-12-11d01t01.flac:cff5e54a31ef32430a81e3144b722780
ddbb2010-12-11d01t02.flac:8b89092e90bb9545b4c132b49f4ea66d
ddbb2010-12-11d01t03.flac:bd9f90718a8ed579cfe775650699a169
ddbb2010-12-11d01t04.flac:479a48e7334dddc05864f333aa4781c7
ddbb2010-12-11d01t05.flac:fe76cb3c0cdec58f501f1d07bf07276c
ddbb2010-12-11d01t06.flac:d7f583a9e944076835288e2884b71021
Shntool
length expanded size cdr WAVE problems fmt ratio filename
1:21.01 14290796 B --- -- ---xx flac 0.4037 ddbb2010-12-11d01t01.flac
10:11.12 107808668 B --- -- ---xx flac 0.5387 ddbb2010-12-11d01t02.flac
7:35.40 80356124 B --- -- ---xx flac 0.5394 ddbb2010-12-11d01t03.flac
6:56.27 73445948 B --- -- ---xx flac 0.5289 ddbb2010-12-11d01t04.flac
10:12.53 108081500 B --- -- ---xx flac 0.5402 ddbb2010-12-11d01t05.flac
9:32.36 100985516 B --- -- ---xx flac 0.5201 ddbb2010-12-11d01t06.flac
45:49.19 484968552 B 0.5298 (6 files)
$ perl ../parse-etree.pl galactic2011-06-12/galactic2011-06-12.txt
**** galactic2011-06-12/galactic2011-06-12.txt
Artist: Galactic
Date: 2011/06/12
____Venue____
What Stage
Bonnaroo Music Festival
Manchester, TN
------
Track: 1 Name: Intro
Track: 2 Name: Who Took The Happiness
Track: 3 Name: I Don't Know But It Sure Is Funky (Corey)
Track: 4 Name: Never Called You Crazy (Corey)
Track: 5 Name: Keep Steppin
Track: 6 Name: Boe Money
Track: 7 Name: You Don't Know (corey)
Track: 8 Name: Night People (corey)
Track: 9 Name: Cineramascope
Track: 10 Name: Balkan Wedding
Track: 11 Name: Total destruction to your mind (corey)
Track: 12 Name: Corey Plead for Gulf Coast
Track: 13 Name: Heart of Steel (corey)
Track: 14 Name: Baker's dozen >
Track: 15 Name: Stanley Drums >
Track: 16 Name: Baker's Dozen
Track: 17 Name: How Many More Times (Corey)
____Comments____
Source: Soundfield SPS200 > Sound Devices 788t (24/48)
Location: FOB, DFC, 8.0 ft high
DSP: Sound Devices 788t > Wave Agent > Neundo 3 (sps200 szone vst, mixdown) > Wavelab 6 (fades, tracks, dither w/UV22 HR, resample) > FLAC v1.2.1 (L8) as build in TLH v2.6.0.(Build 168)
Recorded by: Daniel Kopp
Taped & Transferred by Daniel Kopp (taperhead@gmail.com)
Setlist help by featbase.net
*A Team Dirty South Recording*
//Please support artist by purchasing their albums, merch, and seeing their live shows. Also, tell your friends about them.//
One Set:
Galactic was joined entire performance by Corey Glover (Living Colour) and Corey Henry (Rebirth Brass Band)
$ perl ../parse-etree.pl gd1966-03-25.38/gd*txt
**** gd1966-03-25.38/gd1966-03-25.38.txt
Artist: Grateful Dead
Date: 1966/03/25
____Venue____
Troupers Hall
Los Angeles, CA
------
Track: 1 Name: Stealin'
Track: 2 Name: Jam
Track: 3 Name: Hey Little One
Track: 4 Name: Hog For You Baby
Track: 5 Name: You Don't Have To Ask
Track: 6 Name: Cold Rain And Snow
Track: 7 Name: Next Time You See Me
____Comments____
S:MR>DAT>ZA2>CD
Comments:
Thayer Jennings: After You Don't Have To Ask,
Garcia says: "Okay, we'll be back in just a few scant minutes."
& Lesh: "We're gonna take a little break now.
Don't forget: on the 6th, 7th, 8th, 9th..."(cut).
DeadBase X: After Hey Little One -- Bob: "Hey Little One".
After Cold Rain And Snow -- Bobby: "That was Cold Rain And Snow".
Transcribed by Teddy GoodBear: Troupers Hall was the meeting room
for a retired actor's club in Hollywood. The rent for the
gig could'nt. have been much. We did everything ourselves,
all in two days. We plastered handbills all over Hollywood.
Stage decor was a few lengths of paisley cloth purchased that
afternoon at a fabric store. For a box office, we had a card
table and a cigar box. Our not-quite-full house must have had
over a hundred people; and when the night was over, our net
take was $75. At 2 o'clock in the morning, we went to Cantor's
Deli on Fairfax and spent it all on dinner for everybody -- with
desert. -- Grateful Dead Family Album (page 43).
http://www.pompano.net/~goodbear/concert_art/03_25_66-1.html
http://www.pompano.net/~goodbear/concert_art/03_25_66-2.html
To listen to the show using "Real Audio":
http://sugarmegs.org/ram/gd3-25-66.ram
http://www.deadlegs.com/tunes/1960/1966/32566/32566.ram
Recordings:
30 SB. The complete list circulates in SBD.
The beginning of Stealin' is clipped with a significant portion
missing. The end of Next Time You See Me cuts with a significant
portion missing. Sometimes this recording incorrectly circulates
as 01/??/66 or 01/22/66. To see a recording box label,
(as per Michael Wanger letter, see 07/??/66), from Golden State
Recorders:
http://www.pompano.net/~goodbear/concert_art/03_25_66-3.html
Contributors:
Jeff Tiedrich <jeff@tiedrich.com>, Thayer Jennings<htj@geocities.com>,
Teddy GoodBear <GoodBear@GeoCities.com>,
David Sorochty <scarletfire@erols.com>,
Michael Wanger <vidkid@well.com>,
Grateful Dead Family Album--p.43, DeadLegs <www.deadlegs.com>,
SugarMegs: Mike Maloney <www.SugarMegs.org>.