pianod2
multisource multiuser scriptable networked music player
Classes | Typedefs | Enumerations | Functions | Variables
ToneGenerator Namespace Reference

Classes for playing test tones. More...

Classes

struct  tone_sequence_t
 
struct  tone_albumt_t
 
struct  tone_song_t
 
class  Song
 
class  Player
 
struct  SplitToneId
 
class  Library
 
struct  Parameters
 Source parameters for filesystem source. More...
 
class  Source
 

Typedefs

typedef struct ToneGenerator::tone_sequence_t TONE_SEQUENCE
 
typedef struct ToneGenerator::tone_albumt_t TONE_ALBUM
 
typedef struct ToneGenerator::tone_song_t TEST_SONG
 

Enumerations

enum class  Channel { LEFT , CENTER , RIGHT }
 

Functions

static std::string ChannelName (const Channel channel)
 

Variables

static const TONE_ALBUM telephonys_best
 
static const TONE_SEQUENCE dial_tone []
 
static const TONE_SEQUENCE ring_back []
 
static const TONE_SEQUENCE busy []
 
static const TONE_SEQUENCE fast_busy []
 
static const TONE_ALBUM sit_tones
 
static const TONE_SEQUENCE no_circuit []
 
static const TONE_SEQUENCE vacant_circuit []
 
static const TONE_SEQUENCE op_intercept []
 
static const TONE_SEQUENCE reorder []
 
static const TONE_ALBUM common_tones
 
static const TONE_SEQUENCE a440 []
 
static const TONE_SEQUENCE hz1000 []
 
static const TONE_SEQUENCE legacy_ebs []
 
static const TONE_ALBUM westminster
 
static const TONE_SEQUENCE quarter_hour []
 
static const TONE_SEQUENCE half_hour []
 
static const TONE_SEQUENCE third_quarter_hour []
 
static const TONE_SEQUENCE on_the_hour []
 
static const TONE_SEQUENCE icds []
 
static const TEST_SONG tone_list []
 
static MusicLibrary::Allocator< Song, MusicLibrary::Albumsong_allocate
 

Detailed Description

Classes for playing test tones.

Available tones are organized like albums/tracks, so this also functions as a test mechanism for requests, etc., without having to use a network-based audio service.

Typedef Documentation

◆ TEST_SONG

◆ TONE_ALBUM

◆ TONE_SEQUENCE

Enumeration Type Documentation

◆ Channel

Enumerator
LEFT 
CENTER 
RIGHT 

Function Documentation

◆ ChannelName()

static std::string ToneGenerator::ChannelName ( const Channel  channel)
static
Here is the caller graph for this function:

Variable Documentation

◆ a440

const TONE_SEQUENCE ToneGenerator::a440[]
static
Initial value:
= {
{ 1.0, 440.0, 0, 1 },
{ 0 }
}

◆ busy

const TONE_SEQUENCE ToneGenerator::busy[]
static
Initial value:
= {
{ 0.5, 480, 620, .5 },
{ 0.5, 0, 0, .5 },
{ 0 }
}

◆ common_tones

const TONE_ALBUM ToneGenerator::common_tones
static
Initial value:
= {
"Traditional/Assorted Artists",
"Test Tones of the 1980s",
"Miscellaneous Tones",
NULL
}

◆ dial_tone

const TONE_SEQUENCE ToneGenerator::dial_tone[]
static
Initial value:
= {
{ 1.0, 350, 440, .5 },
{ 0 }
}

◆ fast_busy

const TONE_SEQUENCE ToneGenerator::fast_busy[]
static
Initial value:
= {
{ 0.3, 480, 620, .5 },
{ 0.2, 0, 0, .5 },
{ 0 }
}

◆ half_hour

const TONE_SEQUENCE ToneGenerator::half_hour[]
static
Initial value:
= {
{ 0.6, E_PLAIN, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, G_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, F_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, B_PLAIN, 0, 1 },
{ 1.0, 0, 0, 1 },
{ 0.6, E_PLAIN, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, F_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, G_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, E_PLAIN, 0, 1 },
{ 0 }
}
#define G_SHARP
Definition: tonegen.cpp:116
#define E_PLAIN
Definition: tonegen.cpp:118
#define B_PLAIN
Definition: tonegen.cpp:119
#define F_SHARP
Definition: tonegen.cpp:117

◆ hz1000

const TONE_SEQUENCE ToneGenerator::hz1000[]
static
Initial value:
= {
{ 1.0, 1000.0, 0, 1 },
{ 0 }
}

◆ icds

const TONE_SEQUENCE ToneGenerator::icds[]
static
Initial value:
= {
{ 2.5, 2225, 0, 1 },
{ 1.25, 1270, 0, 1 },
{0}
}

◆ legacy_ebs

const TONE_SEQUENCE ToneGenerator::legacy_ebs[]
static
Initial value:
= {
{ 1.0, 853.0, 960.0, 0.5 },
{ 0 }
}

◆ no_circuit

const TONE_SEQUENCE ToneGenerator::no_circuit[]
static
Initial value:
= {
{ 0.380, 985.2, 0, 1 },
{ 0.380, 1428.5, 0, 1 },
{ 0.380, 1776.7, 0, 1 },
{ 0 }
}

◆ on_the_hour

const TONE_SEQUENCE ToneGenerator::on_the_hour[]
static

◆ op_intercept

const TONE_SEQUENCE ToneGenerator::op_intercept[]
static
Initial value:
= {
{ 0.274, 913.8, 0, 1 },
{ 0.274, 1370.6, 0, 1 },
{ 0.380, 1776.7, 0, 1 },
{ 0 }
}

◆ quarter_hour

const TONE_SEQUENCE ToneGenerator::quarter_hour[]
static
Initial value:
= {
{ 0.6, G_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, F_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, E_PLAIN, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, B_PLAIN, 0, 1 },
{ 0 }
}

◆ reorder

const TONE_SEQUENCE ToneGenerator::reorder[]
static
Initial value:
= {
{ 0.274, 913.8, 0, 1 },
{ 0.380, 1428.5, 0, 1 },
{ 0.380, 1776.7, 0, 1 },
{ 0 }
}

◆ ring_back

const TONE_SEQUENCE ToneGenerator::ring_back[]
static
Initial value:
= {
{ 2.0, 440, 480, .5 },
{ 4.0, 0, 0, .5 },
{ 0 }
}

◆ sit_tones

const TONE_ALBUM ToneGenerator::sit_tones
static
Initial value:
= {
"AT&T/Bell Labs",
"Special Information Tones",
"Telephony",
NULL
}

◆ song_allocate

MusicLibrary::Allocator<Song, MusicLibrary::Album> ToneGenerator::song_allocate
static

◆ telephonys_best

const TONE_ALBUM ToneGenerator::telephonys_best
static
Initial value:
= {
"AT&T/Bell Labs",
"Telephony's Best Noises",
"Telephony",
NULL
}

◆ third_quarter_hour

const TONE_SEQUENCE ToneGenerator::third_quarter_hour[]
static
Initial value:
= {
{ 0.6, G_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, E_PLAIN, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, F_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, B_PLAIN, 0, 1 },
{ 1.0, 0, 0, 1 },
{ 0.6, B_PLAIN, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, F_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, G_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, E_PLAIN, 0, 1 },
{ 1.0, 0, 0, 1 },
{ 0.6, G_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, F_SHARP, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, E_PLAIN, 0, 1 },
{ 0.2, 0, 0, 1 },
{ 0.6, B_PLAIN, 0, 1 },
{ 0 }
}

◆ tone_list

const TEST_SONG ToneGenerator::tone_list[]
static

◆ vacant_circuit

const TONE_SEQUENCE ToneGenerator::vacant_circuit[]
static
Initial value:
= {
{ 0.380, 985.2, 0, 1 },
{ 0.274, 1370.6, 0, 1 },
{ 0.380, 1776.7, 0, 1 },
{ 0 }
}

◆ westminster

const TONE_ALBUM ToneGenerator::westminster
static
Initial value:
= {
"Westminster Chimes",
"Big Ben",
"Other Test Sounds",
NULL
}