NS_TIMIDITY Namespace Reference


Classes

struct  PathList
struct  ControlMode
struct  Sample
struct  Instrument
struct  ToneBankElement
struct  ToneBank
struct  PlayMode
struct  MidiSong
struct  MidiEvent
struct  Channel
struct  Voice
struct  MidiEventList

Typedefs

typedef sint8 sample_t
typedef uint8 final_volume_t
typedef sint16 sample_t
typedef sint32 final_volume_t

Functions

static int read_config_file (const char *name)
int Timidity_Init (int rate, int format, int channels, int samples)
int Timidity_Init_Simple (int rate, int samples, sint32 encoding)
void Timidity_DeInit ()
char * Timidity_Error (void)
void Timidity_SetVolume (int volume)
int Timidity_PlaySome (void *stream, int samples)
MidiSongTimidity_LoadSong (char *midifile)
void Timidity_Start (MidiSong *song)
int Timidity_Active (void)
void Timidity_Stop (void)
void Timidity_FreeSong (MidiSong *song)
void Timidity_FinalInit (bool patches[128], bool drums[128])
void Timidity_PlayEvent (unsigned char status, int a, int b)
void Timidity_GenerateSamples (void *stream, int samples)
static FILE * try_to_open (char *name, int decompress, int noise_mode)
FILE * open_file (const char *name, int decompress, int noise_mode)
void close_file (FILE *fp)
void skip (FILE *fp, size_t len)
void * safe_malloc (size_t count)
void add_to_pathlist (char *s)
template<class T>
T * safe_Malloc (size_t count=1)
static float ino (float x)
static void kaiser (float *w, int n, float beta)
static void designfir (float *g, float fc)
static void filter (sample_t *result, sample_t *data, sint32 length, float coef[])
void antialiasing (Sample *sp, sint32 output_rate)
static void free_instrument (Instrument *ip)
static void free_bank (int dr, int b)
static sint32 convert_envelope_rate (uint8 rate)
static sint32 convert_envelope_offset (uint8 offset)
static sint32 convert_tremolo_sweep (uint8 sweep)
static sint32 convert_vibrato_sweep (uint8 sweep, sint32 vib_control_ratio)
static sint32 convert_tremolo_rate (uint8 rate)
static sint32 convert_vibrato_rate (uint8 rate)
static void reverse_data (sint16 *sp, sint32 ls, sint32 le)
static Instrumentload_instrument (char *name, int percussion, int panning, int amp, int note_to_use, int strip_loop, int strip_envelope, int strip_tail)
static int fill_bank (int dr, int b)
int load_missing_instruments (void)
void free_instruments (void)
int set_default_instrument (char *name)
int recompute_envelope (int v)
void apply_envelope_to_amp (int v)
static int update_envelope (int v)
static void update_tremolo (int v)
static int update_signal (int v)
static void mix_mystery_signal (sample_t *sp, sint32 *lp, int v, int count)
static void mix_center_signal (sample_t *sp, sint32 *lp, int v, int count)
static void mix_single_signal (sample_t *sp, sint32 *lp, int v, int count)
static void mix_mono_signal (sample_t *sp, sint32 *lp, int v, int count)
static void mix_mystery (sample_t *sp, sint32 *lp, int v, int count)
static void mix_center (sample_t *sp, sint32 *lp, int v, int count)
static void mix_single (sample_t *sp, sint32 *lp, int v, int count)
static void mix_mono (sample_t *sp, sint32 *lp, int v, int count)
static void ramp_out (sample_t *sp, sint32 *lp, int v, sint32 c)
void mix_voice (sint32 *buf, int v, sint32 c)
void s32tos8 (void *dp, sint32 *lp, sint32 c)
void s32tou8 (void *dp, sint32 *lp, sint32 c)
void s32tos16 (void *dp, sint32 *lp, sint32 c)
void s32tou16 (void *dp, sint32 *lp, sint32 c)
void s32tos16x (void *dp, sint32 *lp, sint32 c)
void s32tou16x (void *dp, sint32 *lp, sint32 c)
void s32toulaw (void *dp, sint32 *lp, sint32 c)
int init_buffers (int kbytes)
static void adjust_amplification (void)
static void reset_voices (void)
static void reset_controllers (int c)
static void redraw_controllers (int c)
static void reset_midi (void)
static void select_sample (int v, Instrument *ip)
static void recompute_freq (int v)
static void recompute_amp (int v)
static void start_note (MidiEvent *e, int i)
static void kill_note (int i)
static void note_on (MidiEvent *e)
static void finish_note (int i)
static void note_off (MidiEvent *e)
static void all_notes_off (int c)
static void all_sounds_off (int c)
static void adjust_pressure (MidiEvent *e)
static void adjust_panning (int c)
static void drop_sustain (int c)
static void adjust_pitchbend (int c)
static void adjust_volume (int c)
static void seek_forward (sint32 until_time)
static void skip_to (sint32 until_time)
static int apply_controls (void)
static void do_compute_data (sint32 count)
static int compute_data (void *stream, sint32 count)
int play_midi (MidiEvent *el, sint32 events, sint32 samples)
int play_midi_file (char *fn)
void dumb_pass_playing_list (int number_of_files, char *list_of_files[])
static void compute_sample_increment (sint32 tempo, sint32 divisions)
static sint32 getvl (void)
static int dumpstring (sint32 len, char *label)
static MidiEventListread_midi_event (void)
static int read_track (int append)
static void free_midi_list (void)
static MidiEventgroom_list (sint32 divisions, sint32 *eventsp, sint32 *samplesp)
MidiEventread_midi_file (FILE *mfp, sint32 *count, sint32 *sp)
static sample_trs_plain (int v, sint32 *countptr)
static sample_trs_loop (Voice *vp, sint32 count)
static sample_trs_bidir (Voice *vp, sint32 count)
static int vib_phase_to_inc_ptr (int phase)
static sint32 update_vibrato (Voice *vp, int sign)
static sample_trs_vib_plain (int v, sint32 *countptr)
static sample_trs_vib_loop (Voice *vp, sint32 count)
static sample_trs_vib_bidir (Voice *vp, sint32 count)
sample_tresample_voice (int v, sint32 *countptr)
void pre_resample (Sample *sp)
static void ctl_refresh (void)
static void ctl_total_time (int tt)
static void ctl_master_volume (int mv)
static void ctl_file_name (char *name)
static void ctl_current_time (int ct)
static void ctl_note (int v)
static void ctl_program (int ch, int val)
static void ctl_volume (int channel, int val)
static void ctl_expression (int channel, int val)
static void ctl_panning (int channel, int val)
static void ctl_sustain (int channel, int val)
static void ctl_pitch_bend (int channel, int val)
static void ctl_reset (void)
static int ctl_open (int using_stdin, int using_stdout)
static void ctl_close (void)
static int ctl_read (sint32 *valp)
static int cmsg (int type, int verbosity_level, char *fmt,...)
float sine (int x)
void init_tables (void)

Variables

void(*) s32tobuf (void *dp, sint32 *lp, sint32 c)
int free_instruments_afterwards = 0
static char def_instr_name [256] = ""
int AUDIO_BUFFER_SIZE
sample_tresample_buffer = 0
sint32common_buffer = 0
char timidity_error [1024] = ""
char current_filename [1024]
static PathList defaultpathlist = {DEFAULT_TIMIDITY_PATH,0}
static PathListpathlist = &defaultpathlist
static PathListpathlist = 0
char * program_name
FILE * msgfp
ControlMode sdl_control_mode
ControlModectl_list []
ControlModectl = DEFAULT_CONTROL_MODE
ControlModectl_list []
ControlModectl
static ToneBank standard_tonebank
static ToneBank standard_drumset
ToneBanktonebank [128] = {&standard_tonebank}
ToneBankdrumset [128] = {&standard_drumset}
Instrumentdefault_instrument = 0
int default_program = DEFAULT_PROGRAM
int antialiasing_allowed = 0
int fast_decay = 1
int fast_decay = 0
Instrumentdefault_instrument
int default_program
int antialiasing_allowed
int fast_decay
int free_instruments_afterwards
PlayMode sdl_play_mode
PlayModeplay_mode_list []
PlayModeplay_mode = DEFAULT_PLAY_MODE
PlayModeplay_mode_list []
PlayModeplay_mode
int AUDIO_BUFFER_SIZE
void(*) s32tobuf (void *dp, sint32 *lp, sint32 c)
Channel channel [16]
Voice voice [MAX_VOICES]
int voices = DEFAULT_VOICES
sint32 control_ratio = 0
sint32 amplification = DEFAULT_AMPLIFICATION
float master_volume
sint32 drumchannels = DEFAULT_DRUMCHANNELS
int adjust_panning_immediately = 1
static int midi_playing = 0
static sint32 lost_notes
static sint32 cut_notes
static sint32buffer_pointer
static sint32 buffered_count
sint32common_buffer
static MidiEventevent_list
static MidiEventcurrent_event
static sint32 sample_count
static sint32 current_sample
Channel channel [16]
Voice voice [MAX_VOICES]
sint32 control_ratio
sint32 amp_with_poly
sint32 amplification
sint32 drumchannels
int adjust_panning_immediately
int voices
sint32 quietchannels = 0
static MidiEventListevlist
static sint32 event_count
static FILE * fp
static sint32 at
static sint32 sample_increment
static sint32 sample_correction
sint32 quietchannels
sample_tresample_buffer
PlayMode dpm
ControlMode ctl
sint32 freq_table [128]
double vol_table [128]
double bend_fine [256]
double bend_coarse [128]
static double sine_table [257]
sint16 _u2l []
sint32mixup
sint8iplookup
uint8 _l2u_ []
uint8_l2u = _l2u_ + 4096
uint8_l2u
uint8 _l2u_ []
sint16 _u2l []
sint32mixup
sint8iplookup


