ZG  "1.00
 All Classes Namespaces Files Functions Variables Enumerator Friends Macros Pages
Classes | Namespaces | Enumerations | Functions | Variables
MusicData.h File Reference
#include "message/Message.h"
#include "util/Hashtable.h"
#include "util/String.h"
#include "zg/ZGPeerID.h"
#include "zg/IDatabaseObject.h"
#include "ChoirNameSpace.h"
Include dependency graph for MusicData.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MusicDatabaseObject
 A slight specialization of the IDatabaseObject class, just so I can add some application-specific helper methods for my various subclasses to all use. More...
 

Namespaces

 choir
 The choir namespace contains the code specific to the ZGChoir demonstration application.
 

Enumerations

enum  {
  CHOIR_NOTE_E6 = 0, CHOIR_NOTE_D6, CHOIR_NOTE_C6, CHOIR_NOTE_B5,
  CHOIR_NOTE_A5, CHOIR_NOTE_G5, CHOIR_NOTE_F5, CHOIR_NOTE_E5,
  CHOIR_NOTE_D5, CHOIR_NOTE_C5, CHOIR_NOTE_B4, CHOIR_NOTE_A4,
  CHOIR_NOTE_G4, CHOIR_NOTE_F4, CHOIR_NOTE_E4, CHOIR_NOTE_D4,
  CHOIR_NOTE_C4, CHOIR_NOTE_B3, CHOIR_NOTE_A3, CHOIR_NOTE_G3,
  CHOIR_NOTE_F3, NUM_CHOIR_NOTES
}
 Our enumeration of supported notes, and their numeric indices. More...
 
enum  { MUSIC_TYPE_MUSIC_SHEET = 1836413795, MUSIC_TYPE_PLAYBACK_STATE, MUSIC_TYPE_ASSIGNMENTS_MAP }
 
enum  { DEFAULT_MICROSECONDS_PER_CHORD = 250000 }
 
enum  { ASSIGNMENT_STRATEGY_AUTOMATIC = 0, ASSIGNMENT_STRATEGY_ASSISTED, ASSIGNMENT_STRATEGY_MANUAL, NUM_ASSIGNMENT_STRATEGIES }
 Our various strategies for keeping notes assigned to bells, as peers come online and go offline. More...
 

Functions

const char * GetNoteName (uint32 noteIdx)
 Given a CHOIR_NOTE_* value, returns a human-readable description of the note (e.g. More...
 
String GetPeerNickname (const ZGPeerID &pid, const ConstMessageRef &optPeerInfo)
 Given a peer's ID and his optional info, returns a human-readable ID string for him. More...
 
void UpdateNoteHistogram (uint64 chordVal, bool isAdd, Hashtable< uint8, uint32 > &histogram, uint64 &bitchord)
 

Variables

 MusicDatabaseObject