lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom tabulature for Shamisen


From: Christian Zollner
Subject: Re: Custom tabulature for Shamisen
Date: Wed, 2 Jan 2019 09:58:26 +0100

Hello Thomas,

thank you for your efforts! Judging from my 2-day experience with
LilyPond, that looks promising. I'll try it out and let you know :)

Have a great start into 2019,
Christian


Am 02.01.19 um 00:32 schrieb Thomas Morley:
> Am Di., 1. Jan. 2019 um 18:04 Uhr schrieb Christian Zollner
> <address@hidden>:
>> Hello list!
>>
>> I need to write tabulatures for me and my girlfriend. I am playing
>> violin and she is playing Shamisen. I am new to Lilypond but generally
>> programming language affine, so I learned everything quickly up until now.
>>
>> The problem with Shamisen tabulatures is that it doesn't just count up
>> from 1 - 12 for every octave but numbers the consecutive tones like
>> this: [0,1,2,3,#,4,5,6,7,8,9,b,10,11,12,13,1#,14,15,16,17,18]. Is there
>> a way to use this list instead of just counting up from 1 - n on a
>> tabulature?
>>
>> Thank you for your help,
>> Christian
> Hi,
>
> not sure I understand.
> Like below?
>
> \version "2.19.82"
>
> \layout {
>   \context {
>     \Score
>     tablatureFormat =
>       #(lambda (context string-number fret-number)
>         (let* ((my-signs
>                 '(0 1 2 3 "#" 4 5 6 7 8 9 "b" 10 11 12 13 "1#" 14 15 16 17 
> 18))
>                (ls-length (length my-signs))
>                (my-sign
>                  (if (> fret-number (1- ls-length))
>                      fret-number
>                      (list-ref my-signs fret-number))))
>          (if (integer? fret-number)
>              (make-vcenter-markup
>                (format #f "~a" my-sign ))
>              (fret-number-tablature-format context string-number 
> fret-number))))
>   }
> }
>
> \new TabVoice
>   \relative e' {
>     e f fis g gis a ais b c cis d dis e f fis g gis a ais b c cis
>   }
>
>
> Cheers,
>   Harm
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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