Banjo API 0.0.1
Multi-purpose C99 API
Loading...
Searching...
No Matches
bj_audio_play_note_data_t Struct Reference

Define parameters for generating simple waveforms. More...

#include <audio.h>

Public Types

enum  { BJ_AUDIO_PLAY_SINE , BJ_AUDIO_PLAY_SQUARE , BJ_AUDIO_PLAY_TRIANGLE , BJ_AUDIO_PLAY_SAWTOOTH }
 

Data Fields

enum bj_audio_play_note_data_t:: { ... }  function
 Type of waveform to generate.
 
double frequency
 Frequency of the waveform (Hz).
 
double phase
 Internal phase accumulator.
 

Detailed Description

Used in conjunction with bj_audio_play_note to synthesize basic musical tones such as sine or square waves.

See also
bj_audio_play_note

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
BJ_AUDIO_PLAY_SINE 

Generate a sine wave.

BJ_AUDIO_PLAY_SQUARE 

Generate a square wave.

BJ_AUDIO_PLAY_TRIANGLE 

Generate a triangle wave.

BJ_AUDIO_PLAY_SAWTOOTH 

Generate a sawtooth wave.


The documentation for this struct was generated from the following file: