lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting TabStaff.minimumFret causes MIDI channel wrap


From: Carl Sorensen
Subject: Re: setting TabStaff.minimumFret causes MIDI channel wrap
Date: Fri, 5 Nov 2010 07:54:14 -0600

On 11/4/10 8:36 PM, "Steve Yegge" <address@hidden> wrote:

> I've been getting hundreds of these warnings in each of my music files:
> 
> warning: MIDI channel wrapped around
> warning: remapping modulo 16

I'm not sure about the source of these warnings, and I don't do any work
with the MIDI code, so I'm not sure exactly why the warning occurs.
> 
> These warnings begin to accumulate as I add calls to set the minimumFret.
> It seems to be related to the transposition calls I'm doing as well, since
> removing them makes the warning go away.

It seems to work just fine to write your music all an octave lower (i.e. in
the sounding pitch, which you eventually get to by transposing) and put it
on a staff with a "treble_8" clef.

> I make an effort to try to keep my music files warning free, so it pains me
> to see hundreds of these scroll by on every compile.  If I'm structuring my
> files wrong (e.g. the way I'm instantiating the staffs or doing the
> transpositions)
> I'm happy to change them.

Using the treble_8 clef is the way to go.  But while we're at it, you create
a whole lot of unnecessary complexity in your file by adding unnecessary <<
>> and { } levels.

Here's what it looked like when I was done with it:

\version "2.13.10"
music = \relative c {
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
  \set TabStaff.minimumFret = #1 c
}

\score {
  <<
    \new Staff {
      \clef "treble_8"
      \music
    }
    \new TabStaff {
      \music
    }
  >>
}
\score {
  \music
  \midi {}
}
  


HTH,

Carl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]