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

midi note on for beginner


  • Subject: midi note on for beginner
  • From: Vadim Kupriyanov <email@hidden>
  • Date: Sat, 8 Apr 2006 12:53:05 +0400

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


  • Follow-Ups:
    • Re: midi note on for beginner
      • From: "daniel åkerud" <email@hidden>
  • Prev by Date: Re: Thread issue - sure can use some help
  • Next by Date: digital silence transitions with AUTimePitch format converter
  • Previous by thread: Re: schedule AU parameters with a mTimeStamp?
  • Next by thread: Re: midi note on for beginner
  • Index(es):
    • Date
    • Thread