Skip to content

Commit

Permalink
bug22
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Oct 16, 2024
1 parent 0572bd6 commit 40d7ccb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output.mid
4 changes: 4 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all:

test:
dune exec ./bug22.exe
13 changes: 13 additions & 0 deletions tests/bug22.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(* Bug #22 *)

open Mm_midi

let () =
let fname = "output.mid" in
let writer = new MIDI.IO.Writer.to_file 44100 fname in
writer#note_on 1 64 1.0;
writer#advance 44100;
writer#note_off 1 64 0.0;
writer#close;
(* let reader = new MIDI.IO.Reader.of_file fname in *)
(* reader#read 0 *)
12 changes: 12 additions & 0 deletions tests/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(executable
(name bug22)
(libraries mm)
)

(rule
(alias runtest)
(action
(run ./bug22.exe)
)
)

0 comments on commit 40d7ccb

Please sign in to comment.