Skip to content

Commit

Permalink
better fix to score accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
jpffitch committed Mar 26, 2017
1 parent 88589ff commit 4d5ec72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Engine/swritestr.c
Expand Up @@ -40,7 +40,11 @@ static char *fpnum(CSOUND *,char *, int, int, CORFIL *sco);
static void fltout(CSOUND *csound, MYFLT n, CORFIL *sco)
{
char *c, buffer[1024];
CS_SPRINTF(buffer, "%.12f", n); /* is tis the corect length? */
#ifdef USE_DOUBLE
CS_SPRINTF(buffer, "%la", n);
#else
CS_SPRINTF(buffer, "%a", n);
#endif
/* corfile_puts(buffer, sco); */
for (c = buffer; *c != '\0'; c++)
corfile_putc(*c, sco);
Expand Down
2 changes: 1 addition & 1 deletion Opcodes/OSC.c
Expand Up @@ -188,7 +188,7 @@ static int osc_send(CSOUND *csound, OSCSEND *p)
*/
// 152269
//if (!(hh==NULL && p->lhost == NULL) || strcmp(p->lhost, hh)!=0) {
if(hh && p->lhost) cmpr = strcmp(p->lhost, hh);
if (hh && p->lhost) cmpr = strcmp(p->lhost, hh);
if (!(hh==NULL && p->lhost == NULL) || cmpr !=0) {
if (p->addr != NULL)
lo_address_free(p->addr);
Expand Down

0 comments on commit 4d5ec72

Please sign in to comment.