Chapitre 9 Exemples d'applications utilisant le XV-3080
Utilisation du XV-3080
comme module son General
MIDI
/H ;9
PRGH *0 GM mode)³XQ PR\HQ SUDWLTXH GH
UHVWLWXHU RX GH FUpHU GHV ILFKLHUV PXVLFDX[ DX IRUPDW *HQHUDO
0,', 9RXV SRXYH] MRXHU GHV ILFKLHUV PXVLFDX[ GLVSRQLEOHV
GDQV OH FRPPHUFH HW PrPH PRGLILHU GLIIpUHQWV SDUDPqWUHV
SRXU HQULFKLU O· H[SUHVVLRQ PXVLFDOH
Valider le mode GM
/H PRGH *0 HVW IRQGDPHQWDOHPHQW LGHQWLTXH j XQ W\SH
VSpFLILTXH GH 3HUIRUPDQFH GDQV ODTXHOOH XQ 5K\WKP 6HW DX
IRUPDW *HQHUDO 0,', HVW DVVLJQp j OD 3DUWLH
DX IRUPDW *HQHUDO 0,', VRQW DVVLJQpV j G·DXWUHV 3DUWLHV
&HSHQGDQW YRXV QH SRXYH] SDV VWRFNHU OHV UpJODJHV GX PRGH
*0 GDQV OD PpPRLUH XWLOLVDWHXU
fig.9-02
/D SDJH *0 3/$<PRQWUH XQ 3DWFK RX XQ 5K\WKP 6HW
DVVLJQp j FKDTXH 3DUWLH
$ FKDTXH IRLV TXH YRXV HQWUH] HQ PRGH *0 OH 'UXP 6HW *0
VHW GH EDWWHULH *0 HVW DVVLJQp j OD 3DUWLH
DVVLJQp DX[ DXWUHV 3DUWLHV 9RXV SRXYH] pJDOHPHQW
VpOHFWLRQQHU G·DXWUHV 3DWFKHV *0 HW 'UXP 6HWV *0 SRXU
FKDTXH 3DUWLH SRXU IDLUH FRUUHVSRQGUH OD SHUIRUPDQFH
1. $SSX\H] VXU >*0@ GDQV 02'( SRXU DSSHOHU OD SDJH
*0 3/$<
/RUVTXH YRXV FRQQHFWH] OH ;9
JpQpUDWHXU GH VRQV V·DXWR LQLWLDOLVH VXU OHV UpJODJHV GH EDVH
GX V\VWqPH *0
2. 3RXU PRGLILHU OD SDUWLH HQ FRXUV $SSX\H] VXU >
>
@
3. 3RXU PRGLILHU OH 3DWFK *0 RX OH 5K\WKP 6HW *0
DVVLJQp j OD 3DUWLH HIIHFWXH] OD PrPH SURFpGXUH TXH
ORUVTXH YRXV VpOHFWLRQQH] XQ 3DWFK RX XQ 5K\WKP 6HW
Initialisation du générateur de sons
pour recevoir les valeurs basiques du
General MIDI System
3RXU MRXHU XQ ILFKLHU PXVLFDO *0 FRUUHFWHPHQW OH JpQpUDWHXU
GH VRQV GRLW G·DERUG rWUH LQLWLDOLVp DX[ UpJODJHV GH EDVH GX
V\VWqPH *0 /H JpQpUDWHXU GH VRQV GX ;9
GDQV OHV FDV VXLYDQWV
/RUVTXH OH ;9
HVW FRPPXWp HQ PRGH *0
/RUVTX·LO UHoRLW XQ PHVVDJH *0 6\VWHP 2Q SURYHQDQW
146
HW GHV 3DWFKHV
OH 3LDQR HVW
HQ PRGH *0 OH
@ RX
HVW LQLWLDOLVp
G·XQ DSSDUHLO 0,', H[WHUQH
/RUVTX·XQ PHVVDJH *0 6\VWHP 2Q HVW UHQFRQWUp GDQV
OHV GRQQpHV QXPpULTXHV GX PRUFHDX TXL HVW UHVWLWXp
/RUVTXH OH ;9
HVW VRXV WHQVLRQ
/RUVTXH YRXV DFWLYH] OD IRQFWLRQ ©,QLWLDOL]Hª GX *0 S
Restitution d'un fichier GM
/RUVTXH OH ;9
HVW HQ PRGH *0 LO MRXH GHV ILFKLHUV *0
FRUUHFWHPHQW 0DLV DX GHOj LO D GH QRPEUHXVHV DXWUHV
IRQFWLRQV pWHQGXHV QRQ GpILQLHV GDQV OHV VSpFLILFDWLRQV GX
V\VWqPH *0 VL YRXV FUpH] GHV ILFKLHUV PXVLFDX[ HQ XWLOLVDQW
FHV IRQFWLRQV pWHQGXHV YRWUH PRUFHDX SHXW QH SDV rWUH
UHVWLWXp FRUUHFWHPHQW VXU G·DXWUHV PRGXOHV VRQ FRPSDWLEOHV
*0
'H SOXV ELHQ TXH OH ;9
OH IRUPDW *6 HQ UHFHYDQW XQ PHVVDJH 0,', *6 5HVHW OD VpULH
6RXQG &DQYDV GH 5RODQG LQFOXDQW OH 6&
SRVVqGH XQ V\VWqPH GH JpQpUDWLRQ GH VRQV GLIIpUHQW HW XQH
FDUWH GH WRQHV pWHQGXH YRXV QH SRXUUH] SHXW rWUH SDV
UHVWLWXHU FRUUHFWHPHQW GHV LQIRUPDWLRQV 0,', ILFKLHUV
PXVLFDX[ *6 FUppHV VSpFLDOHPHQW SRXU Q·rWUH XWLOLVpHV TXH
VXU GHV DSSDUHLOV GH OD VpULH 6RXQG &DQYDV
/H GpEXW G·XQ ILFKLHU *0 FRQWLHQW QRUPDOHPHQW XQ PHVVDJH
*0 6\VWHP 2Q 'RQF VL YRXV MRXH] XQ ILFKLHU *0 HQ
FRPPHQoDQW SDU OH GpEXW GX PRUFHDX OH ;9
DXWRPDWLTXHPHQW HQ PRGH *0 0DLV VL YRXV MRXH] XQ ILFKLHU
*0 HQ FRPPHQoDQW DX PLOLHX G·XQ PRUFHDX OH ;9
VH PHWWUD SDV HQ PRGH *0 DXWRPDWLTXHPHQW HW OH ILFKLHU
*0 ULVTXH GH QH SDV rWUH MRXp FRUUHFWHPHQW 3RXU SOXV GH
VpFXULWp LO HVW FRQVHLOOp GH UpJOHU PDQXHOOHPHQW OH ;9
PRGH *0 DYDQW GH MRXHU XQ ILFKLHU *0
Rendre silencieuse une partie
/RUVTXH YRXV SDVVH] HQ PRGH *0 WRXWHV OHV SDUWLHV VHURQW
UpJOpHV SRXU UHFHYRLU GHV PHVVDJHV 0,', 3RXU GpVDFWLYHU
XQH SDUWLH HW OD UHQGUH VLOHQFLHXVH UpJOH] OH SDUDPqWUH
5HFHLYH 6ZLWFK 2)) SRXU ODGLWH 3DUWLH
7RXW G·DERUG DSSX\H] VXU >5;@ SRXU DOOXPHU VRQ YR\DQW
OXPLQHX[
$ FHW LQVWDQW OH UpJODJH RQ RII GH FKDTXH SDUWLH DSSDUDvWUD
JUkFH DX[ WpPRLQV GH 3$57 6(/(&7 >
WpPRLQ >
@ HVW pWHLQW OHV WpPRLQV GX ERXWRQ GH
IRQFWLRQ LQGLTXHURQW O·pWDW GHV SDUWLHV ² /RUVTXH OH WpPRLQ
>
@ HVW DOOXPp OHV WpPRLQV GX ERXWRQ GH IRQFWLRQ
LQGLTXHURQW O·pWDW GHV SDUWLHV ²
TXH OH ©RIIª HVW pWHLQW
$SSX\H] VXU 3$57 6(/(&7 >
GpVDFWLYHU OD SDUWLH
VRLW pJDOHPHQW FRPSDWLEOH DYHF
HW OH 6&
EDVFXOHUD
@²> ² @ /RUVTXH OH
/H ©RQª HVW DOOXPp WDQGLV
@²>
@ SRXU DFWLYHU RX
QH
HQ