Update tunings to 0aec52c

This commit is contained in:
Jean Pierre Cimalando 2021-04-06 14:22:22 +02:00
parent e6e28a6a44
commit 97597123c6
2 changed files with 7 additions and 7 deletions

View file

@ -1,2 +1,2 @@
Based on the Surge tuning library, revision 0ba372f, with small modifications Based on the Surge tuning library, revision 0aec52c, with small modifications
https://github.com/surge-synthesizer/tuning-library https://github.com/surge-synthesizer/tuning-library

View file

@ -55,7 +55,7 @@ namespace Tunings
if( t.ratio_n == 0 || t.ratio_d == 0 ) if( t.ratio_n == 0 || t.ratio_d == 0 )
{ {
std::string s = "Invalid Tone in SCL file."; std::string s = "Invalid tone in SCL file.";
if( lineno >= 0 ) if( lineno >= 0 )
s += "Line " + std::to_string(lineno) + "."; s += "Line " + std::to_string(lineno) + ".";
s += " Line is '" + line + "'."; s += " Line is '" + line + "'.";
@ -112,13 +112,13 @@ namespace Tunings
if( ! ( state == read_note || state == trailing ) ) if( ! ( state == read_note || state == trailing ) )
{ {
throw TuningError( "Incomplete SCL file. Found no notes section in the file" ); throw TuningError( "Incomplete SCL file. Found no notes section in the file." );
} }
if( tone_index != res.count ) if( tone_index != res.count )
{ {
std::string s = "Read fewer notes than count in file. Count=" + std::to_string( res.count ) std::string s = "Read fewer notes than count in file. Count = " + std::to_string( res.count )
+ " notes array size=" + std::to_string( tone_index ); + " notes. Array size = " + std::to_string( tone_index );
throw TuningError(s); throw TuningError(s);
} }
@ -231,7 +231,7 @@ namespace Tunings
} }
if( ! validLine ) if( ! validLine )
{ {
throw TuningError( "Invalid line " + std::to_string( lineno ) + ". line='" + line + "'. Bad char is '" + throw TuningError( "Invalid line " + std::to_string( lineno ) + ". line='" + line + "'. Bad character is '" +
badChar + "/" + std::to_string( (int)badChar ) + "'" ); badChar + "/" + std::to_string( (int)badChar ) + "'" );
} }
} }
@ -281,7 +281,7 @@ namespace Tunings
if( ! ( state == keys || state == trailing ) ) if( ! ( state == keys || state == trailing ) )
{ {
throw TuningError( "Incomplete KBM file. Ubable to get to keys section of file" ); throw TuningError( "Incomplete KBM file. Ubable to get to keys section of file." );
} }
if( key_index != res.count ) if( key_index != res.count )