import numpy as np
import matplotlib.pyplot as plt
import IPython.display as ipd
sr = 44100
y = get_square_note(sr, 0, 1) # 1 second of note number 0
ipd.Audio(y, rate=sr)
sr = 44100
y = get_square_note(sr, 7, 0.5) # 0.5 seconds of note number 7
ipd.Audio(y, rate=sr)