Return all the triads in key. Implemented using a cache.
(key)
| 178 | |
| 179 | |
| 180 | def triads(key): |
| 181 | """Return all the triads in key. |
| 182 | |
| 183 | Implemented using a cache. |
| 184 | """ |
| 185 | if key in _triads_cache: |
| 186 | return _triads_cache[key] |
| 187 | res = [triad(x, key) for x in keys.get_notes(key)] |
| 188 | _triads_cache[key] = res |
| 189 | return res |
| 190 | |
| 191 | |
| 192 | def major_triad(note): |
no test coverage detected