Module Note.S.Bool

module Bool: sig .. end
Boolean signals

val no : bool Note.signal
no is const false.
val yes : bool Note.signal
yes is const true.
val not : bool Note.signal -> bool Note.signal
not s is map not s.
val (&&) : bool Note.signal -> bool Note.signal -> bool Note.signal
s0 && s1 is l2 ( && ) s1 s2.
val (||) : bool Note.signal -> bool Note.signal -> bool Note.signal
s0 || s1 is l2 ( || ) s1 s2.
val edge : bool Note.signal -> bool Note.event
edge s is changes s.
val rise : bool Note.signal -> unit Note.event
rise s is E.filter_map (function true -> Some b | false -> None) (edge s).
val fall : bool Note.signal -> unit Note.event
fall s is E.filter_map (function true -> None | None -> Some b) (edge s)
val flip : init:bool -> 'a Note.event -> bool Note.signal
flip ~init e is a signal whose boolean value flips each time e occurs. init provides the signal value at creation time.