Amplify pattern volume bars
This commit is contained in:
parent
07cd2af3de
commit
58422c1dc7
|
@ -493,7 +493,7 @@ void displayPatterns(xmp_module_info *mi, xmp_frame_info *fi) {
|
|||
wmove(dis, 0, cxpos);
|
||||
for (int i = 0; i < mi->mod->chn; i++) {
|
||||
struct xmp_channel_info cinfo = fi->channel_info[i];
|
||||
int voll = cinfo.volume * (255-cinfo.pan)/255;
|
||||
int voll = (cinfo.volume * (256-cinfo.pan)/256)*2;
|
||||
if (voll >= 64) wattron(dis, volhi);
|
||||
mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
|
||||
wattroff(dis, volhi);
|
||||
|
@ -520,7 +520,7 @@ void displayPatterns(xmp_module_info *mi, xmp_frame_info *fi) {
|
|||
mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
|
||||
wattroff(dis, chnvw);
|
||||
|
||||
int volr = cinfo.volume * cinfo.pan/255;
|
||||
int volr = (cinfo.volume * cinfo.pan/256)*2;
|
||||
if (volr > 0) wattron(dis, vollo);
|
||||
mvwaddch(dis, 0, (cxpos++)-hOffset, ' ');
|
||||
wattroff(dis, vollo);
|
||||
|
|
Loading…
Reference in New Issue
Block a user