Skip to content

Commit

Permalink
open via flags for the lib being tested
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Oct 31, 2023
1 parent 66e84c9 commit 228aa92
Show file tree
Hide file tree
Showing 56 changed files with 67 additions and 95 deletions.
12 changes: 11 additions & 1 deletion systems/cello/e12/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
(library
(name fingerboard_cello_system_e12)
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Base -open Stdio)
(flags
-w
+a-4-40-41-42-44-66
-warn-error
+a
-open
Base
-open
Stdio
-open
Fingerboard)
(libraries base fingerboard stdio textutils.ascii_table)
(inline_tests)
(preprocess
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e12/e12.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let create () =
Cello.fifth_system
~acoustic_interval:
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e12/e12.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
open! Fingerboard

val t : System.t Lazy.t
2 changes: 0 additions & 2 deletions systems/cello/e12/scales.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale t ~characterized_scale ~from =
System.make_scale t ~characterized_scale ~from ~to_:Cello.fingerboard_highest_note
;;
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e12/scales.mli
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
open! Fingerboard

val lower_c : Located_note.t
val lower_e_flat : Located_note.t
2 changes: 0 additions & 2 deletions systems/cello/e12/sixths.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_major_scale ~from =
let t = force E12.t in
System.Double_stops.make_scale
Expand Down
1 change: 0 additions & 1 deletion systems/cello/e12/sixths.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
2 changes: 0 additions & 2 deletions systems/cello/e12/thirds.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_major_scale ~from =
let t = force E12.t in
System.Double_stops.make_scale
Expand Down
1 change: 0 additions & 1 deletion systems/cello/e12/thirds.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
12 changes: 11 additions & 1 deletion systems/cello/e53/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
(library
(name fingerboard_cello_system_e53)
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Base -open Stdio)
(flags
-w
+a-4-40-41-42-44-66
-warn-error
+a
-open
Base
-open
Stdio
-open
Fingerboard)
(libraries base fingerboard stdio textutils.ascii_table)
(inline_tests)
(preprocess
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e53/e53.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let create () =
Cello.fifth_system
~acoustic_interval:
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e53/e53.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
open! Fingerboard

val t : System.t Lazy.t
2 changes: 0 additions & 2 deletions systems/cello/e53/scales.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "edo53 and octaves" =
let t = force E53.t in
let az = Cello.find_fingerboard_position_exn t `P8z_e53 in
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e53/scales.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

val lower_c : Located_note.t
val lower_cp_sharp : Located_note.t
val lower_dp_flat : Located_note.t
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e53/sixths.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let adjustment =
{ System.Double_stops.Adjustment.from =
Acoustic_interval.equal_division_of_the_octave ~divisor:53 ~number_of_divisions:40
Expand Down
1 change: 0 additions & 1 deletion systems/cello/e53/sixths.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
2 changes: 0 additions & 2 deletions systems/cello/e53/thirds.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let adjustment =
{ System.Double_stops.Adjustment.from =
Acoustic_interval.equal_division_of_the_octave ~divisor:53 ~number_of_divisions:13
Expand Down
1 change: 0 additions & 1 deletion systems/cello/e53/thirds.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
12 changes: 11 additions & 1 deletion systems/cello/e55/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
(library
(name fingerboard_cello_system_e55)
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Base -open Stdio)
(flags
-w
+a-4-40-41-42-44-66
-warn-error
+a
-open
Base
-open
Stdio
-open
Fingerboard)
(libraries base fingerboard stdio textutils.ascii_table)
(inline_tests)
(preprocess
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e55/e55.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let create () =
Cello.fifth_system
~acoustic_interval:
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e55/e55.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
open! Fingerboard

val t : System.t Lazy.t
2 changes: 0 additions & 2 deletions systems/cello/e55/scales.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale t ~characterized_scale ~from =
System.make_scale t ~characterized_scale ~from ~to_:Cello.fingerboard_highest_note
;;
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e55/scales.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

val lower_c : Located_note.t
val lower_c_sharp : Located_note.t
val lower_d_flat : Located_note.t
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/e55/sixths.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale ~characterized_scale ~from =
let t = force E55.t in
System.Double_stops.make_scale
Expand Down
1 change: 0 additions & 1 deletion systems/cello/e55/sixths.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
2 changes: 0 additions & 2 deletions systems/cello/e55/thirds.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale ~characterized_scale ~from =
let t = force E55.t in
System.Double_stops.make_scale
Expand Down
1 change: 0 additions & 1 deletion systems/cello/e55/thirds.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
12 changes: 11 additions & 1 deletion systems/cello/just/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
(library
(name fingerboard_cello_system_just)
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Base -open Stdio)
(flags
-w
+a-4-40-41-42-44-66
-warn-error
+a
-open
Base
-open
Stdio
-open
Fingerboard)
(libraries base fingerboard stdio textutils.ascii_table)
(inline_tests)
(preprocess
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/just/just.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let create () = Cello.fifth_system ()

let add_positions t =
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/just/just.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
open! Fingerboard

val t : System.t Lazy.t
2 changes: 0 additions & 2 deletions systems/cello/just/scales.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale t ~characterized_scale ~from =
System.make_scale t ~characterized_scale ~from ~to_:Cello.fingerboard_highest_note
;;
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/just/scales.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

val lower_c : Located_note.t
val lower_dz_flat : Located_note.t
val lower_d : Located_note.t
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/just/sixths.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let adjustment =
{ System.Double_stops.Adjustment.from =
Acoustic_interval.pythagorean
Expand Down
1 change: 0 additions & 1 deletion systems/cello/just/sixths.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
2 changes: 0 additions & 2 deletions systems/cello/just/thirds.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let adjustment =
{ System.Double_stops.Adjustment.from =
Acoustic_interval.pythagorean
Expand Down
1 change: 0 additions & 1 deletion systems/cello/just/thirds.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
12 changes: 11 additions & 1 deletion systems/cello/pythagorean/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
(library
(name fingerboard_cello_system_pythagorean)
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Base -open Stdio)
(flags
-w
+a-4-40-41-42-44-66
-warn-error
+a
-open
Base
-open
Stdio
-open
Fingerboard)
(libraries base fingerboard stdio textutils.ascii_table)
(inline_tests)
(preprocess
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/pythagorean/pythagorean.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let create () = Cello.fifth_system ()

let add_positions t =
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/pythagorean/pythagorean.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
open! Fingerboard

val t : System.t Lazy.t
2 changes: 0 additions & 2 deletions systems/cello/pythagorean/scales.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale t ~characterized_scale ~from =
System.make_scale t ~characterized_scale ~from ~to_:Cello.fingerboard_highest_note
;;
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/pythagorean/scales.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

val lower_c : Located_note.t
val lower_c_sharp : Located_note.t
val lower_d_flat : Located_note.t
Expand Down
2 changes: 0 additions & 2 deletions systems/cello/pythagorean/sixths.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale ~characterized_scale ~from =
let t = force Pythagorean.t in
System.Double_stops.make_scale
Expand Down
1 change: 0 additions & 1 deletion systems/cello/pythagorean/sixths.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
2 changes: 0 additions & 2 deletions systems/cello/pythagorean/thirds.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let make_scale ~characterized_scale ~from =
let t = force Pythagorean.t in
System.Double_stops.make_scale
Expand Down
1 change: 0 additions & 1 deletion systems/cello/pythagorean/thirds.mli
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
open! Fingerboard
12 changes: 11 additions & 1 deletion test/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
(library
(name fingerboard_test)
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Base -open Stdio)
(flags
-w
+a-4-40-41-42-44-66
-warn-error
+a
-open
Base
-open
Stdio
-open
Fingerboard)
(libraries
base
fingerboard
Expand Down
2 changes: 0 additions & 2 deletions test/test__acoustic_interval.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "first comparison" =
let module Kind = struct
type t =
Expand Down
2 changes: 1 addition & 1 deletion test/test__cello_systems.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
open! Fingerboard
open! Fingerboard_cello_system_e12
open! Fingerboard_cello_system_e53
open! Fingerboard_cello_system_just
open! Fingerboard_cello_system_pythagorean


let%expect_test "E12.sexp_of_t" =
let t = force E12.t in
print_s [%sexp (t : System.t)];
Expand Down
2 changes: 0 additions & 2 deletions test/test__fingerboard_position.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let fingerboard_positions =
List.map Cello.Fingerboard_position_name.all ~f:(fun t ->
t, Cello.Fingerboard_position_name.acoustic_interval_to_the_open_string t)
Expand Down
2 changes: 0 additions & 2 deletions test/test__interval.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let qualities number ~doubly_augmented =
let open Interval.Quality in
List.concat
Expand Down
2 changes: 0 additions & 2 deletions test/test__natural_ratio.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "natural_ratio" =
let ( /^ ) a b = Natural_ratio.create_exn ~numerator:a ~denominator:b in
let ( // ) = Natural_ratio.divide in
Expand Down
2 changes: 0 additions & 2 deletions test/test__note.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "semitons_step" =
let rec aux start acc index =
if Note.Letter_name.equal start index && acc > 0
Expand Down
2 changes: 0 additions & 2 deletions test/test__roman_numeral.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "round-trip" =
List.iter Roman_numeral.all ~f:(fun n1 ->
let n2 = n1 |> Roman_numeral.to_int |> Roman_numeral.of_int_exn in
Expand Down
2 changes: 0 additions & 2 deletions test/test__scale.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "major and minor" =
let major = force Scale.major in
let minor = force Scale.minor in
Expand Down
2 changes: 0 additions & 2 deletions test/test__system.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let test_pitch_exn ~system ~(intervals_going_down : Characterized_interval.t array) =
(* We test that the pitch is the same for the open string and the position on
the next vibrating string at the position of the interval between the two
Expand Down
2 changes: 0 additions & 2 deletions test/test__zarlinean_combination.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
open! Fingerboard

let%expect_test "combinations" =
let all = force Zarlinean_combination.all in
List.iter all ~f:(fun t -> print_endline (Zarlinean_combination.to_ascii_tables t));
Expand Down

0 comments on commit 228aa92

Please sign in to comment.