aboutsummaryrefslogtreecommitdiff
path: root/fmdriver
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-08-19 23:17:00 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-08-19 23:17:00 +0900
commitd38e40158eca32668d86a9a77419733c9cd0737e (patch)
treeabc682f04bc3ff89f2ea98852231f399def8e2ab /fmdriver
parentd871fc30b0ed1518fd33206e312f64004c80cf31 (diff)
FMP: fixed PZDF pitchbend display
Diffstat (limited to 'fmdriver')
-rw-r--r--fmdriver/fmdriver_fmp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fmdriver/fmdriver_fmp.c b/fmdriver/fmdriver_fmp.c
index 74c119c..8f2a7af 100644
--- a/fmdriver/fmdriver_fmp.c
+++ b/fmdriver/fmdriver_fmp.c
@@ -2814,7 +2814,8 @@ static void fmp_work_status_update(struct fmdriver_work *work,
}
if (part->pdzf.mode) {
track->info = FMDRIVER_TRACK_INFO_PDZF;
- track->actual_key = 0xff;
+ track->actual_key = part->status.rest ? 0xff : fmdriver_ppz8_freq2key(part->pdzf.lastfreq);
+ ppztrack->actual_key = track->actual_key;
} else if (part->u.ssg.env_f.ppz) {
track->info = FMDRIVER_TRACK_INFO_PPZ8;
track->actual_key = 0xff;
@@ -2830,8 +2831,8 @@ static void fmp_work_status_update(struct fmdriver_work *work,
struct fmdriver_track_status *ppztrack =
&work->track_status[FMDRIVER_TRACK_PPZ8_1-1+track->ppz8_ch];
track->info = FMDRIVER_TRACK_INFO_PDZF;
- track->actual_key = 0xff;
- ppztrack->actual_key = 0xff;
+ track->actual_key = part->status.rest ? 0xff : fmdriver_ppz8_freq2key(part->pdzf.lastfreq);
+ ppztrack->actual_key = track->actual_key;
ppztrack->playing = !part->status.off;
ppztrack->key = track->key;
ppztrack->tonenum = work->ppz8 ? work->ppz8->channel[track->ppz8_ch-1].voice : 0;