Class: Stave::Theory::Accidental
Instance Attribute Summary
Attributes inherited from Core::Lookup
#variant
Instance Method Summary
collapse
#==, each_key, find_by, #initialize, keys, string_keys, variant, variant?, variant_lookup, variants, where, with_options
Instance Method Details
#flat? ⇒ Boolean
10
11
12
|
# File 'lib/stave/theory/accidental.rb', line 10
def flat?
transform.negative?
end
|
#natural? ⇒ Boolean
14
15
16
|
# File 'lib/stave/theory/accidental.rb', line 14
def natural?
transform.zero?
end
|
#sharp? ⇒ Boolean
18
19
20
|
# File 'lib/stave/theory/accidental.rb', line 18
def sharp?
transform.positive?
end
|