20 #ifndef __RENDERMIDI_H__ 21 #define __RENDERMIDI_H__ 31 class SynthesizerState;
50 void setOccupied(
int tick1,
int tick2);
53 int occupiedRangeEnd(
int tick)
const;
55 void clear() { status.clear(); }
65 bool needUpdate =
true;
76 : _tickOffset(tickOffset), first(fst), last(lst) {}
79 : _tickOffset(0), first(nullptr), last(nullptr) {}
81 operator bool()
const {
return bool(first); }
88 int utick1()
const {
return tick1() + tickOffset(); }
89 int utick2()
const {
return tick2() + tickOffset(); }
95 void updateChunksPartition();
96 static bool canBreakChunk(
const Measure* last);
111 void setMinChunkSize(
int sizeMeasures) { minChunkSize = sizeMeasures; needUpdate =
true; }
113 Chunk getChunkAt(
int utick);
void clear()
Definition: rendermidi.h:55
Global staff data not directly related to drawing.
Definition: staff.h:62
int tick1() const
Definition: rendermidi.h:86
Chunk(int tickOffset, Measure *fst, Measure *lst)
Definition: rendermidi.h:75
Measure * lastMeasure() const
Definition: rendermidi.h:85
Range
Definition: rendermidi.h:46
one measure in a system
Definition: measure.h:65
MidiRenderer(Score *s)
Definition: rendermidi.h:105
std::vector< Chunk > chunks
Definition: rendermidi.h:93
Score * score
Definition: rendermidi.h:64
Helper class to keep track of status of status of certain parts of score or MIDI representation.
Definition: rendermidi.h:45
int tickOffset() const
Definition: rendermidi.h:82
Definition: synthesizerstate.h:55
DynamicsRenderMethod
Definition: rendermidi.h:33
Fraction endTick() const
Definition: measurebase.h:128
Measure * startMeasure() const
Definition: rendermidi.h:83
int utick2() const
Definition: rendermidi.h:89
Chunk()
Definition: rendermidi.h:78
Definition of class Measure.
Definition: aeolus.cpp:26
MIDI renderer for a score.
Definition: rendermidi.h:63
int utick1() const
Definition: rendermidi.h:88
void setMinChunkSize(int sizeMeasures)
Definition: rendermidi.h:111
int ticks() const
Definition: fraction.h:228
void setOccupied(std::pair< int, int > range)
Definition: rendermidi.h:51
Definition: rendermidi.h:69
Measure * first
Definition: rendermidi.h:71
Measure * last
Definition: rendermidi.h:72
Fraction tick() const
Definition: measurebase.h:122
Definition: fraction.h:46
Ms::Measure * nextMeasure() const
Definition: measurebase.cpp:198
int _tickOffset
Definition: rendermidi.h:70
Measure * endMeasure() const
Definition: rendermidi.h:84
int tick2() const
Definition: rendermidi.h:87
std::map< int, Range > status
Definition: rendermidi.h:47
void setScoreChanged()
Definition: rendermidi.h:110