lower notes cap

improve cap error message
This commit is contained in:
Chris Danford
2005-03-23 10:56:51 +00:00
parent cc912e4e5e
commit b07ad44c71
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ const int MAX_NOTE_TRACKS = 16;
const int ROWS_PER_BEAT = 48;
/* 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 ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE;
+4 -1
View File
@@ -2544,7 +2544,10 @@ void ScreenEdit::CheckNumberOfNotesAndUndo()
if( iNumNotesThisMeasure > MAX_NOTES_PER_MEASURE )
{
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;
}
}