Last active
December 21, 2015 04:48
-
-
Save akoluthic/6251723 to your computer and use it in GitHub Desktop.
Revisions
-
alexyoder renamed this gist
Aug 30, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
alexyoder revised this gist
Aug 30, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ function log2(val) { return Math.log(val) / Math.LN2; } //find the number of flags a musical note gets alert(log2(8) - 2); //8th notes get 1 flag alert(log2(128) - 2); //128th notes get 5 flags -
alexyoder revised this gist
Aug 30, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,6 @@ function log2(val) { return Math.log(val) / Math.LN2; } //find the number of beams a musical note gets alert(log2(8) - 2); //8th notes get 1 beam alert(log2(128) - 2); //128th notes get 5 beams -
akoluthic created this gist
Aug 16, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ function log2(val) { return Math.log(val) / Math.LN2; } alert(log2(128)); //alerts 7, as 128 is 2^7