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

#include <Nes_Oscs.h>

Inheritance diagram for Nes_Triangle:
Nes_Osc

Public Types

enum  { phase_range = 16 }

Public Member Functions

int calc_amp () const
void run (nes_time_t, nes_time_t)
void clock_linear_counter ()
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_Osc
void clock_length (int halt_mask)
int period () const
void reset ()
int update_amp (int amp)

Public Attributes

int phase
int linear_counter
Blip_Synth< blip_med_quality, 1 > synth
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 Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
phase_range 

Member Function Documentation

◆ calc_amp()

int Nes_Triangle::calc_amp ( ) const
inline

◆ clock_linear_counter()

void Nes_Triangle::clock_linear_counter ( )

◆ maintain_phase()

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

◆ reset()

void Nes_Triangle::reset ( )
inline

◆ run()

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

Member Data Documentation

◆ linear_counter

int Nes_Triangle::linear_counter

◆ phase

int Nes_Triangle::phase

◆ synth

Blip_Synth<blip_med_quality,1> Nes_Triangle::synth

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