From 646b71cb43b1265545ec8b0d062b230ae585e696 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 5 May 2020 23:18:08 +0200 Subject: [PATCH] Set a default polyphony of 256 --- lv2/sfizz.c | 2 +- lv2/sfizz.ttl.in | 7 ++++++- src/sfizz/Config.h | 6 +++--- vst/SfizzVstState.h | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lv2/sfizz.c b/lv2/sfizz.c index 67501d85..bad88439 100644 --- a/lv2/sfizz.c +++ b/lv2/sfizz.c @@ -74,7 +74,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 256 +#define MAX_VOICES 512 #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 3ebbc2e7..3b07c0cf 100644 --- a/lv2/sfizz.ttl.in +++ b/lv2/sfizz.ttl.in @@ -114,7 +114,7 @@ midnam:update a lv2:Feature . lv2:portProperty pprop:expensive ; lv2:portProperty lv2:integer ; lv2:portProperty lv2:enumeration ; - lv2:default 64 ; + lv2:default 256 ; lv2:minimum 8 ; lv2:maximum 256 ; lv2:scalePoint [ rdfs:label "8 voices", @@ -147,6 +147,11 @@ 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 48aeb70f..c73600ec 100644 --- a/src/sfizz/Config.h +++ b/src/sfizz/Config.h @@ -37,9 +37,9 @@ namespace config { constexpr bool loggingEnabled { false }; constexpr size_t numChannels { 2 }; constexpr int numBackgroundThreads { 4 }; - constexpr int numVoices { 64 }; - constexpr unsigned maxVoices { 256 }; - constexpr int maxFilePromises { maxVoices * 2 }; + constexpr int numVoices { 256 }; + constexpr unsigned maxVoices { 512 }; + constexpr int maxFilePromises { maxVoices }; constexpr int sustainCC { 64 }; constexpr int allSoundOffCC { 120 }; constexpr int resetCC { 121 }; diff --git a/vst/SfizzVstState.h b/vst/SfizzVstState.h index eed212e8..020e0fe8 100644 --- a/vst/SfizzVstState.h +++ b/vst/SfizzVstState.h @@ -80,6 +80,6 @@ struct SfizzParameterRange { }; static constexpr SfizzParameterRange kParamVolumeRange(0.0, -60.0, +6.0); -static constexpr SfizzParameterRange kParamNumVoicesRange(64.0, 1.0, 256.0); +static constexpr SfizzParameterRange kParamNumVoicesRange(256.0, 1.0, 512.0); static constexpr SfizzParameterRange kParamOversamplingRange(0.0, 0.0, 3.0); static constexpr SfizzParameterRange kParamPreloadSizeRange(8192.0, 1024.0, 65536.0);