AutoMidiPlayer icon indicating copy to clipboard operation
AutoMidiPlayer copied to clipboard

Incorrect Key Binds on BPSR

Open Firemu opened this issue 2 months ago • 5 comments

What happened?

This game does not use a system where pressing the Shift key raises the pitch by a semitone.

Currently, this feature is not working properly, so please check it within the game.

Operating System

Windows 11

Game

Blue Protocol: Star Resonance

Instrument

No response

Steps to reproduce

No response

Upload Logs

No response

Upload MIDI Files

No response

Firemu avatar Sep 09 '26 03:09 Firemu

Hi! Thanks for bringing this up, unfortunately BPSR isn't available in my country, so I won't be able to test this on my end.


Sorry for this long reply... Please correct or confirm my understanding before I start implementing this change.


Image

I'm a bit confused at first about how this works, though. From what I can see in the video, it seems like the piano only has 36 keys that are pressable at a time, with L Shift for High Octave and L Ctrl for Low Octave. After searching for a while, I came to the conclusion that there are three states:

State Key to switch Note range
Low Octave Press L Ctrl once C2–B4
Default Press L Ctrl or L Shift to return C3–B5
High Octave Press L Shift once C4–B6

The L Ctrl and L Shift keys are only pressed once to switch between these states rather than being held down. So, it behaves similarly to Roblox, but the octave keys are toggled rather than held. The current architecture of Auto MIDI Player only supports holding modifiers for individual notes, so I'll need to do a bit of tinkering to support BPSR's toggle-based octave switching.

As for the + (<) and - (>) buttons shown in the video, would it be safe to leave these unsupported and simply let the user set the current page range, assuming they aren't normally used while playing?

It also seems like BPSR supports a sustain pedal (Space), so I'd be happy to implement that as well.

Updated BPSR keyboard mappings
public static readonly KeyboardLayoutConfig QWERTY_36Key_Extended = new(
    name: "QWERTY",
    keys: [
        // Low Octave overflow: C2–B2
        "^z", // C2
        "^1", // C#2
        "^x", // D2
        "^2", // D#2
        "^c", // E2
        "^v", // F2
        "^3", // F#2
        "^b", // G2
        "^4", // G#2
        "^n", // A2
        "^5", // A#2
        "^m", // B2

        // Default: C3–B5
        "z", // C3
        "1", // C#3
        "x", // D3
        "2", // D#3
        "c", // E3
        "v", // F3
        "3", // F#3
        "b", // G3
        "4", // G#3
        "n", // A3
        "5", // A#3
        "m", // B3

        "a", // C4
        "6", // C#4
        "s", // D4
        "7", // D#4
        "d", // E4
        "f", // F4
        "8", // F#4
        "g", // G4
        "9", // G#4
        "h", // A4
        "0", // A#4
        "j", // B4

        "q", // C5
        "i", // C#5
        "w", // D5
        "o", // D#5
        "e", // E5
        "r", // F5
        "p", // F#5
        "t", // G5
        "[", // G#5
        "y", // A5
        "]", // A#5
        "u", // B5

        // High Octave overflow: C6–B6
        "Q", // C6
        "I", // C#6
        "W", // D6
        "O", // D#6
        "E", // E6
        "R", // F6
        "P", // F#6
        "T", // G6
        "{", // G#6
        "Y", // A6
        "}", // A#6
        "U", // B6
    ]);

Jed556 avatar Sep 11 '26 10:09 Jed556

Thank you very much for your kind reply.

I apologize for not providing enough information in my previous report. Also, since I usually just download files from GitHub, this is the first time I’ve reached out like this. I apologize if anything seems a bit awkward. First of all, I am a Japanese player, and I tested the functionality using the Japanese client. The performance/playing specifications should be the same in both the Global and Chinese versions. I am using a translation tool (GPT) to communicate with you, so I apologize if anything is unclear or difficult to understand.

[Piano playing] The playable range expands as the instrument level increases. Since it would probably be difficult to create separate settings for every level, I think supporting Lv4 alone would be a good approach.

Lv1 (initial): C3–B4 Lv2: C3–B6 Lv3: A0–B6 Lv4: A0–C8

The function keys correspond to the following ranges:

F1: A0–B2 F2 (initial): C3–B5 F3: C6–C8 Left Shift: Move up one octave Left Ctrl: Move down one octave [<] [>]: Switch between the F1–F3 screens

Although the UI displays these as [<] and [>], the actual keys that work are [,] and [.]. For example, if you want to play C1 immediately followed by E7, you need to press [>] twice to switch from F1 to F3. Because of this, I originally thought this function would not have much practical use. However, I noticed that the "ResonanceMidiPlayer" application seems to use it quite frequently. Perhaps because of this, the notes sometimes behave strangely. I do not know why ResonanceMidiPlayer does not use the F1–F3 keys directly.

About the attached videos demo01.mp4: A test of the key controls demo02.mp4: I tried playing "La Campanella" using another tool as a test

ResonanceMidiPlayer: https://github.com/Defoco303/resonance-midi

Firemu avatar Sep 12 '26 20:09 Firemu

When switching octaves, you don't need to hold down the key. Thanks to the toggle mechanism, you can switch octaves with a single press of the key.

Firemu avatar Sep 12 '26 20:09 Firemu

Here is the video file. Since it exceeded the size limit😭 , I tried using SwissTransfer. https://www.swisstransfer.com/dl/01a0977b-c77c-70d9-a8fa-30ee1f4acf04 Password is 336633

It seems like it would take quite a bit of effort to make, and I don’t think there’s much demand for it, so please don’t push yourself too hard. I was truly delighted that you took the time to reply, so I decided to reach out even though my English isn’t very good. Thank you so much.

Firemu avatar Sep 12 '26 21:09 Firemu

Hi... TYSM for clarifying a lot of things for me! This is very informative, don't worry, this is just my hobby project, so you don't have to be formal with me or anything. XD

So it seems that my findings for the said pages were wrong, and I'm honestly surprised that the piano supports up to C8, plus a leveling system for an instrument? That's a new game mechanic I've never heard of... XD Chatter aside, I think I can work around this. I'll also check the reference repo you've linked so I can use their implementation as a guide for this update.

Thanks for taking the time to help me with this! I really appreciate it. 💖

Jed556 avatar Sep 13 '26 00:09 Jed556