Since the sample rate changes when we start an export, clear all the currently-playing notes when we get this signal. Then, the export won't include leftover notes that were playing in the program.
| 900 | // currently-playing notes when we get this signal. Then, the export won't |
| 901 | // include leftover notes that were playing in the program. |
| 902 | void GigInstrument::updateSampleRate() |
| 903 | { |
| 904 | QMutexLocker locker( &m_notesMutex ); |
| 905 | m_notes.clear(); |
| 906 | } |
| 907 | |
| 908 | |
| 909 |