Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: utf8 hash keys revisited: How can i use musical symbols as hash keys?

by RonW (Parson)
on Oct 07, 2014 at 22:11 UTC ( [id://1103117]=note: print w/replies, xml ) Need Help??


in reply to Re: utf8 hash keys revisited: How can i use musical symbols as hash keys?
in thread utf8 hash keys revisited: How can i use musical symbols as hash keys?

This is cool.

Also, the names in your data set are actually Scientific pitch notation, not Helmholtz

  • Comment on Re^2: utf8 hash keys revisited: How can i use musical symbols as hash keys?

Replies are listed 'Best First'.
Re^3: utf8 hash keys revisited: How can i use musical symbols as hash keys?
by Jim (Curate) on Oct 07, 2014 at 22:56 UTC
    Also, the names in your data set are actually Scientific pitch notation, not Helmholtz

    Look again. They're Helmholtz names, not scientific names. Except that I screwed up and inadvertently continued to use subscripts instead of superscripts when I got to c¹. I just fixed them.

      In this diagram, the octaves are designated by "ticks" following the note name. Your data set uses numbers, like in this other diagram.

      Maybe the diagrams are incorrect?

        The diagrams are correct.

        Read the third item in the list of Variations in the Wikipedia article titled Helmholtz pitch notation. I chose to use this variation of Helmholtz pitch notation in my example Perl script because it seems more well-suited to computer use and digital typography. One thing that troubled me is that there are no Unicode characters that are low versions of the high prime characters:  PRIME U+2032 (′), DOUBLE PRIME U+2033 (″), TRIPLE PRIME U+2034 (‴), etc.

        I think the original Helmholtz Notation for 440Hz/MIDI #69 is a′.

        Just a variation of this kind of notation is a¹.

        In Scientific Pitch Notation this is A₄.

        "It is designated A₄ in scientific pitch notation because of the note's position as the fourth A key on a standard 88-key piano keyboard. On MIDI, it is note 69."

        Source

        And Jim wrote: a¹,0,69,440.0000000000.

        Best regard, Karl

        «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found