abcjs-music / obsidian-plugin-abcjs

Plugin which renders music notations from code blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Q: how to visualTranspose a specific score only?

VKondakoff opened this issue · comments

Hello!

I have multiple scores in one Obsidian note and when Im trying to visualTranspose one of them all others are transposed as well.

{
    "visualTranspose": -1
}
---
X: 1
K: C
| "Dm7" c d "G7" e f | "C" -f-f e c |

The workaround is to put "visualTranspose": 0 in the next score, and controlling this is quite difficult, when you have many visualTransposed scores. So there is a question: is there something like visualTranspose that is local to specific score? Something like %%visualtranspose?

Thank you!

I would link other issues that report the same problem. Namely, that, when an option is set, it applies to all the ABC blocks in the note. Like #32 for tablatures.
It seems that there is only one instance of the plugin and related one instance of abcjs. Hence any settings apply to all code blocks. It would be worth exploring if it is possible to have multiple instances running.