Typedef Documentation

typedef sint8 NS_TIMIDITY::sample_t

Definition at line 252 of file timidity.h.

typedef uint8 NS_TIMIDITY::final_volume_t

Definition at line 253 of file timidity.h.

typedef sint16 NS_TIMIDITY::sample_t

Definition at line 258 of file timidity.h.

typedef sint32 NS_TIMIDITY::final_volume_t

Definition at line 259 of file timidity.h.


Function Documentation

static int NS_TIMIDITY::read_config_file ( const char *  name  )  [static]

Definition at line 61 of file timidity.cpp.

References add_to_pathlist(), NS_TIMIDITY::ToneBankElement::amp, close_file(), NS_TIMIDITY::ControlMode::cmsg, ctl, def_instr_name, drumset, fp, line, NS_TIMIDITY::ToneBankElement::name, NS_TIMIDITY::ToneBankElement::note, open_file(), NS_TIMIDITY::ToneBankElement::pan, NS_TIMIDITY::ToneBankElement::strip_envelope, NS_TIMIDITY::ToneBankElement::strip_loop, NS_TIMIDITY::ToneBankElement::strip_tail, NS_TIMIDITY::ToneBank::tone, and tonebank.

Referenced by Timidity_Init(), and Timidity_Init_Simple().

int NS_TIMIDITY::Timidity_Init ( int  rate,
int  format,
int  channels,
int  samples 
)

Definition at line 306 of file timidity.cpp.

References AUDIO_BUFFER_SIZE, NS_TIMIDITY::ControlMode::cmsg, common_buffer, control_ratio, ctl, def_instr_name, NS_TIMIDITY::PlayMode::encoding, NS_TIMIDITY::ControlMode::id_name, init_tables(), NS_TIMIDITY::ControlMode::open, play_mode, NS_TIMIDITY::PlayMode::rate, read_config_file(), resample_buffer, s32tobuf, s32tos8(), s32tou8(), and set_default_instrument().

int NS_TIMIDITY::Timidity_Init_Simple ( int  rate,
int  samples,
sint32  encoding 
)

Definition at line 373 of file timidity.cpp.

References AUDIO_BUFFER_SIZE, NS_TIMIDITY::ControlMode::cmsg, common_buffer, control_ratio, ctl, def_instr_name, NS_TIMIDITY::PlayMode::encoding, SettingManager::get(), SettingManager::get_instance(), NS_TIMIDITY::ControlMode::id_name, init_tables(), NS_TIMIDITY::ControlMode::open, play_mode, NS_TIMIDITY::PlayMode::rate, read_config_file(), resample_buffer, s32tobuf, s32tos16(), s32tos16x(), s32tos8(), s32tou16(), s32tou16x(), s32tou8(), s32toulaw(), and set_default_instrument().

Referenced by TimidityMidiDriver::open().

void NS_TIMIDITY::Timidity_DeInit (  ) 

Definition at line 468 of file timidity.cpp.

References common_buffer, free_instruments(), and resample_buffer.

Referenced by TimidityMidiDriver::close().

char * NS_TIMIDITY::Timidity_Error ( void   ) 

Definition at line 481 of file timidity.cpp.

References timidity_error.

Referenced by TimidityMidiDriver::open().

void NS_TIMIDITY::Timidity_SetVolume ( int  volume  ) 

Definition at line 893 of file timidity_playmidi.cpp.

References adjust_amplification(), amplification, apply_envelope_to_amp(), ctl, NS_TIMIDITY::ControlMode::master_volume, recompute_amp(), voice, and voices.

int NS_TIMIDITY::Timidity_PlaySome ( void *  stream,
int  samples 
)

Definition at line 765 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiEvent::a, adjust_panning(), adjust_panning_immediately, adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), NS_TIMIDITY::MidiEvent::b, NS_TIMIDITY::Channel::bank, NS_TIMIDITY::MidiEvent::channel, channel, NS_TIMIDITY::ControlMode::cmsg, compute_data(), ctl, current_event, current_sample, cut_notes, drop_sustain(), NS_TIMIDITY::ControlMode::expression, NS_TIMIDITY::Channel::expression, lost_notes, midi_playing, note_off(), note_on(), NS_TIMIDITY::ControlMode::panning, NS_TIMIDITY::Channel::panning, NS_TIMIDITY::ControlMode::pitch_bend, NS_TIMIDITY::Channel::pitchbend, NS_TIMIDITY::Channel::pitchfactor, NS_TIMIDITY::Channel::pitchsens, play_mode, NS_TIMIDITY::ControlMode::program, NS_TIMIDITY::Channel::program, NS_TIMIDITY::PlayMode::rate, redraw_controllers(), NS_TIMIDITY::ControlMode::refresh, reset_controllers(), NS_TIMIDITY::ControlMode::sustain, NS_TIMIDITY::Channel::sustain, NS_TIMIDITY::MidiEvent::time, NS_TIMIDITY::MidiEvent::type, NS_TIMIDITY::ControlMode::volume, and NS_TIMIDITY::Channel::volume.

MidiSong * NS_TIMIDITY::Timidity_LoadSong ( char *  midifile  ) 

Definition at line 913 of file timidity_playmidi.cpp.

References close_file(), fp, open_file(), and read_midi_file().

void NS_TIMIDITY::Timidity_Start ( MidiSong *  song  ) 

Definition at line 938 of file timidity_playmidi.cpp.

References adjust_amplification(), cut_notes, event_list, NS_TIMIDITY::MidiSong::events, load_missing_instruments(), lost_notes, midi_playing, sample_count, NS_TIMIDITY::MidiSong::samples, and skip_to().

int NS_TIMIDITY::Timidity_Active ( void   ) 

Definition at line 950 of file timidity_playmidi.cpp.

References midi_playing.

void NS_TIMIDITY::Timidity_Stop ( void   ) 

Definition at line 955 of file timidity_playmidi.cpp.

References midi_playing.

void NS_TIMIDITY::Timidity_FreeSong ( MidiSong *  song  ) 

Definition at line 960 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiSong::events, free_instruments(), and free_instruments_afterwards.

void NS_TIMIDITY::Timidity_FinalInit ( bool  patches[128],
bool  drums[128] 
)

Definition at line 1105 of file timidity_playmidi.cpp.

References adjust_amplification(), cut_notes, drumset, event_list, load_missing_instruments(), lost_notes, midi_playing, sample_count, skip_to(), and tonebank.

Referenced by TimidityMidiDriver::open().

void NS_TIMIDITY::Timidity_PlayEvent ( unsigned char  status,
int  a,
int  b 
)

Definition at line 975 of file timidity_playmidi.cpp.

References adjust_panning(), adjust_panning_immediately, adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), channel, ctl, drop_sustain(), NS_TIMIDITY::ControlMode::expression, NS_TIMIDITY::Channel::expression, note_off(), note_on(), NS_TIMIDITY::ControlMode::panning, NS_TIMIDITY::Channel::panning, NS_TIMIDITY::ControlMode::pitch_bend, NS_TIMIDITY::Channel::pitchbend, NS_TIMIDITY::Channel::pitchfactor, NS_TIMIDITY::ControlMode::program, NS_TIMIDITY::Channel::program, redraw_controllers(), reset_controllers(), NS_TIMIDITY::ControlMode::sustain, NS_TIMIDITY::Channel::sustain, NS_TIMIDITY::ControlMode::volume, and NS_TIMIDITY::Channel::volume.

Referenced by TimidityMidiDriver::send().

void NS_TIMIDITY::Timidity_GenerateSamples ( void *  stream,
int  samples 
)

Definition at line 1069 of file timidity_playmidi.cpp.

References AUDIO_BUFFER_SIZE, buffer_pointer, buffered_count, common_buffer, do_compute_data(), NS_TIMIDITY::PlayMode::encoding, play_mode, and s32tobuf.

Referenced by TimidityMidiDriver::lowLevelProduceSamples().

static FILE* NS_TIMIDITY::try_to_open ( char *  name,
int  decompress,
int  noise_mode 
) [static]

Definition at line 64 of file timidity_common.cpp.

References fp.

Referenced by open_file().

FILE * NS_TIMIDITY::open_file ( const char *  name,
int  decompress,
int  noise_mode 
)

Definition at line 123 of file timidity_common.cpp.

References NS_TIMIDITY::ControlMode::cmsg, ctl, current_filename, errno, fp, NS_TIMIDITY::PathList::next, NS_TIMIDITY::PathList::path, pathlist, strerror(), and try_to_open().

Referenced by load_instrument(), read_config_file(), and Timidity_LoadSong().

void NS_TIMIDITY::close_file ( FILE *  fp  ) 

