Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ahankinson committed Oct 20, 2016
2 parents 2fea149 + c1a93fd commit f814992
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/ExportGenerators.mss
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ function GenerateLayers (staffnum, measurenum) {
{
mobj = GenerateLine(bobj);
}
case('GlissandoLine')
{
mobj = GenerateLine(bobj);
}
case('Trill')
{
mobj = GenerateLine(bobj);
Expand Down Expand Up @@ -1332,6 +1336,10 @@ function GenerateLine (bobj) {
libmei.AddAttribute(line, 'dis', octrend[0]);
libmei.AddAttribute(line, 'dis.place', octrend[1]);
}
case ('GlissandoLine')
{
line = libmei.Gliss();
}
case ('Trill')
{
line = GenerateTrill(bobj);
Expand Down
2 changes: 1 addition & 1 deletion src/GLOBALS.mss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version "2.0.3"
Version "2.0.4"
PluginName "Sibelius to MEI Exporter"
Author "Andrew Hankinson"

Expand Down
28 changes: 25 additions & 3 deletions src/Utilities.mss
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,35 @@ function AddBarObjectInfoToElement (bobj, element) {

libmei.AddAttribute(element, 'tstamp', ConvertPositionToTimestamp(bobj.Position, bar));

if (bobj.Type = 'Line' or bobj.Type = 'Slur' or bobj.Type = 'DiminuendoLine' or bobj.Type = 'CrescendoLine')
switch (bobj.Type)
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
case('Line')
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
}
case('Slur')
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
}
case('DiminuendoLine')
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
}
case('CrescendoLine')
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
}
case('GlissandoLine')
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
}
case('Trill')
{
libmei.AddAttribute(element, 'tstamp2', ConvertPositionWithDurationToTimestamp(bobj));
}
}

libmei.AddAttribute(element, 'staff', bar.ParentStaff.StaffNum);

libmei.AddAttribute(element, 'layer', voicenum);

if (bobj.Dx > 0)
Expand Down

0 comments on commit f814992

Please sign in to comment.