Commit Graph

8 Commits

Author SHA1 Message Date
lathoub ee85989cd9 updated simulator
simulator using actual BLE parser, using a BLE simulator
Note: you need a manually add a path to ../src and arduino_midi_library/src
2021-08-05 23:10:17 +02:00
RobertoHE 4a99e1e2ea
Removed size filter and added runningStatus enable
Previous size filter might add a 2-bytes full midi and other running status (other byte) like a 3-bytes full midi message wrongly. It may cause a bug depending if serial Parser accepts or not running status messages.
This commit removes that previous and unnecessary size filter but it still discriminte the size of message after this point:
2f48b0f25b/test/msvc/ConsoleApplication2.cpp (L78-L91)

If #define RUNNINGSTATUS_ENABLE is commented, it will transform all incoming runningStatus messages in full midi messages. Else, it will put in the buffer the same info that it had received (runningStatus will be not transformated).
I recommend not use runningStatus by default. Only use if parser accepts runningStatus and your application has a so high transmission rate.
2021-08-05 12:57:14 +02:00
RobertoHE 7a3ae808e6
Added runningStatus continuation in receive()
Added runningStatus continuation after a timeStamp Low or a System message (0xF#)

I only have modificated the MSVS code, check it before you copy it to to BLEtransport.h
2021-08-04 14:01:54 +02:00
lathoub fa85454114 parser pointer types as int, not byte
increase pointer size, spec says message can have any length (quick internet search indicate packet length can be larger than 255)
2021-08-04 05:40:29 +02:00
lathoub e572f7f599 Update ConsoleApplication2.cpp
run all test data
2021-08-04 05:24:08 +02:00
lathoub 3d44ddc3a7 updated examples (SysEx with RealTime msg in the middle) 2021-08-04 05:13:53 +02:00
lathoub 20354c247c further refinement of the parser
need to further check edge cases:
- RealTime msg in the middle of a regular msg
- RealTime msg in the middle of a SysEx
2021-08-04 05:06:05 +02:00
lathoub b9fd6a8d3d parser test project in MSVC2019 2021-08-03 21:46:31 +02:00