Definition at line 198 of file timidity_common.cpp.

Referenced by load_instrument(), read_config_file(), and Timidity_LoadSong().

void NS_TIMIDITY::skip ( FILE *  fp,
size_t  len 
)

Definition at line 207 of file timidity_common.cpp.

References NS_TIMIDITY::ControlMode::cmsg, ctl, current_filename, errno, and strerror().

Referenced by load_instrument(), read_midi_event(), read_midi_file(), and ConvertShapeFrame::ReadCmpFrame().

void * NS_TIMIDITY::safe_malloc ( size_t  count  ) 

Definition at line 223 of file timidity_common.cpp.

References NS_TIMIDITY::ControlMode::close, NS_TIMIDITY::ControlMode::cmsg, and ctl.

Referenced by safe_Malloc().

void NS_TIMIDITY::add_to_pathlist ( char *  s  ) 

Definition at line 243 of file timidity_common.cpp.

References NS_TIMIDITY::PathList::next, NS_TIMIDITY::PathList::path, and pathlist.

Referenced by read_config_file().

template<class T>
T* NS_TIMIDITY::safe_Malloc ( size_t  count = 1  ) 

Definition at line 55 of file timidity_common.h.

References safe_malloc().

static float NS_TIMIDITY::ino ( float  x  )  [static]

Definition at line 51 of file timidity_filter.cpp.

References y.

Referenced by kaiser().

static void NS_TIMIDITY::kaiser ( float *  w,
int  n,
float  beta 
) [static]

Definition at line 69 of file timidity_filter.cpp.

References ino().

Referenced by designfir().

static void NS_TIMIDITY::designfir ( float *  g,
float  fc 
) [static]

Definition at line 86 of file timidity_filter.cpp.

References kaiser().

Referenced by antialiasing().

static void NS_TIMIDITY::filter ( sample_t result,
sample_t data,
sint32  length,
float  coef[] 
) [static]

Definition at line 114 of file timidity_filter.cpp.

References NS_TIMIDITY::ControlMode::cmsg, and ctl.

Referenced by antialiasing().

void NS_TIMIDITY::antialiasing ( Sample *  sp,
sint32  output_rate 
)

Definition at line 178 of file timidity_filter.cpp.

References NS_TIMIDITY::ControlMode::cmsg, ctl, NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::data_length, designfir(), filter(), and NS_TIMIDITY::Sample::sample_rate.

Referenced by load_instrument().

static void NS_TIMIDITY::free_instrument ( Instrument *  ip  )  [static]

Definition at line 68 of file timidity_instrum.cpp.

References NS_TIMIDITY::Sample::data, NS_TIMIDITY::Instrument::sample, and NS_TIMIDITY::Instrument::samples.

Referenced by free_bank(), and set_default_instrument().

static void NS_TIMIDITY::free_bank ( int  dr,
int  b 
) [static]

Definition at line 82 of file timidity_instrum.cpp.

References drumset, free_instrument(), NS_TIMIDITY::ToneBankElement::instrument, NS_TIMIDITY::ToneBank::tone, and tonebank.

Referenced by free_instruments().

static sint32 NS_TIMIDITY::convert_envelope_rate ( uint8  rate  )  [static]

Definition at line 96 of file timidity_instrum.cpp.

References control_ratio, fast_decay, play_mode, and NS_TIMIDITY::PlayMode::rate.

Referenced by load_instrument().

static sint32 NS_TIMIDITY::convert_envelope_offset ( uint8  offset  )  [static]

Definition at line 109 of file timidity_instrum.cpp.

Referenced by load_instrument().

static sint32 NS_TIMIDITY::convert_tremolo_sweep ( uint8  sweep  )  [static]

Definition at line 118 of file timidity_instrum.cpp.

References control_ratio, play_mode, and NS_TIMIDITY::PlayMode::rate.

Referenced by load_instrument().

static sint32 NS_TIMIDITY::convert_vibrato_sweep ( uint8  sweep,
sint32  vib_control_ratio 
) [static]

Definition at line 128 of file timidity_instrum.cpp.

References play_mode, and NS_TIMIDITY::PlayMode::rate.

Referenced by load_instrument().

static sint32 NS_TIMIDITY::convert_tremolo_rate ( uint8  rate  )  [static]

Definition at line 143 of file timidity_instrum.cpp.

References control_ratio, play_mode, and NS_TIMIDITY::PlayMode::rate.

Referenced by load_instrument().

static sint32 NS_TIMIDITY::convert_vibrato_rate ( uint8  rate  )  [static]

Definition at line 150 of file timidity_instrum.cpp.

References play_mode, and NS_TIMIDITY::PlayMode::rate.

Referenced by load_instrument().

static void NS_TIMIDITY::reverse_data ( sint16 sp,
sint32  ls,
sint32  le 
) [static]

Definition at line 158 of file timidity_instrum.cpp.

Referenced by load_instrument().

static Instrument* NS_TIMIDITY::load_instrument ( char *  name,
int  percussion,
int  panning,
int  amp,
int  note_to_use,
int  strip_loop,
int  strip_envelope,
int  strip_tail 
) [static]

Definition at line 182 of file timidity_instrum.cpp.

References antialiasing(), antialiasing_allowed, close_file(), NS_TIMIDITY::ControlMode::cmsg, convert_envelope_offset(), convert_envelope_rate(), convert_tremolo_rate(), convert_tremolo_sweep(), convert_vibrato_rate(), convert_vibrato_sweep(), ctl, current_filename, NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::data_length, NS_TIMIDITY::Sample::envelope_offset, NS_TIMIDITY::Sample::envelope_rate, fp, NS_TIMIDITY::Sample::high_freq, NS_TIMIDITY::Sample::loop_end, NS_TIMIDITY::Sample::loop_start, NS_TIMIDITY::Sample::low_freq, NS_TIMIDITY::Sample::modes, NS_TIMIDITY::Sample::note_to_use, open_file(), NS_TIMIDITY::Sample::panning, play_mode, pre_resample(), NS_TIMIDITY::PlayMode::rate, reverse_data(), NS_TIMIDITY::Sample::root_freq, NS_TIMIDITY::Instrument::sample, NS_TIMIDITY::Sample::sample_rate, NS_TIMIDITY::Instrument::samples, skip(), NS_TIMIDITY::Sample::tremolo_depth, NS_TIMIDITY::Sample::tremolo_phase_increment, NS_TIMIDITY::Sample::tremolo_sweep_increment, NS_TIMIDITY::Sample::vibrato_control_ratio, NS_TIMIDITY::Sample::vibrato_depth, and NS_TIMIDITY::Sample::vibrato_sweep_increment.

Referenced by fill_bank(), and set_default_instrument().

static int NS_TIMIDITY::fill_bank ( int  dr,
int  b 
) [static]

Definition at line 563 of file timidity_instrum.cpp.

References NS_TIMIDITY::ToneBankElement::amp, NS_TIMIDITY::ControlMode::cmsg, ctl, drumset, if(), NS_TIMIDITY::ToneBankElement::instrument, load_instrument(), NS_TIMIDITY::ToneBankElement::name, NS_TIMIDITY::ToneBankElement::note, NS_TIMIDITY::ToneBankElement::pan, standard_drumset, standard_tonebank, NS_TIMIDITY::ToneBankElement::strip_envelope, NS_TIMIDITY::ToneBankElement::strip_loop, NS_TIMIDITY::ToneBankElement::strip_tail, NS_TIMIDITY::ToneBank::tone, and tonebank.

Referenced by load_missing_instruments().

int NS_TIMIDITY::load_missing_instruments ( void   ) 

Definition at line 631 of file timidity_instrum.cpp.

References drumset, fill_bank(), and tonebank.

Referenced by Timidity_FinalInit(), and Timidity_Start().

void NS_TIMIDITY::free_instruments ( void   ) 

Definition at line 644 of file timidity_instrum.cpp.

References drumset, free_bank(), and tonebank.

Referenced by Timidity_DeInit(), and Timidity_FreeSong().

int NS_TIMIDITY::set_default_instrument ( char *  name  ) 

Definition at line 656 of file timidity_instrum.cpp.

References default_instrument, default_program, free_instrument(), and load_instrument().

Referenced by Timidity_Init(), and Timidity_Init_Simple().

int NS_TIMIDITY::recompute_envelope ( int  v  ) 

Definition at line 47 of file timidity_mix.cpp.

References ctl, NS_TIMIDITY::Voice::envelope_increment, NS_TIMIDITY::Sample::envelope_offset, NS_TIMIDITY::Sample::envelope_rate, NS_TIMIDITY::Voice::envelope_stage, NS_TIMIDITY::Voice::envelope_target, NS_TIMIDITY::ControlMode::note, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::status, and voice.

Referenced by finish_note(), start_note(), and update_envelope().

void NS_TIMIDITY::apply_envelope_to_amp ( int  v  ) 

Definition at line 86 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::left_amp, NS_TIMIDITY::Voice::left_mix, NS_TIMIDITY::Voice::right_amp, NS_TIMIDITY::Voice::right_mix, NS_TIMIDITY::Voice::tremolo_volume, voice, and vol_table.

Referenced by adjust_panning(), adjust_pressure(), adjust_volume(), apply_controls(), finish_note(), start_note(), Timidity_SetVolume(), and update_signal().

