From cd1473045a30548b10d5873ec825863ddd429674 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 11 Mar 2022 16:36:43 -0500 Subject: Good stuff :3 --- examples/seq.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/seq.c b/examples/seq.c index 492c53b..76d3cf9 100644 --- a/examples/seq.c +++ b/examples/seq.c @@ -148,6 +148,12 @@ int main(int argc, char **argv) { { { 11, 0 }, 42, 220, XAS_SYNTH_SINE, XAS_SYNTH_SINE }, { { 13, 0 }, 210, 69, XAS_SYNTH_SINE, XAS_SYNTH_SINE }, { { 0, 0 }, 0, 0, XAS_SYNTH_SINE, XAS_SYNTH_SINE } + }, ending[] = { + { { 5, 0 }, 69, 210, XAS_SYNTH_SINE, XAS_SYNTH_SINE }, + { { 3, 0 }, 200, 69, XAS_SYNTH_SINE, XAS_SYNTH_SINE }, + { { 4, 0 }, 42, 220, XAS_SYNTH_SINE, XAS_SYNTH_SINE }, + { { 3, 0 }, 210, 69, XAS_SYNTH_SINE, XAS_SYNTH_SINE }, + { { 0, 0 }, 0, 0, XAS_SYNTH_SINE, XAS_SYNTH_SINE } }; struct sequence sequences[] = { @@ -263,10 +269,10 @@ int main(int argc, char **argv) { } if (xas_drone_chamber_seq_intervals(chamber, - sequences[3].intervals, - seq, - 8, - &cur) < 0) { + ending, + seq, + 4, + &cur) < 0) { goto error_seq; } -- cgit v1.2.3