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.

Using pianoplayer inside Jupyter notebooks

See original GitHub issue

Have you looked at integrating pianoplayer with Jupyter notebooks?

I have a demo repository here which includes requirements to run the repo interactively on MyBinder.

To display the score should be simple if, if there’s a pianoplayer function available that returns the score as a PNG or SVG image file.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Alia-morsicommented, May 6, 2020

Ok i’ll let you know when I have one ready 😃)

1reaction
Alia-morsicommented, May 6, 2020

The tool can be used from any python code (including jupyter notebooks) by instantiating a Hand object, setting the parameters, and then calling the generate method of Hand objects. The python code in bin/pianoplayer (after line 118) can give a good indication on how to do so.

The finger labels are written to a music21 stream (the one passed as an argument to the reader function that’s used to instantiate the noteseq attribute of the Hand instance), so by using the .show method of music21 streams, you can generate several formats to see the labelled score.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I play a local video in my IPython notebook?
I've got a local video file (an .avi, but could be converted) that I would like to show a client (ie it is...
Read more >
How to Use Jupyter Notebook: A Beginner's Tutorial - Dataquest
Use this tutorial to learn how to create your first Jupyter Notebook, important terminology, and how easily notebooks can be shared and ...
Read more >
10 Youtubers Every Piano Player Needs to Watch in 2022
These are the Youtube masters piano players need to watch in 2022! Each of them brings you genuine, produced-for-Youtube piano & music content...
Read more >
Using Jupyter Notebooks in Data Science Research and ...
Additionally, Jupyter Notebooks can be used to teach programming and computational literacy. This panel discussion aims to highlight Jupyter use in research ...
Read more >
Installing Python Packages from a Jupyter Notebook
I most often see this manifest itself with the following issue: I installed package X and now I can't import it in the...
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