ahh!!!!!!! chopro - so sorry - never saw that before! Great!! That is exactly what i am looking for!
1 2008-03-07 01:31:28
Re: perl script to reformat chordie format (9 replies, posted in About Chordie)
2 2008-03-07 01:28:29
Re: perl script to reformat chordie format (9 replies, posted in About Chordie)
I have no idea what chopro is so i couldn't tell you. Maybe this feature exists already and i just don't know about it?? I gave a small example in my original post but here is another - basically i want the chords inline with the song and wrapped with brackets - this way it fits more easily on a single page.
I've got [C] sunshine [F] on a cloudy [C] day [F]
And when it's [C] cold outside
[F] I've got the month of [C] May [F]
[C] I [Dm] guess [F] you [G] say
[C] What can [Dm] make me [F] feel this [G] way
3 2008-03-05 19:52:25
Topic: Rating System? (0 replies, posted in About Chordie)
If you are ever looking for an enchancement, i would love to see a mechanism that would allow users to rate the accuracy of the songs posted. I spend a whack of time looking through the dozens of versions of each song looking for the one that got it most correct. We could then list the results of a search by these ratings and cut down our search time. Also, maybe even a way to "link" chord corrections to the orignally posted song - say if they got it mostly right, but you wanted to suggest a small amendment - rather than reposting the whole thing and creating yet another version, you could post suggestions - much like a blog might have a comments section at the bottom. Just some thoughts. Great service - i use it almost every day!
4 2008-03-05 19:47:16
Topic: perl script to reformat chordie format (9 replies, posted in About Chordie)
When i play live, i like to have the entire song (lyrics and chords) on one sheet of paper with a minimum of 12 pt font. I find the chordie format (with the chords on top) does not suit this very well. I created this hack of a perl script to reformat chordie songs the way i like to see them, so i thought i would share with those who might like to use it - you have to have perl installed of course - yes its a hack. Maybe chordie might see fit to incorporate this format one day? pretty please.
the format btw look like this.... I am [A] a song [E] these are my [D] lryics
#!/usr/bin/perl
# do a view source on your chordie song and paste the contents
# into a file name song.txt
$inFile = 'D:\chordie\song.txt';
# rename this output file to whatever you want
# this is where the formatted song will be output
$outFile = 'D:\chordie\formattedsong.txt';
open (INFILE, "$inFile")||die $!;
open (OUTFILE, ">$outFile")||die $!;
my $title = '';
my $artist = '';
my @chords = ();
my @lyrics = ();
while (<INFILE>){
if ($_ =~ /finaltitle/i){
($x,$y,$title) = split/>/,$_;
$title =~ s/<\/h1//gi;
$title =~ s/^\s//;
}
if ($_ =~ /finalartist/i){
($x,$y,$artist) = split/>/,$_;
$artist =~ s/<\/h2//gi;
$artist =~ s/^\s//;
chomp $artist;
print OUTFILE "$artist - $title\n\n";
}
if ($_ =~ /<tr class="cl">/){
$_ =~ s/<td> <\/td>//gi;
$_ =~ s/<tr class="cl">//gi;
$_ =~ s/<\/td>//gi;
$_ =~ s/<\/tr>//gi;
$_ =~ s/\n//gi;
@chords = split(/<td class="c">/,$_);
}
if ($_ =~ /<tr class="tl">/){
$_ =~ s/<td> <\/td>//gi;
$_ =~ s/<tr class="tl">//gi;
$_ =~ s/<\/td>//gi;
$_ =~ s/<\/tr>//gi;
@lyrics = split(/<td>/,$_);
my $i=0;
foreach $l (@lyrics){
$l =~ s/\n//gi;
$l =~ s/ //gi;
chomp $l;
$l =~ s/^\s//gi;
print OUTFILE "$l";
if ($chords[$i] =~ /\w/){
if ($l !~ /\w/){
print OUTFILE "[" . $chords[$i] . "] ";
}else{
print OUTFILE " [" . $chords[$i] . "] ";
}
}
$i++;
}
print OUTFILE "\n";
@chords =();
@lyrics = ();
}
}
print "Done. Press any key to exit.";
$in = <STDIN>;
5 2007-10-12 19:06:05
Topic: chord placement (0 replies, posted in About Chordie)
In order that i can fit songs onto a single page, i typically prefer to embed the chords in the lyrics surrounding them with brackets like so [A] this is [D] a song [E]
is this an option already available that i am missing? If not, it sure would be a great feature if possible.
Also, some better search options right on the front page (like a text box for artist and another for song title - that could take partial matches) would save tons of time scrolling and search through listings.
Other than that, this site is fantastic! Thanks for running it.