Test source: updated documentation

pull/263/head
f4exb 2018-10-24 08:29:49 +02:00
rodzic 58b94c0366
commit 309693469a
2 zmienionych plików z 10 dodań i 3 usunięć

Wyświetl plik

@ -82,6 +82,13 @@ This controls the generator sample rate in samples per second.
- **No**: No modulation
- **AM**: Amplitude modulation (AM)
- **FM**: Frequency modulation (FM)
- **P0**: Pattern 0 is a binary pattern
- Pulse width: 150 samples
- Sync pattern: 010 at full amplitude
- Binary pattern LSB first on 3 bits from 0 to 7 at 0.3 amplitude
- **P1**: Pattern 1 is a sawtooth pattern
- Pulse width: 1000 samples
- Starts at full amplitude then amplitude decreases linearly down to zero
<h3>5: Modulating tone frequency</h3>

Wyświetl plik

@ -90,9 +90,9 @@ GLSpectrum::GLSpectrum(QWidget* parent) :
for (int i = 1; i < 240; i++)
{
QColor c;
int val = i < 60 ? 128 + (60-i) : 128;
int sat = i < 60 ? 140 + i : i < 180 ? 200 : 200 - (i-180);
c.setHsl(239 - i, sat, val);
int light = i < 60 ? 128 + (60-i) : 128;
int sat = i < 60 ? 140 + i : i < 180 ? 200 : 200 - (i-180);
c.setHsl(239 - i, sat, light);
((quint8*)&m_histogramPalette[i])[0] = c.red();
((quint8*)&m_histogramPalette[i])[1] = c.green();
((quint8*)&m_histogramPalette[i])[2] = c.blue();