Skip to content

Commit

Permalink
Change LICENSE to AGPL-3.0-or-later
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Apr 4, 2024
1 parent f240ef5 commit 6e67007
Show file tree
Hide file tree
Showing 109 changed files with 2,636 additions and 26 deletions.
14 changes: 14 additions & 0 deletions .headache.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Objective Caml source
".*\\.ml[l]?" -> frame open:"(*" line:"*" close:"*)"
# We add '_' in mli to comply with [ppx_js_style -check-doc-comments].
| ".*\\.mli" -> frame open:"(*_" line:"*" close:"*)"
| ".*\\.fml[i]?" -> frame open:"(*" line:"*" close:"*)"
| ".*\\.mly" -> frame open:"/*" line:"*" close:"*/"
# C source
| ".*\\.[chy]" -> frame open:"/*" line:"*" close:"*/"
# Latex
| ".*\\.tex" -> frame open:"%" line:"%" close:"%"
# Misc
| ".*Makefile.*" -> frame open:"#" line:"#" close:"#"
| ".*README.*" -> frame open:"*" line:"*" close:"*"
| ".*LICENSE.*" -> frame open:"*" line:"*" close:"*"
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 0.0.6 (unreleased)

### Added

### Changed

- Change license to `AGPL-3.0-or-later`.

### Deprecated

### Fixed

### Removed

## 0.0.5 (2024-03-13)

### Changed
Expand Down
661 changes: 661 additions & 0 deletions COPYING

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions COPYING.HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Fingerboard - a microtonal geography of the cello fingerboard
Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com>

This file is part of Fingerboard.

Fingerboard is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or any later version.

Fingerboard is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.

You should have received a copy of the GNU Affero General Public License
along with Fingerboard. If not, see <https://www.gnu.org/licenses/>.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

13 changes: 13 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# License

Fingerboard is released under the terms of the `AGPL-3.0-or-later` license.

This notice file contains more details, as well as document the organization of files and headers that relate to licenses.

## License, copyright & notices

- **COPYING.HEADER** contains the copyright and license notices. It is added as a header to every file in the project.

