• 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
Re: midi note on for beginner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: midi note on for beginner


  • Subject: Re: midi note on for beginner
  • From: "daniel åkerud" <email@hidden>
  • Date: Tue, 11 Apr 2006 15:49:48 +0200

I believe you have to do a lot more than that to make it work? Where
are you sending the MIDI message? In the line:

MIDISend(1, 1, &packetList);

What is 1, 1? Thats most certainly where your problem lies. You have
to create MIDI endpoints to send it to... and who's on the other end?

BR
D

On 4/8/06, Vadim Kupriyanov <email@hidden> wrote:
> Hello!
>
> My question CoreMidi related:
> Where I can see example code of simple sending out of midi note on?
> I has search in mailing archives, but not find COMPLETE standalone
> working example...
> I try to do it, but my code is not working...
>
> #import <Cocoa/Cocoa.h>
> #include <stdio.h>
> #include <CoreMIDI/MIDIServices.h>
>
> int main()
>
> {
>
> MIDIPacketList packetList;
> MIDIPacket *packetPtr = MIDIPacketListInit(&packetList);
> char midiData[3];
> midiData[0] = 0x90 + 1;//midi channel
> midiData[1] = 0x7A;//midi note number
> midiData[2] = 0x7A;//midi note velocity
> packetPtr = MIDIPacketListAdd(&packetList, sizeof packetList,
> packetPtr, AudioGetCurrentHostTime(), 3, (const Byte *)&midiData);
> MIDISend(1, 1, &packetList);
> }
>
>
> Best regards,
> Vadim
>
>  _______________________________________________
> 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
>
 _______________________________________________
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

References: 
 >midi note on for beginner (From: Vadim Kupriyanov <email@hidden>)

  • Prev by Date: Re: Thread issue - sure can use some help
  • Next by Date: AudioDeviceID properties
  • Previous by thread: midi note on for beginner
  • Next by thread: Re: midi note on for beginner
  • Index(es):
    • Date
    • Thread