Good day everyone.

I am engaged in machine learning and recently switched to RNN. I'm trying to solve the problem of generating music, but not in the form of a midi file, but as a set of PMC data. As far as I understand from all the articles I have read, it is the recurrent networks that can cope with this task. The question is that I do not understand how it is necessary to set the input_shape model so that it learns. At the input I have a one-dimensional array of converted audio file data with a given samplerate. I would like to get a grid at the output, which would continue to generate sound when a random signal was applied to the input.

Having sat with this problem for about a week, I didn’t figure out how to make the resulting model unfold over the entire length of the input data and continue to generate the sequence of the desired length. Each time the models that I received were trained only on the allocated number of the last points in the data sequence, and did not perceive the entire audio file, which is the main advantage of the RNN, as I understand it.

Python3, tensorflow, keras is used.

  • I would also be very grateful to the person who would help translate this question into English in order to ask it on the English version of stackoverflow - Artemy Marchenko
  • Without the code and example of the input and output data, this question is unlikely to be answered in the English version of SO ... - MaxU
  • @MaxU, I can not give an example of code, for the reason that this is the crux of the matter. I can give only an example of input data, although it seemed to me that I described them in some detail and what I would like to receive. I can also give an example of a failed model, but I do not think that this will help in answering my question. - Artemy Marchenko
  • I'm just about the "failed" model - according to the rules of the forum, you need to give an example of code that does not work or with which problems have arisen. If the code is working, then there is no point in asking a question ...;) - MaxU

0