mirror of
https://github.com/sshlien/abcmidi.git
synced 2026-02-04 12:48:11 +00:00
2020.07.14
This commit is contained in:
@@ -13745,4 +13745,12 @@ can take various values.
|
||||
You can find a test file detune.abc in the samples folder.
|
||||
|
||||
|
||||
July 14 2020
|
||||
yaps: cleaned up numerous gcc warnings such as
|
||||
drawtune.c:3245:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
|
||||
lineno = (int)(ft->item);
|
||||
|
||||
changed
|
||||
lineno = (long)(ft->item);
|
||||
etc.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ abcMIDI : abc <-> MIDI conversion utilities
|
||||
midi2abc version 3.46 June 22 2020
|
||||
abc2midi version 4.38 July 05 2020
|
||||
abc2abc version 2.08 June 04 2020
|
||||
yaps version 1.77 June 04 2020
|
||||
yaps version 1.78 June 14 2020
|
||||
abcmatch version 1.73 June 04 2020
|
||||
midicopy version 1.36 June 04 2019
|
||||
|
||||
|
||||
26
drawtune.c
26
drawtune.c
@@ -1475,7 +1475,7 @@ static void sizevoice(struct voice* v, struct tune* t)
|
||||
case DYNAMIC:
|
||||
break;
|
||||
case LINENUM:
|
||||
lineno = (int)(ft->item);
|
||||
lineno = (long)(ft->item);
|
||||
break;
|
||||
case MUSICLINE:
|
||||
break;
|
||||
@@ -2958,7 +2958,7 @@ static int printvoiceline(struct voice* v)
|
||||
(v->place->type == LEFT_TEXT) || (v->place->type == CENTRE_TEXT) ||
|
||||
(v->place->type == VSKIP))) {
|
||||
if (v->place->type == LINENUM) {
|
||||
lineno = (int)(v->place->item);
|
||||
lineno = (long)(v->place->item);
|
||||
};
|
||||
if (v->place->type == NEWPAGE) {
|
||||
newpage();
|
||||
@@ -2970,7 +2970,7 @@ static int printvoiceline(struct voice* v)
|
||||
printtext(centre, v->place->item, &textfont);
|
||||
};
|
||||
if (v->place->type == VSKIP) {
|
||||
vskip((double)((int)v->place->item));
|
||||
vskip((double)((long)v->place->item));
|
||||
};
|
||||
v->place = v->place->next;
|
||||
};
|
||||
@@ -3004,21 +3004,21 @@ static int printvoiceline(struct voice* v)
|
||||
switch (ft->type) {
|
||||
case SINGLE_BAR:
|
||||
fprintf(f, "%.1f bar\n", ft->x);
|
||||
printbarnumber(ft->x, (int)ft->item);
|
||||
printbarnumber(ft->x, (long)ft->item);
|
||||
break;
|
||||
case DOUBLE_BAR:
|
||||
fprintf(f, "%.1f dbar\n", ft->x);
|
||||
printbarnumber(ft->x, (int)ft->item);
|
||||
printbarnumber(ft->x, (long)ft->item);
|
||||
inend = endrep(inend, endstr, xend, ft->x, spacing->yend);
|
||||
break;
|
||||
case BAR_REP:
|
||||
fprintf(f, "%.1f fbar1 %.1f rdots\n", ft->x, ft->x+10);
|
||||
printbarnumber(ft->x, (int)ft->item);
|
||||
printbarnumber(ft->x, (long)ft->item);
|
||||
inend = endrep(inend, endstr, xend, ft->x, spacing->yend);
|
||||
break;
|
||||
case REP_BAR:
|
||||
fprintf(f, "%.1f rdots %.1f fbar2\n", ft->x, ft->x+10);
|
||||
printbarnumber(ft->x, (int)ft->item);
|
||||
printbarnumber(ft->x, (long)ft->item);
|
||||
inend = endrep(inend, endstr, xend, ft->x, spacing->yend);
|
||||
break;
|
||||
case REP1:
|
||||
@@ -3041,7 +3041,7 @@ static int printvoiceline(struct voice* v)
|
||||
break;
|
||||
case BAR1:
|
||||
fprintf(f, "%.1f bar\n", ft->x);
|
||||
printbarnumber(ft->x, (int)ft->item);
|
||||
printbarnumber(ft->x, (long)ft->item);
|
||||
inend = endrep(inend, endstr, xend, ft->x - ft->xleft, spacing->yend);
|
||||
inend = 1;
|
||||
strcpy(endstr, "1");
|
||||
@@ -3049,7 +3049,7 @@ static int printvoiceline(struct voice* v)
|
||||
break;
|
||||
case REP_BAR2:
|
||||
fprintf(f, "%.1f rdots %.1f fbar2\n", ft->x, ft->x+10);
|
||||
printbarnumber(ft->x, (int)ft->item);
|
||||
printbarnumber(ft->x, (long)ft->item);
|
||||
inend = endrep(inend, endstr, xend, ft->x - ft->xleft, spacing->yend);
|
||||
inend = 2;
|
||||
strcpy(endstr, "2");
|
||||
@@ -3242,7 +3242,7 @@ static int printvoiceline(struct voice* v)
|
||||
if(psaction->color == 'b') redcolor = 0;
|
||||
break;
|
||||
case LINENUM:
|
||||
lineno = (int)(ft->item);
|
||||
lineno = (long)(ft->item);
|
||||
break;
|
||||
case MUSICLINE:
|
||||
v->line = midline;
|
||||
@@ -3324,7 +3324,7 @@ static int finalsizeline(struct voice* v)
|
||||
ft = ft->next;
|
||||
};
|
||||
if ((ft != NULL) && (ft->type == PRINTLINE)) {
|
||||
avertspacing = ft->item;
|
||||
avertspacing = ft->item;
|
||||
avertspacing->height = (float) height;
|
||||
avertspacing->descender = (float) descender;
|
||||
avertspacing->yend = (float) yend;
|
||||
@@ -3365,7 +3365,7 @@ static int getlineheight(struct voice* v, double* height)
|
||||
(v->place->type == LEFT_TEXT) || (v->place->type == CENTRE_TEXT) ||
|
||||
(v->place->type == VSKIP))) {
|
||||
if (v->place->type == LINENUM) {
|
||||
lineno = (int)(v->place->item);
|
||||
lineno = (long)(v->place->item);
|
||||
};
|
||||
if (v->place->type == LEFT_TEXT) {
|
||||
*height = *height + textfont.pointsize + textfont.space;
|
||||
@@ -3374,7 +3374,7 @@ static int getlineheight(struct voice* v, double* height)
|
||||
*height = *height + textfont.pointsize + textfont.space;
|
||||
};
|
||||
if (v->place->type == VSKIP) {
|
||||
*height = *height + (double)((int)v->place->item);
|
||||
*height = *height + (double)((long)v->place->item);
|
||||
};
|
||||
v->place = v->place->next;
|
||||
};
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/* yapstree.c - back-end for abc parser. */
|
||||
/* generates a data structure suitable for typeset music */
|
||||
|
||||
#define VERSION "1.77 June 04 2020 yaps"
|
||||
#define VERSION "1.78 July 14 2020 yaps"
|
||||
#include <stdio.h>
|
||||
#ifdef USE_INDEX
|
||||
#define strchr index
|
||||
|
||||
Reference in New Issue
Block a user