#include <cstddef>
#include <iostream>
#include <vector>
#include "app/attachment.h"
#include "mid/tick.h"
#include "mid/tickobj.h"
Go to the source code of this file.
|
| class | Phrase |
| | One phrase of a track, with its gems, its player, and the messages and values scheduled across it. More...
|
| class | Phrase::Gem |
| | One gem of the phrase at one song position. More...
|
|
| OBStream & | operator<< (OBStream &stream, const Phrase::Gem &gem) |
| | Write one gem as a two-byte position and two single bytes.
|
| IBStream & | operator>> (IBStream &stream, Phrase::Gem &gem) |
| | Read one gem back.
|
| std::ostream & | operator<< (std::ostream &stream, Phrase::Gem &gem) |
| | Write one gem to a diagnostic stream as [position gem trans].
|
| OBStream & | operator<< (OBStream &stream, Phrase &phrase) |
| | Write a phrase behind the presence byte 1.
|
| IBStream & | operator>> (IBStream &stream, Phrase &phrase) |
| | Read a phrase written by operator<<(OBStream &, Phrase &), discarding its presence byte.
|
| OBStream & | operator<< (OBStream &stream, Phrase *pPhrase) |
| | Write an optional phrase as the byte 0 for none or the byte 1 followed by the phrase.
|
| IBStream & | operator>> (IBStream &stream, Phrase *&pPhrase) |
| | Read an optional phrase, allocating a new one unless the presence byte is 0.
|
| std::ostream & | operator<< (std::ostream &stream, Phrase &phrase) |
| | Write a phrase to a diagnostic stream through Phrase::Print().
|
◆ operator<<() [1/5]
Write one gem as a two-byte position and two single bytes.
Save() expands the same transfer inline, and no caller of this copy exists.
- Parameters
-
| stream | The stream to write to. |
| gem | The gem. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6ba0
- Ghidra address:
- PAL: 0x001bc978
◆ operator>>() [1/3]
Read one gem back.
- Parameters
-
| stream | The stream to read from. |
| gem | The gem to fill. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6c48
- Ghidra address:
- PAL: 0x001bca20
◆ operator<<() [2/5]
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
Phrase::Gem & | gem ) |
Write one gem to a diagnostic stream as [position gem trans].
- Parameters
-
| stream | The stream to write to. |
| gem | The gem. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6cf8
- Ghidra address:
- PAL: 0x001bcad0
◆ operator<<() [3/5]
Write a phrase behind the presence byte 1.
- Parameters
-
| stream | The stream to write to. |
| phrase | The phrase. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6e28
- Ghidra address:
- PAL: 0x001bcc00
◆ operator>>() [2/3]
Read a phrase written by operator<<(OBStream &, Phrase &), discarding its presence byte.
- Parameters
-
| stream | The stream to read from. |
| phrase | The phrase to fill. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6e88
- Ghidra address:
- PAL: 0x001bcc60
◆ operator<<() [4/5]
Write an optional phrase as the byte 0 for none or the byte 1 followed by the phrase.
PhrasePacket::saveGuts() and PhraseDatabase use this form.
- Parameters
-
| stream | The stream to write to. |
| pPhrase | The phrase, or null. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6ee0
- Ghidra address:
- PAL: 0x001bccb8
◆ operator>>() [3/3]
Read an optional phrase, allocating a new one unless the presence byte is 0.
- Parameters
-
| stream | The stream to read from. |
| pPhrase | Receives the new phrase, or null. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b6f70
- Ghidra address:
- PAL: 0x001bcd48
◆ operator<<() [5/5]
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
Phrase & | phrase ) |
Write a phrase to a diagnostic stream through Phrase::Print().
- Parameters
-
| stream | The stream to write to. |
| phrase | The phrase. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x001b7038
- Ghidra address:
- PAL: 0x001bce10