You are here

Add new comment

Sorry, curiosity gets the better of me.

The default data is taken from here, I have done tests and it is like this:

---
./qtractorTimeScale.cpp:67: m_iSampleRate = 44100;

// (Re)nitializer method.
void qtractorTimeScale::clear (void) { m_iSnapPerBeat = 4;
m_iHorizontalZoom = 100;
m_iVerticalZoom = 100;

// m_displayFormat = Frames;

>> m_iSampleRate = 44100;
m_iTicksPerBeat = TICKS_PER_BEAT_DEF;
m_iPixelsPerBeat = 32;

m_iBeatsPerBar2 = 0;
m_iBeatDivisor2 = 0;

// Clear/reset tempo-map...
reset();
}
---

One solution is the one I proposed:
- If you open it from a template, rebuild the xml with the samplerate data taken from the audio engine before it is read.

- The most logical thing would be that m_iSampleRate was not a handwritten data, but that it took the data from the audio engine. Although I don't know if it is written by hand precisely in case the reading of the audio engine fails.

Anyway... I've I'm calm, I know what's going on.
I cancelled the appointment with the Shaman to scare away mocking spirits XD