Tux Guitar

Problems

Subject Voice2 tied notes in Lilypond



Author Message
Tom
Post: Dec 13th 2009 at 10:14 PM

Hi,

When I export to Lilypond, I notice that tied notes in Voice2 aren't shown correctly, both within a measure and across measures. These notes are shown as separate and not tied.

Tied notes in Voice1 are rendered correctly in all cases.

Is there a fix for this?

Thank you,

Tom


Back to Top
 
Julian
Post: Dec 14th 2009 at 12:26 AM

Tom, are you trying it with latest tuxguitar 1.2 version ???
(cause in 1.1 lilypond exporter didn't include 2 voice support)


Back to Top
 
tom
Post: Dec 14th 2009 at 5:15 PM

Julian,

Yes, I am using Version 1.2. Please see the Lilypond output below. I played eight quarter notes on the High E string (Voice 1) and Low E string (Voice 2). In both voices, I put ties between beats 2/3, 4/5 and 7/8.

These ties (the '~' character) are show correctly in TrackAVoiceA but all of them are missing in TrackAVoiceB.

Thank you for your help.

Tom

TrackAVoiceAMusic = #(define-music-function (parser location inTab) (boolean?)
#{
tempo 4=120
clef #(if $inTab "tab" "treble_8")
key c major
time 4/4
voiceOne
4 4 4 4
4 4 4 4
bar "|."
pageBreak
#})
TrackAVoiceBMusic = #(define-music-function (parser location inTab) (boolean?)
#{
tempo 4=120
clef #(if $inTab "tab" "treble_8")
key c major
time 4/4
voiceTwo
4 4 4 4
4 4 4 4
bar "|."
pageBreak
#})


Back to Top
 
Tom
Post: Dec 14th 2009 at 5:20 PM

Sorry, I copied and pasted the output above but it does not display correctly in the forum.

Anyway, you can see what I mean by entering identical rhythms with tied notes in Voice 1 and Voice 2. The ties will show up in Voice 1 but not Voice 2 in the lilypond output.

Thanks,

Tom


Back to Top
 
Tom
Post: Dec 14th 2009 at 5:27 PM

OK, I tried replacing the offending characters with parentheses, hopefully this displays correctly.

Tom

TrackAVoiceAMusic = #(define-music-function (parser location inTab) (boolean?)
#{
tempo 4=120
clef #(if $inTab "tab" "treble_8")
key c major
time 4/4
voiceOne
(e'1)4 (e'~1)4 (e'1)4 (e'~1)4
(e'1)4 (e'1)4 (e'~1)4 (e'1)4
bar "|."
pageBreak
#})
TrackAVoiceBMusic = #(define-music-function (parser location inTab) (boolean?)
#{
tempo 4=120
clef #(if $inTab "tab" "treble_8")
key c major
time 4/4
voiceTwo
(e,6)4 (e,6)4 (e,6)4 (e,6)4
(e,6)4 (e,6)4 (e,6)4 (e,6)4
bar "|."
pageBreak


Back to Top
 
Julian
Post: Dec 14th 2009 at 5:42 PM

I see the problem.. it's a stupid bug in source code.
I just fixed it in SVN version.

a prebuilt version of tuxguitar-lilypond.jar is available here:
http://tuxguitar.svn.sourceforge.net/viewvc/tuxguitar/trunk/TuxGuitar/share/plugins/tuxguitar-lilypond.jar

If you replace your current plugin to this new one, it have to work.


Back to Top
 
Tom
Post: Dec 14th 2009 at 5:52 PM

Thank you! Do you know, what is the path/location of this file I must replace in Ubuntu installation?

Tom


Back to Top
 
Julian
Post: Dec 14th 2009 at 6:00 PM

Assuming you downloaded *,deb package that we made,
the plugins folder is at: /usr/share/tuxguitar/plugins

and you must to have write permissions for that folder to replace the file ( use sudo, or login as root )


Back to Top
 
Tom
Post: Dec 14th 2009 at 6:23 PM

Thank you so much. I will try this on my Ubuntu machine later today and will confirm that it fixes the problem.

Tom


Back to Top
 
Tom
Post: Dec 15th 2009 at 12:03 AM

Julian,

I copied the updated plugin as you said and now it works perfectly. Thank you!!

Tom


Back to Top
 
Paul
Post: Aug 5th 2010 at 10:17 PM

Julian,

thanks for this great program. I just learnt how to export my songs to lilypond and it worked well so far.

Now I have the exact issue on a XP-System with Tuxguitar version 1.2 as described above.

How can I fix this problem for my system?

I have seen that in Tuxguitars plug-in folder on my machine there is also a tuxguitar-lilypond.jar file. Is there a updated version of this file for Windows systems too?

That would be really great! Big thank you in advance.

Greetings from Germany

Paul


Back to Top
 
Julian
Post: Aug 7th 2010 at 4:18 PM

I think it was the revision file for tuxguitar-1.2:
http://tuxguitar.svn.sourceforge.net/viewvc/tuxguitar/trunk/TuxGuitar/share/plugins/tuxguitar-alsa.jar?revision=789&pathrev=795


Back to Top
 
Paul
Post: Aug 9th 2010 at 12:17 PM

Hi,

sorry if my first post wasn't really clear...

I have the same problem as Tom, but not on a Linux system. My operating system is Windows XP Home.

If I try to export a file with two voices in one track, tied notes in voice 2 aren't exported to Lilypond. The ties are missing.

I have tried to copy the file that Julian showed me to the appropriate tuxguitar program folder. This gives me an error message while starting tuxguitar and no success concerning the export to Lilypond.

So, can anyone give me a hint how to solve this problem?

Thanks
Paul

P.S.: I have posted this as a reply to Tom's question, because the problem is exactly the same.


Back to Top
 
Anonymous
Post: Aug 9th 2010 at 1:31 PM

Sorry i gave you a tuxguitar "alsa" link instead of "lilypond", try this new one:
http://tuxguitar.svn.sourceforge.net/viewvc/tuxguitar/trunk/TuxGuitar/share/plugins/tuxguitar-lilypond.jar?revision=789&pathrev=795

It don't matters what OS you have, tuxguitar-lilypond.jar is multiplatform, so same file works for windows, mac, linux, etc...


Back to Top
 
Paul
Post: Aug 12th 2010 at 11:55 AM

Hi,

thanks to all.

Now it's working for me too.

Apart from that, how can I report bugs in tuxguitar and is it welcome?

Greets
Paul


Back to Top
 
Julian
Post: Aug 14th 2010 at 7:52 PM

Paul, ofcourse they are welcome.. post bugs at this forum, at Problems section.


Back to Top