summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-12-19 17:42:24 +0100
committerRobin Gareus <robin@gareus.org>2017-12-19 17:42:24 +0100
commit851add389d1fa2d701ad4e48e7f36ae123eef2d8 (patch)
tree195c013a83901d34cba0248944f88a12e79980e9 /scripts
parent4ebcef53f8cc1ab97a081433f59f04beab3ab13d (diff)
Update sysex upload script (allow up to 256 bytes)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/_tx_raw_midi_from_file.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/_tx_raw_midi_from_file.lua b/scripts/_tx_raw_midi_from_file.lua
index 36cbdc1a39..a5e8606b85 100644
--- a/scripts/_tx_raw_midi_from_file.lua
+++ b/scripts/_tx_raw_midi_from_file.lua
@@ -73,9 +73,9 @@ function factory () return function ()
-- parse MIDI data byte-by-byte
for i = 1, #bytes do
if parser:process_byte (bytes:byte (i)) then
- if parser:buffer_size () > 127 then
+ if parser:buffer_size () > 255 then
long_message = true
- print ("WARNING -- single large message > 127, bytes: ", parser:buffer_size ())
+ print ("WARNING -- single large message > 255, bytes: ", parser:buffer_size ())
end
-- parsed complete normalized MIDI message, send it
async_midi_port:write (parser:midi_buffer (), parser:buffer_size (), 0)