static int NS_TIMIDITY::update_envelope ( int  v  )  [static]

Definition at line 133 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::envelope_increment, NS_TIMIDITY::Voice::envelope_target, NS_TIMIDITY::Voice::envelope_volume, recompute_envelope(), and voice.

Referenced by update_signal().

static void NS_TIMIDITY::update_tremolo ( int  v  )  [static]

Definition at line 149 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::sample, sine(), NS_TIMIDITY::Sample::tremolo_depth, NS_TIMIDITY::Voice::tremolo_phase, NS_TIMIDITY::Voice::tremolo_phase_increment, NS_TIMIDITY::Voice::tremolo_sweep, NS_TIMIDITY::Voice::tremolo_sweep_position, NS_TIMIDITY::Voice::tremolo_volume, and voice.

Referenced by update_signal().

static int NS_TIMIDITY::update_signal ( int  v  )  [static]

Definition at line 183 of file timidity_mix.cpp.

References apply_envelope_to_amp(), update_envelope(), update_tremolo(), and voice.

Referenced by mix_center_signal(), mix_mono_signal(), mix_mystery_signal(), and mix_single_signal().

static void NS_TIMIDITY::mix_mystery_signal ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 201 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::control_counter, control_ratio, NS_TIMIDITY::Voice::left_mix, NS_TIMIDITY::Voice::right_mix, update_signal(), and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_center_signal ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 248 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::control_counter, control_ratio, NS_TIMIDITY::Voice::left_mix, update_signal(), and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_single_signal ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 292 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::control_counter, control_ratio, NS_TIMIDITY::Voice::left_mix, update_signal(), and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_mono_signal ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 336 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::control_counter, control_ratio, NS_TIMIDITY::Voice::left_mix, update_signal(), and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_mystery ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 378 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::left_mix, NS_TIMIDITY::Voice::right_mix, and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_center ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 393 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::left_mix, and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_single ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 407 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::left_mix, and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::mix_mono ( sample_t sp,
sint32 lp,
int  v,
int  count 
) [static]

Definition at line 421 of file timidity_mix.cpp.

References NS_TIMIDITY::Voice::left_mix, and voice.

Referenced by mix_voice().

static void NS_TIMIDITY::ramp_out ( sample_t sp,
sint32 lp,
int  v,
sint32  c 
) [static]

Definition at line 435 of file timidity_mix.cpp.

References NS_TIMIDITY::PlayMode::encoding, NS_TIMIDITY::Voice::left_mix, play_mode, NS_TIMIDITY::Voice::right_mix, and voice.

Referenced by mix_voice().

void NS_TIMIDITY::mix_voice ( sint32 buf,
int  v,
sint32  c 
)

Definition at line 525 of file timidity_mix.cpp.

References NS_TIMIDITY::PlayMode::encoding, NS_TIMIDITY::Voice::envelope_increment, mix_center(), mix_center_signal(), mix_mono(), mix_mono_signal(), mix_mystery(), mix_mystery_signal(), mix_single(), mix_single_signal(), NS_TIMIDITY::Voice::panned, play_mode, ramp_out(), resample_voice(), NS_TIMIDITY::Voice::status, NS_TIMIDITY::Voice::tremolo_phase_increment, and voice.

Referenced by do_compute_data().

void NS_TIMIDITY::s32tos8 ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 57 of file timidity_output.cpp.

Referenced by Timidity_Init(), and Timidity_Init_Simple().

void NS_TIMIDITY::s32tou8 ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 70 of file timidity_output.cpp.

Referenced by Timidity_Init(), and Timidity_Init_Simple().

void NS_TIMIDITY::s32tos16 ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 83 of file timidity_output.cpp.

Referenced by Timidity_Init_Simple().

void NS_TIMIDITY::s32tou16 ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 96 of file timidity_output.cpp.

Referenced by Timidity_Init_Simple().

void NS_TIMIDITY::s32tos16x ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 109 of file timidity_output.cpp.

Referenced by Timidity_Init_Simple().

void NS_TIMIDITY::s32tou16x ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 122 of file timidity_output.cpp.

Referenced by Timidity_Init_Simple().

void NS_TIMIDITY::s32toulaw ( void *  dp,
sint32 lp,
sint32  c 
)

Definition at line 135 of file timidity_output.cpp.

References _l2u.

Referenced by Timidity_Init_Simple().

int NS_TIMIDITY::init_buffers ( int  kbytes  ) 

static void NS_TIMIDITY::adjust_amplification ( void   )  [static]

Definition at line 75 of file timidity_playmidi.cpp.

References amplification, and master_volume.

Referenced by apply_controls(), Timidity_FinalInit(), Timidity_SetVolume(), and Timidity_Start().

static void NS_TIMIDITY::reset_voices ( void   )  [static]

Definition at line 80 of file timidity_playmidi.cpp.

References voice.

Referenced by reset_midi(), and seek_forward().

static void NS_TIMIDITY::reset_controllers ( int  c  )  [static]

Definition at line 88 of file timidity_playmidi.cpp.

References channel, NS_TIMIDITY::Channel::expression, NS_TIMIDITY::Channel::pitchbend, NS_TIMIDITY::Channel::pitchfactor, NS_TIMIDITY::Channel::sustain, and NS_TIMIDITY::Channel::volume.

Referenced by reset_midi(), seek_forward(), Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::redraw_controllers ( int  c  )  [static]

Definition at line 97 of file timidity_playmidi.cpp.

References channel, ctl, NS_TIMIDITY::ControlMode::expression, NS_TIMIDITY::ControlMode::pitch_bend, NS_TIMIDITY::ControlMode::sustain, and NS_TIMIDITY::ControlMode::volume.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::reset_midi ( void   )  [static]

Definition at line 105 of file timidity_playmidi.cpp.

References NS_TIMIDITY::Channel::bank, channel, default_program, NS_TIMIDITY::Channel::panning, NS_TIMIDITY::Channel::pitchsens, NS_TIMIDITY::Channel::program, reset_controllers(), and reset_voices().

Referenced by skip_to().

static void NS_TIMIDITY::select_sample ( int  v,
Instrument *  ip 
) [static]

Definition at line 120 of file timidity_playmidi.cpp.

References NS_TIMIDITY::Sample::high_freq, NS_TIMIDITY::Sample::low_freq, NS_TIMIDITY::Voice::orig_frequency, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Instrument::sample, NS_TIMIDITY::Instrument::samples, and voice.

Referenced by start_note().

static void NS_TIMIDITY::recompute_freq ( int  v  )  [static]

Definition at line 169 of file timidity_playmidi.cpp.

References bend_coarse, bend_fine, NS_TIMIDITY::Voice::channel, channel, NS_TIMIDITY::Voice::frequency, NS_TIMIDITY::Voice::orig_frequency, NS_TIMIDITY::Channel::pitchfactor, NS_TIMIDITY::Channel::pitchsens, play_mode, NS_TIMIDITY::PlayMode::rate, NS_TIMIDITY::Sample::root_freq, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, NS_TIMIDITY::Voice::vibrato_sample_increment, and voice.

Referenced by adjust_pitchbend(), and start_note().

static void NS_TIMIDITY::recompute_amp ( int  v  )  [static]

Definition at line 225 of file timidity_playmidi.cpp.

References NS_TIMIDITY::Voice::channel, channel, NS_TIMIDITY::PlayMode::encoding, NS_TIMIDITY::Channel::expression, NS_TIMIDITY::Voice::left_amp, master_volume, NS_TIMIDITY::Voice::panned, NS_TIMIDITY::Voice::panning, play_mode, NS_TIMIDITY::Voice::right_amp, NS_TIMIDITY::Voice::velocity, voice, and NS_TIMIDITY::Channel::volume.

Referenced by adjust_panning(), adjust_pressure(), adjust_volume(), apply_controls(), start_note(), and Timidity_SetVolume().

static void NS_TIMIDITY::start_note ( MidiEvent *  e,
int  i 
) [static]

Definition at line 282 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiEvent::a, apply_envelope_to_amp(), NS_TIMIDITY::MidiEvent::b, NS_TIMIDITY::Voice::channel, channel, NS_TIMIDITY::MidiEvent::channel, NS_TIMIDITY::ControlMode::cmsg, NS_TIMIDITY::Voice::control_counter, ctl, default_instrument, drumset, NS_TIMIDITY::Voice::envelope_increment, NS_TIMIDITY::Voice::envelope_stage, NS_TIMIDITY::Voice::envelope_volume, freq_table, PentZip::int(), NS_TIMIDITY::ControlMode::note, NS_TIMIDITY::Voice::note, NS_TIMIDITY::Sample::note_to_use, NS_TIMIDITY::Voice::orig_frequency, NS_TIMIDITY::Sample::panning, NS_TIMIDITY::Voice::panning, recompute_amp(), recompute_envelope(), recompute_freq(), NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Instrument::sample, NS_TIMIDITY::Voice::sample_increment, NS_TIMIDITY::Voice::sample_offset, NS_TIMIDITY::Instrument::samples, select_sample(), NS_TIMIDITY::Voice::status, tonebank, NS_TIMIDITY::Voice::tremolo_phase, NS_TIMIDITY::Sample::tremolo_phase_increment, NS_TIMIDITY::Voice::tremolo_phase_increment, NS_TIMIDITY::Voice::tremolo_sweep, NS_TIMIDITY::Sample::tremolo_sweep_increment, NS_TIMIDITY::Voice::tremolo_sweep_position, NS_TIMIDITY::Voice::velocity, NS_TIMIDITY::Voice::vibrato_control_counter, NS_TIMIDITY::Sample::vibrato_control_ratio, NS_TIMIDITY::Voice::vibrato_control_ratio, NS_TIMIDITY::Voice::vibrato_phase, NS_TIMIDITY::Voice::vibrato_sweep, NS_TIMIDITY::Sample::vibrato_sweep_increment, NS_TIMIDITY::Voice::vibrato_sweep_position, and voice.

