Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active Mar 26, 2020
Embed
What would you like to do?
no_of_timesteps = 32
x = []
y = []
for note_ in new_music:
for i in range(0, len(note_) - no_of_timesteps, 1):
#preparing input and output sequences
input_ = note_[i:i + no_of_timesteps]
output = note_[i + no_of_timesteps]
x.append(input_)
y.append(output)
x=np.array(x)
y=np.array(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment