lower notes cap
improve cap error message
This commit is contained in:
@@ -146,7 +146,7 @@ const int MAX_NOTE_TRACKS = 16;
|
|||||||
const int ROWS_PER_BEAT = 48;
|
const int ROWS_PER_BEAT = 48;
|
||||||
|
|
||||||
/* In the editor, enforce a reasonable limit on the number of notes. */
|
/* In the editor, enforce a reasonable limit on the number of notes. */
|
||||||
const int MAX_NOTES_PER_MEASURE = 50;
|
const int MAX_NOTES_PER_MEASURE = 25;
|
||||||
|
|
||||||
const int BEATS_PER_MEASURE = 4;
|
const int BEATS_PER_MEASURE = 4;
|
||||||
const int ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE;
|
const int ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE;
|
||||||
|
|||||||
@@ -2544,7 +2544,10 @@ void ScreenEdit::CheckNumberOfNotesAndUndo()
|
|||||||
if( iNumNotesThisMeasure > MAX_NOTES_PER_MEASURE )
|
if( iNumNotesThisMeasure > MAX_NOTES_PER_MEASURE )
|
||||||
{
|
{
|
||||||
Undo();
|
Undo();
|
||||||
SCREENMAN->Prompt( SM_None, "This change creates more than 50 notes in a measure. The change has been reverted." );
|
CString sError = ssprintf(
|
||||||
|
"This change creates more than %d notes in a measure.\n\nMore than %d notes per measure is not allowed. This change has been reverted.",
|
||||||
|
MAX_NOTES_PER_MEASURE, MAX_NOTES_PER_MEASURE );
|
||||||
|
SCREENMAN->Prompt( SM_None, sError );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user