summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-11 17:54:56 -0500
committerXANTRONIX Development2022-03-11 17:54:56 -0500
commit7764a0db8787296ab7c42094bf5e68b344cbabfc (patch)
treecdfb033e8106eee63bfd1c78f62d6ec4532b20d5 /src
parentd111e816ff25bc438fa2bce5db630e7df3cec945 (diff)
downloadxas-7764a0db8787296ab7c42094bf5e68b344cbabfc.tar.gz
xas-7764a0db8787296ab7c42094bf5e68b344cbabfc.tar.bz2
xas-7764a0db8787296ab7c42094bf5e68b344cbabfc.zip
Add methods to manage chamber bass externally
Diffstat (limited to 'src')
-rw-r--r--src/drone.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drone.c b/src/drone.c
index 2a130fd..da3c3ae 100644
--- a/src/drone.c
+++ b/src/drone.c
@@ -181,6 +181,24 @@ void xas_drone_chamber_insert_drone(xas_drone_chamber *chamber,
chamber->drones[index] = drone;
}
+void xas_drone_chamber_bass_start(xas_drone_chamber *chamber) {
+ xas_synth_start(chamber->synth_bass->ctx);
+}
+
+void xas_drone_chamber_bass_stop(xas_drone_chamber *chamber) {
+ xas_synth_stop(chamber->synth_bass->ctx);
+}
+
+void xas_drone_chamber_bass_set_type(xas_drone_chamber *chamber,
+ enum xas_synth_type type) {
+ xas_synth_set_type(chamber->synth_bass->ctx, type);
+}
+
+void xas_drone_chamber_bass_set_frequency(xas_drone_chamber *chamber,
+ size_t freq) {
+ xas_synth_set_frequency(chamber->synth_bass->ctx, freq);
+}
+
int xas_drone_chamber_seq_intervals(xas_drone_chamber *chamber,
xas_drone_chamber_interval *intervals,
xas_seq *seq,