summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-11 16:36:43 -0500
committerXANTRONIX Development2022-03-11 16:36:43 -0500
commitcd1473045a30548b10d5873ec825863ddd429674 (patch)
tree20ecf65614df927e24d34a78c26f519e4f3b5506
parent204e2666262247e1c87e27808cac4652e443c5e1 (diff)
downloadxas-cd1473045a30548b10d5873ec825863ddd429674.tar.gz
xas-cd1473045a30548b10d5873ec825863ddd429674.tar.bz2
xas-cd1473045a30548b10d5873ec825863ddd429674.zip
Good stuff :3
-rw-r--r--examples/seq.c14
1 files changed, 10 insertions, 4 deletions
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;
}