Referenced by note_on().

static void NS_TIMIDITY::kill_note ( int  i  )  [static]

Definition at line 369 of file timidity_playmidi.cpp.

References ctl, NS_TIMIDITY::ControlMode::note, NS_TIMIDITY::Voice::status, and voice.

Referenced by all_sounds_off(), and note_on().

static void NS_TIMIDITY::note_on ( MidiEvent *  e  )  [static]

Definition at line 376 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiEvent::a, NS_TIMIDITY::Voice::channel, NS_TIMIDITY::MidiEvent::channel, channel, ctl, cut_notes, kill_note(), NS_TIMIDITY::Voice::left_mix, lost_notes, NS_TIMIDITY::ControlMode::note, NS_TIMIDITY::Voice::note, NS_TIMIDITY::Voice::right_mix, start_note(), NS_TIMIDITY::Voice::status, voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::finish_note ( int  i  )  [static]

Definition at line 431 of file timidity_playmidi.cpp.

References apply_envelope_to_amp(), ctl, NS_TIMIDITY::Voice::envelope_stage, NS_TIMIDITY::ControlMode::note, recompute_envelope(), NS_TIMIDITY::Voice::status, and voice.

Referenced by all_notes_off(), drop_sustain(), and note_off().

static void NS_TIMIDITY::note_off ( MidiEvent *  e  )  [static]

Definition at line 451 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiEvent::a, NS_TIMIDITY::MidiEvent::channel, channel, ctl, finish_note(), NS_TIMIDITY::ControlMode::note, NS_TIMIDITY::Voice::note, NS_TIMIDITY::Voice::status, voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::all_notes_off ( int  c  )  [static]

Definition at line 471 of file timidity_playmidi.cpp.

References channel, NS_TIMIDITY::ControlMode::cmsg, ctl, finish_note(), NS_TIMIDITY::ControlMode::note, NS_TIMIDITY::Voice::status, voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::all_sounds_off ( int  c  )  [static]

Definition at line 490 of file timidity_playmidi.cpp.

References channel, kill_note(), voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::adjust_pressure ( MidiEvent *  e  )  [static]

Definition at line 502 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiEvent::a, apply_envelope_to_amp(), NS_TIMIDITY::MidiEvent::b, NS_TIMIDITY::MidiEvent::channel, channel, NS_TIMIDITY::Voice::note, recompute_amp(), NS_TIMIDITY::Voice::velocity, voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::adjust_panning ( int  c  )  [static]

Definition at line 517 of file timidity_playmidi.cpp.

References apply_envelope_to_amp(), channel, NS_TIMIDITY::Channel::panning, NS_TIMIDITY::Voice::panning, recompute_amp(), voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::drop_sustain ( int  c  )  [static]

Definition at line 530 of file timidity_playmidi.cpp.

References channel, finish_note(), voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::adjust_pitchbend ( int  c  )  [static]

Definition at line 538 of file timidity_playmidi.cpp.

References channel, recompute_freq(), voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::adjust_volume ( int  c  )  [static]

Definition at line 548 of file timidity_playmidi.cpp.

References apply_envelope_to_amp(), channel, recompute_amp(), voice, and voices.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

static void NS_TIMIDITY::seek_forward ( sint32  until_time  )  [static]

Definition at line 560 of file timidity_playmidi.cpp.

References NS_TIMIDITY::MidiEvent::a, NS_TIMIDITY::MidiEvent::b, NS_TIMIDITY::Channel::bank, NS_TIMIDITY::MidiEvent::channel, channel, current_event, current_sample, event_list, NS_TIMIDITY::Channel::expression, NS_TIMIDITY::Channel::panning, NS_TIMIDITY::Channel::pitchbend, NS_TIMIDITY::Channel::pitchfactor, NS_TIMIDITY::Channel::pitchsens, NS_TIMIDITY::Channel::program, reset_controllers(), reset_voices(), NS_TIMIDITY::Channel::sustain, NS_TIMIDITY::MidiEvent::time, NS_TIMIDITY::MidiEvent::type, and NS_TIMIDITY::Channel::volume.

Referenced by skip_to().

static void NS_TIMIDITY::skip_to ( sint32  until_time  )  [static]

Definition at line 625 of file timidity_playmidi.cpp.

References buffer_pointer, buffered_count, common_buffer, ctl, current_event, current_sample, event_list, NS_TIMIDITY::ControlMode::reset, reset_midi(), and seek_forward().

Referenced by apply_controls(), Timidity_FinalInit(), and Timidity_Start().

static int NS_TIMIDITY::apply_controls ( void   )  [static]

Definition at line 640 of file timidity_playmidi.cpp.

References adjust_amplification(), amplification, apply_envelope_to_amp(), ctl, current_sample, NS_TIMIDITY::ControlMode::master_volume, NS_TIMIDITY::ControlMode::read, recompute_amp(), sample_count, skip_to(), voice, and voices.

Referenced by compute_data().

static void NS_TIMIDITY::do_compute_data ( sint32  count  )  [static]

Definition at line 711 of file timidity_playmidi.cpp.

References buffer_pointer, current_sample, NS_TIMIDITY::PlayMode::encoding, mix_voice(), play_mode, voice, and voices.

Referenced by compute_data(), and Timidity_GenerateSamples().

static int NS_TIMIDITY::compute_data ( void *  stream,
sint32  count 
) [static]

Definition at line 726 of file timidity_playmidi.cpp.

References apply_controls(), AUDIO_BUFFER_SIZE, buffer_pointer, buffered_count, common_buffer, ctl, current_sample, NS_TIMIDITY::ControlMode::current_time, do_compute_data(), NS_TIMIDITY::PlayMode::encoding, play_mode, and s32tobuf.

Referenced by Timidity_PlaySome().

int NS_TIMIDITY::play_midi ( MidiEvent *  el,
sint32  events,
sint32  samples 
)

int NS_TIMIDITY::play_midi_file ( char *  fn  ) 

void NS_TIMIDITY::dumb_pass_playing_list ( int  number_of_files,
char *  list_of_files[] 
)

static void NS_TIMIDITY::compute_sample_increment ( sint32  tempo,
sint32  divisions 
) [static]

Definition at line 64 of file timidity_readmidi.cpp.

References NS_TIMIDITY::ControlMode::cmsg, ctl, play_mode, NS_TIMIDITY::PlayMode::rate, sample_correction, and sample_increment.

Referenced by groom_list().

static sint32 NS_TIMIDITY::getvl ( void   )  [static]

Definition at line 78 of file timidity_readmidi.cpp.

References fp.

Referenced by read_midi_event().

static int NS_TIMIDITY::dumpstring ( sint32  len,
char *  label 
) [static]

Definition at line 93 of file timidity_readmidi.cpp.

References NS_TIMIDITY::ControlMode::cmsg, ctl, and fp.

Referenced by read_midi_event().

static MidiEventList* NS_TIMIDITY::read_midi_event ( void   )  [static]

Definition at line 122 of file timidity_readmidi.cpp.

References at, NS_TIMIDITY::ControlMode::cmsg, ctl, current_filename, dumpstring(), errno, fp, getvl(), skip(), and strerror().

Referenced by read_track().

static int NS_TIMIDITY::read_track ( int  append  )  [static]

Definition at line 304 of file timidity_readmidi.cpp.

References at, NS_TIMIDITY::ControlMode::cmsg, ctl, current_filename, NS_TIMIDITY::MidiEventList::event, event_count, evlist, fp, NS_TIMIDITY::MidiEventList::next, read_midi_event(), and NS_TIMIDITY::MidiEvent::time.

Referenced by read_midi_file().

static void NS_TIMIDITY::free_midi_list ( void   )  [static]

Definition at line 364 of file timidity_readmidi.cpp.

References evlist, and NS_TIMIDITY::MidiEventList::next.

Referenced by groom_list(), and read_midi_file().

static MidiEvent* NS_TIMIDITY::groom_list ( sint32  divisions,
sint32 eventsp,
sint32 samplesp 
) [static]

Definition at line 381 of file timidity_readmidi.cpp.

References at, NS_TIMIDITY::ControlMode::cmsg, compute_sample_increment(), ctl, default_program, drumset, event_count, evlist, free_midi_list(), NS_TIMIDITY::ToneBankElement::instrument, quietchannels, sample_correction, sample_increment, NS_TIMIDITY::MidiEvent::time, NS_TIMIDITY::ToneBank::tone, tonebank, and NS_TIMIDITY::MidiEvent::type.

Referenced by read_midi_file().

