Re: tag - midi

2016-12-10 Thread Hans Aikema

> On 7 Dec 2016, at 19:48, bart deruyter  wrote:
> 
> Hans,
> 
> that's pretty cool :-), it first got me confused because I did not see it in 
> frescobaldi, the midi player doesn't show the midifiles, but I checked the 
> directory where the .ly file is 'et voila' :-) there it was.
> 
> <..>
> 
> Bart
> 

Bart, 

Glad you found it… it’s something I never realise as I’m used to the good ol’ 
programmer tools. My lilypond development is all done from within my 
programming environment editing the raw text files and then making my 
programming environment kick-off an ant buildscript to do a lilypond-run, 
timitidy++ midi-to-wav conversion and/or compressor batch wav-to-mp3 conversion 
(compressor is a Mac tool…. in the past I used lame instead)

So I’m already used to looking for the files in the filesystem itself

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


Re: tag - midi

2016-12-07 Thread bart deruyter
Hans,

that's pretty cool :-), it first got me confused because I did not see it
in frescobaldi, the midi player doesn't show the midifiles, but I checked
the directory where the .ly file is 'et voila' :-) there it was.

Great, this possibility is a good thing to know. I've read on this list
that lilypond is not optimal for use on a webserver, but just imagine the
possibilities of these kinds of things. For example automatically generated
exercises for ear training having audio and notation, with an input box
where the user can enter notes and then check the results.. :-D ..

but that is out of the scope of this email, I get excited about these
endless opportunities for lilypond :-).

thanks again,

Bart



http://www.bartart3d.be/
On Twitter 
On Identi.ca 
On Google+ 

2016-12-07 12:53 GMT+01:00 Hans Aikema :

>
> > On 7 Dec 2016, at 08:31, bart deruyter  wrote:
> >
> > Hi all,
> >
> > I'm sorry for this late reply, it has been quite busy here.
> >
> > here is a minimal example:
> >
> > <..>
> >
> > As expected, I get two midi files, but they both contain the music of
> the entire score. The midi blocks don't follow the \keepWithTag rules.
> >
> > What I'd like to see is one score, two different midi files, each
> containing only the music enclosed in the tags.
> >
> > is something similar possible? Maybe I forgot some essential extra
> code...
> >
> > Using different score blocks for each part seems a bit much to get one
> pdf for the full score and chopped midi files.
> >
> Bart,
>
> With pure lilypond you will need the additional Score blocks. Both \layout
> and \midi render whatever is the current score (they do not consume a music
> expression to render, but rather take the current score to render.
> Another option would require scheme code to dynamically build your midi
> score blocks. I recently discoverd the rehearsalMidi function hidden in the
> treasures of openlilylib which now is a great asset in my toolbox for
> creating rehearsal midi (and mp3 with a timidity++/lame toolchain) files
> for my choir. As I suspected (after some trial and error.. my first steps
> into scheme coding) it can be easily adapted for your needs of outputting
> separate midis for tagged music. See the attached file for the function. It
> needs to be included in your actual files. Your minimal snippet would be
> converted into:
>
> \include "tagmidi.ly"
>
> altoVoice = \relative c' {
>
> \tag #'A {c'2  g |} \tag #'B {e'4 d  c2 }|
>   \bar "|."
> }
>
> \score {
>   \new Staff \with {
> midiInstrument = "piano"
>   } { \altoVoice }
>
>   \layout { }
> }
>
> \tagMidi \altoVoice #'A
> \tagMidi \altoVoice #’B
>
> Which I think is more consise and less error-prone once you start getting
> more samples into a single file and gives you suffixes to the midi-files
> that match the tags.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tag - midi

2016-12-07 Thread Hans Aikema

> On 7 Dec 2016, at 08:31, bart deruyter  wrote:
> 
> Hi all,
> 
> I'm sorry for this late reply, it has been quite busy here.
> 
> here is a minimal example:
> 
> <..>
> 
> As expected, I get two midi files, but they both contain the music of the 
> entire score. The midi blocks don't follow the \keepWithTag rules.
> 
> What I'd like to see is one score, two different midi files, each containing 
> only the music enclosed in the tags.
> 
> is something similar possible? Maybe I forgot some essential extra code...
> 
> Using different score blocks for each part seems a bit much to get one pdf 
> for the full score and chopped midi files.
> 
Bart,

