====== Anacrusis Test Plan ====== ===== Normal Case ===== * Launch rg * Create a 2 bar segment at bar 1. * Launch notation on that segment. * Make sure the cursor is to the far left. Press home if not. * Press the following keys: qasdfdsa * In the main window: Segment > Create Anacrusis... * Click Ok * Confirm * The Composition starts at bar 0 (unmarked on the ruler). * The segment start is at bar 0 beat 4. * The segment end is at bar 2 beat 4. * The time signature and tempo start at bar 0 beat 1 (000-01-00-00). Composition > Open Tempo and Time Signature Editor. ==== Undo ==== * Press Ctrl+Z to undo the "Create Anacrusis". * Confirm the anacrusis is undone. * Composition now starts at bar 1. * Segment begins at bar 1. * The time signature and tempo start at bar 1 beat 1 (001-01-00-00). Composition > Open Tempo and Time Signature Editor. * Press Ctrl+Shift+Z to redo the anacrusis. ==== Notation Editor ==== * In notation: View > Layout Mode > Continuous Page Layout * Confirm * Bar 1 is labeled "1". * Bar "0" is not labeled. * FAIL ==== Lilypond ==== * Extend the segment to bar 8 beat 4 and fill with 8th notes (quavers). * File > Print Preview * Confirm the second line has the correct bar number. ===== Anacrusis and Repeats ===== * Load [[https://sourceforge.net/p/rosegarden/bugs/_discuss/thread/9e06d117/4414/attachment/Down%20By%20The%20Sally%20Gardens2.rg|Down By The Sally Gardens.rg]] from the bug tracker. * Ctrl+A and then N to launch notation with all segments. * Confirm * The repeat bar appears after the D dotted half note in bar 4. * A plain bar appears after the D E eighth notes that follow the repeat bar. * File > Print Preview * Confirm * The repeat bar appears after the D dotted half note in bar 4. * A plain bar appears after the D E eighth notes that follow the repeat bar. * Should we try any of the other examples included with bug #1388? * FAIL 24 July 2025 [29c1c32130] Notation does not show the correctly. See [[https://sourceforge.net/p/rosegarden/bugs/1388/|bug #1388]]. ===== MIDI Export ===== * Load the [[https://sourceforge.net/p/rosegarden/bugs/_discuss/thread/caec9be8b4/39c2/attachment/baseline-ted2.rg|baseline-ted2.rg]] test file. * Export it as a .mid file. * Dump with lilymidi: * lilymidi --pretty baseline-ted2.mid * Confirm: * Tempo Change at time 0, 120bpm (500000 msec/quarter) * Tempo Change at time 2400, 70bpm (857142 msec/quarter) * Program change and control changes at time 0. * Time stamps at 960, 1440, 1920, 2400, 2880, 3360, and 3840. Those will be the only time stamps in that time range. See [[https://sourceforge.net/p/rosegarden/bugs/1627/|bug #1627]].