Skip to content

Commit

Permalink
Merge pull request #4 from valsteen/fix-channel-label
Browse files Browse the repository at this point in the history
add 1 to channel when displaying it
  • Loading branch information
valsteen authored Nov 16, 2020
2 parents d0ffe59 + 679a39c commit 144fe57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct NoteGeneratorPluginParameters {
impl PluginParameters for NoteGeneratorPluginParameters {
fn get_parameter_text(&self, index: i32) -> String {
match index {
0 => format!("{}", self.channel.get()),
0 => format!("{}", self.channel.get() + 1),
1 => format!("{}{}", NOTE_NAMES[self.pitch.get() as usize % 12], ((self.pitch.get() as i8) - C0) / 12),
2 => format!("{}", self.velocity.get()),
3 => format!("{}", self.note_off_velocity.get()),
Expand Down

0 comments on commit 144fe57

Please sign in to comment.