Control over midi output

2018-12-04 Thread Mr Tim
Hi all,  I'm trying to use Lilypond to create midi files to be played by an
organ and I'm having difficulty getting it formatted the way it needs to be.

1) The midi file needs to be type 0 (everything in one track--the first
one). This is very common for driving instruments since it's simpler and
cost less to develop.

2) I'm looking to control which channels are used instead of having
Lilypond assign them.  The note events will be in the first 4 channels, but
I will not always create sequential channels.  I may just want all the note
events in channel 2, or maybe just 1 and 4.

These first 2 items will get me pretty far but I will still need to do one
a couple more things:

3) I need to send program (instrument/patch) change events on channel 11
which controls the organ stops.  No notes will be on 11, just the program
changes.

4) I need to be able to embed a Sysex command at the beginning and end of
the file which tells the organ to clear all stops.

I've tried using the midi channel mapping. It ended up still type 1 file,
setting all the note events to channel 0, and using the channel prefix
(incorrectly) at the beginning of the track to set the channel which would
not help even if it worked correctly.  By incorrectly, I mean it's sending
the meta event 0xFF 0x21 0x01 followed by the channel number.  It should be
0xFF 0x20 0x01... according to the MIDI spec.  anyway, it would not work as
I said since I need type 0 which sinks that ship at the dock. Not to
mention the organ may not even accept that meta event since it doesn't
record that way.

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


Use of \vspace and \hspace

2019-01-19 Thread Mr Tim
I am really confused on where I can and cannot use the \vspace and
\hspace.  I've seen them inside \column expressions, is that the only place
they can be?  Reading the documentation does not help me at all.  So I see
it inside \markup { }.  Well, then where can I put \markup?  If markup has
to be inside something else, where can I put that something else.  I guess
the problem is that every where I try to use \vspace it's an error and the
examples in the docs do not help at all.  Can I put them between \score {}
expressions?  Apparently not, unless I am missing something else.  Can I
put them inside a \score {} at the beginning, again, apparently not unless
I am missing something else.  I just really want to understand how this
thing works so I can generally use it in my files.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Use of \vspace and \hspace

2019-01-19 Thread Mr Tim
Yes, but I don't understand where I can use \markup blocks.  I go to the
docs at http://lilypond.org/doc/v2.19/Documentation/notation/formatting-text
and it tells me about what can go inside, but does not tell me in what
context \markup can be used.


On Sat, Jan 19, 2019 at 10:22 AM David Kastrup  wrote:

> Mr Tim  writes:
>
> > I am really confused on where I can and cannot use the \vspace and
> > \hspace.
>
> They are markup commands.  They can only appear inside of markup and
> markup lists.
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: setting fretboard diagrams at the top of the page

2019-01-19 Thread Mr Tim
Oops, forgot to include the community.

On Sat, Jan 19, 2019 at 5:51 PM Mr Tim  wrote:

