MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DropdownUpdated

Method DropdownUpdated

Source/RandomNoteGenerator.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void RandomNoteGenerator::DropdownUpdated(DropdownList* list, int oldVal, double time)
122{
123 if (list == mIntervalSelector)
124 {
125 TransportListenerInfo* transportListenerInfo = TheTransport->GetListenerInfo(this);
126 if (transportListenerInfo != nullptr)
127 {
128 transportListenerInfo->mInterval = mInterval;
129 transportListenerInfo->mOffsetInfo = OffsetInfo(mOffset / TheTransport->CountInStandardMeasure(mInterval), !K(offsetIsInMs));
130 }
131 }
132}
133
134void RandomNoteGenerator::LoadLayout(const ofxJSONElement& moduleInfo)
135{

Callers

nothing calls this directly

Calls 3

OffsetInfoClass · 0.85
GetListenerInfoMethod · 0.80

Tested by

no test coverage detected