Re: MusicDevice and soundfonts
Re: MusicDevice and soundfonts
- Subject: Re: MusicDevice and soundfonts
- From: Chris Rogers <email@hidden>
- Date: Mon, 9 Sep 2002 13:02:19 -0700
Jeremy,
Are you sending a bank select and program change first before sending
notes to the synth?? I believe it should be initialized to patch 0 bank 0,
but it never hurts to force the patch before sending notes...
Chris Rogers
Core Audio Engineer
Apple Computer
Hello,
I am trying to use the MusicDevice for soundfont2 in OS 10.1.5 and all I get
is silence.
I am trying to use it directly as an audiounit. I have other apple
audiounits working properly. I can get a valid instruments count and
instrument name, so I know that the soundfont is at least semi-loaded.
The big thing (I think) is that I am using solely the MIDI protocol. I do
not use prepare instrument. What am I doing wrong?
MusicDeviceMIDIEvent(m_audioUnit, status, midiData[1], midiData[2],
deltaFrames);
I render the audiounit with:
AudioUnitRenderSlice(m_audioUnit, 0, &theTime,
output, &myAudioBuffer);
also the time field I use I set up myself and only fill in and set the
kAudioTimeStampSampleTimeValid flag.
Thanks,
Jeremy
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.