method _mod = self#prim2 (fun t -> (self#at t)#_mod)
method larger = self#prim2 (fun t -> (self#at t)#larger)
method smaller = self#prim2 (fun t -> (self#at t)#smaller)
+ method max = self#prim2 (fun t -> (self#at t)#max)
+ method min = self#prim2 (fun t -> (self#at t)#min)
method delay : signal_type -> signal_type =
fun (s : signal_type) ->
let func : time -> value_type =
fun (t : time) ->
let i = (s#at t)#to_int in
- self#delay_by t i in
+ self#delay_by i t in
new signal freq func
method mem : signal_type =
let freq = self#frequency in
let () = self#add_memory 1 in
- let func = fun (t : time) -> self#delay_by t 1 in
+ let func = fun (t : time) -> self#delay_by 1 t in
new signal freq func
method rdtable : signal_type -> signal_type -> signal_type =