Group: alt.guitar.beginner

beginner.

Add group to favorites Add group to favorites
   indietro Back to post list     indietro Send new message to group
Search:

Post Subject:

Guitar chords' PDF generator - sources available

Reply from: Cyberiade . it Anonymous Remailer
Date: 14 Apr 2008, 00:53
Guitar chords' PDF generator - sources available

I have published on the alt.sources ( * groups.google.pl/group/alt.sources )
group the corrected sources of my program which draws the PDF
diagrams of the guitar chords, producing them from the simple text
descriptions, like:
"C,X,3:3,2:2,0,1:1,0"
"E,0,2:2,2:3,1:1,0,0"
(strictly: chord_name,6*fret_number[:finger_number] | 0 | X
0 - empty, X - mute)

The program needs Python (from * w w w .python.org ) and pyx
(from * pyx.sf . net ).
To extract the sources, you should just save the message starting from
the "#!/bin/sh" line, and then run it as the bash script (in Linux, Solaris
or other Un*x like system).
If you are unhappy Windows user, you can install cygwin from
* w w w .cygwin . com / and then proceed as above (or ask your friend
who uses a better operating system to extract the sources for you).

The program generates the chords.pdf file, which you can view in any PDF
viewer or print out.
The program is written in Python, so you can easily modify it to your needs.


Reply from: Lumpy
Date: 14 Apr 2008, 06:10
Re: Guitar chords' PDF generator - sources available

Cyberiade . it Anonymous Remailer wrote:
> I have published on the alt.sources
> ( * groups.google.pl/group/alt.sources ) group the corrected
> sources of my program which draws the PDF
> diagrams of the guitar chords, producing them from the simple text
> descriptions, like:
> "C,X,3:3,2:2,0,1:1,0"
> "E,0,2:2,2:3,1:1,0,0"
> (strictly: chord_name,6*fret_number[:finger_number] | 0 | X
> 0 - empty, X - mute)
>
> The program needs Python (from * w w w .python.org ) and pyx
> (from * pyx.sf . net ).
> To extract the sources, you should just save the message starting from
> the "#!/bin/sh" line, and then run it as the bash script (in Linux,
> Solaris
> or other Un*x like system).
> If you are unhappy Windows user, you can install cygwin from
> * w w w .cygwin . com / and then proceed as above (or ask your friend
> who uses a better operating system to extract the sources for you).
>
> The program generates the chords.pdf file, which you can view in any
> PDF viewer or print out.
> The program is written in Python, so you can easily modify it to your
> needs.

Wow! That certainly simplifies all that scale/chord stuff for me.



Reply from: Ernie Willson
Date: 14 Apr 2008, 22:04
Re: Guitar chords' PDF generator - sources available

You're right Lumpy. I used to be confused. This certainly makes things
clear.
EJ in NJ

Lumpy wrote:
> Cyberiade . it Anonymous Remailer wrote:
>> I have published on the alt.sources
>> ( * groups.google.pl/group/alt.sources ) group the corrected
>> sources of my program which draws the PDF
>> diagrams of the guitar chords, producing them from the simple text
>> descriptions, like:
>> "C,X,3:3,2:2,0,1:1,0"
>> "E,0,2:2,2:3,1:1,0,0"
>> (strictly: chord name,6*fret number[:finger number] | 0 | X
>> 0 - empty, X - mute)
>>
>> The program needs Python (from * w w w .python.org ) and pyx
>> (from * pyx.sf . net ).
>> To extract the sources, you should just save the message starting from
>> the "#!/bin/sh" line, and then run it as the bash script (in Linux,
>> Solaris
>> or other Un*x like system).
>> If you are unhappy Windows user, you can install cygwin from
>> * w w w .cygwin . com / and then proceed as above (or ask your friend
>> who uses a better operating system to extract the sources for you).
>>
>> The program generates the chords.pdf file, which you can view in any
>> PDF viewer or print out.
>> The program is written in Python, so you can easily modify it to your
>> needs.
>
> Wow! That certainly simplifies all that scale/chord stuff for me.
>
>

Reply from: Lumpy
Date: 14 Apr 2008, 22:48
Re: Guitar chords' PDF generator - sources available

Ernie Willson wrote:
> You're right Lumpy. I used to be confused. This certainly makes things
> clear.

You probably made a typo in the
"#!/bin/sh" line

[Grippo Snippo]

