Add logical shift left (<<) and logical shift right (>>) to faustine.
[Faustine.git] / interpretor / signal.ml
index f98e941..66089e9 100644 (file)
@@ -149,6 +149,8 @@ class signal : rate_type -> (time -> value_type) -> signal_type =
        method neq = self#prim2 (fun t -> (self#at t)#neq)
        method max = self#prim2 (fun t -> (self#at t)#max)
        method min = self#prim2 (fun t -> (self#at t)#min)
+       method shl = self#prim2 (fun t -> (self#at t)#shl)
+       method shr = self#prim2 (fun t -> (self#at t)#shr)
 
        method delay : signal_type -> signal_type =
          fun (s : signal_type) ->