~ubuntu-branches/ubuntu/raring/muse/raring-proposed

« back to all changes in this revision

Viewing changes to muse/driver/jackmidi.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-11-22 01:16:59 UTC
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: package-import@ubuntu.com-20121122011659-a2fwbf33ceqe1s0t
Tags: upstream-2.1~rc1
ImportĀ upstreamĀ versionĀ 2.1~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
            case ME_NOTEON:
467
467
            case ME_NOTEOFF:
468
468
            case ME_CONTROLLER:
 
469
            case ME_POLYAFTER:
469
470
                  event.setA(*(ev->buffer + 1));
470
471
                  event.setB(*(ev->buffer + 2));
471
472
                  break;
752
753
                  if(MusEGlobal::debugMsg)
753
754
                    printf("MidiJackDevice::queueEvent: event type %x not supported\n", e.type());
754
755
                  return true;   // Absorb the event. Don't want it hanging around in the list. 
755
 
                  break;
756
756
            }
757
757
            
758
758
            return true;
846
846
      }
847
847
    }
848
848
      
849
 
    if(a == CTRL_PITCH) 
 
849
    if((a | 0xff) == CTRL_POLYAFTER) 
 
850
    {
 
851
      //printf("MidiJackDevice::processEvent CTRL_POLYAFTER v:%d time:%d type:%d ch:%d A:%d B:%d\n", v, event.time(), event.type(), event.channel(), event.dataA(), event.dataB());
 
852
      if(!queueEvent(MidiPlayEvent(t, port, chn, ME_POLYAFTER, a & 0x7f, b & 0x7f)))
 
853
        return false;
 
854
    }
 
855
    else if(a == CTRL_AFTERTOUCH) 
 
856
    {
 
857
      //printf("MidiJackDevice::processEvent CTRL_AFTERTOUCH v:%d time:%d type:%d ch:%d A:%d B:%d\n", v, event.time(), event.type(), event.channel(), event.dataA(), event.dataB());
 
858
      if(!queueEvent(MidiPlayEvent(t, port, chn, ME_AFTERTOUCH, b & 0x7f, 0)))
 
859
        return false;
 
860
    }
 
861
    else if(a == CTRL_PITCH) 
850
862
    {
851
863
      int v = b + 8192;
852
864
      //printf("MidiJackDevice::processEvent CTRL_PITCH v:%d time:%d type:%d ch:%d A:%d B:%d\n", v, event.time(), event.type(), event.channel(), event.dataA(), event.dataB());