Comments (2)
A small improvement is that 2.0.4 (current git) will contain the possibility to define a main() function in the snippet that may do everything it wants to. The function may return a QTextCursor to be set (or alter the existing cursor instead).
from frescobaldi.
I would love to know more about the snippet API. I know documenting APIs is a pain, but if you could give me a simple working example, it could be enough to get me started.
What I would like is a one-click musica ficta button. I see a note on the score that I want to sharpen with musica ficta, I click on the note, which places the cursor to the left of the note. Pressing the shortcut key does two things:
Puts "\ficta " before the note
Transposes the note from c to cis
I can almost do this with the Replace function:
Find:
([a-g])
Replace:
\ficta \1is
But firstly it won’t deal with sharpening 'bes' properly, and secondly it ties up the Find-Replace interface. I want to look through a score and be able to do a few different functions with different keystrokes.
From this snippet I would learn how to get the next note token, how to transpose it, and how to add extra stuff to the start.
Thanks for the help with the \melisma \melismaEnd snippet and spanner command– it has saved me a lot of time! Happy New Year...
Vaughan
from frescobaldi.
Related Issues (20)
- RuntimeError: wrapped C/C object of type TabBar has been deleted HOT 1
- AttributeError: 'NoneType' object has no attribute 'document' HOT 1
- AttributeError: 'WebEngineDummy' object has no attribute 'view' HOT 1
- Music view: prefer to show most recent output file HOT 2
- RuntimeError: wrapped C/C object of type TabBar has been deleted HOT 3
- Upgrade to pyqt6? HOT 1
- RuntimeError: wrapped C/C object of type QAction has been deleted HOT 1
- Frescobaldi fails to process files with a semicolon in their filename HOT 1
- Feature Request: Simple Midi Record / fast edit
- api-ms-win-core-path-l1-1-0.dll missing HOT 3
- Asking for compatibility of Windows 7 with previous versions of Frescobaldi and Lilypond HOT 1
- Weird issues with UI scaling on high screen resolution
- TypeError: cannot create weak reference to 'NoneType' object
- RecursionError: maximum recursion depth exceeded while calling a Python object
- Freezes on restart HOT 1
- RuntimeError: wrapped C/C object of type TabBar has been deleted HOT 1
- RuntimeError: wrapped C/C object of type QAction has been deleted
- Copy as Colored HTML does not work in Linux unless "plain text" setting is checked HOT 4
- RuntimeError: wrapped C/C object of type TabBar has been deleted HOT 1
- Patterns to match in text (including comments) regexes not saving
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frescobaldi.