Class: Chordy::C

Inherits:
Chord show all
Defined in:
lib/chordy/chords/c.rb

Constant Summary

Constants inherited from Chord

Chordy::Chord::CHORD_FLAGS

Instance Method Summary collapse

Methods inherited from Chord

#add_flag, all_flags, end_of_strings, #flags, #get_index_to_print, get_num_high_strings, #has_flag, #initialize, #pad_or_trim, #play, #print_flag, print_half_length_string_at, #print_string_at, #print_string_with_flag_at, #reverse_strings!, short_chords, start_of_strings, #strings

Constructor Details

This class inherits a constructor from Chordy::Chord

Instance Method Details

#play_augmented_5Object



50
51
52
# File 'lib/chordy/chords/c.rb', line 50

def play_augmented_5
  [0, 3, 2, 1, 1, 0]
end

#play_augmented_7Object



54
55
56
# File 'lib/chordy/chords/c.rb', line 54

def play_augmented_7
  [-1, 1, 2, 3, 1, 4]
end

#play_augmented_major_7Object



58
59
60
# File 'lib/chordy/chords/c.rb', line 58

def play_augmented_major_7
  [0, 3, 2, 1, 0, 0]
end

#play_diminished_5Object



62
63
64
# File 'lib/chordy/chords/c.rb', line 62

def play_diminished_5
  [-1, -1, 4, 5, 4, 2]
end

#play_diminished_7Object



66
67
68
# File 'lib/chordy/chords/c.rb', line 66

def play_diminished_7
  [-1, -1, 1, 2, 1, 2]
end

#play_diminished_9Object



70
71
72
# File 'lib/chordy/chords/c.rb', line 70

def play_diminished_9
  [-1, 3, 2, 3, 2, 3]
end

#play_dominant_7Object



14
15
16
# File 'lib/chordy/chords/c.rb', line 14

def play_dominant_7
  [0, 3, 2, 3, 1, 0]
end

#play_dominant_7_5Object



18
19
20
# File 'lib/chordy/chords/c.rb', line 18

def play_dominant_7_5
  [-1, 1, 2, 3, 1, 2]
end

#play_half_diminished_7Object



42
43
44
# File 'lib/chordy/chords/c.rb', line 42

def play_half_diminished_7
  [-1, 1, 1, 3, 1, 2]
end

#play_majorObject



6
7
8
# File 'lib/chordy/chords/c.rb', line 6

def play_major
  [3, 3, 2, 0, 1, 0]
end

#play_major_6Object



22
23
24
# File 'lib/chordy/chords/c.rb', line 22

def play_major_6
  [0, 3, 2, 1, 1, 0]
end

#play_major_7Object



26
27
28
# File 'lib/chordy/chords/c.rb', line 26

def play_major_7
  [0, 3, 2, 0, 0, 0]
end

#play_major_9Object



30
31
32
# File 'lib/chordy/chords/c.rb', line 30

def play_major_9
  [0, 3, 2, 3, 3, 0]
end

#play_minorObject



10
11
12
# File 'lib/chordy/chords/c.rb', line 10

def play_minor
  [-1, 3, 1, 0, 4, 3]
end

#play_minor_6Object



34
35
36
# File 'lib/chordy/chords/c.rb', line 34

def play_minor_6
  [-1, 3, 1, 2, 1, 3]
end

#play_minor_7Object



38
39
40
# File 'lib/chordy/chords/c.rb', line 38

def play_minor_7
  [-1, 1, 1, 3, 1, 3]
end

#play_minor_major_7Object



46
47
48
# File 'lib/chordy/chords/c.rb', line 46

def play_minor_major_7
  [-1, 2, 1, 0, 0, 3]
end

#play_suspended_4Object



74
75
76
# File 'lib/chordy/chords/c.rb', line 74

def play_suspended_4
  [3, 3, 3, 0, 1, 1]
end

#play_suspended_7Object



78
79
80
# File 'lib/chordy/chords/c.rb', line 78

def play_suspended_7
  [1, 1, 3, 3, 1, 1]
end