Line 305: |
Line 305: |
| <br> | | <br> |
| In general, for a derived Music Component, you won't have to implement <cite>any</cite> | | In general, for a derived Music Component, you won't have to implement <cite>any</cite> |
− | of the standard Music Component calls. Rather, you will write a set of calls all
| + | of the standard Music Component calls. Rather, you will write a set of calls all |
| prefixed by MusicDerived-. These calls are made only by the base Generic Music Component. | | prefixed by MusicDerived-. These calls are made only by the base Generic Music Component. |
| Furthermore, your component can make calls to the generic music component which are not part the standard music component calls; These calls are prefixed by MusicGeneric-. | | Furthermore, your component can make calls to the generic music component which are not part the standard music component calls; These calls are prefixed by MusicGeneric-. |
Line 314: |
Line 314: |
| pascal ComponentResult<br> | | pascal ComponentResult<br> |
| local MusicGenericConfigure(MusicComponent mc,<br> | | local MusicGenericConfigure(MusicComponent mc,<br> |
− | long mode,long flags,long baseResID)<br>
| + | long mode,long flags,long baseResID)<br> |
| <br> | | <br> |
| The first thing your derived music component should do is attempt to open up the generic | | The first thing your derived music component should do is attempt to open up the generic |
Line 380: |
Line 380: |
| pascal ComponentResult<br> | | pascal ComponentResult<br> |
| MusicDerivedMIDISend(MusicComponent mc,MusicMIDIPacket *packet)<br> | | MusicDerivedMIDISend(MusicComponent mc,MusicMIDIPacket *packet)<br> |
− | ComponentCallNow(kMusicDerivedMIDISendSelect,4);<br>
| + | ComponentCallNow(kMusicDerivedMIDISendSelect,4);<br> |
| <br> | | <br> |
| If the derived component is configured with the flag kGenericMusicErsatzMIDI then | | If the derived component is configured with the flag kGenericMusicErsatzMIDI then |
Line 476: |
Line 476: |
| <hr> | | <hr> |
| | | |
− | <h2><center>Sample Music Component</center></h2> | + | <h2>Sample Music Component</h2> |
| <blockquote> | | <blockquote> |
| Download source files for a complete | | Download source files for a complete |
Line 484: |
Line 484: |
| This is a fairly typical and straightforward music component, which | | This is a fairly typical and straightforward music component, which |
| is based upon the generic music component described in this document. | | is based upon the generic music component described in this document. |
− | <menu>
| + | |
| <li>[[MT32MusicComponent.c]] | | <li>[[MT32MusicComponent.c]] |
| <li>[[MT32MusicComponent.r]] | | <li>[[MT32MusicComponent.r]] |
| <p> | | <p> |
− | <li><[[GenericMusicComponent.r]] | + | <li>[[GenericMusicComponent.r]] |
| <li>[[QuickTimeMusic.h]] | | <li>[[QuickTimeMusic.h]] |
| <li>[[MusicComponent.k.h]] | | <li>[[MusicComponent.k.h]] |
− | </menu>
| + | |
| </blockquote> | | </blockquote> |
| | | |
| [[Category:Programming]] | | [[Category:Programming]] |
| + | [[Category:MIDI]] |