Comments (7)
Hi,
The network as it is on the master branch only supports a mono track. If you'd like to support 2 tracks you can try using a multi-input multi-output network where the inputs/outputs are notes/duration/offset. That should allow you to have as many tracks as you want.
Additionally, you can try using something like MuseGAN to create multi-track files.
from classical-piano-composer.
But it doesn’t make sense. It is obvious that a piano has two tracks and this repo’s name is self explanatory. Anyway, which branch has multi track support??
from classical-piano-composer.
It does make sense. This is a single-track implementation. It only produces one note/chord for each offset so it would be difficult for it to be multi-track.
The multi-track support isn't ready. But it uses the multi-in/out method I detailed above.
from classical-piano-composer.
@binary-person you can merge the midi tracks into one single track using this:
https://github.com/jordan-bird/Keras-LSTM-Music-Generator/blob/master/convertmidis.py
Then use the new midis as your input to the network
The other way, like @Skuldur said is to have multiple inputs with the functional API but given that many midis have >2 tracks then it would eat resources and likely OOM
from classical-piano-composer.
The merging seems to provide a good effect on the result. I agree that by using multiple tracks, it would eat resources. I think that this repo should remain as is for the lessened complexity and easier understanding for future peeps.
from classical-piano-composer.
That's exactly the point of this repo. :)
I've made a more complex version of this project that I've been debating whether to merge into the repo, but I feel like this should remain simple for people that are just getting their feet wet in music generation. I do need to do some refactoring in this repo when I find the time, though 😅
from classical-piano-composer.
@Skuldur I would love to see your multi-track implementation. Do you have the repo link?
from classical-piano-composer.
Related Issues (20)
- A few issues (with solutions)
- Using weights trained on anohter computer HOT 1
- Nevermind
- Predicting the same note HOT 3
- randomSeed
- data file HOT 1
- ValueError(Shape error)
- ValueError(Shape error) while running predict.py iam getting this error. Anyone can help me,Thanks in advance HOT 15
- Can't Run with Tensorflow-gpu HOT 3
- Question about Parts used from the midi files
- Stuck on I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version HOT 2
- Accepting PRs?
- Alternate Instruments HOT 4
- np_utils is not defined
- music21.exceptions21.StreamException: HOT 3
- failed to find TimeSignature in meterStream; cannot process Measures HOT 1
- MIDI generated is just one note repeated HOT 4
- offset should be += 1 not += 0.5 in predict.py
- data/notes not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classical-piano-composer.