- **COPYING** contains a copy of the full [AGPL-3.0 license](https://www.gnu.org/licenses/agpl-3.0.txt)

- **NOTICE.md** (this file) documents the project licensing.
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

(generate_opam_files)

(license MIT)
(license "AGPL-3.0-or-later")

(authors "Mathieu Barbin")

Expand All @@ -18,7 +18,7 @@
(package
(name fingerboard)
(synopsis
"Studying various temperaments and intervals on the cello fingerboard")
"A microtonal geography of the cello fingerboard")
(depends
(ocaml
(>= 5.1))
Expand Down
5 changes: 2 additions & 3 deletions fingerboard.opam
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Studying various temperaments and intervals on the cello fingerboard"
synopsis: "A microtonal geography of the cello fingerboard"
maintainer: ["Mathieu Barbin"]
authors: ["Mathieu Barbin"]
license: "MIT"
license: "AGPL-3.0-or-later"
homepage: "https://github.com/mbarbin/fingerboard"
doc: "https://mbarbin.github.io/fingerboard/"
bug-reports: "https://github.com/mbarbin/fingerboard/issues"
Expand Down
24 changes: 24 additions & 0 deletions headache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -e

dirs=(
"src"
"test"
"systems/cello/e12"
"systems/cello/e53"
"systems/cello/e55"
"systems/cello/just"
"systems/cello/pythagorean"
# add more directories here
)

for dir in "${dirs[@]}"; do
# Apply headache to .ml files
headache -c .headache.config -h COPYING.HEADER ${dir}/*.ml

# Check if .mli files exist in the directory, if so apply headache
if ls ${dir}/*.mli 1> /dev/null 2>&1; then
headache -c .headache.config -h COPYING.HEADER ${dir}/*.mli
fi
done

dune fmt
19 changes: 19 additions & 0 deletions src/acoustic_interval.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(**********************************************************************************)
(* Fingerboard - a microtonal geography of the cello fingerboard *)
(* Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(* *)
(* This file is part of Fingerboard. *)
(* *)
(* Fingerboard is free software: you can redistribute it and/or modify it under *)
(* the terms of the GNU Affero General Public License as published by the Free *)
(* Software Foundation, either version 3 of the License, or any later version. *)
(* *)
(* Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(* for more details. *)
(* *)
(* You should have received a copy of the GNU Affero General Public License *)
(* along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(**********************************************************************************)

type t =
| Zero
| Equal_division_of_the_octave of
Expand Down
19 changes: 19 additions & 0 deletions src/acoustic_interval.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(*_*********************************************************************************)
(*_ Fingerboard - a microtonal geography of the cello fingerboard *)
(*_ Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(*_ *)
(*_ This file is part of Fingerboard. *)
(*_ *)
(*_ Fingerboard is free software: you can redistribute it and/or modify it under *)
(*_ the terms of the GNU Affero General Public License as published by the Free *)
(*_ Software Foundation, either version 3 of the License, or any later version. *)
(*_ *)
(*_ Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(*_ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(*_ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(*_ for more details. *)
(*_ *)
(*_ You should have received a copy of the GNU Affero General Public License *)
(*_ along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(*_*********************************************************************************)

(** *)

type t = private
Expand Down
19 changes: 19 additions & 0 deletions src/cello.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(**********************************************************************************)
(* Fingerboard - a microtonal geography of the cello fingerboard *)
(* Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(* *)
(* This file is part of Fingerboard. *)
(* *)
(* Fingerboard is free software: you can redistribute it and/or modify it under *)
(* the terms of the GNU Affero General Public License as published by the Free *)
(* Software Foundation, either version 3 of the License, or any later version. *)
(* *)
(* Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(* for more details. *)
(* *)
(* You should have received a copy of the GNU Affero General Public License *)
(* along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(**********************************************************************************)

module Fingerboard_position_name = struct
module type S = sig
type t [@@deriving compare, equal, enumerate, hash, sexp_of]
Expand Down
19 changes: 19 additions & 0 deletions src/cello.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(*_*********************************************************************************)
(*_ Fingerboard - a microtonal geography of the cello fingerboard *)
(*_ Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(*_ *)
(*_ This file is part of Fingerboard. *)
(*_ *)
(*_ Fingerboard is free software: you can redistribute it and/or modify it under *)
(*_ the terms of the GNU Affero General Public License as published by the Free *)
(*_ Software Foundation, either version 3 of the License, or any later version. *)
(*_ *)
(*_ Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(*_ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(*_ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(*_ for more details. *)
(*_ *)
(*_ You should have received a copy of the GNU Affero General Public License *)
(*_ along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(*_*********************************************************************************)

(** A number of utils applicable to the applications of the library to the cello. *)

module Fingerboard_position_name : sig
Expand Down
19 changes: 19 additions & 0 deletions src/cents.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(**********************************************************************************)
(* Fingerboard - a microtonal geography of the cello fingerboard *)
(* Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(* *)
(* This file is part of Fingerboard. *)
(* *)
(* Fingerboard is free software: you can redistribute it and/or modify it under *)
(* the terms of the GNU Affero General Public License as published by the Free *)
(* Software Foundation, either version 3 of the License, or any later version. *)
(* *)
(* Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(* for more details. *)
(* *)
(* You should have received a copy of the GNU Affero General Public License *)
(* along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(**********************************************************************************)

type t = float

let to_string_nearest t =
Expand Down
19 changes: 19 additions & 0 deletions src/cents.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(*_*********************************************************************************)
(*_ Fingerboard - a microtonal geography of the cello fingerboard *)
(*_ Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(*_ *)
(*_ This file is part of Fingerboard. *)
(*_ *)
(*_ Fingerboard is free software: you can redistribute it and/or modify it under *)
(*_ the terms of the GNU Affero General Public License as published by the Free *)
(*_ Software Foundation, either version 3 of the License, or any later version. *)
(*_ *)
(*_ Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(*_ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(*_ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(*_ for more details. *)
(*_ *)
(*_ You should have received a copy of the GNU Affero General Public License *)
(*_ along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(*_*********************************************************************************)

type t = float

val to_string_nearest : t -> string
19 changes: 19 additions & 0 deletions src/characterized_interval.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(**********************************************************************************)
(* Fingerboard - a microtonal geography of the cello fingerboard *)
(* Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(* *)
(* This file is part of Fingerboard. *)
(* *)
(* Fingerboard is free software: you can redistribute it and/or modify it under *)
(* the terms of the GNU Affero General Public License as published by the Free *)
(* Software Foundation, either version 3 of the License, or any later version. *)
(* *)
(* Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(* for more details. *)
(* *)
(* You should have received a copy of the GNU Affero General Public License *)
(* along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(**********************************************************************************)

type t =
{ interval : Interval.t
; acoustic_interval : Acoustic_interval.t
Expand Down
19 changes: 19 additions & 0 deletions src/characterized_interval.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(*_*********************************************************************************)
(*_ Fingerboard - a microtonal geography of the cello fingerboard *)
(*_ Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(*_ *)
(*_ This file is part of Fingerboard. *)
(*_ *)
(*_ Fingerboard is free software: you can redistribute it and/or modify it under *)
(*_ the terms of the GNU Affero General Public License as published by the Free *)
(*_ Software Foundation, either version 3 of the License, or any later version. *)
(*_ *)
(*_ Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(*_ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(*_ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(*_ for more details. *)
(*_ *)
(*_ You should have received a copy of the GNU Affero General Public License *)
(*_ along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(*_*********************************************************************************)

type t = private
{ interval : Interval.t
; acoustic_interval : Acoustic_interval.t
Expand Down
19 changes: 19 additions & 0 deletions src/characterized_scale.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
(**********************************************************************************)
(* Fingerboard - a microtonal geography of the cello fingerboard *)
(* Copyright (C) 2022-2024 Mathieu Barbin <mathieu.barbin@gmail.com> *)
(* *)
(* This file is part of Fingerboard. *)
(* *)
(* Fingerboard is free software: you can redistribute it and/or modify it under *)
(* the terms of the GNU Affero General Public License as published by the Free *)
(* Software Foundation, either version 3 of the License, or any later version. *)
(* *)
(* Fingerboard is distributed in the hope that it will be useful, but WITHOUT *)
(* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *)
(* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License *)
(* for more details. *)
(* *)
(* You should have received a copy of the GNU Affero General Public License *)
(* along with Fingerboard. If not, see <https://www.gnu.org/licenses/>. *)
(**********************************************************************************)

type t = Characterized_interval.t list

let major_just =
Expand Down
Loading

0 comments on commit 6e67007

Please sign in to comment.