MidiEvent * NS_TIMIDITY::read_midi_file ( FILE *  mfp,
sint32 count,
sint32 sp 
)

Definition at line 536 of file timidity_readmidi.cpp.

References at, NS_TIMIDITY::ControlMode::cmsg, ctl, current_filename, errno, NS_TIMIDITY::MidiEventList::event, event_count, evlist, fp, free_midi_list(), groom_list(), NS_TIMIDITY::MidiEventList::next, read_track(), skip(), strerror(), NS_TIMIDITY::MidiEvent::time, and NS_TIMIDITY::MidiEvent::type.

Referenced by Timidity_LoadSong().

static sample_t* NS_TIMIDITY::rs_plain ( int  v,
sint32 countptr 
) [static]

Definition at line 71 of file timidity_resample.cpp.

References ctl, NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::data_length, NS_TIMIDITY::ControlMode::note, resample_buffer, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, NS_TIMIDITY::Voice::sample_offset, NS_TIMIDITY::Voice::status, and voice.

Referenced by resample_voice().

static sample_t* NS_TIMIDITY::rs_loop ( Voice *  vp,
sint32  count 
) [static]

Definition at line 138 of file timidity_resample.cpp.

References NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::loop_end, NS_TIMIDITY::Sample::loop_start, resample_buffer, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, and NS_TIMIDITY::Voice::sample_offset.

Referenced by resample_voice().

static sample_t* NS_TIMIDITY::rs_bidir ( Voice *  vp,
sint32  count 
) [static]

Definition at line 189 of file timidity_resample.cpp.

References NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::loop_end, NS_TIMIDITY::Sample::loop_start, resample_buffer, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, and NS_TIMIDITY::Voice::sample_offset.

Referenced by resample_voice().

static int NS_TIMIDITY::vib_phase_to_inc_ptr ( int  phase  )  [static]

Definition at line 299 of file timidity_resample.cpp.

Referenced by update_vibrato().

static sint32 NS_TIMIDITY::update_vibrato ( Voice *  vp,
int  sign 
) [static]

Definition at line 309 of file timidity_resample.cpp.

References bend_coarse, bend_fine, NS_TIMIDITY::Voice::frequency, PentZip::int(), play_mode, NS_TIMIDITY::PlayMode::rate, NS_TIMIDITY::Sample::root_freq, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Sample::sample_rate, sine(), vib_phase_to_inc_ptr(), NS_TIMIDITY::Sample::vibrato_depth, NS_TIMIDITY::Voice::vibrato_phase, NS_TIMIDITY::Voice::vibrato_sample_increment, NS_TIMIDITY::Voice::vibrato_sweep, and NS_TIMIDITY::Voice::vibrato_sweep_position.

Referenced by rs_vib_bidir(), rs_vib_loop(), and rs_vib_plain().

static sample_t* NS_TIMIDITY::rs_vib_plain ( int  v,
sint32 countptr 
) [static]

Definition at line 373 of file timidity_resample.cpp.

References ctl, NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::data_length, NS_TIMIDITY::ControlMode::note, resample_buffer, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, NS_TIMIDITY::Voice::sample_offset, NS_TIMIDITY::Voice::status, update_vibrato(), NS_TIMIDITY::Voice::vibrato_control_counter, NS_TIMIDITY::Voice::vibrato_control_ratio, and voice.

Referenced by resample_voice().

static sample_t* NS_TIMIDITY::rs_vib_loop ( Voice *  vp,
sint32  count 
) [static]

Definition at line 420 of file timidity_resample.cpp.

References NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::loop_end, NS_TIMIDITY::Sample::loop_start, resample_buffer, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, NS_TIMIDITY::Voice::sample_offset, update_vibrato(), NS_TIMIDITY::Voice::vibrato_control_counter, and NS_TIMIDITY::Voice::vibrato_control_ratio.

Referenced by resample_voice().

static sample_t* NS_TIMIDITY::rs_vib_bidir ( Voice *  vp,
sint32  count 
) [static]

Definition at line 492 of file timidity_resample.cpp.

References NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::loop_end, NS_TIMIDITY::Sample::loop_start, resample_buffer, NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_increment, NS_TIMIDITY::Voice::sample_offset, update_vibrato(), NS_TIMIDITY::Voice::vibrato_control_counter, and NS_TIMIDITY::Voice::vibrato_control_ratio.

Referenced by resample_voice().

sample_t * NS_TIMIDITY::resample_voice ( int  v,
sint32 countptr 
)

Definition at line 628 of file timidity_resample.cpp.

References ctl, NS_TIMIDITY::Sample::data, NS_TIMIDITY::Sample::data_length, NS_TIMIDITY::Sample::modes, NS_TIMIDITY::ControlMode::note, rs_bidir(), rs_loop(), rs_plain(), rs_vib_bidir(), rs_vib_loop(), rs_vib_plain(), NS_TIMIDITY::Voice::sample, NS_TIMIDITY::Voice::sample_offset, NS_TIMIDITY::Sample::sample_rate, NS_TIMIDITY::Voice::status, NS_TIMIDITY::Voice::vibrato_control_ratio, and voice.

Referenced by mix_voice().

void NS_TIMIDITY::pre_resample ( Sample *  sp  ) 

Definition at line 688 of file timidity_resample.cpp.

References NS_TIMIDITY::Sample::data.

Referenced by load_instrument().

static void NS_TIMIDITY::ctl_refresh ( void   )  [static]

Definition at line 106 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_total_time ( int  tt  )  [static]

Definition at line 108 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_master_volume ( int  mv  )  [static]

Definition at line 110 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_file_name ( char *  name  )  [static]

Definition at line 112 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_current_time ( int  ct  )  [static]

Definition at line 114 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_note ( int  v  )  [static]

Definition at line 116 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_program ( int  ch,
int  val 
) [static]

Definition at line 118 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_volume ( int  channel,
int  val 
) [static]

Definition at line 120 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_expression ( int  channel,
int  val 
) [static]

Definition at line 122 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_panning ( int  channel,
int  val 
) [static]

Definition at line 124 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_sustain ( int  channel,
int  val 
) [static]

Definition at line 126 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_pitch_bend ( int  channel,
int  val 
) [static]

Definition at line 128 of file timidity_sdl_c.cpp.

static void NS_TIMIDITY::ctl_reset ( void   )  [static]

Definition at line 130 of file timidity_sdl_c.cpp.

static int NS_TIMIDITY::ctl_open ( int  using_stdin,
int  using_stdout 
) [static]

Definition at line 77 of file timidity_sdl_c.cpp.

References ctl, and NS_TIMIDITY::ControlMode::opened.

static void NS_TIMIDITY::ctl_close ( void   )  [static]

Definition at line 83 of file timidity_sdl_c.cpp.

References ctl, and NS_TIMIDITY::ControlMode::opened.

static int NS_TIMIDITY::ctl_read ( sint32 valp  )  [static]

Definition at line 88 of file timidity_sdl_c.cpp.

static int NS_TIMIDITY::cmsg ( int  type,
int  verbosity_level,
char *  fmt,
  ... 
) [static]

Definition at line 93 of file timidity_sdl_c.cpp.

References ctl, timidity_error, and NS_TIMIDITY::ControlMode::verbosity.

float NS_TIMIDITY::sine ( int  x  ) 

Definition at line 304 of file timidity_tables.cpp.

References sine_table.

Referenced by update_tremolo(), and update_vibrato().

void NS_TIMIDITY::init_tables ( void   ) 

Definition at line 366 of file timidity_tables.cpp.

References _u2l, iplookup, and mixup.

Referenced by Timidity_Init(), and Timidity_Init_Simple().


Variable Documentation

void(*) NS_TIMIDITY::s32tobuf(void *dp, sint32 *lp, sint32 c)

Definition at line 51 of file timidity.cpp.

Referenced by compute_data(), Timidity_GenerateSamples(), Timidity_Init(), and Timidity_Init_Simple().

int NS_TIMIDITY::free_instruments_afterwards = 0

Definition at line 52 of file timidity.cpp.

Referenced by Timidity_FreeSong().

char NS_TIMIDITY::def_instr_name[256] = "" [static]

Definition at line 53 of file timidity.cpp.

Referenced by read_config_file(), Timidity_Init(), and Timidity_Init_Simple().

int NS_TIMIDITY::AUDIO_BUFFER_SIZE

Definition at line 55 of file timidity.cpp.

Referenced by compute_data(), Timidity_GenerateSamples(), Timidity_Init(), and Timidity_Init_Simple().

sample_t* NS_TIMIDITY::resample_buffer = 0

Definition at line 56 of file timidity.cpp.

Referenced by rs_bidir(), rs_loop(), rs_plain(), rs_vib_bidir(), rs_vib_loop(), rs_vib_plain(), Timidity_DeInit(), Timidity_Init(), and Timidity_Init_Simple().

sint32* NS_TIMIDITY::common_buffer = 0

Definition at line 57 of file timidity.cpp.

Referenced by compute_data(), skip_to(), Timidity_DeInit(), Timidity_GenerateSamples(), Timidity_Init(), and Timidity_Init_Simple().

char NS_TIMIDITY::timidity_error = ""

Definition at line 480 of file timidity.cpp.

Referenced by cmsg(), and Timidity_Error().

