Help for this page

Select Code to Download


  1. or download this
    sub note_to_sound {
        my ($note) = @_;
    ...
    
    Test::More::ok (abs($noteCounts{$_} - $nominal) < 200, "Random distrib
    +ution of $_: $noteCounts{$_}")
        for map {note_to_sound($_)} 'a' .. 'g';
    
  2. or download this
    package SoundOfMusicSong;
    use strict;
    ...
        
        return $SoM{$note}{sound};
    }