Re: fretboard diagram : alignment issue

2010-12-21 Thread Carl Sorensen
On 12/21/10 9:40 AM, "Marc Mouries"  wrote:

>On 12/21/2010 12:30 AM, Carl Sorensen wrote:

>> The syntax is slightly different from 2.12 and 2.13
>> 
>> But since your chords have different names, you'll just do something like
>> (2.12 syntax):
>> 
>> \storePredefinedDiagram  
>>  #violin-tuning
>> #"x;o;o;2-1;"
>> \storePredefinedDiagram  
>>  #violin-tuning
>> #"7-4;4-2;5-3;x;"
>> \storePredefinedDiagram  
>>  #violin-tuning
>>  #"x;o;3-2;2-1;"
>> 
>> <<
>>   \new ChordNames { \chordmode {d1 d1:7}}
>>   \new Staff { 2 2 1 }
>>   \new FretBoards {  2 2 1 }
>>  
>> 
>> P.S. In 2.14.43 we have alternate fretboard tables, so you can change the
>> table and have different fretboards for the same chord.  But I don't think
>> that would help you here, because you have chords in the staff that wouldn't
>> work with the ChordNames
>> 
>>  
>  I am using  2.13.43-1

With 2.13.43 you need to add a fretboard-table argument to the calls:

 \storePredefinedDiagram  #default-fret-table
  
  #violin-tuning
  #"x;o;o;2-1;"


>  gw.exe>  and i get an error with your code.
>  
>  /pb with chords on the Violin.ly:16:24: error: syntax error, unexpected <
>  \storePredefinedDiagram
>  
>  
>  Where can i find the doc for 2.13 for the fret diagram?
>  
The docs for 2.13 are available on the lilypond website:

http://lilypond.org/doc/v2.13/Documentation/web/manuals

HTH,

Carl


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


Re: fretboard diagram : alignment issue

2010-12-21 Thread Marc Mouries

On 12/21/2010 12:30 AM, Carl Sorensen wrote:



On 12/20/10 8:47 PM, "Marc Mouries"  wrote:


Hi Lilyponders,

I am trying to generate a chord chart for Violin and i have an alignment
problem.

I want to include the different possibilities of playing a chord and
thus i can't use the command storePredefinedDiagram and thus can't use a
FretBoard like this

\score {
<<
  \new ChordNames { ...}
  \new Staff { ... }
  \new FretBoards { }
}

Actually, you *can* use storePredefinedDiagram.

The syntax is slightly different from 2.12 and 2.13

But since your chords have different names, you'll just do something like
(2.12 syntax):

\storePredefinedDiagram
  #violin-tuning
 #"x;o;o;2-1;"
\storePredefinedDiagram
  #violin-tuning
 #"7-4;4-2;5-3;x;"
\storePredefinedDiagram
  #violin-tuning
  #"x;o;3-2;2-1;"

<<
   \new ChordNames { \chordmode {d1 d1:7}}
   \new Staff {221 }
   \new FretBoards {221 }




You don't need to use a chordmode definition for the key to the fretboard;
you just need to have some kind of music that will be the same.


HTH,

Carl

P.S. In 2.14.43 we have alternate fretboard tables, so you can change the
table and have different fretboards for the same chord.  But I don't think
that would help you here, because you have chords in the staff that wouldn't
work with the ChordNames

I am using 2.13.43-1 
 
and i get an error with your code.


/pb with chords on the Violin.ly:16:24: error: syntax error, unexpected <
\storePredefinedDiagram


Where can i find the doc for 2.13 for the fret diagram?
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: fretboard diagram : alignment issue

2010-12-20 Thread Carl Sorensen



On 12/20/10 8:47 PM, "Marc Mouries"  wrote:

> Hi Lilyponders,
> 
> I am trying to generate a chord chart for Violin and i have an alignment
> problem.
> 
> I want to include the different possibilities of playing a chord and
> thus i can't use the command storePredefinedDiagram and thus can't use a
> FretBoard like this
> 
> \score {
><<
>  \new ChordNames { ...}
>  \new Staff { ... }
>  \new FretBoards { }
>>> 
> }

Actually, you *can* use storePredefinedDiagram.

The syntax is slightly different from 2.12 and 2.13

But since your chords have different names, you'll just do something like
(2.12 syntax):

\storePredefinedDiagram  
 #violin-tuning
#"x;o;o;2-1;"
\storePredefinedDiagram  
 #violin-tuning
#"7-4;4-2;5-3;x;"
\storePredefinedDiagram  
 #violin-tuning
 #"x;o;3-2;2-1;"

<<
  \new ChordNames { \chordmode {d1 d1:7}}
  \new Staff { 2 2 1 }
  \new FretBoards {  2 2 1 }
>>   


You don't need to use a chordmode definition for the key to the fretboard;
you just need to have some kind of music that will be the same.


HTH,

Carl

P.S. In 2.14.43 we have alternate fretboard tables, so you can change the
table and have different fretboards for the same chord.  But I don't think
that would help you here, because you have chords in the staff that wouldn't
work with the ChordNames


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


fretboard diagram : alignment issue

2010-12-20 Thread Marc Mouries

Hi Lilyponders,

I am trying to generate a chord chart for Violin and i have an alignment 
problem.


I want to include the different possibilities of playing a chord and 
thus i can't use the command storePredefinedDiagram and thus can't use a 
FretBoard like this


\score {
  <<
\new ChordNames { ...}
\new Staff { ... }
\new FretBoards { }
  >>
}

But i have to use

<<
  \new ChordNames { \chordmode { d1 } }
  \new Staff {
%% D
2 ^\markup \fret-diagram #"w:4;4-x;3-o;2-o;1-2-1;"
2 ^\markup \fret-diagram #"w:4;4-7-4;3-4-2;2-5-3;1-x;"
%% D7
1 ^\markup \fret-diagram #"w:4;4-x;3-o;2-3-2;1-2-1;"
}
>>

Which gives me:

Is there any way to align the fret board using markup? or any other work-around 
to be able to use a fretboard and use several definitions for one chord?

thanks,

Marc

Based on this snippet: http://lsr.dsi.unimi.it/LSR/Item?id=578


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