char NS_TIMIDITY::current_filename

Definition at line 52 of file timidity_common.cpp.

Referenced by load_instrument(), open_file(), read_midi_event(), read_midi_file(), read_track(), and skip().

PathList NS_TIMIDITY::defaultpathlist = {DEFAULT_TIMIDITY_PATH,0} [static]

Definition at line 56 of file timidity_common.cpp.

PathList* NS_TIMIDITY::pathlist = &defaultpathlist [static]

Definition at line 57 of file timidity_common.cpp.

Referenced by add_to_pathlist(), and open_file().

PathList* NS_TIMIDITY::pathlist = 0 [static]

Definition at line 59 of file timidity_common.cpp.

char* NS_TIMIDITY::program_name

FILE* NS_TIMIDITY::msgfp

ControlMode NS_TIMIDITY::sdl_control_mode

ControlMode* NS_TIMIDITY::ctl_list[]

Initial value:

{
#ifdef SDL
  &sdl_control_mode,
#endif
  0
}

Definition at line 42 of file timidity_controls.cpp.

ControlMode* NS_TIMIDITY::ctl = DEFAULT_CONTROL_MODE

Definition at line 49 of file timidity_controls.cpp.

Referenced by all_notes_off(), antialiasing(), apply_controls(), cmsg(), compute_data(), compute_sample_increment(), ctl_close(), ctl_open(), dumpstring(), fill_bank(), filter(), finish_note(), groom_list(), kill_note(), load_instrument(), note_off(), note_on(), open_file(), read_config_file(), read_midi_event(), read_midi_file(), read_track(), recompute_envelope(), redraw_controllers(), resample_voice(), rs_plain(), rs_vib_plain(), safe_malloc(), skip(), skip_to(), start_note(), Timidity_Init(), Timidity_Init_Simple(), Timidity_PlayEvent(), Timidity_PlaySome(), and Timidity_SetVolume().

ControlMode* NS_TIMIDITY::ctl_list[]

Definition at line 42 of file timidity_controls.cpp.

ControlMode * NS_TIMIDITY::ctl

Definition at line 49 of file timidity_controls.cpp.

ToneBank NS_TIMIDITY::standard_tonebank [static]

Definition at line 50 of file timidity_instrum.cpp.

Referenced by fill_bank().

ToneBank NS_TIMIDITY::standard_drumset [static]

Definition at line 50 of file timidity_instrum.cpp.

Referenced by fill_bank().

ToneBank * NS_TIMIDITY::tonebank = {&standard_tonebank}

Definition at line 52 of file timidity_instrum.cpp.

Referenced by fill_bank(), free_bank(), free_instruments(), groom_list(), load_missing_instruments(), read_config_file(), start_note(), and Timidity_FinalInit().

ToneBank * NS_TIMIDITY::drumset = {&standard_drumset}

Definition at line 53 of file timidity_instrum.cpp.

Referenced by fill_bank(), free_bank(), free_instruments(), groom_list(), load_missing_instruments(), read_config_file(), start_note(), and Timidity_FinalInit().

Instrument* NS_TIMIDITY::default_instrument = 0

Definition at line 56 of file timidity_instrum.cpp.

Referenced by set_default_instrument(), and start_note().

int NS_TIMIDITY::default_program = DEFAULT_PROGRAM

Definition at line 59 of file timidity_instrum.cpp.

Referenced by groom_list(), reset_midi(), and set_default_instrument().

int NS_TIMIDITY::antialiasing_allowed = 0

Definition at line 61 of file timidity_instrum.cpp.

Referenced by load_instrument().

int NS_TIMIDITY::fast_decay = 1

Definition at line 63 of file timidity_instrum.cpp.

Referenced by convert_envelope_rate().

int NS_TIMIDITY::fast_decay = 0

Definition at line 65 of file timidity_instrum.cpp.

Instrument* NS_TIMIDITY::default_instrument

Definition at line 56 of file timidity_instrum.cpp.

Referenced by set_default_instrument(), and start_note().

int NS_TIMIDITY::default_program

Definition at line 59 of file timidity_instrum.cpp.

Referenced by groom_list(), reset_midi(), and set_default_instrument().

int NS_TIMIDITY::antialiasing_allowed

Definition at line 61 of file timidity_instrum.cpp.

Referenced by load_instrument().

int NS_TIMIDITY::fast_decay

Definition at line 63 of file timidity_instrum.cpp.

int NS_TIMIDITY::free_instruments_afterwards

Definition at line 52 of file timidity.cpp.

Referenced by Timidity_FreeSong().

PlayMode NS_TIMIDITY::sdl_play_mode

PlayMode* NS_TIMIDITY::play_mode_list[]

Initial value:

 {
#ifdef DEFAULT_PLAY_MODE
  DEFAULT_PLAY_MODE,
#endif
  0
}

Definition at line 43 of file timidity_output.cpp.

PlayMode* NS_TIMIDITY::play_mode = DEFAULT_PLAY_MODE

Definition at line 51 of file timidity_output.cpp.

Referenced by compute_data(), compute_sample_increment(), convert_envelope_rate(), convert_tremolo_rate(), convert_tremolo_sweep(), convert_vibrato_rate(), convert_vibrato_sweep(), do_compute_data(), load_instrument(), mix_voice(), ramp_out(), recompute_amp(), recompute_freq(), Timidity_GenerateSamples(), Timidity_Init(), Timidity_Init_Simple(), Timidity_PlaySome(), and update_vibrato().

PlayMode* NS_TIMIDITY::play_mode_list[]

Definition at line 43 of file timidity_output.cpp.

PlayMode * NS_TIMIDITY::play_mode

Definition at line 51 of file timidity_output.cpp.

Referenced by compute_data(), compute_sample_increment(), convert_envelope_rate(), convert_tremolo_rate(), convert_tremolo_sweep(), convert_vibrato_rate(), convert_vibrato_sweep(), do_compute_data(), load_instrument(), mix_voice(), ramp_out(), recompute_amp(), recompute_freq(), Timidity_GenerateSamples(), Timidity_Init(), Timidity_Init_Simple(), Timidity_PlaySome(), and update_vibrato().

int NS_TIMIDITY::AUDIO_BUFFER_SIZE

Definition at line 55 of file timidity.cpp.

Referenced by compute_data(), Timidity_GenerateSamples(), Timidity_Init(), and Timidity_Init_Simple().

void(*) NS_TIMIDITY::s32tobuf(void *dp, sint32 *lp, sint32 c)

Definition at line 51 of file timidity.cpp.

Referenced by compute_data(), Timidity_GenerateSamples(), Timidity_Init(), and Timidity_Init_Simple().

Channel NS_TIMIDITY::channel[16]

Definition at line 46 of file timidity_playmidi.cpp.

Referenced by adjust_panning(), adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), XMidiFile::ApplyFirstState(), AudioProcess::continueSpeech(), drop_sustain(), note_off(), note_on(), AudioProcess::playSample(), AudioProcess::playSFX(), AudioProcess::playSpeech(), recompute_amp(), recompute_freq(), redraw_controllers(), reset_controllers(), reset_midi(), seek_forward(), FMOplMidiDriver::send(), start_note(), Timidity_PlayEvent(), and Timidity_PlaySome().

Voice NS_TIMIDITY::voice[MAX_VOICES]

Definition at line 47 of file timidity_playmidi.cpp.

Referenced by adjust_panning(), adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), apply_controls(), apply_envelope_to_amp(), do_compute_data(), drop_sustain(), finish_note(), kill_note(), mix_center(), mix_center_signal(), mix_mono(), mix_mono_signal(), mix_mystery(), mix_mystery_signal(), mix_single(), mix_single_signal(), mix_voice(), note_off(), note_on(), ramp_out(), recompute_amp(), recompute_envelope(), recompute_freq(), resample_voice(), reset_voices(), rs_plain(), rs_vib_plain(), select_sample(), start_note(), Timidity_SetVolume(), update_envelope(), update_signal(), and update_tremolo().

int NS_TIMIDITY::voices = DEFAULT_VOICES

Definition at line 50 of file timidity_playmidi.cpp.

Referenced by adjust_panning(), adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), apply_controls(), do_compute_data(), drop_sustain(), note_off(), note_on(), and Timidity_SetVolume().

sint32 NS_TIMIDITY::control_ratio = 0

Definition at line 53 of file timidity_playmidi.cpp.

Referenced by convert_envelope_rate(), convert_tremolo_rate(), convert_tremolo_sweep(), mix_center_signal(), mix_mono_signal(), mix_mystery_signal(), mix_single_signal(), Timidity_Init(), and Timidity_Init_Simple().

sint32 NS_TIMIDITY::amplification = DEFAULT_AMPLIFICATION

Definition at line 54 of file timidity_playmidi.cpp.

Referenced by adjust_amplification(), apply_controls(), and Timidity_SetVolume().

float NS_TIMIDITY::master_volume

Definition at line 57 of file timidity_playmidi.cpp.

Referenced by adjust_amplification(), and recompute_amp().

sint32 NS_TIMIDITY::drumchannels = DEFAULT_DRUMCHANNELS

Definition at line 59 of file timidity_playmidi.cpp.

int NS_TIMIDITY::adjust_panning_immediately = 1

Definition at line 60 of file timidity_playmidi.cpp.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

