Re: Lily dances

2010-12-26 Thread Patrick McCarty
Hi Mike,

On 2010-12-22, Mike Solomon wrote:
 Hey all,
 
 I am embarking on a new project to make lily dance.
 
 Attached are 3 files:
 
 1) svgdance.svg (best viewed in something that's not Internet
 Explorer - click on the notes and/or accidentals and see what
 happens!)

Very cool!

 3) 0001-Implements-metadata-for-SVG-manipulation.patch (needs to be
 applied to the current master - then, recompile everything in lily
 and scm and install)

Looks pretty straightforward.  As you can see, it's not too difficult
to sneak new data into the backends.  :-)

 I think the applications of this are broader than making grobs
 dance.  I am going to use it for a composition, but I think it can
 also be used for animated Schenker graphs, annotated scores,
 pedagogical sites, etc..

Sure, I think it definitely has further applications, even ones we
can't imagine right now.

 As always with my side projects, I could use some help!  If you are
 interested in this sorta thing and want to help make the code
 better, lemme know.  Before I work on integrating this into the
 post-2.14 source, I'd like for several people to play with it and
 share their thoughts!

Some random thoughts:

I find your implementation of the 'metadata property value very
interesting.  :-)  It's nice, but it doesn't feel very LilyPondy to
me.  Not sure how to improve it right now.

What about SVG+SMIL?  More browser makers are adding support for it...

I think it would be nice to add prewritten JavaScript functions, or
entire JavaScript libraries that users can pull in to use for
animation, or other purposes.  Of course, your set-svg-header could
be used to write custom functions, but it would be easier to include
functions (from the user's point of view) from separate JavaScript
files.

I tried to load svgdance.svg in Batik Squiggle, and an error was
generated:

  file:/home/pnorcks/svgdance.svg:
  The attribute style represents an invalid CSS declaration (cursor:hand;).
  Original message:
  The hand identifier is not a valid value for the cursor property.


---

Thanks for your work, and I'm looking forward to see how this
progresses.

Regards,
Patrick

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily Dances -- lilypond-user Digest, Vol 97, Issue 111

2010-12-23 Thread Mike Solomon
Dear Gordon,

The links in this posting are in fact attached files that should be downloaded 
to your local machine, not websites on the Internet.  If you look in the folder 
in which attachments are saved on your machine, you should be able to find and 
open them.

Cheers,
MS

On Dec 22, 2010, at 9:28 PM, Father Gordon Gilbert wrote:

 Hi all,
 
 Maybe it's my andediluvian dialup connection, but when I click on the
 links in this posting, or on similar ones lately, I get a 404 -- not
 found error.
 
 Is there something *I* and doing wrong, or what do I need to do to go
 where these links are suggesting?
 
 Gordon+
 
 On 22/12/2010, lilypond-user-requ...@gnu.org
 lilypond-user-requ...@gnu.org wrote:
 Send lilypond-user mailing list submissions to
  lilypond-user@gnu.org
 
 To subscribe or unsubscribe via the World Wide Web, visit
  http://lists.gnu.org/mailman/listinfo/lilypond-user
 or, via email, send a message with subject or body 'help' to
  lilypond-user-requ...@gnu.org
 
 You can reach the person managing the list at
  lilypond-user-ow...@gnu.org
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of lilypond-user digest...
 
 
 Today's Topics:
 
   1. Lily dances (Mike Solomon)
 
 
 --
 
 Message: 1
 Date: Wed, 22 Dec 2010 16:30:40 +0100
 From: Mike Solomon mike...@ufl.edu
 Subject: Lily dances
 To: lilypond-user lilypond-user@gnu.org, lilypond-de...@gnu.org
 Message-ID: 4ce8af93-f7a8-4cdd-b244-a7775807f...@ufl.edu
 Content-Type: text/plain; charset=us-ascii
 
 Hey all,
 
 I am embarking on a new project to make lily dance.
 
 Attached are 3 files:
 
 1) svgdance.svg (best viewed in something that's not Internet Explorer -
 click on the notes and/or accidentals and see what happens!)
 -- next part --
 A non-text attachment was scrubbed...
 Name: svgdance.svg
 Type: image/svg+xml
 Size: 10925 bytes
 Desc: not available
 Url :
 http://lists.gnu.org/archive/html/lilypond-user/attachments/20101222/441958db/svgdance.bin
 -- next part --
 
 2) svgdance.ly (which makes svgdance.svg after having applied...)
 -- next part --
 A non-text attachment was scrubbed...
 Name: svgdance.ly
 Type: application/octet-stream
 Size: 5087 bytes
 Desc: not available
 Url :
 http://lists.gnu.org/archive/html/lilypond-user/attachments/20101222/441958db/svgdance.obj
 -- next part --
 
 3) 0001-Implements-metadata-for-SVG-manipulation.patch (needs to be applied
 to the current master - then, recompile everything in lily and scm and
 install)
 -- next part --
 A non-text attachment was scrubbed...
 Name: 0001-Implements-metadata-for-SVG-manipulation.patch
 Type: application/octet-stream
 Size: 23802 bytes
 Desc: not available
 Url :
 http://lists.gnu.org/archive/html/lilypond-user/attachments/20101222/441958db/0001-Implements-metadata-for-SVG-manipulation.obj
 -- next part --
 
 I think the applications of this are broader than making grobs dance.  I am
 going to use it for a composition, but I think it can also be used for
 animated Schenker graphs, annotated scores, pedagogical sites, etc..
 
 As always with my side projects, I could use some help!  If you are
 interested in this sorta thing and want to help make the code better, lemme
 know.  Before I work on integrating this into the post-2.14 source, I'd like
 for several people to play with it and share their thoughts!
 
 Cheers,
 Mike
 
 --
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 End of lilypond-user Digest, Vol 97, Issue 111
 **
 
 
 
 -- 
 Fr. Gordon Gilbert
 Penetanguishene, ON


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily dances

2010-12-23 Thread Mike Solomon
On Dec 22, 2010, at 5:10 PM, Federico Bruni wrote:

 2010/12/22 Mike Solomon mike...@ufl.edu
 Hey all,
 
 I am embarking on a new project to make lily dance.
 
 Attached are 3 files:
 
 1) svgdance.svg (best viewed in something that's not Internet Explorer - 
 click on the notes and/or accidentals and see what happens!)
 
 
 Cool!
 
 Actually, only clicks on notes work here (FF4 and Opera), nothing happens if 
 I click on accidentals.
 Opera is the best (as usual with SVG), because the cursor changes when 
 hovering upon clickable items.
 
 
 
 I think the applications of this are broader than making grobs dance.  I am 
 going to use it for a composition, but I think it can also be used for 
 animated Schenker graphs, annotated scores, pedagogical sites, etc..
 
 
 Well, I'm going to write some personal notes about LilyPond usage
 and I'd like to render examples as SVG instead of PNG. So I'm very
 interested in everything related to LilyPond and SVG :)
  
 And I'm looking forward to point-and-click in SVG:
 http://code.google.com/p/lilypond/issues/detail?id=1372
 
 Cheers,
 Federico

Point and click can likely be a subset of this metadata property.  What you 
would need to do is create a javascript function that opened the .ly file at a 
given point (where this point was an argument to the function), and then have 
each drawn grob pass this function it's line # (and even column #) via the 
onclick attribute in its svg tag.

~Mike___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily dances

2010-12-23 Thread Mike Solomon

On Dec 22, 2010, at 10:21 PM, Jan Warchoł wrote:

 2010/12/22 Mike Solomon mike...@ufl.edu
 1) svgdance.svg (best viewed in something that's not Internet Explorer - 
 click on the notes and/or accidentals and see what happens!)
 
 Cool! Thanks for sharing :)
 
 cheers,
 Janek
 
 PS i opened it in Google Chrome and only the d flat was animated - when i 
 clicked on f sharp nothing happened...

Google Chrome is weird like that...in other versions I made, it omitted other 
graphical elements.  I suspect that it may be a bug in Chrome, although I am 
not sure.  The code works fine in other browsers.

Cheers,
MS___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily dances

2010-12-22 Thread Federico Bruni
2010/12/22 Mike Solomon mike...@ufl.edu

 Hey all,

 I am embarking on a new project to make lily dance.

 Attached are 3 files:

 1) svgdance.svg (best viewed in something that's not Internet Explorer -
 click on the notes and/or accidentals and see what happens!)


Cool!

Actually, only clicks on notes work here (FF4 and Opera), nothing happens if
I click on accidentals.
Opera is the best (as usual with SVG), because the cursor changes when
hovering upon clickable items.



 I think the applications of this are broader than making grobs dance.  I am
 going to use it for a composition, but I think it can also be used for
 animated Schenker graphs, annotated scores, pedagogical sites, etc..


Well, I'm going to write some personal notes about LilyPond usage
and I'd like to render examples as SVG instead of PNG. So I'm very
interested in everything related to LilyPond and SVG :)

And I'm looking forward to point-and-click in SVG:
http://code.google.com/p/lilypond/issues/detail?id=1372

