From 8ff41d060344af4d045bdd79bb826231d6739c7f Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 10 Feb 2020 23:47:34 -0800 Subject: libs/sig: triangle wave; sig_ops_tri / sig_new_tri() Added a triangle wave --- src/libs/sig/sig.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/sig/sig.h') diff --git a/src/libs/sig/sig.h b/src/libs/sig/sig.h index 917dbc4..9be3012 100644 --- a/src/libs/sig/sig.h +++ b/src/libs/sig/sig.h @@ -38,15 +38,16 @@ sig_t * sig_new_round(sig_t *x); sig_t * sig_new_scale(sig_t *x, sig_t *min, sig_t *max); sig_t * sig_new_sin(sig_t *hz); sig_t * sig_new_sqr(sig_t *hz); +sig_t * sig_new_tri(sig_t *hz); sig_t * sig_new_sub(sig_t *a, sig_t *b); extern sig_ops_t sig_ops_const; extern sig_ops_t sig_ops_rand; extern sig_ops_t sig_ops_sin; extern sig_ops_t sig_ops_sqr; +extern sig_ops_t sig_ops_tri; /* TODO: -extern sig_ops_t sig_ops_tri; extern sig_ops_t sig_ops_saw; */ -- cgit v1.2.3