Alter Pattern VU meters

This commit is contained in:
Wirlaburla 2024-02-26 20:16:24 -06:00
parent 58422c1dc7
commit b57f03f963

View File

@ -493,17 +493,17 @@ void displayPatterns(xmp_module_info *mi, xmp_frame_info *fi) {
wmove(dis, 0, cxpos); wmove(dis, 0, cxpos);
for (int i = 0; i < mi->mod->chn; i++) { for (int i = 0; i < mi->mod->chn; i++) {
struct xmp_channel_info cinfo = fi->channel_info[i]; struct xmp_channel_info cinfo = fi->channel_info[i];
int voll = (cinfo.volume * (256-cinfo.pan)/256)*2; int voll = (cinfo.volume * (256-cinfo.pan)/256);
if (voll >= 64) wattron(dis, volhi); if (voll >= 48) wattron(dis, volhi);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, volhi); wattroff(dis, volhi);
if (voll >= 48) wattron(dis, volmd); if (voll >= 32) wattron(dis, volmd);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, volmd); wattroff(dis, volmd);
if (voll >= 32) wattron(dis, vollo); if (voll >= 16) wattron(dis, vollo);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, vollo); wattroff(dis, vollo);
if (voll >= 16) wattron(dis, vollo); if (voll >= 8) wattron(dis, vollo);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, vollo); wattroff(dis, vollo);
if (voll > 0) wattron(dis, vollo); if (voll > 0) wattron(dis, vollo);
@ -520,20 +520,20 @@ void displayPatterns(xmp_module_info *mi, xmp_frame_info *fi) {
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, chnvw); wattroff(dis, chnvw);
int volr = (cinfo.volume * cinfo.pan/256)*2; int volr = (cinfo.volume * cinfo.pan/256);
if (volr > 0) wattron(dis, vollo); if (volr > 0) wattron(dis, vollo);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, vollo); wattroff(dis, vollo);
if (volr >= 8) wattron(dis, vollo);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, vollo);
if (volr >= 16) wattron(dis, vollo); if (volr >= 16) wattron(dis, vollo);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, vollo); wattroff(dis, vollo);
if (volr >= 32) wattron(dis, vollo); if (volr >= 32) wattron(dis, volmd);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, vollo);
if (volr >= 48) wattron(dis, volmd);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, volmd); wattroff(dis, volmd);
if (volr >= 64) wattron(dis, volhi); if (volr >= 48) wattron(dis, volhi);
mvwaddch(dis, 0, (cxpos++)-hOffset, ' '); mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
wattroff(dis, volhi); wattroff(dis, volhi);