-
Notifications
You must be signed in to change notification settings - Fork 0
/
gamme.mli
47 lines (40 loc) · 1022 Bytes
/
gamme.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module type Spec =
sig
val dominante: Note.t
val nom:Note.t -> string
val ecarts: int list
end
module type Note =
sig
val n: Note.t
end
module type S = sig
include Spec
val map: (Note.t -> 'a) -> 'a list
val exists: (Note.t -> bool) -> bool
val for_all: (Note.t -> bool) -> bool
val iter: (Note.t -> unit) -> unit
val pr: Format.formatter -> unit -> unit
val next: Note.t -> Note.t
val interv: Note.t -> int -> Note.t
val seconde: Note.t -> Note.t
val tierce: Note.t -> Note.t
val quarte: Note.t -> Note.t
val quinte: Note.t -> Note.t
val sixte: Note.t -> Note.t
val septieme: Note.t -> Note.t
val octave: Note.t -> Note.t
end
module MakeGamme(G:Spec): S
module Majeure: Note -> S
module Mineure: Note -> S
module Chromatique: Note -> S
module PentaMajeure: Note -> S
type gammeStandard =
Majeur of Note.t
| Mineur of Note.t
| PentaM of Note.t
| Pentam of Note.t
| Blues of Note.t
val parseName: Note.t -> string -> gammeStandard
val gen_gamme: gammeStandard -> (module S)