> This is fantastic.  I just changed how I do my chords.  I used to have
> "invisible" staff, notes, etc to do this.  This is very helpful.  I
> actually put all the "define" stuff in a separate file with definitions of
> all the different chords I have used so far for all my songs.  Then I
> include it in my typset file and put the "name-and-fret-markup" lines there
> for just the chords I need for that song.
>
> Thanks!
>
> On Thu, Jan 17, 2019 at 2:35 PM Carl Sorensen  wrote:
>
>> Hi Evan,
>>
>> Welcome to LilyPond!
>>
>> On 1/15/19, 11:10 AM, "Evan Levine"  wrote:
>>
>> Good afternoon! I've got a few things I'm brewing right now, but the
>> most pressing is that I'm looking to set all of the chord diagrams
>> for a
>> lead sheet at the top of the page under the title, and modify the
>> spacing of the diagrams to be centered on the page and have padding
>> between each diagram.
>>
>> The key here, in my opinion, is to set the fret diagrams as markups,
>> rather than as music.
>>
>> Thanks so much! Here's my code:
>>
>> Great job on providing a small example!  That was helpful to see what you
>> intended.
>>
>> The only problem with the example is that it wouldn't completely compile,
>> because the music and lyrics were missing.  It's much easier if you provide
>> those.
>>
>>
>> Please forgive me for any oversight of the protocol here, as this is
>> my
>> first interaction with the mailing list.
>>
>> The only oversight I see is that you put your mail at the top of another
>> unrelated post.  Please don't post your reply to the top of a full post,
>> and when you start a new thread, don't do it by replying to a previous
>> post.
>>
>> With that said, here's how I'd attack your problem.  I've created some
>> markup functions to allow you to have control over size, spacing, etc.
>>
>>  Beginning of sample code
>>
>> \version "2.19.82"
>>
>> \header {
>>   title = "Steven Universe Theme"
>>   composer = "Rebecca Sugar, Aivi & Surasshu"
>>   tagline = ##t
>> }
>>
>> #(define chord-name-fontsize 6)
>> #(define name-fretboard-separation .75)
>> #(define different-separation 8)
>> #(define same-separation 2)
>> #(define or-vspace 1.75)
>>
>> #(define fret-formatting "s:2.2;w:4;h:3;d:0.37;f:1;")
>>
>> #(define c-fret "4-x;3-4-2;2-3-2;1-x;")
>> #(define e-one-fret "c:4-2-4;4-4-3;3-4-3;2-4-3;1-x;")
>> #(define e-two-fret "4-x;3-4-2;2-4-3;1-2-1;")
>> #(define f-fret "4-x;3-5-2;2-5-3;1-3-1;")
>> #(define fm-fret "4-x;3-5-2;2-4-3;1-3-1;")
>>
>> #(define-markup-command  (chord-name-markup layout props chord-name)
>>(markup?)
>>"Display a chord name in the desired formatting"
>>(interpret-markup layout props
>> #{ \markup \sans \fontsize #chord-name-fontsize $chord-name #} ))
>>
>> #(define-markup-command (name-and-fret-markup layout props chord-name
>> fret-diagram)
>>(markup? markup?)
>>"Display a chord name and fretboard as stacked markups separated by
>> name-fretboard-separation"
>>(interpret-markup layout props
>>  #{ \markup \center-column {
>>   \chord-name-markup $chord-name
>>   \vspace #name-fretboard-separation
>>   $fret-diagram
>> }
>>  #}))
>>
>>  #(define-markup-command (or-markup layout props or-text)
>>(markup?)
>>"Display a separator between alternative fretboards"
>>(interpret-markup layout props
>>  #{ \markup \center-column {
>>   \vspace #or-vspace
>>   \chord-name-markup $or-text
>> }
>>  #}))
>>
>> \markup \line {
>>   \name-and-fret-markup "C"  \fret-diagram #(string-append
>> fret-formatting c-fret)
>>   \hspace #different-separation
>>   \center-column {
>> \name-and-fret-markup "E" \line {
>>   \fret-diagram #(string-append fret-formatting e-one-fret)
>>   \hspace #same-separation
>>   \or-markup "or"
>>   \hspace #same-separation
>

Volume Events Appearing In MIDI File

2019-05-18 Thread Mr Tim
I had to re-install Lilypond and Frescobaldi on a new computer so they are
much newer version than I had since I usually don't fix things that aren't
broken :-) But I noticed now there are volume events in the MIDI outoupt
that were not there before.  I don't even remember what version I was
running before, but now, when I bring the MIDI into Logic Pro, I can't set
the volume channels because the volume events keep setting it back.  I have
to delete all the volume events for every MIDI file I bring in.

Is this a new default behavior?

Is there a way to have Lilypond not include volume events in the MIDI
output?

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


Re: Volume Events Appearing In MIDI File

2019-05-18 Thread Mr Tim
Thanks, Phil.  That did the trick.

On Sat, May 18, 2019 at 10:17 AM Phil Holmes  wrote:

> Have you read
> http://lilypond.org/doc/v2.19/Documentation/notation/controlling-midi-dynamics#setting-midi-block-properties
>  and
> tried removing the dynamic performer?
>
> --
> Phil Holmes
>
>
>
> - Original Message -
> *From:* Mr Tim 
> *To:* lilypond-user@gnu.org
> *Sent:* Saturday, May 18, 2019 2:37 PM
> *Subject:* Volume Events Appearing In MIDI File
>
> I had to re-install Lilypond and Frescobaldi on a new computer so they are
> much newer version than I had since I usually don't fix things that aren't
> broken :-) But I noticed now there are volume events in the MIDI outoupt
> that were not there before.  I don't even remember what version I was
> running before, but now, when I bring the MIDI into Logic Pro, I can't set
> the volume channels because the volume events keep setting it back.  I have
> to delete all the volume events for every MIDI file I bring in.
>
> Is this a new default behavior?
>
> Is there a way to have Lilypond not include volume events in the MIDI
> output?
>
> Thanks,
> Tim
>
> --
>
> ___
> 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: A Midi question

2018-09-11 Thread Mr Tim
A friend of mine uses Anvil Studio for midi on Windows. I think they have a 
free version, but even the premium is not much. 

Sent from my iPad

> On Sep 11, 2018, at 1:06 PM, foxfanfare  wrote:
> 
> Karlin High wrote
>>> On 9/11/2018 11:05 AM, foxfanfare wrote:
>>> 2. What do you do with the default midi file?
>> 
>> I often convert MIDI to audio formats via VLC Media Player and the 
>> GeneralUser GS soundfonts by S. Christian Collins. Full details here:
>> 
>> ;
>> 
>> Only change is that newer versions of VLC again have the FluidSynth 
>> codec. Using an older version is no longer required.
>> 
>> That's all I know on the topic of getting improved sound from LilyPond's 
>> MIDI files.
>> -- 
>> Karlin High
>> Missouri, USA
>> 
>> ___
>> lilypond-user mailing list
> 
>> lilypond-user@
> 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> Thanks for the tip, I just try and it is effectively really better!
> Rosegarden works on Linux only, but I'll keep in mind when I'll get rid of
> my Windows (soon I hope ;-)
> 
> 
> 
> --
> Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
> 
> ___
> 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