From 97597123c674b5e6115e5843e1a6fedbda12cca3 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 6 Apr 2021 14:22:22 +0200 Subject: [PATCH] Update tunings to 0aec52c --- src/external/tunings/README.txt | 2 +- src/external/tunings/src/Tunings.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/external/tunings/README.txt b/src/external/tunings/README.txt index 5b4f8232..05d91b24 100644 --- a/src/external/tunings/README.txt +++ b/src/external/tunings/README.txt @@ -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 diff --git a/src/external/tunings/src/Tunings.cpp b/src/external/tunings/src/Tunings.cpp index 7952328c..ae535db3 100644 --- a/src/external/tunings/src/Tunings.cpp +++ b/src/external/tunings/src/Tunings.cpp @@ -55,7 +55,7 @@ namespace Tunings 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 ) s += "Line " + std::to_string(lineno) + "."; s += " Line is '" + line + "'."; @@ -112,13 +112,13 @@ namespace Tunings 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 ) { - std::string s = "Read fewer notes than count in file. Count=" + std::to_string( res.count ) - + " notes array size=" + std::to_string( tone_index ); + std::string s = "Read fewer notes than count in file. Count = " + std::to_string( res.count ) + + " notes. Array size = " + std::to_string( tone_index ); throw TuningError(s); } @@ -231,7 +231,7 @@ namespace Tunings } 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 ) + "'" ); } } @@ -281,7 +281,7 @@ namespace Tunings 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 )