obsidian-plugin-mmlabc
- Play MML (Music Macro Language) within Obsidian.
- Play chord progressions (Chord notation) as well.
Features
- By writing MML or chord progressions inside a code block:
- Musical staff notation (sheet music) is displayed.
- You can play the music by clicking.
- Designed for use cases such as sketching composition ideas.
- You can display phrases or chord progressions in multiple panes,
- and manually play each one, among other use cases.
Requirement
- Obsidian
Usage
- Write a code block in Obsidian like this:
MML (Music Macro Language)
```mml
cde
```
Chord progression (Chord notation)
```chord
C F
```
or
```chord
V7 I
```
What is the format for MML and chord progressions?
- Please refer to the mml2abc Demo and chord2mml Demo.
- You can select templates from a drop-down list.
- Samples will be added periodically.
- As this is in an experimental stage, breaking changes occur frequently. For details, please refer to mml2abc commits and chord2mml commits. (This plugin merely incorporates them.)
Installation
- Install the BRAT (Beta Reviewers Auto-update Tester) community plugin in Obsidian.
- Launch BRAT from the command palette or similar.
- Enter this GitHub URL.
- Verify that the musical staff notation is displayed when you write MML or chord progressions in a code block. (Refer to the above for input content.)
- When updating, using
brat checkor similar from the command palette is convenient. If changes are not reflected, restarting Obsidian may resolve the issue.
Note
What is the project’s goal?
- Play MML (Music Macro Language) in Obsidian.
- Play chord progressions in Obsidian.
- If playback stops working, prioritizing getting it to play again as much as possible.
What is NOT the project’s goal?
- High quality. High-sampling-rate playback with high-fidelity SoundFonts.
- High functionality. Building a large-scale, integrated music creation environment that enables all kinds of advanced editing. Real-time recording. Editing while playing. Building a playback and editing environment with diverse timbres and effects using other waveform synthesis engines like FM sound source engines or Tone.js. Turning your Obsidian into a DAW-equivalent music workstation.
- Integration. Enabling MIDI data integration with DAWs and synchronized performance via advanced import/export and MIDI transmission/reception.
- High performance. Uninterrupted playback of huge musical pieces across all environments, including smartphones.
- Stability. MML formats and chord progression notations without breaking changes.
- Compatibility. Automatic detection and conversion of all MML dialects and chord progression notation dialects.
Original README
Relationship with the original source
- This plugin is built upon the code of the Obsidian ABC.JS plugin.
- What this plugin does is use the transpiler mml2abc to convert MML in Obsidian code blocks into ABC Music notation, which abcjs can understand.
- Similarly, it uses chord2mml to convert Chord notation into MML.
- The Obsidian ABC.JS plugin—and abcjs, which it utilizes—are wonderful projects that make it possible to render sheet music and perform PCM software synthesizer playback using SoundFonts simply by inputting plain text characters. We express our utmost respect for the work of everyone involved in the project.
License
AGPL 3.0 (Because the original Obsidian ABC.JS plugin is AGPL 3.0)