int NS_TIMIDITY::midi_playing = 0 [static]

Definition at line 66 of file timidity_playmidi.cpp.

Referenced by Timidity_Active(), Timidity_FinalInit(), Timidity_PlaySome(), Timidity_Start(), and Timidity_Stop().

sint32 NS_TIMIDITY::lost_notes [static]

Definition at line 67 of file timidity_playmidi.cpp.

Referenced by note_on(), Timidity_FinalInit(), Timidity_PlaySome(), and Timidity_Start().

sint32 NS_TIMIDITY::cut_notes [static]

Definition at line 67 of file timidity_playmidi.cpp.

Referenced by note_on(), Timidity_FinalInit(), Timidity_PlaySome(), and Timidity_Start().

sint32* NS_TIMIDITY::buffer_pointer [static]

Definition at line 68 of file timidity_playmidi.cpp.

Referenced by compute_data(), do_compute_data(), skip_to(), and Timidity_GenerateSamples().

sint32 NS_TIMIDITY::buffered_count [static]

Definition at line 69 of file timidity_playmidi.cpp.

Referenced by compute_data(), skip_to(), and Timidity_GenerateSamples().

sint32* NS_TIMIDITY::common_buffer

Definition at line 57 of file timidity.cpp.

Referenced by compute_data(), skip_to(), Timidity_DeInit(), Timidity_GenerateSamples(), Timidity_Init(), and Timidity_Init_Simple().

MidiEvent* NS_TIMIDITY::event_list [static]

Definition at line 72 of file timidity_playmidi.cpp.

Referenced by seek_forward(), skip_to(), Timidity_FinalInit(), and Timidity_Start().

MidiEvent * NS_TIMIDITY::current_event [static]

Definition at line 72 of file timidity_playmidi.cpp.

Referenced by seek_forward(), skip_to(), and Timidity_PlaySome().

sint32 NS_TIMIDITY::sample_count [static]

Definition at line 73 of file timidity_playmidi.cpp.

Referenced by apply_controls(), Timidity_FinalInit(), and Timidity_Start().

sint32 NS_TIMIDITY::current_sample [static]

Definition at line 73 of file timidity_playmidi.cpp.

Referenced by apply_controls(), compute_data(), do_compute_data(), seek_forward(), skip_to(), and Timidity_PlaySome().

Channel NS_TIMIDITY::channel[16]

Definition at line 46 of file timidity_playmidi.cpp.

Referenced by adjust_panning(), adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), XMidiFile::ApplyFirstState(), AudioProcess::continueSpeech(), drop_sustain(), note_off(), note_on(), AudioProcess::playSample(), AudioProcess::playSFX(), AudioProcess::playSpeech(), recompute_amp(), recompute_freq(), redraw_controllers(), reset_controllers(), reset_midi(), seek_forward(), FMOplMidiDriver::send(), start_note(), Timidity_PlayEvent(), and Timidity_PlaySome().

Voice NS_TIMIDITY::voice[MAX_VOICES]

Definition at line 47 of file timidity_playmidi.cpp.

Referenced by adjust_panning(), adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), apply_controls(), apply_envelope_to_amp(), do_compute_data(), drop_sustain(), finish_note(), kill_note(), mix_center(), mix_center_signal(), mix_mono(), mix_mono_signal(), mix_mystery(), mix_mystery_signal(), mix_single(), mix_single_signal(), mix_voice(), note_off(), note_on(), ramp_out(), recompute_amp(), recompute_envelope(), recompute_freq(), resample_voice(), reset_voices(), rs_plain(), rs_vib_plain(), select_sample(), start_note(), Timidity_SetVolume(), update_envelope(), update_signal(), and update_tremolo().

sint32 NS_TIMIDITY::control_ratio

Definition at line 53 of file timidity_playmidi.cpp.

Referenced by convert_envelope_rate(), convert_tremolo_rate(), convert_tremolo_sweep(), mix_center_signal(), mix_mono_signal(), mix_mystery_signal(), mix_single_signal(), Timidity_Init(), and Timidity_Init_Simple().

sint32 NS_TIMIDITY::amp_with_poly

sint32 NS_TIMIDITY::amplification

Definition at line 54 of file timidity_playmidi.cpp.

Referenced by adjust_amplification(), apply_controls(), and Timidity_SetVolume().

sint32 NS_TIMIDITY::drumchannels

Definition at line 59 of file timidity_playmidi.cpp.

int NS_TIMIDITY::adjust_panning_immediately

Definition at line 60 of file timidity_playmidi.cpp.

Referenced by Timidity_PlayEvent(), and Timidity_PlaySome().

int NS_TIMIDITY::voices

Definition at line 50 of file timidity_playmidi.cpp.

Referenced by adjust_panning(), adjust_pitchbend(), adjust_pressure(), adjust_volume(), all_notes_off(), all_sounds_off(), apply_controls(), do_compute_data(), drop_sustain(), note_off(), note_on(), and Timidity_SetVolume().

sint32 NS_TIMIDITY::quietchannels = 0

Definition at line 51 of file timidity_readmidi.cpp.

Referenced by groom_list().

MidiEventList* NS_TIMIDITY::evlist [static]

Definition at line 54 of file timidity_readmidi.cpp.

Referenced by free_midi_list(), groom_list(), read_midi_file(), and read_track().

sint32 NS_TIMIDITY::event_count [static]

Definition at line 55 of file timidity_readmidi.cpp.

Referenced by groom_list(), read_midi_file(), and read_track().

FILE* NS_TIMIDITY::fp [static]

Definition at line 56 of file timidity_readmidi.cpp.

Referenced by dumpstring(), getvl(), load_instrument(), open_file(), read_config_file(), read_midi_event(), read_midi_file(), read_track(), Timidity_LoadSong(), and try_to_open().

sint32 NS_TIMIDITY::at [static]

Definition at line 57 of file timidity_readmidi.cpp.

Referenced by groom_list(), read_midi_event(), read_midi_file(), and read_track().

sint32 NS_TIMIDITY::sample_increment [static]

Definition at line 61 of file timidity_readmidi.cpp.

Referenced by compute_sample_increment(), and groom_list().

sint32 NS_TIMIDITY::sample_correction [static]

Definition at line 61 of file timidity_readmidi.cpp.

Referenced by compute_sample_increment(), and groom_list().

sint32 NS_TIMIDITY::quietchannels

Definition at line 51 of file timidity_readmidi.cpp.

Referenced by groom_list().

sample_t* NS_TIMIDITY::resample_buffer

Definition at line 56 of file timidity.cpp.

Referenced by rs_bidir(), rs_loop(), rs_plain(), rs_vib_bidir(), rs_vib_loop(), rs_vib_plain(), Timidity_DeInit(), Timidity_Init(), and Timidity_Init_Simple().

PlayMode NS_TIMIDITY::dpm

Initial value:

 {
  DEFAULT_RATE, PE_16BIT|PE_SIGNED,
  "SDL audio"
}

Definition at line 41 of file timidity_sdl_a.cpp.

ControlMode NS_TIMIDITY::ctl

Initial value:

Definition at line 66 of file timidity_sdl_c.cpp.

sint32 NS_TIMIDITY::freq_table

Definition at line 46 of file timidity_tables.cpp.

Referenced by start_note().

double NS_TIMIDITY::vol_table

Definition at line 93 of file timidity_tables.cpp.

Referenced by apply_envelope_to_amp().

double NS_TIMIDITY::bend_fine

Definition at line 129 of file timidity_tables.cpp.

Referenced by recompute_freq(), and update_vibrato().

double NS_TIMIDITY::bend_coarse

Definition at line 196 of file timidity_tables.cpp.

Referenced by recompute_freq(), and update_vibrato().

double NS_TIMIDITY::sine_table[257] [static]

Definition at line 232 of file timidity_tables.cpp.

Referenced by sine().

sint16 NS_TIMIDITY::_u2l[]

Definition at line 323 of file timidity_tables.cpp.

Referenced by init_tables().

sint32* NS_TIMIDITY::mixup

Definition at line 359 of file timidity_tables.cpp.

Referenced by init_tables().

sint8* NS_TIMIDITY::iplookup

Definition at line 361 of file timidity_tables.cpp.

Referenced by init_tables().

uint8 NS_TIMIDITY::_l2u_[]

Definition at line 393 of file timidity_tables.cpp.

uint8* NS_TIMIDITY::_l2u = _l2u_ + 4096

Definition at line 909 of file timidity_tables.cpp.

Referenced by s32toulaw().

uint8* NS_TIMIDITY::_l2u

Definition at line 909 of file timidity_tables.cpp.

Referenced by s32toulaw().

uint8 NS_TIMIDITY::_l2u_[]

Definition at line 393 of file timidity_tables.cpp.

sint16 NS_TIMIDITY::_u2l[]

Definition at line 323 of file timidity_tables.cpp.

Referenced by init_tables().

sint32* NS_TIMIDITY::mixup

Definition at line 359 of file timidity_tables.cpp.

Referenced by init_tables().

sint8* NS_TIMIDITY::iplookup

Definition at line 361 of file timidity_tables.cpp.

Referenced by init_tables().


Generated on Fri Jul 27 22:30:21 2007 for pentagram by  doxygen 1.4.7