Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: PGN (Chess) to MIDI

by gryphon (Abbot)
on Feb 21, 2005 at 04:38 UTC ( #432952=note: print w/replies, xml ) Need Help??


in reply to Re: PGN (Chess) to MIDI
in thread PGN (Chess) to MIDI

Greetings hsmyers,

Sure, go ahead and add it to Chess::PGN::Filter. Thing is, though, I think what I've come up with is only a very minimal, thrown together idea. All I did was assign a simple one-to-one map of notation-to-note. Even with this very basic map, the musical patterns are obvious. The patterns I've been hearing in some games definately justify spending time expanding the conversion process.

Right now, each primary piece (/KQBNR/) has a unique tone, but it's hard to tell each of them apart. And there's no distinguishment between white pieces and black pieces. I think a "better" musical scheme would be to have some way to audiably know which capital piece was being moved and by which side. I think such a scheme might require multiple notes to help audiably identify capitals. Also, and more interesting, is dynamics. I think a Qa2-f7 should be louder than a Qa2-c4, and the c4 move should be louder than a2-a4. Already a checking move and a castle are easily distinguishable, but that's about it.

A fun experiment is taking several games between the same two players and setting the tempo very, very fast.

gryphon
code('Perl') || die;

Replies are listed 'Best First'.
Re^3: PGN (Chess) to MIDI
by hsmyers (Canon) on Feb 21, 2005 at 05:23 UTC
    Excellant! If I add it, it gives it a friendly place to live and as you develope same, we can just continue the version thing. It might also get me to get back into things like various conversions (english to algebraic for instance) at any rate it seems like an interesting piece of reasearch. Have you thought about black using a minor key with white playing a compatible major? Tempo on forced moves could be automagically distinguished from otherwise and similar such. Lots of canvas, room for much embroidery!!

    --hsm

    "Never try to teach a pig to sing...it wastes your time and it annoys the pig."
Re^3: PGN (Chess) to MIDI
by wolfger (Deacon) on Feb 22, 2005 at 20:02 UTC
    Right now, each primary piece (/KQBNR/) has a unique tone, but it's hard to tell each of them apart. And there's no distinguishment between white pieces and black pieces. I think a "better" musical scheme would be to have some way to audiably know which capital piece was being moved and by which side.

    Maybe a different instrument for each piece, and a different octave for each player? 8 notes to an octave, and the board is 8x8... So, for example, an opening move of b1-c3 could be four notes (octave 1, note 2; o2,n1; o1,n3; o2,n3) of a flute, while black's first move might be d7-d5 (o3,n4; o4,n7; o3,n4; o4,n5) played on a pennywhistle. Or some such.
    x-axis, white = octave 1, notes 1-8
    y-axis, white = octave 2, notes 1-8
    x-axis, black = octave 3, notes 1-8
    y-axis, black = octave 4, notes 1-8
    pawn = pennywhistle
    rook = tuba
    knight = flute
    bishop = harpsichord
    queen = mandolin
    king = trumpet


    --
    Linux, sci-fi, and Nat Torkington, all at Penguicon 3.0
    perl -e 'print(map(chr,(0x4a,0x41,0x50,0x48,0xa)))'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://432952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2020-11-24 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?