Skip to content

Commit

Permalink
Merge pull request #49 from music-encoding/develop
Browse files Browse the repository at this point in the history
New bugfix release
  • Loading branch information
ahankinson authored Sep 17, 2016
2 parents 3f8584f + 518533d commit a789d0b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/ExportGenerators.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1326,16 +1326,7 @@ function GenerateTrill (bobj) {
symbol object. This method normalizes both of these.
*/
trill = libmei.Trill();
voicenum = bobj.VoiceNumber;
bar = bobj.ParentBar;

if (voicenum = 0)
{
warnings = Self._property:warnings;
warnings.Push(utils.Format(_ObjectAssignedToAllVoicesWarning, bar.BarNumber, voicenum, bobj.Type));
voicenum = 1;
}

obj = GetNoteObjectAtPosition(bobj);

if (obj != null)
Expand All @@ -1354,6 +1345,8 @@ function GenerateChordSymbol (bobj) {
Generates a <harm> element containing chord symbol information
*/
harm = libmei.Harm();

libmei.AddAttribute(harm, 'staff', bobj.ParentBar.ParentStaff.StaffNum);
libmei.AddAttribute(harm, 'tstamp', ConvertPositionToTimestamp(bobj.Position, bobj.ParentBar));
libmei.SetText(harm, bobj.ChordNameAsPlainText);

Expand Down

0 comments on commit a789d0b

Please sign in to comment.