101 void *
operator new(
size_t nSize);
110 void operator delete(
void *pBlock);
141 int AddGem(
int nTick,
int nGem,
int nTrans);
225 std::vector<Gem> mGems;
228 std::vector<TickObj<float> > mValues;
Attachment()
Definition attachment.h:26
Input half of the byte stream interface.
Definition ibstream.h:36
Sequence of messages, each at a song position.
Definition multimuse.h:30
Abstract base shared by a family of messages.
Definition musemsg.h:28
Output half of the byte stream interface.
Definition obstream.h:25
One gem of the phrase at one song position.
Definition phrase.h:63
bool operator<(const Gem &other) const
Order two gems by position.
Definition phrase.h:71
int mGem
Definition phrase.h:89
bool operator==(const Gem &other) const
Compare two gems member by member, in declaration order.
Definition phrase.h:83
int mTrans
Definition phrase.h:90
Sch::Tick mPosition
Definition phrase.h:88
One phrase of a track, with its gems, its player, and the messages and values scheduled across it.
Definition phrase.h:38
void Save(OBStream &stream)
Write the phrase behind a version byte of 2.
int AddGem(int nTick, int nGem, int nTrans)
Place a gem at a song position, replacing any gem already there.
friend class PhraseDatabase
Definition phrase.h:41
void AddXLocal(int nTick, float flValue)
Add a value at a song position, keeping the values sorted by position.
void Print(std::ostream &stream)
Write the phrase to a diagnostic stream.
friend class AxePhraseMaker
Definition phrase.h:40
void Load(IBStream &stream)
Read the phrase back.
friend class TrackData
Definition phrase.h:44
void AddMuseMsg(int nTick, MuseMsg *pMsg)
Schedule a copy of a message at a song position, creating the sequence on first use.
float GetValue(int nTick)
Report the value in force at a song position.
Phrase()
Construct an empty phrase owned by the stand-in player.
friend class AxeOldGemMaker
Definition phrase.h:39
friend class PhraseMgr
Definition phrase.h:42
friend class PhrasePlayer
Definition phrase.h:43
friend class Voxer
Definition phrase.h:45
virtual ~Phrase()
Release the message sequence, when one exists, and both vectors.
One participant in a session, local or remote.
Definition player.h:39
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int mTick
The position, in MIDI ticks at 480 per quarter note.
Definition tick.h:153
IBStream & operator>>(IBStream &stream, Phrase::Gem &gem)
Read one gem back.
OBStream & operator<<(OBStream &stream, const Phrase::Gem &gem)
Write one gem as a two-byte position and two single bytes.