Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Studiologic SL Keyboard display - display 5 doesn't show text #884

Open
gofer723 opened this issue Aug 15, 2023 · 1 comment
Open

Studiologic SL Keyboard display - display 5 doesn't show text #884

gofer723 opened this issue Aug 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@gofer723
Copy link

gofer723 commented Aug 15, 2023

As described in the "Announcing ReaLearn" thread: https://forum.cockos.com/showpost.php?p=2701362&postcount=3631
Display 5 of this MIDI source doesn't show any text.

I found that the SysEx messages sent to either line of this particular section of SL display does contain the correct addresses, but not the actual text part.

I assume the issue lies in the following lines in (what I think would be) midi_source.rs, committed on Sep 11, 2022 "#670 Add support for SL88 keyboard display":
lines 1863 - 1880

mpl SlKeyboardDisplayDestination {
    pub fn new(section_index: u8, line_index: u8) -> Self {
        Self {
            section_index,
            line_index,
        }
    }

    pub fn line_length(&self) -> u8 {
        match (self.section_index, self.line_index) {
            (0, 0) => 13,
            (1..=3, 0) => 10,
            (1..=3, 1) => 9,
            _ => 0,
        }
    }
}

Proposing that lines 1874/1875 might have a numbering mistake and should possibly be:

(1..=4, 0) => 10,
(1..=4, 1) => 9,

I really hope that this simple change would solve the issue,

thanks (I feel kinda uncanny about sniffing around in your code and proposing changes, I must say... After all I am a total noob and you coded this masterpiece of a software)

@helgoboss helgoboss added question Further information is requested bug Something isn't working and removed question Further information is requested labels Sep 14, 2023
@helgoboss
Copy link
Owner

Hi gofer, thanks for the report. Currently, I'm not at home so I can't experiment with the actual SL keyboard. Yes, it's quite possible that I made a mistake in the lines you pointed out. If you want, you can check it by building the project yourself. In addition to the instructions in CONTRIBUTING.md, you might want to check out the correct version tag (the tip of the master branch is in a state of flux at the moment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants