resonance 1.0.1
Loading...
Searching...
No Matches
TrackData::Bar Class Reference

One bar of a track, with its scoring values and the sorted lists of what starts in it. More...

#include <trackdata.h>

Public Member Functions

 Bar ()
 Construct an empty bar quantised to 120 ticks.
 ~Bar ()
 Delete every MIDI message the bar holds and free the four lists.
void Print (std::ostream &stream)
 Write every member Print() labels to a diagnostic stream.

Public Attributes

int mQuant
int mPoints
int mCatchPoints
std::vector< TickObj< Harmony * > > mHarmonies
std::vector< TickObj< RiffSet * > > mRiffSets
std::vector< TickObj< MuseMsg * > > mMidi
std::vector< TickObj< int > > mGems

Detailed Description

One bar of a track, with its scoring values and the sorted lists of what starts in it.

The record is 0x3c bytes, the element stride of TrackData::mBars. Print() labels every member except mCatchPoints. The type name is inferred. The record has no descriptor, allocation tag, or literal, and its allocations are billed to the vector.

Constructor & Destructor Documentation

◆ Bar()

TrackData::Bar::Bar ( )

Construct an empty bar quantised to 120 ticks.

Ghidra address:
NTSC-U/C: 0x001d2ef0
Ghidra address:
PAL: 0x001d8da8

◆ ~Bar()

TrackData::Bar::~Bar ( )

Delete every MIDI message the bar holds and free the four lists.

Ghidra address:
NTSC-U/C: 0x001d2f50
Ghidra address:
PAL: 0x001d8e08

Member Function Documentation

◆ Print()

void TrackData::Bar::Print ( std::ostream & stream)

Write every member Print() labels to a diagnostic stream.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x001d31d8
Ghidra address:
PAL: 0x001d9090

Member Data Documentation

◆ mQuant

int TrackData::Bar::mQuant

Labelled quant = . +0x00

◆ mPoints

int TrackData::Bar::mPoints

Labelled points = . +0x04

◆ mCatchPoints

int TrackData::Bar::mCatchPoints

The level's catch points, set by ScoreBars(). +0x08

◆ mHarmonies

std::vector<TickObj<Harmony *> > TrackData::Bar::mHarmonies

Labelled harms: . +0x0c

◆ mRiffSets

std::vector<TickObj<RiffSet *> > TrackData::Bar::mRiffSets

Labelled riffs: . +0x18

◆ mMidi

std::vector<TickObj<MuseMsg *> > TrackData::Bar::mMidi

Labelled midi: , owned. +0x24

◆ mGems

std::vector<TickObj<int> > TrackData::Bar::mGems

Labelled gems: . +0x30


The documentation for this class was generated from the following file: