Re: using python snippets in Lilypond

2015-06-21 Thread Urs Liska
Am 21. Juni 2015 16:28:49 MESZ, schrieb David Kastrup d...@gnu.org: Avner avnerdor...@gmail.com writes: Dear All, I understand that there is a way to use python snippets within a lilypond score. Not that I know of, so it would seem that any such possibility would not be advertised widely

Re: using python snippets in Lilypond

2015-06-21 Thread Avner Dorman
So I create the python snippet - how do I then call it in the score? I apologize if this is too basic of a question... Thanks! Avner On Sun, Jun 21, 2015 at 10:36 AM, Peter Bjuhr peterbj...@gmail.com wrote: On 2015-06-21 16:28, David Kastrup wrote: Dear All, I understand that there is

Re: using python snippets in Lilypond

2015-06-21 Thread Peter Bjuhr
On 2015-06-21 16:28, David Kastrup wrote: Dear All, I understand that there is a way to use python snippets within a lilypond score. Not that I know of, so it would seem that any such possibility would not be advertised widely and definitely not be a core feature of LilyPond. The LilyPond

Re: using python snippets in Lilypond

2015-06-21 Thread Peter Bjuhr
On 2015-06-21 16:47, Urs Liska wrote: Just a question: would it be possible to call a Python script from Scheme (this should be possible) and use its output in LilyPond? Maybe you'll find some answers here: http://www.zak.co.il/a/itches/pyguile Best Peter

Re: using python snippets in Lilypond

2015-06-21 Thread Peter Bjuhr
Yes, you can use Python snippets in Frescobaldi, but not in the LilyPond code/score directly - instead they are created in a special Snippets editor. So I create the python snippet - how do I then call it in the score? I apologize if this is too basic of a question... No I don't think it

Re: using python snippets in Lilypond

2015-06-21 Thread Paul Morris
On Jun 21, 2015, at 10:41 AM, Avner Dorman avnerdor...@gmail.com wrote: So I create the python snippet - how do I then call it in the score? In Frescobaldi go to the Tools menu and select “Snippets”. (or Snippets menu Manage Snippets…) The snippets panel appears. Find a snippet in the list

Re: using python snippets in Lilypond

2015-06-21 Thread Paul Morris
On Jun 21, 2015, at 11:02 AM, Peter Bjuhr peterbj...@gmail.com wrote: If it's changes you perform regularly on the score, a Snippet could conveniently be applied to a keyboard shortcut or to the Snippets menu - otherways you run it from the Snippets manager. Does anyone know if there is a

Re: using python snippets in Lilypond

2015-06-21 Thread Simon Albrecht
Am 21.06.2015 um 16:41 schrieb Avner Dorman: So I create the python snippet - how do I then call it in the score? You don’t call it in the score, but on the source file: Python may be used to aid in writing a source file, which is then processed by Lilypond. HTH, Simon

Re: using python snippets in Lilypond

2015-06-21 Thread David Kastrup
Avner avnerdor...@gmail.com writes: Dear All, I understand that there is a way to use python snippets within a lilypond score. Not that I know of, so it would seem that any such possibility would not be advertised widely and definitely not be a core feature of LilyPond. The LilyPond

Re: using python snippets in Lilypond

2015-06-21 Thread Urs Liska
Am 21. Juni 2015 16:36:06 MESZ, schrieb Peter Bjuhr peterbj...@gmail.com: On 2015-06-21 16:28, David Kastrup wrote: Dear All, I understand that there is a way to use python snippets within a lilypond score. Not that I know of, so it would seem that any such possibility would not be

RE: using python snippets in Lilypond

2015-06-21 Thread Stephen MacNeil
do you mean like this? http://www.python-course.eu/python_scores.php Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: using python snippets in Lilypond

2015-06-21 Thread Peter Bjuhr
On 2015-06-21 18:37, Paul Morris wrote: If it's changes you perform regularly on the score, a Snippet could conveniently be applied to a keyboard shortcut or to the Snippets menu - otherways you run it from the Snippets manager. Does anyone know if there is a way to add these snippets to

Re: using python snippets in Lilypond

2015-06-21 Thread Vaughan McAlley
On 22 June 2015 at 04:51, Urs Liska u...@openlilylib.org wrote: Am 21.06.2015 um 18:25 schrieb Peter Bjuhr: On 2015-06-21 16:47, Urs Liska wrote: Just a question: would it be possible to call a Python script from Scheme (this should be possible) and use its output in LilyPond? Maybe

Re: using python snippets in Lilypond

2015-06-21 Thread Urs Liska
Am 21.06.2015 um 18:25 schrieb Peter Bjuhr: On 2015-06-21 16:47, Urs Liska wrote: Just a question: would it be possible to call a Python script from Scheme (this should be possible) and use its output in LilyPond? Maybe you'll find some answers here:

Re: using python snippets in Lilypond

2015-06-21 Thread Avner Dorman
Thank you so much everyone! It works perfectly and I've learned a whole lot! All the best, Avner On Sun, Jun 21, 2015 at 3:47 PM, Paul Morris p...@paulwmorris.com wrote: On Jun 21, 2015, at 1:00 PM, Peter Bjuhr peterbj...@gmail.com wrote: Does anyone know if there is a way to add these

Re: using python snippets in Lilypond

2015-06-21 Thread Paul Morris
On Jun 21, 2015, at 1:00 PM, Peter Bjuhr peterbj...@gmail.com wrote: Does anyone know if there is a way to add these snippets to the snippets menu in Frescobaldi? If there is I haven’t been able to find it. It would be much more convenient to access them there (rather than via the

Re: using python snippets in Lilypond

2015-06-21 Thread Avner Dorman
I think this is a very interesting idea (would be useful for me). On Sun, Jun 21, 2015 at 2:51 PM, Urs Liska u...@openlilylib.org wrote: Am 21.06.2015 um 18:25 schrieb Peter Bjuhr: On 2015-06-21 16:47, Urs Liska wrote: Just a question: would it be possible to call a Python script from