Mercurial > hg > silvet
diff src/Instruments.cpp @ 231:d9b688700819 norm eval-norm-todate
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 16 Jul 2014 17:46:15 +0100 |
parents | 81288afddf43 |
children | 8788fe838c49 |
line wrap: on
line diff
--- a/src/Instruments.cpp Tue Jul 15 13:32:27 2014 +0100 +++ b/src/Instruments.cpp Wed Jul 16 17:46:15 2014 +0100 @@ -34,6 +34,7 @@ // name and one for the template to look up "Guitar", "guitar", "Violin", "violin", + "Viola", "viola", "Cello", "cello", "Horn", "horn", "Flute", "flute", @@ -44,10 +45,11 @@ }; static bool -isString(int i) +isBowedString(int i) { string tname(simpleInstruments[i+1]); return tname == "violin" + || tname == "viola" || tname == "cello" ; } @@ -124,11 +126,13 @@ allTemplates.push_back(templatesFor("piano1")); allTemplates.push_back(templatesFor("piano2")); allTemplates.push_back(templatesFor("piano3")); + allTemplates.push_back(templatesFor("pianorwc")); vector<Templates> pianoTemplates; pianoTemplates.push_back(templatesFor("piano1")); pianoTemplates.push_back(templatesFor("piano2")); pianoTemplates.push_back(templatesFor("piano3")); + pianoTemplates.push_back(templatesFor("pianorwc")); InstrumentPack piano(silvet_templates_lowest_note, silvet_templates_highest_note, "Piano", @@ -161,7 +165,7 @@ // instr.pitchSparsity = 1.5; instr.maxPolyphony = 5; instr.levelThreshold = 6; - if (isString(i)) { + if (isBowedString(i)) { // instr.maxPolyphony = 2; // instr.levelThreshold = 3; stringTemplates.push_back(t); @@ -188,7 +192,7 @@ InstrumentPack strings(silvet_templates_lowest_note, // cello silvet_templates_highest_note, // violin - "String ensemble", + "String quartet", stringTemplates); strings.maxPolyphony = 5; strings.levelThreshold = 3;