With pure lilypond you will need the additional Score blocks. Both \layout and 
\midi render whatever is the current score (they do not consume a music 
expression to render, but rather take the current score to render.
Another option would require scheme code to dynamically build your midi score 
blocks. I recently discoverd the rehearsalMidi function hidden in the treasures 
of openlilylib which now is a great asset in my toolbox for creating rehearsal 
midi (and mp3 with a timidity++/lame toolchain) files for my choir. As I 
suspected (after some trial and error.. my first steps into scheme coding) it 
can be easily adapted for your needs of outputting separate midis for tagged 
music. See the attached file for the function. It needs to be included in your 
actual files. Your minimal snippet would be converted into:

\include "tagmidi.ly"

altoVoice = \relative c' {

\tag #'A {c'2  g |} \tag #'B {e'4 d  c2 }| 
  \bar "|."
}

\score {
  \new Staff \with {
midiInstrument = "piano"
  } { \altoVoice }

  \layout { }
}

\tagMidi \altoVoice #'A
\tagMidi \altoVoice #’B

Which I think is more consise and less error-prone once you start getting more 
samples into a single file and gives you suffixes to the midi-files that match 
the tags.
 

tagmidi.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tag - midi

2016-12-06 Thread bart deruyter
Hi all,

I'm sorry for this late reply, it has been quite busy here.

here is a minimal example:

altoVoice = \relative c' {

\tag #'A {c'2  g |} \tag #'B {e'4 d  c2 }|
  \bar "|."
}

