00001
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef CSHELLSYNTH_PARABOLA_H
00042 #define CSHELLSYNTH_PARABOLA_H 1
00043
00044 #include <jack/jack.h>
00045 #include <cshellsynth/atomic-types.h>
00046 #include <cshellsynth/synth.h>
00047
00055 typedef struct cs_parab_struct {
00056 jack_client_t *client;
00057 jack_port_t *freq_port;
00058 atomic_float_t freq;
00059 jack_port_t *out_port;
00060 atomic_float_t amp;
00061 atomic_float_t offset;
00062 double t;
00063 } cs_parab_t;
00064
00070 #define cs_parab_destroy(cs_parab) cs_synth_destroy((cs_synth_t *) (cs_parab))
00071
00077 int cs_parab_init(cs_parab_t *self, const char *client_name, jack_options_t flags, char *server_name);
00078
00082 #define cs_parab_set_freq(cs_parab, freq) cs_synth_set_freq((cs_synth_t *) (cs_parab), (freq))
00083
00087 #define cs_parab_set_offset(cs_parab, offset) cs_synth_set_offset((cs_synth_t *) (cs_parab), (offset))
00088
00092 #define cs_parab_set_amp(cs_parab, amp) cs_synth_set_amp((cs_synth_t *) (cs_parab), (amp))
00093
00094 #endif