Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active March 26, 2020 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/0fc39052ca8a42cc044a3e5ce164526e to your computer and use it in GitHub Desktop.
Save aravindpai/0fc39052ca8a42cc044a3e5ce164526e to your computer and use it in GitHub Desktop.
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