Cyberiade . it Anonymous Remailer wrote:
> > > I have published on the alt.sources
> > > ( * groups.google.pl/group/alt.sources ) group the corrected
> > > sources of my program which draws the PDF
> > > diagrams of the guitar chords, producing them from the simple text
> > > descriptions, like:
> > > "C,X,3:3,2:2,0,1:1,0"
> > > "E,0,2:2,2:3,1:1,0,0"
> > > (strictly: chord_name,6*fret_number[:finger_number] | 0 | X
> > > 0 - empty, X - mute)
> > >
> > > The program needs Python (from * w w w .python.org ) and pyx
> > > (from * pyx.sf . net ).
> > > To extract the sources, you should just save the message starting
> > > from the "#!/bin/sh" line, and then run it as the bash script (in
> > > Linux, Solaris
> > > or other Un*x like system).
> > > If you are unhappy Windows user, you can install cygwin from
> > > * w w w .cygwin . com / and then proceed as above (or ask your
> > > friend who uses a better operating system to extract the sources
> > > for you). The program generates the chords.pdf file, which you can
> > > view in
> > > any PDF viewer or print out.
> > > The program is written in Python, so you can easily modify it to
> > > your needs.




Reply from: Derek
Date: 14 Apr 2008, 22:52
Re: Guitar chords' PDF generator - sources available

You know, I seem to always have trouble with my bash script.

Reply from: Lumpy
Date: 15 Apr 2008, 00:25
Re: Guitar chords' PDF generator - sources available

Derek wrote:
> You know, I seem to always have trouble with my bash script.

Some people were born with talent.


Lumpy

In Your Ears for 40 Years
w w w .LumpyMusic . com




Reply from: J-Bo
Date: 15 Apr 2008, 03:25
Re: Guitar chords' PDF generator - sources available

On Apr 14, 6:25 pm, "Lumpy" <lu...@digitalcartography . com > wrote:
> Derek wrote:
> > You know, I seem to always have trouble with my bash script.
> Some people were born with talent.
Not me. I been practicing scales and chords for years. I think my
talent is only a couple more years away, because I CAN play a perfect
"E" after twenty minutes of warm ups. Anybody know any "songs of
scales" besides "do a dear"? After several years of practice, I still
can't get my thumb "right."

On a somewhat less tongue in cheek note, has anyone else experienced
"finger freeze?" I was gigging the other day and for the life of me,
I couldn't get my fretting fingers to move. I'd thing "ok, go from
that G and walk up that chord progression" and my fingers steadfastly
said "no thanks, we like it just fine on this G position." Tension,
nerves, ALS? I thought I was relaxed, but Dang. . . .


Reply from: Borked Pseudo Mailed
Date: 18 Apr 2008, 23:14
Re: Guitar chords' PDF generator - windows user solution

I had a problem with running the program on Windows.
On the other hand I didn't want to install Linux on my computer.
(In fact I was not allowed to, because it was my office laptop,
which I may use for my purposes, but may not install anything)

I heard about the Knoppix distribution, which may boot and run from
the DVD, without installing on the hard disk.

So I have downloaded the Knoppix from: * w w w .knopper . net /knoppix-mirrors/
In my case the file on the nearest mirror was:
* ftp.uni-kl.de/pub/linux/knoppix/DVD/KNOPPIX_V5.3.1DVD-2008-03-26-EN.iso
But you may select another one.
You can also go to * torrent.unix-ag.uni-kl.de/
And download via bittorrent:
* torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V5.3.1DVD-2008-03-26-EN.torrent

WARNING! THIS IS A BIG 4GB DOWNLOAD! IF YOU PAY PER BYTE, ESTIMATE THE COST
BEFORE THE DOWNLOAD!

Then I have burned the downloaded iso image on the DVD disk, and booted
my machine from it. Knoppix started without any problems (at least on my
laptop), and I have got the windows-like desktop.

I have clicked the "Terminal" icon, and switched to the administrator mode
with the "su" command:

$su
Then I have installed the lacking python-pyx package:
#apt-get update
#apt-get install python-pyx

I have run the web browser and opened the message with chord_drawer.py sources
in the "original message" mode:
* groups.google.pl/group/alt.sources/msg/4afa849a30795cc5?dmode=source
I have also opened the text editor (gedit).
In the web browser I have selected the message starting from the lines:

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.6.3).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `#!/bin/sh' line above, then type `sh FILE'.
#
lock_dir=_sh25634

and ending at the lines:

if rm -fr ${lock_dir}
then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
exit 1
fi
exit 0

I have copied the selected text to the gedit, and saved as "chord.sh" file.
In the another terminal, as a normal user (prompt was "$"), I have
run the saved script:

knoppix@Knoppix:/ramdisk/home/knoppix$ . ./chord.sh
x - created lock directory `_sh25634'.
x - extracting chord_charter.py (text)
x - removed lock directory `_sh25634'.

knoppix@Knoppix:~$

In this way I have got the working program, which I could run:
knoppix@Knoppix:/ramdisk/home/knoppix$ ./chord_charter.py

which has generated the PDF file, which I could view with the xpdf tool:
knoppix@Knoppix:/ramdisk/home/knoppix$ xpdf chords.pdf



Reply from: Lumpy
Date: 19 Apr 2008, 08:52
Re: Guitar chords' PDF generator - windows user solution

Borked Pseudo Mailed wrote:
> I had a problem with running the program on Windows.
> On the other hand I didn't want to install Linux on my computer.
> (In fact I was not allowed to, because it was my office laptop,
> which I may use for my purposes, but may not install anything)
>
> I heard about the Knoppix distribution, which may boot and run from
> the DVD, without installing on the hard disk.
>
> So I have downloaded the Knoppix from:
> * w w w .knopper . net /knoppix-mirrors/ In my case the file on the
> nearest mirror was:
> * ftp.uni-kl.de/pub/linux/knoppix/DVD/KNOPPIX_V5.3.1DVD-2008-03-26-EN.iso
> But you may select another one. You can also go to
> * torrent.unix-ag.uni-kl.de/
> And download via bittorrent:
> * torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V5.3.1DVD-2008-03-26-EN.torrent
>
> WARNING! THIS IS A BIG 4GB DOWNLOAD! IF YOU PAY PER BYTE, ESTIMATE
> THE COST BEFORE THE DOWNLOAD!
>
> Then I have burned the downloaded iso image on the DVD disk, and
> booted my machine from it. Knoppix started without any problems (at least
> on
> my laptop), and I have got the windows-like desktop.
>
> I have clicked the "Terminal" icon, and switched to the administrator
> mode with the "su" command:
>
> $su
> Then I have installed the lacking python-pyx package:
> #apt-get update
> #apt-get install python-pyx
>
> I have run the web browser and opened the message with
> chord_drawer.py sources in the "original message" mode:
> * groups.google.pl/group/alt.sources/msg/4afa849a30795cc5?dmode=source
> I have also opened the text editor (gedit).
> In the web browser I have selected the message starting from the
> lines:
> #!/bin/sh
> # This is a shell archive (produced by GNU sharutils 4.6.3).
> # To extract the files from this archive, save it to some FILE, remove
> # everything before the `#!/bin/sh' line above, then type `sh FILE'.
> #
> lock_dir=_sh25634
>
> and ending at the lines:
>
> if rm -fr ${lock_dir}
> then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
> else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
> exit 1
> fi
> exit 0
>
> I have copied the selected text to the gedit, and saved as "chord.sh"
> file. In the another terminal, as a normal user (prompt was "$"), I have
> run the saved script:
>
> knoppix@Knoppix:/ramdisk/home/knoppix$ . ./chord.sh
> x - created lock directory `_sh25634'.
> x - extracting chord_charter.py (text)
> x - removed lock directory `_sh25634'.
>
> knoppix@Knoppix:~$
>
> In this way I have got the working program, which I could run:
> knoppix@Knoppix:/ramdisk/home/knoppix$ ./chord_charter.py
>
> which has generated the PDF file, which I could view with the xpdf
> tool: knoppix@Knoppix:/ramdisk/home/knoppix$ xpdf chords.pdf


That must be one hell of a chord chart
you're trying to download.


Lumpy

In Your Ears for 40 Years
w w w .LumpyMusic . com




Reply from: Charmed Snark
Date: 21 Apr 2008, 18:06
Re: Guitar chords' PDF generator - windows user solution

Borked Pseudo Mailed expounded in
news:8aef062f3381c8febb66b1e2bde26f3e@pseudo.borked . net :

> I had a problem with running the program on Windows.
> On the other hand I didn't want to install Linux on my computer.
> (In fact I was not allowed to, because it was my office laptop,
> which I may use for my purposes, but may not install anything)
>
> I heard about the Knoppix distribution, which may boot and run from
> the DVD, without installing on the hard disk.

I have a similar situation with my company laptop. However,
you can get a "Linux like" environment (if you want), by
installing this:

* w w w .cygwin . com

It does take a certain amount of time to download and install
the basic system, but you don't have to do very much:

1. Download their setup.exe
2. Run setup
3. Choose a mirror site (close to you/best performance)
4. Leave with default "basic system" selections
5. Click next, and go for coffee (high speed inet recommended)
6. Click finish

If you want some other stuff, like C compilers, X Windows etc.,
then repeat #2, choose what you want, then repeat #5 & 6, until
you get everything you want.

I recommend that you add stuff in smallish "lumps" to avoid
complications, but it is otherwise fairly painless.

If you pick a bad/non-functioning mirror site, then choose
again and repeat.

Once setup, it is very nice to have a UNIX like environment on
an otherwise hostile environment. The only issue that I've
encountered with it, is that it can be painfully slow with
Spyware Doctor installed. YMMV.

Snark.

** Posted from * w w w .teranews . com **




Login:
  Username:    Password: 
 
   Lost Password? click here!
Thread:
  Lumpy
    Lumpy
     Derek
      Lumpy
       J-Bo
   Lumpy