
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
LilyKDE is a Free Software project to make working with the LilyPond music typesetter within KDE very easy. If you are a LilyPond user and you have KDE, then LilyKDE is for you.
The main part of LilyKDE is a plugin for Kate, with the following features:
Run LilyPond on the current document with a keystroke.Show an embedded PDF preview. When you click on a note or another object, Kate jumps to the correct document and cursor position.A powerful Score Wizard to quickly set up a LilyPond document.Display LilyPond's messages in a log view. Error messages are also clickable.Direct MIDI input from a MIDI-keyboard or even your computer keyboard. This powerful function uses Rumor for the actual work, but it can automatically set the key and time signature according to the current document. You can adjust the metronome speed very easy by clicking on a "Tap" button. Many other settings are available.After LilyPond has run you can open, email or print PDF documents and play MIDI files with a mouseclick from within Kate.Automatic hyphenation of Lyric texts using dictionaries from e.g. OpenOffice.org or Scribus.
The other parts of LilyKDE are:
MIME type information and an icon for LilyPond filesA textedit:// service to make the clickable links work anywhere in KDEA Konqueror servicemenu and helper app to run LilyPond from within Konqueror on selected filesKatepart syntax highlighting for LilyPond documents (also part of KDE)
LilyKDE is translated into Dutch, French, Turkish, Spanish, Russian, Italian and German.
12 years ago
Changes in 0.6.6 (since 0.6.5):
- Translations update
- Minor improvements
Changes in 0.6.5 (since 0.6.4):
- Improve adding articulation etc. to selection. Now also recognizes chords and skips commands like \ff which were previously recognized as pitches.
- New Rhythm tab in Quick Insert panel with some powerful functions manipulating the rhythm of the selected music.
- Handling of non-ascii characters in filenames has been fixed.
Changes in 0.6.4 (since 0.6.3):
- New Quick Insert Panel, with already one convenient tool to insert articulations and ornaments, one by one or to a group of notes at once.
Changes in 0.6.3 (since 0.6.2):
- ScoreWizard: Choir: use \center-column if LilyPond >= 2.11.57
- config option to always empty log when a LilyPond job is started
- All vocal part types have now a checkbox Ambitus that adds the Ambitus_engraver to the correct staff or voice, showing the pitch range of that vocal part
- Example x-lilypond.conf file for Expand plugin added
12 years ago
Changes in 0.6.6 (since 0.6.5):
- Translations update
- Minor improvements
Changes in 0.6.5 (since 0.6.4):
- Improve adding articulation etc. to selection. Now also recognizes chords and skips commands like \ff which were previously recognized as pitches.
- New Rhythm tab in Quick Insert panel with some powerful functions manipulating the rhythm of the selected music.
- Handling of non-ascii characters in filenames has been fixed.
Changes in 0.6.4 (since 0.6.3):
- New Quick Insert Panel, with already one convenient tool to insert articulations and ornaments, one by one or to a group of notes at once.
Changes in 0.6.3 (since 0.6.2):
- ScoreWizard: Choir: use \center-column if LilyPond >= 2.11.57
- config option to always empty log when a LilyPond job is started
- All vocal part types have now a checkbox Ambitus that adds the Ambitus_engraver to the correct staff or voice, showing the pitch range of that vocal part
- Example x-lilypond.conf file for Expand plugin added
wbsoft
12 years ago
Report
wbsoft
12 years ago
Another plan is to integrate rumor so you can play on a keyboard and have the notes appear in Kate. But I'll have to buy a keyboard first :-)
Some other functions I think of:
- import wizard (Midi, musicxml and other formats)
- generate PDF with ly-file embedded, and easily re-open such PDFs for further editing (using pdftk)
- splitting and merging notes and articulations/dynamics etc.
- playing the notes or melody at the cursor
- convert relative/absolute
- transpose music
- scheme tool (type some Lily input and it shows the output of \displayMusic)
- (auto)insert or remove barchecks (|)
- etc.
Report
wbsoft
12 years ago
That even got worse when I upgraded my Python to 2.5. What follows is technical but may be useful to other plugin devvers (I can imagine parts of LilyKDE are useful for other type of (PDF)document-building plugins).
When developing Python plugins with Pate there is a small problem you need to take care of: When you let some types of KDE or Qt resources (like a QCursor or a KConfig object) live in the global Python module space, they seem to be freed multiple times, leading to crashes, because Pate (the embedded Python interpreter) cleans up its objects, but Kate, KDE and Qt itself also clean up all the objects they track.
Using valgrind I discovered that a QCursor object (set as a default argument) got deallocated by QApplication as well as Python. Changing the function so that the QCursor object was only created in the local scope of the function made the crashes go away.
Anyway, revision 235[1] contains the fix and the next LilyKDE version (that will be 0.4.10) as well. So if you are suffering of Kate crashes, let me know or just use the svn version (that most times is quite stable).
I hope you enjoy LilyKDE as much as I do, in both using and developing it.
[1]http://code.google.com/p/lilykde/source/diff?r=235&format=side&path=/trunk/lilykde/util.py
Report
toastyvollyball
12 years ago
Report
wbsoft
12 years ago
Report
sisko78
12 years ago
Would like to try LilyKDE.
I get following error messages when I try to acticate the pate plugin in kate:
sys:1: RuntimeWarning: Python C API version mismatch for module pate: This Python has API version 1012, module pate has version 1013.
sys:1: RuntimeWarning: Python C API version mismatch for module kateinterface: This Python has API version 1012, module kateinterface has version 1013.
sys:1: RuntimeWarning: Python C API version mismatch for module ktexteditor: This Python has API version 1012, module ktexteditor has version 1013.
KCrash: Application 'kate' crashing...
I have a debian based distribution (Kubuntu 7.10), which pakage is too old here? (and why did no one else have this problem, kubuntu 7.10 is not that old)
Thanks
Report
wbsoft
12 years ago
http://blog.stochasticbytes.com/2007/11/installing-pate-for-kate.html
Which versions do you use (python and Pâté)?
Report
sisko78
12 years ago
Python related packages:
http://ubuntuusers.de/paste/96580/
I will try it again, perhaps something went wrong when I compiled pate.
Report
wbsoft
12 years ago
Report
sisko78
12 years ago
It cant load the lilyKDE plugin. I get following errors:
kate: disabled plugins: autobookmark
Traceback (most recent call last):
File "/usr/share/apps/kate/pyplugins/lilypond.py", line 13, in <module>
from lilykde.about import *
ImportError: No module named about
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'
Original exception was:
Traceback (most recent call last):
File "/usr/share/apps/kate/pyplugins/lilypond.py", line 13, in <module>
from lilykde.about import *
ImportError: No module named about
*** Could not load plugin '/usr/share/apps/kate/pyplugins' ***
Traceback (most recent call last):
File "/home/sisko78/.kde/share/apps/kate/pyplugins/lilypond.py", line 13, in <module>
from lilykde.about import *
ImportError: No module named about
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'
Original exception was:
Traceback (most recent call last):
File "/home/sisko78/.kde/share/apps/kate/pyplugins/lilypond.py", line 13, in <module>
from lilykde.about import *
ImportError: No module named about
*** Could not load plugin '/home/sisko78/.kde/share/apps/kate/pyplugins' ***
Report
wbsoft
12 years ago
Report
wbsoft
12 years ago
So currently Python 2.4 may be your best bet, but it is my intention to fully support Python 2.4, 2.5 and 2.6 as it comes out.
Report
wbsoft
12 years ago
Strange! Do you have ~/.kde/share/apps/lilykde/lilykde/about.py ?
Did you make && make install in the most recent LilyKDE version?
What gives this at a python prompt:
$ python
>>> from kdecore import KStandardDirs
>>> map(unicode, KStandardDirs().findDirs("data", "lilykde"))
Report
sisko78
12 years ago
I think I did only "make install" as user.
I think this was mentioned in the Readme?
Now it works, thanks!
Report
dovidhalevi
12 years ago
(The fltk editor exists, does not support UTF8--I compiled fltk for UTF8 could presumably get that working with an appropriate font on his editor pane.)
The main dependency for LilyKDE is the python bindings. Somehow, KDE bindings take so much resources to build up that they crash the compiler.
Report
wbsoft
12 years ago
Report
dovidhalevi
12 years ago
Report
helmerj
12 years ago
I am trying to install on kde 2.5.9 on OpenSuse 10.3 but the installation fails. a "make install" results in this:
Installing LilyPond icon and mimetype:
cp ly.png ly.svg /home/helmerj/.kde/share/icons/
cp x-lilypond.desktop /home/helmerj/.kde/share/mimelnk/text/
Installing LilyPond syntax highlighting:
cp lilypond.xml /home/helmerj/.kde/share/apps/katepart/syntax/
Installing textedit integration:
cp textedit.protocol /home/helmerj/.kde/share/services/
cp ktexteditservice.py /home/helmerj/.kde/share/apps/lilykde/
cp: cannot create regular file `/home/helmerj/.kde/share/apps/lilykde/': Is a directory
make: *** [install-textedit] Error 1
Cheers
Juergen
Report
wbsoft
12 years ago
Report
wbsoft
12 years ago
Report
stuartquimby
12 years ago
Thanks for working on this, it looks great! I love lilypond, and have been using kate as my main editor for awhile, so your app seems perfect.
I've gotten as far as installing cmake (kubuntu 7.10 in a kde4 session). When trying to configure pate (the only missing dependency), i get:
"configure: Cannot find the Kate plugin directory at the specified prefix (searched for /usr/share/apps/kate/plugins). Pate must be installed in the same prefix as KDE applications"
which i have no idea how to deal with. Any clues you could offer?
Stuart
Report
m0nk
12 years ago
you should start a KDE3 session first to avoid trouble with paths and variables. Then start with
[i]./configure --prefix=`kde-config --prefix`. This should do the thing.
Remember, that KDE4 is not complete yet.
Greetings
m0nk
Report
m0nk
12 years ago
Report
wbsoft
12 years ago
Report
stuartquimby
12 years ago
Thanks for working on this, it looks great! I love lilypond, and have been using kate as my main editor for awhile, so your app seems perfect.
I've gotten as far as installing cmake (kubuntu 7.10 in a kde4 session). When trying to configure pate (the only missing dependency), i get:
"configure: Cannot find the Kate plugin directory at the specified prefix (searched for /usr/share/apps/kate/plugins). Pate must be installed in the same prefix as KDE applications"
which i have no idea how to deal with. Any clues you could offer?
Stuart
Report