Skip to content

Commit

Permalink
add sysex test data
Browse files Browse the repository at this point in the history
  • Loading branch information
stuffmatic committed Jan 28, 2023
1 parent 93502b8 commit e9d1383
Show file tree
Hide file tree
Showing 19 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test_sysex_data/generate_sysex_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
data_byte_counts = [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
20, 30, 40, 100, 200, 500, 1000
]

for byte_count in data_byte_counts:
output_filename = 'sysex_test_' + str(byte_count).zfill(4) + '_data_bytes.syx'
output_file = open(output_filename, 'wb')
sysex_bytes = [0xf0]
for i in range(byte_count):
sysex_bytes.append(i % 128)
sysex_bytes.append(0xf7)
output_file.write(bytes(sysex_bytes))
output_file.close()
1 change: 1 addition & 0 deletions test_sysex_data/sysex_test_0000_data_bytes.syx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Binary file added test_sysex_data/sysex_test_0001_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0002_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0003_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0004_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0005_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0006_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0007_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0008_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0009_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0010_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0020_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0030_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0040_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0100_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0200_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_0500_data_bytes.syx
Binary file not shown.
Binary file added test_sysex_data/sysex_test_1000_data_bytes.syx
Binary file not shown.

0 comments on commit e9d1383

Please sign in to comment.