On Wednesday 30 July 2003 12:54 am, Guillaume Laurent wrote: > OK, we're sending a MidiController event... I guess I'm being > confused again by what instrument IDs actually represent.
*sigh* Ok, we have a set of Segments which map to Track Ids. Then we have a Track that maps to an Instrument. Instrument IDs are generated according to Devices (MidiDevices or AudioDevices) and have associated channels, pan levels, controllers etc. When Segments are turned into MappedEvents they retain InstrumentId but if you read the top of sound/MappedEvent.h: [..] // The MappedEvent/Instrument relationship is interesting - we don't // want to duplicate the entire Instrument at the Sequencer level as // it'd be messy and unnecessary. Instead we use a MappedInstrument // which is just a very cut down Sequencer-side version of an Instrument. [..] Slightly out of date now but still relevant enough to be useful. I've not looked at the mmap stuff still but it's basically the MappedComposition yes? It will therefore hold MappedEvents that have InstrumentIds in them. I would assume that the Segments are getting remapped in that case (or at least something is changing the InstrumentIds at the MappedEvent level) if you're getting new instruments when modifying them. Are you actually talking about changing Instruments or changing the program changes (in the IPB drop down)? The Program Changes and Bank Changes are just asynchronous MIDI events, yes. If you're remapping Instruments and not regenerating the MappedComposition I'd be surprised if it works. R ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Rosegarden-devel mailing list [EMAIL PROTECTED] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
