Is there a possibility to generate more complex music using LSTM, instead of only piano notes (all the tutorials are about piano music, and I can't find more complex stuff)?
I'm thinking about training the model with different instrumentals, but I don't know how to convert a normal music file (.mp3 or .wav) to network input or how to extract instruments from music file. My model is adaptation from this post
Do you have any idea?
model = Sequential()
model.add(LSTM(128,input_shape=(network_input.shape[1],
network_input.shape[2]), return_sequences=True))
model.add(Dropout(0.3))
model.add(LSTM(64, return_sequences=True))
model.add(Dropout(0.3))
model.add(LSTM(32))
model.add(Dense(32))
model.add(Dropout(0.3))
model.add(Dense(n_vocab))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy', optimizer='rmsprop')