diff options
author | XANTRONIX Development | 2022-03-10 00:57:51 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-10 00:57:51 -0500 |
commit | 8a14c833c42c9eb90d9f05bedac99863b9b17b4e (patch) | |
tree | 4b5fc32297dbfdc4618b111b53a52de196cea9f6 | |
parent | cd9bce59822a8f394a66537ca0bf68d2e2df27e2 (diff) | |
download | xas-8a14c833c42c9eb90d9f05bedac99863b9b17b4e.tar.gz xas-8a14c833c42c9eb90d9f05bedac99863b9b17b4e.tar.bz2 xas-8a14c833c42c9eb90d9f05bedac99863b9b17b4e.zip |
we need a consistent bass line
-rw-r--r-- | include/xas/drone.h | 8 | ||||
-rw-r--r-- | src/drone.c | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/include/xas/drone.h b/include/xas/drone.h index d77834c..f0da28d 100644 --- a/include/xas/drone.h +++ b/include/xas/drone.h @@ -54,7 +54,8 @@ typedef struct _xas_drone_chamber { xas_drone **drones; size_t drone_count; - xas_spatial_object *synth_l, + xas_spatial_object *synth_bass, + *synth_l, *synth_r; } xas_drone_chamber; @@ -85,4 +86,9 @@ int xas_drone_chamber_event_seq(xas_drone_chamber *chamber, int advance, struct timeval *now); +int xas_drone_chamber_chorus_seq(xas_drone_chamber *chamber, + xas_seq *seq, + int advance, + struct timeval *now); + #endif /* _XAS_DRONE_H */ diff --git a/src/drone.c b/src/drone.c index e42a974..a4ea1cb 100644 --- a/src/drone.c +++ b/src/drone.c @@ -120,6 +120,16 @@ xas_drone_chamber *xas_drone_chamber_new(xas_spatial_scene *scene, goto error_malloc_chamber_drones; } + if ((chamber->synth_bass = xas_spatial_scene_add_synth(scene, + (xas_spatial_coord){ + location.x, + location.y, + location.z + 5.0 + }, + XAS_SYNTH_SQUARE)) == NULL) { + goto error_spatial_scene_add_synth; + } + if ((chamber->synth_l = xas_spatial_scene_add_synth(scene, (xas_spatial_coord){ location.x - 5.0, |