#include <jack/jack.h>#include <cshellsynth/atomic-types.h>#include <cshellsynth/synth.h>Go to the source code of this file.
Data Structures | |
| struct | cs_square_t |
Defines | |
| #define | cs_square_destroy(cs_square) cs_synth_destroy((cs_synth_t *) (cs_square)) |
| #define | cs_square_set_freq(cs_square, freq) cs_synth_set_freq((cs_synth_t *) (cs_square), (freq)) |
| #define | cs_square_set_offset(cs_square, offset) cs_synth_set_offset((cs_synth_t *) (cs_square), (offset)) |
| #define | cs_square_set_amp(cs_square, amp) cs_synth_set_amp((cs_synth_t *) (cs_square), (amp)) |
Functions | |
| int | cs_square_init (cs_square_t *self, const char *client_name, jack_options_t flags, char *server_name) |
| void | cs_square_set_duty_cycle (cs_square_t *self, float duty_cycle) |
Square Wave Synth
Ruby version: Synths::Square
| #define cs_square_destroy | ( | cs_square | ) | cs_synth_destroy((cs_synth_t *) (cs_square)) |
Destroy square synth
See cs_synth_destroy
| #define cs_square_set_amp | ( | cs_square, | |||
| amp | ) | cs_synth_set_amp((cs_synth_t *) (cs_square), (amp)) |
| #define cs_square_set_freq | ( | cs_square, | |||
| freq | ) | cs_synth_set_freq((cs_synth_t *) (cs_square), (freq)) |
| #define cs_square_set_offset | ( | cs_square, | |||
| offset | ) | cs_synth_set_offset((cs_synth_t *) (cs_square), (offset)) |
| int cs_square_init | ( | cs_square_t * | self, | |
| const char * | client_name, | |||
| jack_options_t | flags, | |||
| char * | server_name | |||
| ) |
Initialize square synth
See cs_synth_init
| void cs_square_set_duty_cycle | ( | cs_square_t * | self, | |
| float | duty_cycle | |||
| ) |
Sets the fraction of time the wave spends at 1.0.
Ruby version: duty_cycle=
| duty_cycle | duty cycle. 0.5 by default. |
1.6.3