LMMS
Loading...
Searching...
No Matches
Gb_Square Struct Reference

#include <Gb_Oscs.h>

Inheritance diagram for Gb_Square:
Gb_Env Gb_Osc

Public Types

enum  { period_mask = 0x70 }
enum  { shift_mask = 0x07 }
typedef Blip_Synth< blip_good_quality, 1 > Synth
Public Types inherited from Gb_Osc
enum  { trigger = 0x80 }
enum  { len_enabled_mask = 0x40 }

Public Member Functions

void reset ()
void clock_sweep ()
void run (blip_time_t, blip_time_t, int playing)
Public Member Functions inherited from Gb_Env
void reset ()
void clock_envelope ()
bool write_register (int, int)
Public Member Functions inherited from Gb_Osc
void reset ()
void clock_length ()
int frequency () const

Public Attributes

Synth constsynth
int sweep_delay
int sweep_freq
int phase
Public Attributes inherited from Gb_Env
int env_delay
Public Attributes inherited from Gb_Osc
Blip_Bufferoutputs [4]
Blip_Bufferoutput
int output_select
uint8_tregs
int delay
int last_amp
int volume
int length
int enabled

Member Typedef Documentation

◆ Synth

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
shift_mask 

◆ anonymous enum

anonymous enum
Enumerator
period_mask 

Member Function Documentation

◆ clock_sweep()

void Gb_Square::clock_sweep ( )

◆ reset()

void Gb_Square::reset ( )

◆ run()

void Gb_Square::run ( blip_time_t time,
blip_time_t end_time,
int playing )

Member Data Documentation

◆ phase

int Gb_Square::phase

◆ sweep_delay

int Gb_Square::sweep_delay

◆ sweep_freq

int Gb_Square::sweep_freq

◆ synth

Synth const* Gb_Square::synth

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