Re: an open question

2018-03-28 Thread Jan-Peter Voigt

Hello Jacques,

yes, you are right. Any information without a "first class citizen" will 
not be exported right. One might think of additional properties to give 
an export specific attribute - that is to say: this markup shall 
indicate swing tempo in MusicXML. But before that I want to be able to 
export the major exportable elements. And like Libre Office warns when 
you save an MS Word document that there might be elements that cannot be 
exported as expected this export function should do the same ;-)


Jan-Peter



Am 28.03.2018 um 08:47 schrieb Jacques Menu Muzhic:

Hello Jan-Peter,

Thanks for the information.

Exporting to MusicXML is difficult, also because there are things that 
need to be done in LP with Scheme code since there’s no ‘first class 
citizen’ to do the job.


This leads for example to the use of markup for things such as the swing 
tempo indication:


tempoRelationshipStaffReduce = #-3

tempoRelationship =
#(define-music-function (parser location label parenthesized musicI musicII)
    (string? boolean? ly:music? ly:music?)
    (let* (
            (left-paren (if parenthesized "(" ""))
            (right-paren (if parenthesized ")" ""))
            )
      #{
        \tempo \markup {
          \line \general-align #Y #DOWN {
            % 1st column in line
            $label

            % 2nd column in line

            $left-paren

            \score {
              \new Staff \with {
                % reduce the font size a la cue
                fontSize = #tempoRelationshipStaffReduce
                \override StaffSymbol.staff-space = #(magstep 
tempoRelationshipStaffReduce)

                % hide the staff lines
                \override StaffSymbol.line-count = #0
                % align horizontally
                \override VerticalAxisGroup.Y-extent = #'(-0.85 . 0)
              }

              {
                % \override 
Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/2) % 
super-tight
                % \override 
Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/4) % 
tight
                % \override 
Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 3/16) % 
even
                \override Score.SpacingSpanner.common-shortest-duration 
= #(ly:make-moment 5/32) % even


                % the left music
                \relative c' { \stemUp $musicI }

                % the equivalence sign
                \once \override Score.TextScript.Y-offset = #-0.4
                s4.^\markup{
                  \halign #-1 "="
                }

                % the right music
                \relative c' { \stemUp $musicII }
              }

              \layout {
                indent = 0
                \context {
                  \Staff
                  \remove "Clef_engraver"
                  \remove "Time_signature_engraver"
                }
              } % layout end
            } % score end

            $right-paren

          } % line end
        } % markup end
      #}))


     \tempoRelationship #"Swing" ##t
     \fixed b' {
       b8 [ b8 ]
     }
     \fixed b' {
       \tuplet 3/2 { b4 b8 }
     }

while they can be described natively in MusicXML:

      
         
           Swing
         
         
           relative-x="26">

             
               eighth
               begin
             
             
               eighth
               end
             
             equals
             
               quarter
               type="start">

                 3
                 2
                 eighth
               
             
             
               eighth
               
                 3
                 2
                 eighth
               
             
           
         
       

I’m not at ease enough currently with the Scheme/Lilypond interaction to 
be of any help, unfortunately.


JM

Le 26 mars 2018 à 07:29, Jan-Peter Voigt > a écrit :


Hello Jacques,

last year I have been working on an export module for lilypond:
https://github.com/jpvoigt/lilypond-export/
This is in an early stage, a proof of concept. I had to put this 
project aside for a while, but it is still on my agenda and hopefully 
it develops further soon.


So if anyone is interested in joining this challenge you may contact 
via the list or private mail.


Jan-Peter


Am 24.03.2018 um 17:47 schrieb Jacques Menu Muzhic:

Hello,
Joe, what do mean exactly by pure data?
Jan-Peter, I’m interested in the MusicXML export from LP, can you 
tell us more?

A nice day!
JM





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


Re: an open question

2018-03-28 Thread Jacques Menu Muzhic
Hello Jan-Peter,

Thanks for the information. 

Exporting to MusicXML is difficult, also because there are things that need to 
be done in LP with Scheme code since there’s no ‘first class citizen’ to do the 
job.

This leads for example to the use of markup for things such as the swing tempo 
indication:

tempoRelationshipStaffReduce = #-3

tempoRelationship =
#(define-music-function (parser location label parenthesized musicI musicII)
   (string? boolean? ly:music? ly:music?)
   (let* (
   (left-paren (if parenthesized "(" ""))
   (right-paren (if parenthesized ")" ""))
   )
 #{
   \tempo \markup {
 \line \general-align #Y #DOWN {
   % 1st column in line
   $label

   % 2nd column in line

   $left-paren

   \score {
 \new Staff \with {
   % reduce the font size a la cue
   fontSize = #tempoRelationshipStaffReduce
   \override StaffSymbol.staff-space = #(magstep 
tempoRelationshipStaffReduce)
   % hide the staff lines
   \override StaffSymbol.line-count = #0
   % align horizontally
   \override VerticalAxisGroup.Y-extent = #'(-0.85 . 0)
 }

 {
   % \override Score.SpacingSpanner.common-shortest-duration = 
#(ly:make-moment 1/2) % super-tight
   % \override Score.SpacingSpanner.common-shortest-duration = 
#(ly:make-moment 1/4) % tight
   % \override Score.SpacingSpanner.common-shortest-duration = 
#(ly:make-moment 3/16) % even
   \override Score.SpacingSpanner.common-shortest-duration = 
#(ly:make-moment 5/32) % even

   % the left music
   \relative c' { \stemUp $musicI }

   % the equivalence sign
   \once \override Score.TextScript.Y-offset = #-0.4
   s4.^\markup{
 \halign #-1 "="
   }

   % the right music
   \relative c' { \stemUp $musicII }
 }

 \layout {
   indent = 0
   \context {
 \Staff
 \remove "Clef_engraver"
 \remove "Time_signature_engraver"
   }
 } % layout end
   } % score end

   $right-paren

 } % line end
   } % markup end
 #}))


\tempoRelationship #"Swing" ##t
\fixed b' {
  b8 [ b8 ] 
}
\fixed b' {
  \tuplet 3/2 { b4 b8 }
}


while they can be described natively in MusicXML:

 

  Swing


  

  eighth
  begin


  eighth
  end

equals

  quarter
  
3
2
eighth
  


  eighth
  
3
2
eighth
  

  

  

I’m not at ease enough currently with the Scheme/Lilypond interaction to be of 
any help, unfortunately.

JM

> Le 26 mars 2018 à 07:29, Jan-Peter Voigt  a écrit :
> 
> Hello Jacques,
> 
> last year I have been working on an export module for lilypond:
> https://github.com/jpvoigt/lilypond-export/
> This is in an early stage, a proof of concept. I had to put this project 
> aside for a while, but it is still on my agenda and hopefully it develops 
> further soon.
> 
> So if anyone is interested in joining this challenge you may contact via the 
> list or private mail.
> 
> Jan-Peter
> 
> 
> Am 24.03.2018 um 17:47 schrieb Jacques Menu Muzhic:
>> Hello,
>> Joe, what do mean exactly by pure data?
>> Jan-Peter, I’m interested in the MusicXML export from LP, can you tell us 
>> more?
>> A nice day!
>> JM

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


Re: an open question

2018-03-25 Thread Jan-Peter Voigt

Hello Jacques,

last year I have been working on an export module for lilypond:
https://github.com/jpvoigt/lilypond-export/
This is in an early stage, a proof of concept. I had to put this project 
aside for a while, but it is still on my agenda and hopefully it 
develops further soon.


So if anyone is interested in joining this challenge you may contact via 
the list or private mail.


Jan-Peter


Am 24.03.2018 um 17:47 schrieb Jacques Menu Muzhic:

Hello,

Joe, what do mean exactly by pure data?

Jan-Peter, I’m interested in the MusicXML export from LP, can you tell 
us more?


A nice day!

JM

Le 24 mars 2018 à 06:48, Jan-Peter Voigt > a écrit :


Hello Joe,

this is touching a subject I have been working on last year. I created 
some kind of proof of concept to export other file formats from 
lilypond. I can export musicXML and Humdrum with some limitations. It 
is based on an infrastructure that exports via format-plugins so it 
should be possible to create one for pd.

If you are interested I can send more informations.

Jan-Peter



Am 24. März 2018 02:08:28 MEZ schrieb Joe Davenport 
>:


Hello,

When another user inquired about composing without midi playback, i found 
encouragement to ask something from the technical side. Maybe i have some 
healthy curiousity about coding language, which follows:

Is it possible to integrate .ly with other musical coding languages? It 
would be very beneficial to write music that integrates the quick engraving of 
lilpond (other software is too slow for me) with the sound fonts and modulation 
of pure data.

i may have read this being used in rosegarden. however, it took time for me 
to integrate .pd with my soundcard- so i could use some pointers or insurance 
on integrating these two languages!

thank you,

joe

Sent from my iPhone


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


--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
___
lilypond-user mailing list
lilypond-user@gnu.org 
https://lists.gnu.org/mailman/listinfo/lilypond-user





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


Re: an open question

2018-03-24 Thread Urs Liska


Am 24. März 2018 17:47:04 MEZ schrieb Jacques Menu Muzhic 
:
>Hello,
>
>Joe, what do mean exactly by pure data?
>

http://puredata.info

>Jan-Peter, I’m interested in the MusicXML export from LP, can you tell
>us more?
>
>A nice day!
>
>JM
>
>> Le 24 mars 2018 à 06:48, Jan-Peter Voigt  a écrit :
>> 
>> Hello Joe,
>> 
>> this is touching a subject I have been working on last year. I
>created some kind of proof of concept to export other file formats from
>lilypond. I can export musicXML and Humdrum with some limitations. It
>is based on an infrastructure that exports via format-plugins so it
>should be possible to create one for pd.
>> If you are interested I can send more informations.
>> 
>> Jan-Peter
>> 
>> 
>> 
>> Am 24. März 2018 02:08:28 MEZ schrieb Joe Davenport
>:
>> Hello,
>> 
>> When another user inquired about composing without midi playback, i
>found encouragement to ask something from the technical side. Maybe i
>have some healthy curiousity about coding language, which follows:
>> 
>> Is it possible to integrate .ly with other musical coding languages?
>It would be very beneficial to write music that integrates the quick
>engraving of lilpond (other software is too slow for me) with the sound
>fonts and modulation of pure data.
>> 
>> i may have read this being used in rosegarden. however, it took time
>for me to integrate .pd with my soundcard- so i could use some pointers
>or insurance on integrating these two languages!
>> 
>> thank you,
>> 
>> joe
>> 
>> Sent from my iPhone
>> 
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>> 
>> -- 
>> Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: an open question

2018-03-24 Thread Jacques Menu Muzhic
Hello,

Joe, what do mean exactly by pure data?

Jan-Peter, I’m interested in the MusicXML export from LP, can you tell us more?

A nice day!

JM

> Le 24 mars 2018 à 06:48, Jan-Peter Voigt  a écrit :
> 
> Hello Joe,
> 
> this is touching a subject I have been working on last year. I created some 
> kind of proof of concept to export other file formats from lilypond. I can 
> export musicXML and Humdrum with some limitations. It is based on an 
> infrastructure that exports via format-plugins so it should be possible to 
> create one for pd.
> If you are interested I can send more informations.
> 
> Jan-Peter
> 
> 
> 
> Am 24. März 2018 02:08:28 MEZ schrieb Joe Davenport :
> Hello,
> 
> When another user inquired about composing without midi playback, i found 
> encouragement to ask something from the technical side. Maybe i have some 
> healthy curiousity about coding language, which follows:
> 
> Is it possible to integrate .ly with other musical coding languages? It would 
> be very beneficial to write music that integrates the quick engraving of 
> lilpond (other software is too slow for me) with the sound fonts and 
> modulation of pure data.
> 
> i may have read this being used in rosegarden. however, it took time for me 
> to integrate .pd with my soundcard- so i could use some pointers or insurance 
> on integrating these two languages!
> 
> thank you,
> 
> joe
> 
> Sent from my iPhone
> 
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user 
> 
> 
> -- 
> Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: an open question

2018-03-23 Thread Jan-Peter Voigt
Hello Joe,

this is touching a subject I have been working on last year. I created some 
kind of proof of concept to export other file formats from lilypond. I can 
export musicXML and Humdrum with some limitations. It is based on an 
infrastructure that exports via format-plugins so it should be possible to 
create one for pd.
If you are interested I can send more informations.

Jan-Peter



Am 24. März 2018 02:08:28 MEZ schrieb Joe Davenport :
>Hello,
>
>When another user inquired about composing without midi playback, i
>found encouragement to ask something from the technical side. Maybe i
>have some healthy curiousity about coding language, which follows:
>
>Is it possible to integrate .ly with other musical coding languages? It
>would be very beneficial to write music that integrates the quick
>engraving of lilpond (other software is too slow for me) with the sound
>fonts and modulation of pure data.
>
>i may have read this being used in rosegarden. however, it took time
>for me to integrate .pd with my soundcard- so i could use some pointers
>or insurance on integrating these two languages!
>
>thank you,
>
>joe
>
>Sent from my iPhone
>___
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


an open question

2018-03-23 Thread Joe Davenport
Hello,

When another user inquired about composing without midi playback, i found 
encouragement to ask something from the technical side. Maybe i have some 
healthy curiousity about coding language, which follows:

Is it possible to integrate .ly with other musical coding languages? It would 
be very beneficial to write music that integrates the quick engraving of 
lilpond (other software is too slow for me) with the sound fonts and modulation 
of pure data.

i may have read this being used in rosegarden. however, it took time for me to 
integrate .pd with my soundcard- so i could use some pointers or insurance on 
integrating these two languages!

thank you,

joe

Sent from my iPhone
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user