resonance 1.0.1
Loading...
Searching...
No Matches
gem.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "mid/tick.h"
6
7class IBStream;
8class OBStream;
9class Player;
10
24class Gem {
25public:
36 void saveGuts(OBStream &stream) const;
37
52 void restoreGuts(IBStream &stream);
53
61 void Print(std::ostream &stream) const;
62
63 int mGem;
64 int mTrans;
65 int mBar;
68};
Gem event a GemPacket reports.
Definition gem.h:24
void saveGuts(OBStream &stream) const
Write the five values to a stream.
Sch::Tick mLoc
Definition gem.h:66
int mTrans
Definition gem.h:64
int mBar
Definition gem.h:65
int mGem
Definition gem.h:63
Player * mPlayer
Definition gem.h:67
void restoreGuts(IBStream &stream)
Read the five values back from a stream.
void Print(std::ostream &stream) const
Write the five values to a diagnostic stream.
Input half of the byte stream interface.
Definition ibstream.h:36
Output half of the byte stream interface.
Definition obstream.h:25
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