\score {
  \new Staff \with {
midiInstrument = "piano"
  } { \altoVoice}

  \layout { }
  \midi {
  \keepWithTag #'A \altoVoice }
  \midi {
   \keepWithTag #'B \altoVoice }
}

As expected, I get two midi files, but they both contain the music of the
entire score. The midi blocks don't follow the \keepWithTag rules.

What I'd like to see is one score, two different midi files, each
containing only the music enclosed in the tags.

is something similar possible? Maybe I forgot some essential extra code...

Using different score blocks for each part seems a bit much to get one pdf
for the full score and chopped midi files.


grtz,
Bart

http://www.bartart3d.be/
On Twitter 
On Identi.ca 
On Google+ 

2016-12-04 15:18 GMT+01:00 :

> Here is a short example of how I might use tags to produce a better midi
> output:
>
> \version "2.19.51"
> \language "english"
>
> music = \relative {
>   \tag #'layout { d''2. \trill }
>   \tag #'midi   { \repeat unfold 7 { e32 d } c d }
>   c4 }
>
> \score {
>   \keepWithTag #'layout
>   \new Staff { \music }
>   \layout {}
> }
>
> \score {
>   \keepWithTag #'midi
>   \new Staff { \music }
>   \midi {
> \tempo 4 = 100
>   }
> }
>
> I use two different \scores with the \tagWithKeep command at the score
> level.  Works for me.
>
>
> ---
> Knute Snortum
> (via Gmail)
>
> On Fri, Dec 2, 2016 at 2:40 PM, Darren Modra  wrote:
>
>> Hi Bart,
>> I think you'll find that if you don't save your work in freescobaldi
>> before running it, it will put the PDF and midi files into a temporary
>> folder.
>>
>> Cheers,
>> DM
>>
>> --
>> This message may include free added typos, which you may use for your
>> entertainment, courtesy of Apple autocorrect.
>>
>> On 3 Dec. 2016, at 07:23, bart deruyter - bart.deruy...@gmail.com
>> 
>> wrote:
>>
>> Sorry for this, but it does not work, I made another mistake, applied the
>> tag to the score too.. so my question does still stand.
>>
>>
>> http://www.bartart3d.be/
>> On Twitter 
>> On Identi.ca 
>> On Google+ 
>>
>> 2016-12-02 21:51 GMT+01:00 bart deruyter :
>>
>>> Hi all,
>>> disregard this mail.. it does work.. :-)
>>> What made it work is : save the file first. Apparently frescobaldi
>>> re-renders unsaved work into pdf's, but not midi-files...
>>>
>>> thx anyway.
>>>
>>> Bart
>>>
>>> http://www.bartart3d.be/
>>> On Twitter 
>>> On Identi.ca 
>>> On Google+ 
>>>
>>> 2016-12-02 21:44 GMT+01:00 bart deruyter :
>>>
 Hi all,

 I did some experimentation with the \tag command. It is great for
 different editions of printed music of course, but I tried it in the midi
 block without luck.

 I'm trying to create some music dictation exercises and want to
 separate the midi file for the student in parts of each 2 bars, so I
 enclosed each two bars in separate tags, like this:

 \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|

 hoping it would work if I'd write something like this int he midi
 block:

 \midi { \keepWithTag #'A \altoVoice }

 But no luck.. is it a bug, or simply not implemented (which is my
 guess)?
 And is there a possible solution to get the wanted result?

 thx,
 Bart

 http://www.bartart3d.be/
 On Twitter 
 On Identi.ca 
 On Google+ 

>>>
>>>
>> ___
>> 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
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tag - midi

2016-12-04 Thread Knute Snortum
Here is a short example of how I might use tags to produce a better midi
output:

\version "2.19.51"
\language "english"

music = \relative {
  \tag #'layout { d''2. \trill }
  \tag #'midi   { \repeat unfold 7 { e32 d } c d }
  c4 }

\score {
  \keepWithTag #'layout
  \new Staff { \music }
  \layout {}
}

\score {
  \keepWithTag #'midi
  \new Staff { \music }
  \midi {
\tempo 4 = 100
  }
}

I use two different \scores with the \tagWithKeep command at the score
level.  Works for me.


---
Knute Snortum
(via Gmail)

On Fri, Dec 2, 2016 at 2:40 PM, Darren Modra  wrote:

> Hi Bart,
> I think you'll find that if you don't save your work in freescobaldi
> before running it, it will put the PDF and midi files into a temporary
> folder.
>
> Cheers,
> DM
>
> --
> This message may include free added typos, which you may use for your
> entertainment, courtesy of Apple autocorrect.
>
> On 3 Dec. 2016, at 07:23, bart deruyter - bart.deruy...@gmail.com
> 
> wrote:
>
> Sorry for this, but it does not work, I made another mistake, applied the
> tag to the score too.. so my question does still stand.
>
>
> http://www.bartart3d.be/
> On Twitter 
> On Identi.ca 
> On Google+ 
>
> 2016-12-02 21:51 GMT+01:00 bart deruyter :
>
>> Hi all,
>> disregard this mail.. it does work.. :-)
>> What made it work is : save the file first. Apparently frescobaldi
>> re-renders unsaved work into pdf's, but not midi-files...
>>
>> thx anyway.
>>
>> Bart
>>
>> http://www.bartart3d.be/
>> On Twitter 
>> On Identi.ca 
>> On Google+ 
>>
>> 2016-12-02 21:44 GMT+01:00 bart deruyter :
>>
>>> Hi all,
>>>
>>> I did some experimentation with the \tag command. It is great for
>>> different editions of printed music of course, but I tried it in the midi
>>> block without luck.
>>>
>>> I'm trying to create some music dictation exercises and want to separate
>>> the midi file for the student in parts of each 2 bars, so I enclosed each
>>> two bars in separate tags, like this:
>>>
>>> \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|
>>>
>>> hoping it would work if I'd write something like this int he midi block:
>>>
>>> \midi { \keepWithTag #'A \altoVoice }
>>>
>>> But no luck.. is it a bug, or simply not implemented (which is my
>>> guess)?
>>> And is there a possible solution to get the wanted result?
>>>
>>> thx,
>>> Bart
>>>
>>> http://www.bartart3d.be/
>>> On Twitter 
>>> On Identi.ca 
>>> On Google+ 
>>>
>>
>>
> ___
> 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
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tag - midi

2016-12-02 Thread Darren Modra
Hi Bart, 
I think you'll find that if you don't save your work in freescobaldi before 
running it, it will put the PDF and midi files into a temporary folder. 

Cheers,
DM

--
This message may include free added typos, which you may use for your 
entertainment, courtesy of Apple autocorrect.

> On 3 Dec. 2016, at 07:23, bart deruyter - bart.deruy...@gmail.com 
>  wrote:
> 
> Sorry for this, but it does not work, I made another mistake, applied the tag 
> to the score too.. so my question does still stand.
> 
> 
> http://www.bartart3d.be/
> On Twitter
> On Identi.ca
> On Google+
> 
> 2016-12-02 21:51 GMT+01:00 bart deruyter :
>> Hi all,
>> disregard this mail.. it does work.. :-)
>> What made it work is : save the file first. Apparently frescobaldi 
>> re-renders unsaved work into pdf's, but not midi-files...
>> 
>> thx anyway.
>> 
>> Bart
>> 
>> http://www.bartart3d.be/
>> On Twitter
>> On Identi.ca
>> On Google+
>> 
>> 2016-12-02 21:44 GMT+01:00 bart deruyter :
>>> Hi all,
>>> 
>>> I did some experimentation with the \tag command. It is great for different 
>>> editions of printed music of course, but I tried it in the midi block 
>>> without luck.
>>> 
>>> I'm trying to create some music dictation exercises and want to separate 
>>> the midi file for the student in parts of each 2 bars, so I enclosed each 
>>> two bars in separate tags, like this: 
>>> 
>>> \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|
>>> 
>>> hoping it would work if I'd write something like this int he midi block: 
>>> 
>>> \midi { \keepWithTag #'A \altoVoice }
>>> 
>>> But no luck.. is it a bug, or simply not implemented (which is my guess)? 
>>> And is there a possible solution to get the wanted result?
>>> 
>>> thx,
>>> Bart
>>> 
>>> http://www.bartart3d.be/
>>> On Twitter
>>> On Identi.ca
>>> On Google+
>> 
> 
> ___
> 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: tag - midi

2016-12-02 Thread Flaming Hakama by Elaine
Bart,

I did some experimentation with the \tag command. It is great for different
> editions of printed music of course, but I tried it in the midi block
> without luck.
>
> I'm trying to create some music dictation exercises and want to separate
> the midi file for the student in parts of each 2 bars, so I enclosed each
> two bars in separate tags, like this:
>
> \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|
>
> hoping it would work if I'd write something like this int he midi block:
>
> \midi { \keepWithTag #'A \altoVoice }
>
> But no luck.. is it a bug, or simply not implemented (which is my guess)?
> And is there a possible solution to get the wanted result?
>
> thx,
> Bart
>


Tags work in midi.

Could you please explain what you mean by "I' ... want to separate the midi
file for the student in parts of each 2 bars"?

Do you want one midi file with 2 voices, or 2 midi files each with one
voice?

If you could supply a more complete example to demonstrate your intent
(even if it isn't working), that might help.


Thanks,

David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tag - midi

2016-12-02 Thread bart deruyter
Sorry for this, but it does not work, I made another mistake, applied the
tag to the score too.. so my question does still stand.


http://www.bartart3d.be/
On Twitter 
On Identi.ca 
On Google+ 

2016-12-02 21:51 GMT+01:00 bart deruyter :

> Hi all,
> disregard this mail.. it does work.. :-)
> What made it work is : save the file first. Apparently frescobaldi
> re-renders unsaved work into pdf's, but not midi-files...
>
> thx anyway.
>
> Bart
>
> http://www.bartart3d.be/
> On Twitter 
> On Identi.ca 
> On Google+ 
>
> 2016-12-02 21:44 GMT+01:00 bart deruyter :
>
>> Hi all,
>>
>> I did some experimentation with the \tag command. It is great for
>> different editions of printed music of course, but I tried it in the midi
>> block without luck.
>>
>> I'm trying to create some music dictation exercises and want to separate
>> the midi file for the student in parts of each 2 bars, so I enclosed each
>> two bars in separate tags, like this:
>>
>> \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|
>>
>> hoping it would work if I'd write something like this int he midi block:
>>
>> \midi { \keepWithTag #'A \altoVoice }
>>
>> But no luck.. is it a bug, or simply not implemented (which is my guess)?
>> And is there a possible solution to get the wanted result?
>>
>> thx,
>> Bart
>>
>> http://www.bartart3d.be/
>> On Twitter 
>> On Identi.ca 
>> On Google+ 
>>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tag - midi

2016-12-02 Thread bart deruyter
Hi all,
disregard this mail.. it does work.. :-)
What made it work is : save the file first. Apparently frescobaldi
re-renders unsaved work into pdf's, but not midi-files...

thx anyway.

Bart

http://www.bartart3d.be/
On Twitter 
On Identi.ca 
On Google+ 

2016-12-02 21:44 GMT+01:00 bart deruyter :

> Hi all,
>
> I did some experimentation with the \tag command. It is great for
> different editions of printed music of course, but I tried it in the midi
> block without luck.
>
> I'm trying to create some music dictation exercises and want to separate
> the midi file for the student in parts of each 2 bars, so I enclosed each
> two bars in separate tags, like this:
>
> \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|
>
> hoping it would work if I'd write something like this int he midi block:
>
> \midi { \keepWithTag #'A \altoVoice }
>
> But no luck.. is it a bug, or simply not implemented (which is my guess)?
> And is there a possible solution to get the wanted result?
>
> thx,
> Bart
>
> http://www.bartart3d.be/
> On Twitter 
> On Identi.ca 
> On Google+ 
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user