• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What is wrong with my MIDI Portamento code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is wrong with my MIDI Portamento code


  • Subject: What is wrong with my MIDI Portamento code
  • From: Patrick Simmons <email@hidden>
  • Date: Sun, 30 Sep 2012 07:09:05 -0500

Hi

I am working on a MIDI program for iOS (5.0+) and cannot get portamento to work

Here is the code:

    // start C
    MusicDeviceMIDIEvent(instrument, kMidiMessage_NoteOn, 60, 127, 0);

    // portamento on
    MusicDeviceMIDIEvent(instrument, 0xb0, 0x41, 0x127, 0);

    // portamento speed
    MusicDeviceMIDIEvent(instrument, 0xb0, 0x05, 0x40, 0);

    // portamento on (from C)
    MusicDeviceMIDIEvent(instrument, 0xb0, 0x54, 60, 0);

    // to D
    MusicDeviceMIDIEvent(instrument, kMidiMessage_NoteOn, 62, 127, 0);

    // stop C
    MusicDeviceMIDIEvent(instrument, kMidiMessage_NoteOff, 60, 0, 5);

It is supposed to play a portamento from C to D but just plays C then D.

Thanks for your help

-Pat
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Audio Reflector Driver Source?
  • Next by Date: Re: Audio Reflector Driver Source?
  • Previous by thread: Re:AuSampler IOS 6 with soundfont pitch is changing
  • Next by thread: Changing Default Device and Sample Rate via Objective C
  • Index(es):
    • Date
    • Thread