mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 08:23:01 +00:00
GUI: OPM preview
This commit is contained in:
parent
bcb8fdbf06
commit
e1140c5015
1 changed files with 4 additions and 2 deletions
|
@ -94,10 +94,12 @@ void FurnaceGUI::renderFMPreviewOPN(const DivInstrumentFM& params, int pos) {
|
||||||
OPM_Write((opm_t*)fmPreviewOPM,0,(addr)); \
|
OPM_Write((opm_t*)fmPreviewOPM,0,(addr)); \
|
||||||
do { \
|
do { \
|
||||||
OPM_Clock((opm_t*)fmPreviewOPM,out,NULL,NULL,NULL); \
|
OPM_Clock((opm_t*)fmPreviewOPM,out,NULL,NULL,NULL); \
|
||||||
|
OPM_Clock((opm_t*)fmPreviewOPM,out,NULL,NULL,NULL); \
|
||||||
} while (((opm_t*)fmPreviewOPM)->write_busy); \
|
} while (((opm_t*)fmPreviewOPM)->write_busy); \
|
||||||
OPM_Write((opm_t*)fmPreviewOPM,1,(val)); \
|
OPM_Write((opm_t*)fmPreviewOPM,1,(val)); \
|
||||||
do { \
|
do { \
|
||||||
OPM_Clock((opm_t*)fmPreviewOPM,out,NULL,NULL,NULL); \
|
OPM_Clock((opm_t*)fmPreviewOPM,out,NULL,NULL,NULL); \
|
||||||
|
OPM_Clock((opm_t*)fmPreviewOPM,out,NULL,NULL,NULL); \
|
||||||
} while (((opm_t*)fmPreviewOPM)->write_busy);
|
} while (((opm_t*)fmPreviewOPM)->write_busy);
|
||||||
|
|
||||||
void FurnaceGUI::renderFMPreviewOPM(const DivInstrumentFM& params, int pos) {
|
void FurnaceGUI::renderFMPreviewOPM(const DivInstrumentFM& params, int pos) {
|
||||||
|
@ -131,8 +133,8 @@ void FurnaceGUI::renderFMPreviewOPM(const DivInstrumentFM& params, int pos) {
|
||||||
}
|
}
|
||||||
OPM_WRITE(0x20,(params.alg&7)|((params.fb&7)<<3)|0xc0);
|
OPM_WRITE(0x20,(params.alg&7)|((params.fb&7)<<3)|0xc0);
|
||||||
OPM_WRITE(0x38,((params.fms&7)<<4)|(params.ams&3));
|
OPM_WRITE(0x38,((params.fms&7)<<4)|(params.ams&3));
|
||||||
OPM_WRITE(0x28,mult0?0x20:0x10); // frequency
|
OPM_WRITE(0x28,mult0?0x39:0x29); // frequency
|
||||||
OPM_WRITE(0x30,0);
|
OPM_WRITE(0x30,0xe6);
|
||||||
OPM_WRITE(0x08,0x78); // key on
|
OPM_WRITE(0x08,0x78); // key on
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue