Skip to content
Snippets Groups Projects
Commit b7158bc8 authored by deuce's avatar deuce
Browse files

Do frequency rounding rather than chopping off the integer part

(Noticable at the lower notes)
parent 6ddac6ec
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ void playnote(int notenum, int notelen, int dotted) ...@@ -169,7 +169,7 @@ void playnote(int notenum, int notelen, int dotted)
break; break;
} }
duration-=pauselen; duration-=pauselen;
BEEP(note_frequency[notenum]/1000,duration); BEEP((note_frequency[notenum]+500)/1000,duration);
SLEEP(pauselen); SLEEP(pauselen);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment