Click here to get back home

Proposed module: Music::ChordNamer

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Proposed module: Music::ChordNamer Jimi-Carlo Bukowski-Wills 03-14-2006
Posted by Jimi-Carlo Bukowski-Wills on March 14, 2006, 1:57 pm
Please log in for more thread options


Dear Perl Modulers

Re: Proposed module: Music::ChordNamer

I've already written it. You give it some notes, it works out what to
call the chord. Notes may be given as a list or a string. If
wantarray, it gives you all the names it came up with, most likely
first, otherwise it just gives you the most likely name.

It works by assuming that:

1) You give it the notes in order, from lowest to highest
2) The bottom note or the second to bottom note is either the root, 3rd
or 5th

It then goes through the six permutations of notes 1 or 2 being the 1st,
3rd or 5th... figures out what to call them based on what notes are in
them, and orders them by name-length (shortest first). Because of the
way they're named (eg, having no 3rd is given the penalty of extending
the name by the length of "no-3rd"), this always (in my testing of the
module) gives the correct name.

Diminished chords are handled also (by a special catch), including the
two types of sevenths.

So what do you think?? Is Music::ChordNamer the correct name for this
module??????

NOTE: This module would would form a lovely partnership with
Music::Image::Chord ... you could write a script/app/plugin/webpage that
automatically adds chord symbols to music or something.

Kind regards to all

Jimi

Posted by John Bokma on March 14, 2006, 2:24 pm
Please log in for more thread options



> So what do you think?? Is Music::ChordNamer the correct name for this
> module??????
>
> NOTE: This module would would form a lovely partnership with
> Music::Image::Chord ... you could write a script/app/plugin/webpage that
> automatically adds chord symbols to music or something.

If Music::Image::Chord could be renamed into

Music::Chord::Image

and yours to

Music:Chord:Namer

I prefer the latter anyway (over Music::ChordNamer), especially if there
are more Chord modules coming :-D.

--
John Experienced Perl programmer: http://castleamber.com/

Posted by Jimi-Carlo Bukowski-Wills on March 14, 2006, 2:58 pm
Please log in for more thread options


OK... Music::Chord::Namer it is!

Similar ThreadsPosted
Re: Proposed CPAN Module: Tk::Canvas::Music (renamed to Tk::Music) December 5, 2005, 2:18 am
New module proposed: XML::FOP May 25, 2005, 2:26 pm
Proposed Module: Compress::AsciiFlate March 10, 2006, 6:37 am
Proposed module: Number::NaryPP March 10, 2006, 6:46 am
Proposed Name Space DBIx::CopyRecords December 31, 2006, 2:18 pm
Naming consultation request (proposed Geo::ReadGRIB) April 25, 2006, 2:35 pm
Request for feedback: proposed new modules to aid VHDL projects February 24, 2006, 9:49 am
Lower case module name for non-pragma module January 4, 2005, 10:19 am
RFC: New module 'Module::Bundled::Files' August 26, 2005, 3:49 pm
help with an MD5.pm module!! September 3, 2005, 11:39 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap