• 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: More Re: Playing standard kit with DLS synth
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Re: Playing standard kit with DLS synth


  • Subject: Re: More Re: Playing standard kit with DLS synth
  • From: Jeff Evans <email@hidden>
  • Date: Sat, 13 Jun 2009 21:25:43 -0700

Thanks for that helpful bit - I'm trying to use MusicDeviceStartNote as the primary note-playing method because parts of the software make use of its ability to do microtonal adjustments. I suppose I could use MusicDeviceMIDIEvent for the special case of percussion instruments, but I was hoping there was a way to specify a particular drum kit in the arguments for MusicDeviceStartNote. Seems like there ought to be...

Jeff

On Jun 13, 2009, at 8:39 PM, Jeremy Sagan wrote:



Hello Jeff,

I don't know about MusicDeviceStartNote but if you just send normal MIDI to it via

MusicDeviceMIDIEvent

You can send it standard bank and program changes to select different kits on any channel.
A quick examination shows me that there are 9 kits on bank 1. In order to do this you may need familiarity with the MIDI spec.


Jeremy

On Jun 12, 2009, at 4:50 PM, Jeff Evans wrote:

This is interesting: I see that if I skip specifying the instrument and merely specify channel 10 and kMusicNoteEvent_UseGroupInstrument
as the instrument number, I do get the standard kit. Which at least shows that the DLS synth works for standard kit.
But that precludes specifying a different kit, assuming others are supported. Does anyone know what value to pass as an instrument number in order to get
each of the drum kits? Apparently the old constants based on 0x4000 are not operative here...


Jeff

Thanks - Yes, I'm using channel 10. I think. That at least is how I understand the MusicDeviceStartNote arguments:

MusicDeviceStartNote (synth, //the dls synth
instrument, //instrument i.d. Here I'm using 0x4001 for standard kit
channel, //"MusicDeviceGroupID" - seems to be equivalent to channel?
outNoteID, //pointer to note id...
0, //sample frame offset
noteParams);


I always used 0x4001 as the instrument number for standard kit when doing QuickTime Music Instruments. Perhaps this constant is the problem? Or maybe I'm misunderstanding the meaning of "MusicDeviceGroupID" ?

Jeff

On Jun 12, 2009, at 1:26 PM, Brian Willoughby wrote:




On Jun 12, 2009, at 12:56, Jeff Evans wrote:
Using MusicDeviceStartNote I'm unable to get sounds from the DLS Synth using the "standard kit" percussion instrument (0x4001). Or any of the other drum kits, for that matter, though I know synths often don't support more than the standard kit.

MusicDevicePrepareInstrument() returns noErr when asked to prepare the standard kit with the DLS synth, but then MusicDeviceStartNote produces the same default piano sound as before. Sort of makes me think that the upper byte of that word is being ignored and I'm getting instrument 1 instead.

All other instrument changes work fine, it's only the drum kits that do not. Does the DLS Synth not support the drum kits? Or is there some special step needed to select them?


I know very little about DLS, but General MIDI has been around a long time. Are you sending your MIDI Notes on Channel 10? The General MIDI standard is to have drums on channel 10, and perhaps the DLS is expecting this.

Brian Willoughby
Sound Consulting




-- If this email is spam, report it here: http://www.onlymyemail.com/view/?action=reportSpam&Id=MTAxOTYyOjkxMzE1MzMxODpqZXZhbnNAYXJzLW5vdmEuY29t


_______________________________________________ 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


_______________________________________________ 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: 
 >Playing standard kit with DLS synth (From: Jeff Evans <email@hidden>)
 >Re: Playing standard kit with DLS synth (From: Brian Willoughby <email@hidden>)
 >More Re: Playing standard kit with DLS synth (From: Jeff Evans <email@hidden>)
 >Re: More Re: Playing standard kit with DLS synth (From: Jeremy Sagan <email@hidden>)

  • Prev by Date: Re: More Re: Playing standard kit with DLS synth
  • Next by Date: Re: Trouble with Music Player
  • Previous by thread: Re: More Re: Playing standard kit with DLS synth
  • Next by thread: 16 bit short array to AIFF
  • Index(es):
    • Date
    • Thread