mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 03:39:04 +00:00
Piano: Reset position in piano roll when exporting
When you reset() a Track, you need to set the piano roll iterators back to the first notes. Fixes #2578. The bug was due to pressing export between 2 notes - the tracks were never told to go back to the first note.
This commit is contained in:
parent
dce030eefc
commit
c7777ff289
Notes:
sideshowbarker
2024-07-18 21:46:26 +09:00
Author: https://github.com/willmcpherson2
Commit: c7777ff289
Pull-request: https://github.com/SerenityOS/serenity/pull/5603
Issue: https://github.com/SerenityOS/serenity/issues/2578
1 changed files with 3 additions and 0 deletions
|
@ -134,6 +134,9 @@ void Track::reset()
|
|||
memset(m_note_on, 0, sizeof(m_note_on));
|
||||
memset(m_power, 0, sizeof(m_power));
|
||||
memset(m_envelope, 0, sizeof(m_envelope));
|
||||
|
||||
for (size_t note = 0; note < note_count; ++note)
|
||||
m_roll_iters[note] = m_roll_notes[note].begin();
|
||||
}
|
||||
|
||||
String Track::set_recorded_sample(const StringView& path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue