essi
Mmarimo
•Created by essi on 7/16/2024 in #help-support
Play MIDI files through `mo.audio()`
Wow, magic!!! Thanks++!
Edit: the code with
mo.state
.
14 replies
Mmarimo
•Created by essi on 7/16/2024 in #help-support
Play MIDI files through `mo.audio()`
Maybe that's an issue displaying the svg outcome?
14 replies
Mmarimo
•Created by essi on 7/16/2024 in #help-support
Play MIDI files through `mo.audio()`
Thanks for the tip! But even without state mutation, nothing is displayed.
14 replies
Mmarimo
•Created by essi on 7/16/2024 in #help-support
Play MIDI files through `mo.audio()`
Hi @Myles Scolnick, I played a bit with ABCjs, anywidget and Marimo, but without success. It's working in Jupyter, though. Have I done anything wrong?
`
14 replies
Mmarimo
•Created by essi on 7/16/2024 in #help-support
Play MIDI files through `mo.audio()`
Hi, MIDI format indeed contains musical instructions rather than sound, requiring a synthesizer or soundfont for playback. In Jupyter, music21 (a Python library for music representation) can display scores with
my_stream.show()
, using an installed software like MuseScore, or play MIDI via my_stream.show('midi')
. I developed Djalgo, a Python package for music composition using Jupyter and music21. As local installation is complex, I’m considering using Pyodide and Marimo on marimo.app. However, I need to solve display issues for both scores and MIDI. I’m considering developing a JavaScript MIDI player and integrating score rendering via e.g. ABCjs to overcome these challenges. However, I couldn't find a way to run JavaScript in Marimo cells, e.g.
14 replies