Cheers,
Federico
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily Dances -- lilypond-user Digest, Vol 97, Issue 111

2010-12-22 Thread Father Gordon Gilbert
Hi all,

Maybe it's my andediluvian dialup connection, but when I click on the
links in this posting, or on similar ones lately, I get a 404 -- not
found error.

Is there something *I* and doing wrong, or what do I need to do to go
where these links are suggesting?

Gordon+

On 22/12/2010, lilypond-user-requ...@gnu.org
lilypond-user-requ...@gnu.org wrote:
 Send lilypond-user mailing list submissions to
   lilypond-user@gnu.org

 To subscribe or unsubscribe via the World Wide Web, visit
   http://lists.gnu.org/mailman/listinfo/lilypond-user
 or, via email, send a message with subject or body 'help' to
   lilypond-user-requ...@gnu.org

 You can reach the person managing the list at
   lilypond-user-ow...@gnu.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of lilypond-user digest...


 Today's Topics:

1. Lily dances (Mike Solomon)


 --

 Message: 1
 Date: Wed, 22 Dec 2010 16:30:40 +0100
 From: Mike Solomon mike...@ufl.edu
 Subject: Lily dances
 To: lilypond-user lilypond-user@gnu.org, lilypond-de...@gnu.org
 Message-ID: 4ce8af93-f7a8-4cdd-b244-a7775807f...@ufl.edu
 Content-Type: text/plain; charset=us-ascii

 Hey all,

 I am embarking on a new project to make lily dance.

 Attached are 3 files:

 1) svgdance.svg (best viewed in something that's not Internet Explorer -
 click on the notes and/or accidentals and see what happens!)
 -- next part --
 A non-text attachment was scrubbed...
 Name: svgdance.svg
 Type: image/svg+xml
 Size: 10925 bytes
 Desc: not available
 Url :
 http://lists.gnu.org/archive/html/lilypond-user/attachments/20101222/441958db/svgdance.bin
 -- next part --

 2) svgdance.ly (which makes svgdance.svg after having applied...)
 -- next part --
 A non-text attachment was scrubbed...
 Name: svgdance.ly
 Type: application/octet-stream
 Size: 5087 bytes
 Desc: not available
 Url :
 http://lists.gnu.org/archive/html/lilypond-user/attachments/20101222/441958db/svgdance.obj
 -- next part --

 3) 0001-Implements-metadata-for-SVG-manipulation.patch (needs to be applied
 to the current master - then, recompile everything in lily and scm and
 install)
 -- next part --
 A non-text attachment was scrubbed...
 Name: 0001-Implements-metadata-for-SVG-manipulation.patch
 Type: application/octet-stream
 Size: 23802 bytes
 Desc: not available
 Url :
 http://lists.gnu.org/archive/html/lilypond-user/attachments/20101222/441958db/0001-Implements-metadata-for-SVG-manipulation.obj
 -- next part --

 I think the applications of this are broader than making grobs dance.  I am
 going to use it for a composition, but I think it can also be used for
 animated Schenker graphs, annotated scores, pedagogical sites, etc..

 As always with my side projects, I could use some help!  If you are
 interested in this sorta thing and want to help make the code better, lemme
 know.  Before I work on integrating this into the post-2.14 source, I'd like
 for several people to play with it and share their thoughts!

 Cheers,
 Mike

 --

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


 End of lilypond-user Digest, Vol 97, Issue 111
 **



-- 
Fr. Gordon Gilbert
Penetanguishene, ON

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily dances

2010-12-22 Thread Jan Warchoł
2010/12/22 Mike Solomon mike...@ufl.edu

 1) svgdance.svg (best viewed in something that's not Internet Explorer -
 click on the notes and/or accidentals and see what happens!)


Cool! Thanks for sharing :)

cheers,
Janek

PS i opened it in Google Chrome and only the d flat was animated - when i
clicked on f sharp nothing happened...
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lily dances

2010-12-22 Thread Trevor Daniels


Federico Bruni wrote Wednesday, December 22, 2010 4:10 PM



2010/12/22 Mike Solomon mike...@ufl.edu

1) svgdance.svg (best viewed in something that's not Internet 
Explorer -

click on the notes and/or accidentals and see what happens!)


Actually, only clicks on notes work here (FF4 and Opera), nothing 
happens if

I click on accidentals.
Opera is the best (as usual with SVG), because the cursor changes 
when

hovering upon clickable items.


In spite of Mike's warning the dancing actually works perfectly
in IE8 - both notes and both accidentals dance beautifully!  But
the cursor doesn't change shape.

Trevor



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user