lib/mml2wav/scale.rb in mml2wav-0.0.1 vs lib/mml2wav/scale.rb in mml2wav-0.0.2
- old
+ new
@@ -1,14 +1,24 @@
module Mml2wav
module Scale
FREQUENCIES = {
- c: 261.626,
- d: 293.665,
- e: 329.628,
- f: 349.228,
- g: 391.995,
- a: 440.000,
- b: 493.883,
- r: 0,
+ "c" => 32.70325 ,
+ "c#" => 34.647875,
+ "c+" => 34.647875,
+ "d" => 36.708125,
+ "d#" => 38.890875,
+ "d+" => 38.890875,
+ "e" => 41.2035 ,
+ "f" => 43.6535 ,
+ "f#" => 46.24925 ,
+ "f+" => 46.24925 ,
+ "g" => 48.999375,
+ "g#" => 51.913125,
+ "g+" => 51.913125,
+ "a" => 55.0 ,
+ "a#" => 58.2705 ,
+ "a+" => 58.2705 ,
+ "b" => 61.735375,
+ "r" => 0,
}
end
end