question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Coconet: Add harmony to melody

See original GitHub issue

I would like to use Coconet like it is used in todays Google Doodle to add 3 voices to a melody line: https://www.google.com/doodles/celebrating-johann-sebastian-bach

I am in the magenta/models/coconet subdirectory and I can use sh sample_bazel.sh /tmp/coconet_checkpoint/coconet-64layers-128filters/ to generate a new piece.

How can I use coconet to add harmony to a midi melody line instead of generating a complete new piece?

I tried using the prime_midi_melody_fpath argument in the coconet_sample.py file, but to no avail, and it is not clear for me how to use it correctly.

Are there any instructions on how to accomplish this?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
vimpostorcommented, Mar 21, 2019

@ak9250 See #1292

You have to replace the content of the checkpoint file with:

model_checkpoint_path: "best_model.ckpt"
1reaction
czhuangcommented, Apr 3, 2019

You can find the JSB Chorale dataset here: https://github.com/czhuang/JSB-Chorales-dataset

There’s a Jsb16thSeparated.npz there and the READ.md includes some description of the format.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coconet: Add harmony to melody · Issue #1481 - GitHub
I would like to use Coconet like it is used in todays Google Doodle to add 3 voices to a melody line: ...
Read more >
Adding Harmony To Melody - Open Up Your Possibilities On ...
Stay motivated with direct access to real teachers! Get personal support from our in-house team of teachers through personal feedback, ...
Read more >
Coconet: the ML model behind today's Bach Doodle - Magenta
You can create your own melody, and the machine learning model will harmonize it in Bach's style. In this blog post, we introduce...
Read more >
Adding Harmony To Melody On The Piano - - Pianote
To add harmony you need to be able to know what other tones will compliment the notes you are already playing. This can...
Read more >
Automatic Music Completion Based on Joint Optimization of ...
put any combination of partial harmonies, melodies and voicings. ... networks, and the similar Coconet [18], which is based on a con-.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found