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

#include <Nes_Oscs.h>

Inheritance diagram for Nes_Square:
Nes_Envelope Nes_Osc

Public Types

enum  { negate_flag = 0x08 }
enum  { shift_mask = 0x07 }
enum  { phase_range = 8 }
typedef Blip_Synth< blip_good_quality, 1 > Synth

Public Member Functions

 Nes_Square (Synth const *s)
void clock_sweep (int adjust)
void run (nes_time_t, nes_time_t)
void reset ()
nes_time_t maintain_phase (nes_time_t time, nes_time_t end_time, nes_time_t timer_period)
Public Member Functions inherited from Nes_Envelope
void clock_envelope ()
int volume () const
void reset ()
Public Member Functions inherited from Nes_Osc
void clock_length (int halt_mask)
int period () const
void reset ()
int update_amp (int amp)

Public Attributes

int phase
int sweep_delay
Synth constsynth
Public Attributes inherited from Nes_Envelope
int envelope
int env_delay
Public Attributes inherited from Nes_Osc
unsigned char regs [4]
bool reg_written [4]
Blip_Bufferoutput
int length_counter
int delay
int last_amp

Member Typedef Documentation

◆ Synth

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
negate_flag 

◆ anonymous enum

anonymous enum
Enumerator
shift_mask 

◆ anonymous enum

anonymous enum
Enumerator
phase_range 

Constructor & Destructor Documentation

◆ Nes_Square()

Nes_Square::Nes_Square ( Synth const * s)
inline

Member Function Documentation

◆ clock_sweep()

void Nes_Square::clock_sweep ( int adjust)

◆ maintain_phase()

nes_time_t Nes_Square::maintain_phase ( nes_time_t time,
nes_time_t end_time,
nes_time_t timer_period )
inline

◆ reset()

void Nes_Square::reset ( )
inline

◆ run()

void Nes_Square::run ( nes_time_t time,
nes_time_t end_time )

Member Data Documentation

◆ phase

int Nes_Square::phase

◆ sweep_delay

int Nes_Square::sweep_delay

◆ synth

Synth const& Nes_Square::synth

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