FAQ Database Discussion Community


When is a MIDINoteMessage played in a MusicTrack? iOS

ios,sequence,midi,audiotoolbox,coremidi
I'm creating a MusicTrack of MIDI Notes that are successfully played using MusicPlayerStart(sequencePlayer) But I would like to know when are they played, so I can update the UI for each MIDI Note played. // Creating MIDI Track MusicTrack track; UInt32 trackIndex = 0; musicTrackAtIndex(trackIndex, &track); //Adding Tempo addTempoEvent(0.0, 120);...

AudioFileReadPackets Error -50

osx,compiler-errors,core-audio,audiotoolbox
I'm playing with Audio API and my first step was to read the content of a file into the buffer. I have the following code, but when AudioFileReadPackets is executed I get return code -50 which I don't get it, since in the documentation it doesn't exists. Can you please...

vibrate iPhone in silent mode in Objective c

ios,objective-c,audiotoolbox
I am developing an app where i have to vibrate the device. The AudioServicesPlayAlertSound and AudioServicesPlaySystemSound is working only when the iPhone vibration setting is on. But not working for silent mode. Is there any way to vibrate the device when the phone is in silent mode ? Any solution...

iOS how to play midi notes?

ios,core-audio,midi,audiounit,audiotoolbox
I have searched and already have done an OS X app that can play MIDI notes, but when i tried in iOS, nothing happened. Here is the core code: AUGraph graph; AudioUnit synthUnit; AUNode synthNode, outNode; NewAUGraph(&graph); AudioComponentDescription cd; cd.componentManufacturer = kAudioUnitManufacturer_Apple; cd.componentType = kAudioUnitType_MusicDevice; cd.componentSubType = kAudioUnitSubType_MIDISynth; AUGraphAddNode(graph, &cd,...