from mimi import generator
import matplotlib.pyplot as plt

# get random tab and append to midi track

tab = generator.get_random_tab(tempo=70)

array = tab.to_array()

print(array.shape)

# piano roll
plt.imshow(array[:,:,0])

# onset event
plt.imshow(array[:,:,1])
603313ec81cc6adf291df512323c375a4c75863b
<mask token>

<mask token>
print(array.shape)
plt.imshow(array[:, :, 0])
plt.imshow(array[:, :, 1])

<mask token>
tab = generator.get_random_tab(tempo=70)
array = tab.to_array()
print(array.shape)
plt.imshow(array[:, :, 0])
plt.imshow(array[:, :, 1])

from mimi import generator
import matplotlib.pyplot as plt
tab = generator.get_random_tab(tempo=70)
array = tab.to_array()
print(array.shape)
plt.imshow(array[:, :, 0])
plt.imshow(array[:, :, 1])

from mimi import generator
import matplotlib.pyplot as plt

# get random tab and append to midi track

tab = generator.get_random_tab(tempo=70)

array = tab.to_array()

print(array.shape)

# piano roll
plt.imshow(array[:,:,0])

# onset event
plt.imshow(array[:,:,1])