[1]:
import automuse
import automuse.chord as chord
import automuse.modes as modes

import matplotlib.pyplot as plt
plt.rcParams['figure.dpi'] = 300

Visualising Notes

AutoMuse comes with utilities that visualise notes on a fretboard. These can be found in automuse.guitar.

First, let’s draw an empty fretboard.

[2]:
from automuse.guitar import draw_scale

draw_scale([], capo=0, width=13)
../../_images/guides_examples_guitar_2_0.png

Then, let’s draw a fretboard with all the notes. Sorry but I have ran out of transitional words.

[3]:
from automuse.guitar import draw_scale

draw_scale(list(automuse.NOTES), capo=0, width=15)
../../_images/guides_examples_guitar_4_0.png

Let’s visualise some notes next. By default, the visualiser shows all notes in the same class – for example, drawing \(C_5\) draws \(C_4\) and \(C_6\) as well. You can change it with an option, but please bear with the tutorial for now.

[4]:
draw_scale(chord.seventh("C5", modes.MAJOR_BLUES), 0, 20)
../../_images/guides_examples_guitar_6_0.png

Try a blues triad next!

[5]:
draw_scale(chord.chord("C5", modes.MAJOR_BLUES), 0, 20)
../../_images/guides_examples_guitar_8_0.png

Strict Mode

To only draw notes on specific octaves, use strict=True.

Up to the 12th fret, the guitar can play notes from E4 (52 in the MIDI standard) to E7 (88 in the MIDI standard), so let’s try the \(C_5\) major.

[6]:
draw_scale(chord.chord("C5", modes.MAJOR), 0, 15, strict=True)
../../_images/guides_examples_guitar_10_0.png