Skip to content

Commit

Permalink
aseqdump: Add missing dump of UMP Set Key Signature Message
Browse files Browse the repository at this point in the history
The handling of Set Key Signature message of the Flex Data type was
missing by some reason.  Now the definition was added in alsa-lib
ump_msg.h, so let's show the contents.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Aug 20, 2024
1 parent 5b51102 commit 09a89f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions seq/aseqdump/aseqdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,14 @@ static void dump_ump_flex_data_event(const unsigned int *ump)
return;
}

if (fh->meta.status_bank == SND_UMP_FLEX_DATA_MSG_BANK_SETUP &&
fh->meta.status == SND_UMP_FLEX_DATA_MSG_STATUS_SET_KEY_SIGNATURE) {
printf("UMP Set Key Signature sharps/flats %d, tonic %d\n",
fh->set_key_sig.sharps_flats,
fh->set_key_sig.tonic_note);
return;
}

if (fh->meta.status_bank == SND_UMP_FLEX_DATA_MSG_BANK_SETUP &&
fh->meta.status == SND_UMP_FLEX_DATA_MSG_STATUS_SET_CHORD_NAME) {
printf("UMP Set Chord Name tonic %d %d %d, alt1 %d/%d, alt2 %d/%d, alt3 %d/%d, alt4 %d/%d, bass %d %d %d, alt1 %d/%d alt2 %d/%d\n",
Expand Down

0 comments on commit 09a89f0

Please sign in to comment.