Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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 ( #1103121=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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?

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.

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

Replies are listed 'Best First'.
Re^4: utf8 hash keys revisited: How can i use musical symbols as hash keys?
by RonW (Parson) on Oct 08, 2014 at 16:19 UTC

    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
Node Status?
node history
Node Type: note [id://1103121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2020-09-18 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I don’t succeed, I …










    Results (112 votes). Check out past polls.

    Notices?