From c7fff6b27ab0aa043f3587314fa1ee62c05faa39 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Mon, 15 Jun 2020 02:06:55 +0200 Subject: [PATCH] Change back the default number of voices to 64 --- lv2/sfizz.c | 2 +- lv2/sfizz.ttl.in | 7 +------ src/sfizz/Config.h | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lv2/sfizz.c b/lv2/sfizz.c index 54b3f99b..7c184e0b 100644 --- a/lv2/sfizz.c +++ b/lv2/sfizz.c @@ -75,7 +75,7 @@ #define PITCH_BUILD_AND_CENTER(first_byte, last_byte) (int)(((unsigned int)last_byte << 7) + (unsigned int)first_byte) - 8192 #define MAX_BLOCK_SIZE 8192 #define MAX_PATH_SIZE 1024 -#define MAX_VOICES 512 +#define MAX_VOICES 256 #define DEFAULT_VOICES 64 #define DEFAULT_OVERSAMPLING SFIZZ_OVERSAMPLING_X1 #define DEFAULT_PRELOAD 8192 diff --git a/lv2/sfizz.ttl.in b/lv2/sfizz.ttl.in index 189849ba..af4259c9 100644 --- a/lv2/sfizz.ttl.in +++ b/lv2/sfizz.ttl.in @@ -129,7 +129,7 @@ midnam:update a lv2:Feature . lv2:portProperty pprop:expensive ; lv2:portProperty lv2:integer ; lv2:portProperty lv2:enumeration ; - lv2:default 256 ; + lv2:default 64 ; lv2:minimum 8 ; lv2:maximum 256 ; lv2:scalePoint [ rdfs:label "8 voices", @@ -162,11 +162,6 @@ midnam:update a lv2:Feature . "256 Voci"@it; rdf:value 256 ] ; - lv2:scalePoint [ rdfs:label "512 voices", - "512 voix"@fr , - "512 Voci"@it; - rdf:value 512 - ] ; ] , [ a lv2:InputPort, lv2:ControlPort ; lv2:index 6 ; diff --git a/src/sfizz/Config.h b/src/sfizz/Config.h index 1c135740..9ed09c8b 100644 --- a/src/sfizz/Config.h +++ b/src/sfizz/Config.h @@ -37,8 +37,8 @@ namespace config { constexpr bool loggingEnabled { false }; constexpr size_t numChannels { 2 }; constexpr int numBackgroundThreads { 4 }; - constexpr int numVoices { 256 }; - constexpr unsigned maxVoices { 512 }; + constexpr int numVoices { 64 }; + constexpr unsigned maxVoices { 256 }; constexpr int maxFilePromises { maxVoices }; constexpr int sustainCC { 64 }; constexpr int allSoundOffCC { 120 };