From 679a39ca3e2e8e982ba927851277fcd138ffef8c Mon Sep 17 00:00:00 2001 From: Vincent Alsteen Date: Mon, 16 Nov 2020 05:21:41 +0100 Subject: [PATCH] add 1 to channel when displaying it --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6ca6452..2298181 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()),