diff options
-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, |