Changeset c93e44d in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 06:14:21 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
fa50076
Parents:
3f2d518
Message:

Fixed msm.c.

Location:
ram
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ram/im700.c

    r3f2d518 rc93e44d  
    597597        memset(keystat, 0, 24);         /* clear front panel key status */
    598598        memset(trgtab,  0, NTRIGS);     /* clear trigger status table */
    599         memset(mctlval, 0, NCTRLS);     /* clear MIDI controller values */
     599        memset(mctlval, 0, 2 * NCTRLS); /* clear MIDI controller values */
    600600
    601601        memsetw(grpmode, 0, 12);        /* set all groups to PLAY */
  • ram/msm.c

    r3f2d518 rc93e44d  
    277277                                                                                        ep->e_time = t_cur;
    278278                                                                                        ep->e_type = EV_ANVL;
    279                                                                                         ep->e_data1 = 0x0050 | i;
     279                                                                                        ep->e_data1 = (int8_t)(0x0050 | i);
    280280                                                                                        ep->e_dn = (struct s_entry *)((int32_t)mdb1 << 16);
    281281                                                                                        p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd;
     
    515515                                                        prstab[t1] = 0;
    516516
    517                                                         stmproc(t1);    /* process as a patch stimulus */
     517                                                        stmproc((uint16_t)t1);  /* process as a patch stimulus */
    518518
    519519                                                        if (editsw) {   /* edit mode */
     
    570570                                                        }
    571571
    572                                                         stmproc(0x8000 | t1);   /* process as a patch stimulus */
     572                                                        stmproc((uint16_t)0x8000 | (uint16_t)t1);       /* process as a patch stimulus */
    573573                                                }
    574574
  • ram/swinit.c

    r3f2d518 rc93e44d  
    115115int8_t  loadedf[NLTYPES][8];    /* loaded file names */
    116116int8_t  masens[3];              /* MIDI port active sensing flags */
    117 int8_t  mctlval[NCTRLS];        /* MIDI controller values */
    118 int8_t  mdbyte[3];              /* MIDI data byte buffers */
     117int16_t mctlval[NCTRLS];        /* MIDI controller values */
     118int16_t mdbyte[3];              /* MIDI data byte buffers */
    119119int8_t  mpsust[48];             /* MIDI sustain status, by port and channel */
    120 int8_t  mrstat[3];              /* MIDI running status */
     120int16_t mrstat[3];              /* MIDI running status */
    121121int8_t  scname[N_SCORES][16];   /* Score names */
    122122int8_t  trgtab[NTRIGS];         /* trigger status */
  • ram/swinit.x

    r3f2d518 rc93e44d  
    9090extern  int8_t          masens[3];
    9191extern  int16_t         mctlnum[4];
    92 extern  int8_t          mctlval[NCTRLS];
    93 extern  int8_t          mdbyte[3];
     92extern  int16_t         mctlval[NCTRLS];
     93extern  int16_t         mdbyte[3];
    9494extern  int16_t         mpbend[48];
    9595extern  int8_t          mpsust[48];
    96 extern  int8_t          mrstat[3];
     96extern  int16_t         mrstat[3];
    9797extern  int16_t         msmstv[3];
    9898extern  int32_t         ndbytes;
Note: See TracChangeset for help on using the changeset viewer.