Troubles with Serial.read, I get incorrect bytes *SOLVED*

Board: Arduino NANO Atmega168
I try to send and receive MIDI-data using serial port and some soft. Any MIDI signal consists of 3 bytes, example: B0 01 00 in HEX (B0 01 - MIDI address, 00 - value from 0 to 127 in DEC). I send data from board to pc, value sets by potentiometer, and all work. I trying to send from pc to board same data and read by using Serial.read() command, but first byte reads correctly and other two are incorrect.
Example: pc send B1 01 00, Arduino read and show me B1 40 FF. B1 01 01 -> B1 40 FF, B1 01 02 -> B1 40 E0 etc. Below is my code.

byte val, val2;
byte temp = 0;
char temp2 = 0;
byte temp3 = 0;

void setup() {
  Serial.begin(256000);
  val = analogRead(7)/8;
  val2 = val;
  Serial.write(0xB0);
  Serial.write(1);
  Serial.write(val2);
  delay(1);
}

void loop() {
  val = analogRead(7)/8;
  if (val != val2)
  {  //I made it to Arduino did not send a lot of times the same signal
    val2 = val;
    Serial.write(0xB0);
    Serial.write(1);
    Serial.write(val2);
  }
  if (Serial.available() > 0)
  {
    temp = Serial.read();
    Serial.write(temp); //show correct received data in com-port debugger
    temp2 = Serial.read();
    Serial.write(temp2); //show incorrect received data in com-port debugger
    temp3 = Serial.read();
    Serial.write(temp3); //show incorrect received data in com-port debugger
  }

}

HEX data that pc send is correct, I approve that by sending pc MIDI-signals via virtual com-port to debugger.

Try:
if (Serial.available() >=3)

arduino_new:
Try:
if (Serial.available() >=3)

Still not work and receive incorrect second and third bytes.

SOLVED!
I replace Serial.begin(256000) to Serial.begin(256000,SERIAL_8N2). I change number of stop bits from 1 to 2 in Arduino and pc connection parameters, and it's all.
https://www.arduino.cc/reference/en/language/functions/communication/serial/begin/

If anyone want create some similar - I use COM Port Toolkit v4 for debugging
http://www.compt.ru/ru/download.php

Hairless MIDI for creating bridge between COM-port and MIDI port
http://projectgus.github.io/hairless-midiserial/

LoopMIDI for creating virtual MIDI I/O port for DAW
https://www.tobias-erichsen.de/software/loopmidi.html

FREE Virtual Serial Ports driver for making virtual COM-ports and bridge between them
https://freevirtualserialports.com/

All soft is free and works on fresh Win 10 x64. It's not a spam, I just want to be useful for community.

I highly doubt that Hairless uses SERIAL_8N2.

Your code is susceptible to framing errors. Not all MIDI messages are three bytes long.

On top of that, MIDI controllers should not echo MIDI input to their output.