ELEC2645 (2019/20) / Mbed 2 deprecated el18loc_final

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Sound Class Reference

Sound Class Reference

Sound class. More...

#include <Sound.h>

Public Member Functions

 Sound ()
 Constructor.
 ~Sound ()
 Destructor.
uint16_t sound_main (bool initial, int waveform, int frequency)
 Main sound function in waveform type and frequency.
uint16_t wavetable_itt (uint16_t i, int frequency)
 Iterator function.

Detailed Description

Sound class.

Author:
Luke Cartwright, University of Leeds fetches data from wavetables and through to next samples
Date:
May 2020

Definition at line 13 of file Sound.h.


Constructor & Destructor Documentation

Sound (  )

Constructor.

Definition at line 9 of file Sound.cpp.

~Sound (  )

Destructor.

Definition at line 13 of file Sound.cpp.


Member Function Documentation

uint16_t sound_main ( bool  initial,
int  waveform,
int  frequency 
)

Main sound function in waveform type and frequency.

@ Outputs Unsigned int of wavetable value. @ (Self itterates)

Definition at line 20 of file Sound.cpp.

uint16_t wavetable_itt ( uint16_t  i,
int  frequency 
)

Iterator function.

through wavetable values. Next i value for sound_main function.

Definition at line 51 of file Sound.cpp.