DLS.cpp File Reference

#include "DLS.h"
#include <algorithm>
#include <time.h>
#include "helper.h"

Go to the source code of this file.

Namespaces

namespace  DLS

Defines

#define CONN_TRANSFORM_SRC(x)   ((x >> 10) & 0x000F)
#define CONN_TRANSFORM_CTL(x)   ((x >> 4) & 0x000F)
#define CONN_TRANSFORM_DST(x)   (x & 0x000F)
#define CONN_TRANSFORM_BIPOLAR_SRC(x)   (x & 0x4000)
#define CONN_TRANSFORM_BIPOLAR_CTL(x)   (x & 0x0100)
#define CONN_TRANSFORM_INVERT_SRC(x)   (x & 0x8000)
#define CONN_TRANSFORM_INVERT_CTL(x)   (x & 0x0200)
#define CONN_TRANSFORM_SRC_ENCODE(x)   ((x & 0x000F) << 10)
#define CONN_TRANSFORM_CTL_ENCODE(x)   ((x & 0x000F) << 4)
#define CONN_TRANSFORM_DST_ENCODE(x)   (x & 0x000F)
#define CONN_TRANSFORM_BIPOLAR_SRC_ENCODE(x)   ((x) ? 0x4000 : 0)
#define CONN_TRANSFORM_BIPOLAR_CTL_ENCODE(x)   ((x) ? 0x0100 : 0)
#define CONN_TRANSFORM_INVERT_SRC_ENCODE(x)   ((x) ? 0x8000 : 0)
#define CONN_TRANSFORM_INVERT_CTL_ENCODE(x)   ((x) ? 0x0200 : 0)
#define DRUM_TYPE_MASK   0x80000000
#define F_RGN_OPTION_SELFNONEXCLUSIVE   0x0001
#define F_WAVELINK_PHASE_MASTER   0x0001
#define F_WAVELINK_MULTICHANNEL   0x0002
#define F_WSMP_NO_TRUNCATION   0x0001
#define F_WSMP_NO_COMPRESSION   0x0002
#define MIDI_BANK_COARSE(x)   ((x & 0x00007F00) >> 8)
#define MIDI_BANK_FINE(x)   (x & 0x0000007F)
#define MIDI_BANK_MERGE(coarse, fine)   ((((uint16_t) coarse) << 7) | fine)
#define MIDI_BANK_ENCODE(coarse, fine)   (((coarse & 0x0000007F) << 8) | (fine & 0x0000007F))

Functions

String DLS::libraryName ()
 Returns the name of this C++ library.
String DLS::libraryVersion ()
 Returns version of this C++ library.


Define Documentation

#define CONN_TRANSFORM_BIPOLAR_CTL (  )     (x & 0x0100)

Definition at line 42 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_BIPOLAR_CTL_ENCODE (  )     ((x) ? 0x0100 : 0)

Definition at line 51 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define CONN_TRANSFORM_BIPOLAR_SRC (  )     (x & 0x4000)

Definition at line 41 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_BIPOLAR_SRC_ENCODE (  )     ((x) ? 0x4000 : 0)

Definition at line 50 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define CONN_TRANSFORM_CTL (  )     ((x >> 4) & 0x000F)

Definition at line 39 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_CTL_ENCODE (  )     ((x & 0x000F) << 4)

Definition at line 48 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define CONN_TRANSFORM_DST (  )     (x & 0x000F)

Definition at line 40 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_DST_ENCODE (  )     (x & 0x000F)

Definition at line 49 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define CONN_TRANSFORM_INVERT_CTL (  )     (x & 0x0200)

Definition at line 44 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_INVERT_CTL_ENCODE (  )     ((x) ? 0x0200 : 0)

Definition at line 53 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define CONN_TRANSFORM_INVERT_SRC (  )     (x & 0x8000)

Definition at line 43 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_INVERT_SRC_ENCODE (  )     ((x) ? 0x8000 : 0)

Definition at line 52 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define CONN_TRANSFORM_SRC (  )     ((x >> 10) & 0x000F)

Definition at line 38 of file DLS.cpp.

Referenced by DLS::Connection::Init().

#define CONN_TRANSFORM_SRC_ENCODE (  )     ((x & 0x000F) << 10)

Definition at line 47 of file DLS.cpp.

Referenced by DLS::Connection::ToConnBlock().

#define DRUM_TYPE_MASK   0x80000000

Definition at line 55 of file DLS.cpp.

Referenced by DLS::Instrument::Instrument(), and DLS::Instrument::UpdateChunks().

#define F_RGN_OPTION_SELFNONEXCLUSIVE   0x0001

Definition at line 57 of file DLS.cpp.

Referenced by DLS::Region::Region(), and DLS::Region::UpdateChunks().

#define F_WAVELINK_MULTICHANNEL   0x0002

Definition at line 60 of file DLS.cpp.

Referenced by DLS::Region::Region(), and DLS::Region::UpdateChunks().

#define F_WAVELINK_PHASE_MASTER   0x0001

Definition at line 59 of file DLS.cpp.

Referenced by DLS::Region::Region(), and DLS::Region::UpdateChunks().

#define F_WSMP_NO_COMPRESSION   0x0002

Definition at line 63 of file DLS.cpp.

Referenced by DLS::Sampler::Sampler(), and DLS::Sampler::UpdateChunks().

#define F_WSMP_NO_TRUNCATION   0x0001

Definition at line 62 of file DLS.cpp.

Referenced by DLS::Sampler::Sampler(), and DLS::Sampler::UpdateChunks().

#define MIDI_BANK_COARSE (  )     ((x & 0x00007F00) >> 8)

Definition at line 65 of file DLS.cpp.

Referenced by DLS::Instrument::Instrument().

#define MIDI_BANK_ENCODE ( coarse,
fine   )     (((coarse & 0x0000007F) << 8) | (fine & 0x0000007F))

Definition at line 68 of file DLS.cpp.

Referenced by DLS::Instrument::UpdateChunks().

#define MIDI_BANK_FINE (  )     (x & 0x0000007F)

Definition at line 66 of file DLS.cpp.

Referenced by DLS::Instrument::Instrument().

#define MIDI_BANK_MERGE ( coarse,
fine   )     ((((uint16_t) coarse) << 7) | fine)

Definition at line 67 of file DLS.cpp.

Referenced by DLS::Instrument::Instrument(), and DLS::Instrument::UpdateChunks().


Generated on Sun May 1 03:22:46 2011 for libgig by  doxygen 1.5.2