libdragon
Data Fields
AYEnvelope Struct Reference

Envelope of AY-3-8910. More...

#include <ay8910.h>

Data Fields

uint16_t period
 Period (in ticks) of the envelope.
 
uint8_t shape
 Shape of the envelope (jigsaw, etc.)
 
uint8_t attack
 0x0 if in attack, 0xF if in the release
 
uint8_t alternate
 True if attack and release alternate (jigsaw)
 
uint8_t hold
 True if the envelope holds after attack.
 
uint16_t count
 Current tick count for the period.
 
int16_t step
 Current step of the envelope.
 
uint8_t vol
 Current output volume.
 
uint8_t holding
 True if the envelope is currently holding.
 

Detailed Description

Envelope of AY-3-8910.

Field Documentation

◆ period

uint16_t AYEnvelope::period

Period (in ticks) of the envelope.

◆ shape

uint8_t AYEnvelope::shape

Shape of the envelope (jigsaw, etc.)

◆ attack

uint8_t AYEnvelope::attack

0x0 if in attack, 0xF if in the release

◆ alternate

uint8_t AYEnvelope::alternate

True if attack and release alternate (jigsaw)

◆ hold

uint8_t AYEnvelope::hold

True if the envelope holds after attack.

◆ count

uint16_t AYEnvelope::count

Current tick count for the period.

◆ step

int16_t AYEnvelope::step

Current step of the envelope.

◆ vol

uint8_t AYEnvelope::vol

Current output volume.

◆ holding

uint8_t AYEnvelope::holding

True if the envelope is currently holding.


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