From ca933d746ba16ef326d9b4ba85d51940ab9e8add Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Sun, 29 Jul 2018 19:37:27 +0000 Subject: feat: initial version of midifi software This CL introduces the initial version of the midifi software, via a simplified CLI interface "playsmf". Though it is far from complete, this version can be manually invoked with the locations of the MIDI communications port (the `-com` flag), and MIDI file. It will playback the MIDI file with the correct time. Software is currently tested with an integration test, that invokes the program with a known MIDI file and compares the output of the serial port, standard out, and standard error. Golden files can be updated by providing the `-test.update-golden` flag. Change-Id: I312bc721736e2edf385ece5141133ffa6bd20a72 Signed-off-by: Terin Stock --- cmd/playsmf/testdata/ceottk-output.golden | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cmd/playsmf/testdata/ceottk-output.golden (limited to 'cmd/playsmf/testdata/ceottk-output.golden') diff --git a/cmd/playsmf/testdata/ceottk-output.golden b/cmd/playsmf/testdata/ceottk-output.golden new file mode 100644 index 0000000..4cac21b --- /dev/null +++ b/cmd/playsmf/testdata/ceottk-output.golden @@ -0,0 +1,16 @@ +file: ./testdata/ceottk.mid +file format: SMF1 (multitrack) +number of tracks: 2 +time format: 480 MetricTicks +=========== +channel.NoteOn channel 1 key 79 velocity 81 +channel.ProgramChange channel 1 program 19 +channel.NoteOn channel 1 key 81 velocity 81 +channel.NoteOff channel 1 key 79 +channel.NoteOn channel 1 key 77 velocity 81 +channel.NoteOff channel 1 key 81 +channel.NoteOn channel 1 key 65 velocity 81 +channel.NoteOff channel 1 key 77 +channel.NoteOn channel 1 key 72 velocity 81 +channel.NoteOff channel 1 key 65 +channel.NoteOff channel 1 key 72 -- cgit v1.2.3