Skip to content

GuitarPrometheus::Parser::IntermediatePart

GuitarPrometheus::Parser::IntermediatePart

A parser-internal representation of a single Part, prior to the final immutable conversion handled by [ScoreBuilder::build](). More…

#include <IntermediateScore.h>

Public Attributes

Name
std::stringscorePartId
std::stringname
std::stringinstrumentName
intmidiChannel
intmidiProgram
intmidiBank
std::vector< SongStructure::Measure >measures
std::map< std::string, std::string >scoreInstruments
std::map< std::string, int >instrumentMidiPitch
std::vector< int >tuningMidiPitches
Sounding MIDI pitches per string, low-string-first (matches [SongStructure::Part::getTuningMidiPitches]()).

Detailed Description

struct GuitarPrometheus::Parser::IntermediatePart;

A parser-internal representation of a single Part, prior to the final immutable conversion handled by [ScoreBuilder::build]().

The shape mirrors [SongStructure::Part](/api-reference/classes/classguitarprometheus_1_1songstructure_1_1part/) except that:

  • There is no juce::Uuid field — it is auto-generated in [ScoreBuilder::build](/api-reference/classes/classguitarprometheus_1_1parser_1_1scorebuilder/#function-build).
  • All fields are public — concrete-format parsers (MusicXML, GP, GPx) accumulate them across the measure walk and hand the populated struct off.

measures is built directly with [SongStructure::Measure](/api-reference/classes/structguitarprometheus_1_1songstructure_1_1measure/) (which is already a value-semantics struct with public fields). Containing-type-reuse keeps the IR thin.

Public Attributes Documentation

variable scorePartId

std::string scorePartId;

variable name

std::string name;

variable instrumentName

std::string instrumentName;

variable midiChannel

int midiChannel = 1;

variable midiProgram

int midiProgram = 0;

variable midiBank

int midiBank = 0;

variable measures

std::vector< SongStructure::Measure > measures;

variable scoreInstruments

std::map< std::string, std::string > scoreInstruments;

variable instrumentMidiPitch

std::map< std::string, int > instrumentMidiPitch;

variable tuningMidiPitches

std::vector< int > tuningMidiPitches;

Sounding MIDI pitches per string, low-string-first (matches [SongStructure::Part::getTuningMidiPitches]()).

Empty when the source format didn’t carry tuning data.


Updated on 2026-05-29 at 07:39:52 +0000