Skip to content

Commit

Permalink
correct offset for label_key
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils committed Feb 22, 2022
1 parent 946db3d commit a229ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfzloader.c
Expand Up @@ -192,9 +192,9 @@ static gboolean load_sfz_key_value(struct sfz_parser_client *client, const char
int ctrl = atoi(key + 8);
sampler_program_add_controller_label(ls->program, ctrl, g_strdup(value));
}
else if (!strncmp(key, "label_key", 8))
else if (!strncmp(key, "label_key", 9))
{
int pitch = atoi(key + 8);
int pitch = atoi(key + 9);
sampler_program_add_pitch_label(ls->program, pitch, g_strdup(value));
}
else if (!strncmp(key, "set_cc", 6))
Expand Down

0 comments on commit a229ed7

Please sign in to comment.