ç絡çã«Music::Chordã¨åã¥ãã¾ããããããããã°ãæ°ããã¾ãã
ããã¯ãOSã®APIãå©ãã¦é³å£°ãåçããã¨ããããªãã°ããããã®ã§ã¯ãªãã¦ãæ§æé³ããã³ã¼ããã¼ã ã¨ããå¾ãã¨ãããããã£ãç¨éã«ä½¿ãã¾ãã
ããããèå¿ã®ã³ã¼ããã¼ã èå¥ã¯ã¾ã ã§ãã¦ããªãã®ã§ãã
"b"ããã©ããã"#"ãã·ã£ã¼ãã¨ãã¦æ±ã£ã¦ãã¾ãã
require "music/chord" cmin = Chord.new "C", "Eb", "G", "Bb" # ããã¶true cmin.minor? cmin.has_7th? # ã»ãã¯false cmin.major? cmin.has_9th? cmin.has_11th? cmin.diminished? cmin.augemented?
ããã使ãã¨åé³ã®æ¯è¼ãåé¡ãã§ãã¾ããã ãããªãã ãã£ã¦ãããã§ããã©ã