sugarlabs / musicblocks

Music Blocks -- A musical microworld
https://musicblocks.sugarlabs.org/
GNU Affero General Public License v3.0
546 stars 739 forks source link

Peculiar Tie Output Lilypond #2040

Open pikurasa opened 4 years ago

pikurasa commented 4 years ago

This is a very small issue.

For the default code (in Japanese) of Do Mi Sol Do if I put a tie on the first Do, I get

土竜 = {
\meter
c'2  e'4  g'4  c''2  ~c''2  
}

If I tie the first and second notes, I get:

土竜 = {
\meter
c'2  e'4  g'4  c''2.  ~c''4  
}

I did not split the last whole note into two notes and I did not put a tie on the last note, so I do not expect this output.

Here are the test files: tie-test.zip

Ishakikani9117 commented 4 years ago

@pikurasa when you said that you tied the first and second notes which are c'2 and e'4 ,you cannot do that. Because according to the documentation ,for tie to work ,both pitches should be exactly same otherwise it will be considered as a slur.

pikurasa commented 4 years ago

@pikurasa when you said that you tied the first and second notes which are c'2 and e'4 ,you cannot do that. Because according to the documentation ,for tie to work ,both pitches should be exactly same otherwise it will be considered as a slur.

You are correct, for the second case, that the syntax is not correct for Lilypond.

That being said, I do not know why this affects the last note output from MB.

Screenshot at 2020-03-09 15:54:14

As for the first case, the syntax is meaningless for Music Blocks as well, and it should also not be affecting the MB-generated lilypond output.

Screenshot at 2020-03-09 15:55:47

(picture above generated from the following MB code)

Screenshot at 2020-03-09 15:44:12 tie test

pikurasa commented 1 year ago

@MohitGupta14 Needs some testing, and is perhaps not the most important.