Merge pull request #317 from paulfd/quick-changes-release

Prepping small things for the release
This commit is contained in:
Paul Ferrand 2020-07-08 14:24:05 +02:00 committed by GitHub
commit 92d061897f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 14 deletions

View file

@ -1,12 +1,12 @@
# Configuration for this plugin # Configuration for this plugin
# TODO: generate version from git # TODO: generate version from git
set (LV2PLUGIN_VERSION_MINOR 4) set (LV2PLUGIN_VERSION_MINOR 6)
set (LV2PLUGIN_VERSION_MICRO 0) set (LV2PLUGIN_VERSION_MICRO 0)
set (LV2PLUGIN_NAME "sfizz") set (LV2PLUGIN_NAME "sfizz")
set (LV2PLUGIN_COMMENT "SFZ sampler") set (LV2PLUGIN_COMMENT "SFZ sampler")
set (LV2PLUGIN_URI "http://sfztools.github.io/sfizz") set (LV2PLUGIN_URI "http://sfztools.github.io/sfizz")
set (LV2PLUGIN_REPOSITORY "https://github.com/sfztools/sfizz") set (LV2PLUGIN_REPOSITORY "https://github.com/sfztools/sfizz")
set (LV2PLUGIN_AUTHOR "Paul Ferrand") set (LV2PLUGIN_AUTHOR "SFZTools")
set (LV2PLUGIN_EMAIL "paul@ferrand.cc") set (LV2PLUGIN_EMAIL "paul@ferrand.cc")
if (SFIZZ_USE_VCPKG) if (SFIZZ_USE_VCPKG)
set (LV2PLUGIN_SPDX_LICENSE_ID "LGPL-3.0-only") set (LV2PLUGIN_SPDX_LICENSE_ID "LGPL-3.0-only")

View file

@ -82,6 +82,7 @@ SFIZZ_EXPORTED_API bool sfizz_load_file(sfizz_synth_t* synth, const char* path);
* path name for the imaginary sfz file, which is not required to * path name for the imaginary sfz file, which is not required to
* exist on disk. The purpose of the virtual path is to locate * exist on disk. The purpose of the virtual path is to locate
* samples with relative paths. * samples with relative paths.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @param path The virtual path of the SFZ file. * @param path The virtual path of the SFZ file.
@ -94,6 +95,7 @@ SFIZZ_EXPORTED_API bool sfizz_load_string(sfizz_synth_t* synth, const char* path
/** /**
* @brief Sets the tuning from a Scala file loaded from the file system. * @brief Sets the tuning from a Scala file loaded from the file system.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @param path The path to the file in Scala format. * @param path The path to the file in Scala format.
@ -104,6 +106,7 @@ SFIZZ_EXPORTED_API bool sfizz_load_scala_file(sfizz_synth_t* synth, const char*
/** /**
* @brief Sets the tuning from a Scala file loaded from memory. * @brief Sets the tuning from a Scala file loaded from memory.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @param text The contents of the file in Scala format. * @param text The contents of the file in Scala format.
@ -114,6 +117,7 @@ SFIZZ_EXPORTED_API bool sfizz_load_scala_string(sfizz_synth_t* synth, const char
/** /**
* @brief Sets the scala root key. * @brief Sets the scala root key.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @param root_key The MIDI number of the Scala root key (default 60 for C4). * @param root_key The MIDI number of the Scala root key (default 60 for C4).
@ -122,6 +126,7 @@ SFIZZ_EXPORTED_API void sfizz_set_scala_root_key(sfizz_synth_t* synth, int root_
/** /**
* @brief Gets the scala root key. * @brief Gets the scala root key.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @return The MIDI number of the Scala root key (default 60 for C4). * @return The MIDI number of the Scala root key (default 60 for C4).
@ -130,6 +135,7 @@ SFIZZ_EXPORTED_API int sfizz_get_scala_root_key(sfizz_synth_t* synth);
/** /**
* @brief Sets the reference tuning frequency. * @brief Sets the reference tuning frequency.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @param frequency The frequency which indicates where standard tuning A4 is (default 440 Hz). * @param frequency The frequency which indicates where standard tuning A4 is (default 440 Hz).
@ -138,6 +144,7 @@ SFIZZ_EXPORTED_API void sfizz_set_tuning_frequency(sfizz_synth_t* synth, float f
/** /**
* @brief Gets the reference tuning frequency. * @brief Gets the reference tuning frequency.
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @return The frequency which indicates where standard tuning A4 is (default 440 Hz). * @return The frequency which indicates where standard tuning A4 is (default 440 Hz).
@ -147,6 +154,7 @@ SFIZZ_EXPORTED_API float sfizz_get_tuning_frequency(sfizz_synth_t* synth);
/** /**
* @brief Configure stretch tuning using a predefined parametric Railsback curve. * @brief Configure stretch tuning using a predefined parametric Railsback curve.
* A ratio 1/2 is supposed to match the average piano; 0 disables (the default). * A ratio 1/2 is supposed to match the average piano; 0 disables (the default).
* @since 0.4.0
* *
* @param synth The sfizz synth. * @param synth The sfizz synth.
* @param ratio The parameter in domain 0-1. * @param ratio The parameter in domain 0-1.
@ -276,6 +284,7 @@ SFIZZ_EXPORTED_API void sfizz_send_hdcc(sfizz_synth_t* synth, int delay, int cc_
* @brief Send a pitch wheel event. As with all MIDI events, this needs * @brief Send a pitch wheel event. As with all MIDI events, this needs
* to happen before the call to sfizz_render_block in each block and * to happen before the call to sfizz_render_block in each block and
* should appear in order of the delays. * should appear in order of the delays.
* @since 0.4.0
* *
* @param synth The synth. * @param synth The synth.
* @param delay The delay. * @param delay The delay.
@ -379,6 +388,7 @@ SFIZZ_EXPORTED_API bool sfizz_set_oversampling_factor(sfizz_synth_t* synth, sfiz
* opcode `sample_quality`. The engine uses distinct default quality * opcode `sample_quality`. The engine uses distinct default quality
* settings for live mode and freewheeling mode, which both can be * settings for live mode and freewheeling mode, which both can be
* accessed by the means of this function. * accessed by the means of this function.
* @since 0.4.0
* *
* @param synth The synth. * @param synth The synth.
* @param[in] mode The processing mode. * @param[in] mode The processing mode.
@ -393,6 +403,7 @@ SFIZZ_EXPORTED_API int sfizz_get_sample_quality(sfizz_synth_t* synth, sfizz_proc
* opcode `sample_quality`. The engine uses distinct default quality * opcode `sample_quality`. The engine uses distinct default quality
* settings for live mode and freewheeling mode, which both can be * settings for live mode and freewheeling mode, which both can be
* accessed by the means of this function. * accessed by the means of this function.
* @since 0.4.0
* *
* @param synth The synth. * @param synth The synth.
* @param[in] mode The processing mode. * @param[in] mode The processing mode.
@ -525,7 +536,7 @@ SFIZZ_EXPORTED_API void sfizz_all_sound_off(sfizz_synth_t* synth);
* @brief Add external definitions prior to loading; * @brief Add external definitions prior to loading;
* Note that these do not get reset by loading or resetting the synth. * Note that these do not get reset by loading or resetting the synth.
* You need to call sfizz_clear_external_definitions() to erase them. * You need to call sfizz_clear_external_definitions() to erase them.
* @since 0.4.0-dev * @since 0.4.0
* *
* @param synth * @param synth
* @param id * @param id
@ -535,7 +546,7 @@ SFIZZ_EXPORTED_API void sfizz_add_external_definitions(sfizz_synth_t* synth, con
/** /**
* @brief Clears external definitions for the next file loading. * @brief Clears external definitions for the next file loading.
* @since 0.4.0-dev * @since 0.4.0
* *
* @param synth * @param synth
*/ */
@ -545,13 +556,13 @@ SFIZZ_EXPORTED_API void sfizz_clear_external_definitions(sfizz_synth_t* synth);
/** /**
* @brief Get the number of key labels registered in the current sfz file * @brief Get the number of key labels registered in the current sfz file
* @since 0.4.0-dev * @since 0.4.0
*/ */
SFIZZ_EXPORTED_API unsigned int sfizz_get_num_key_labels(sfizz_synth_t* synth); SFIZZ_EXPORTED_API unsigned int sfizz_get_num_key_labels(sfizz_synth_t* synth);
/** /**
* @brief Get the key number for the label registered at index label_index. * @brief Get the key number for the label registered at index label_index.
* @since 0.4.0-dev * @since 0.4.0
* *
* @returns the number or SFIZZ_OUT_OF_BOUNDS_LABEL_INDEX if the index is out of bounds. * @returns the number or SFIZZ_OUT_OF_BOUNDS_LABEL_INDEX if the index is out of bounds.
*/ */
@ -559,7 +570,7 @@ SFIZZ_EXPORTED_API int sfizz_get_key_label_number(sfizz_synth_t* synth, int labe
/** /**
* @brief Get the key text for the label registered at index label_index. * @brief Get the key text for the label registered at index label_index.
* @since 0.4.0-dev * @since 0.4.0
* *
* @returns the label or NULL if the index is out of bounds. * @returns the label or NULL if the index is out of bounds.
*/ */
@ -567,14 +578,14 @@ SFIZZ_EXPORTED_API const char * sfizz_get_key_label_text(sfizz_synth_t* synth, i
/** /**
* @brief Get the number of CC labels registered in the current sfz file * @brief Get the number of CC labels registered in the current sfz file
* @since 0.4.0-dev * @since 0.4.0
* *
*/ */
SFIZZ_EXPORTED_API unsigned int sfizz_get_num_cc_labels(sfizz_synth_t* synth); SFIZZ_EXPORTED_API unsigned int sfizz_get_num_cc_labels(sfizz_synth_t* synth);
/** /**
* @brief Get the CC number for the label registered at index label_index. * @brief Get the CC number for the label registered at index label_index.
* @since 0.4.0-dev * @since 0.4.0
* *
* @returns the number or SFIZZ_OUT_OF_BOUNDS_LABEL_INDEX if the index is out of bounds. * @returns the number or SFIZZ_OUT_OF_BOUNDS_LABEL_INDEX if the index is out of bounds.
*/ */
@ -582,7 +593,7 @@ SFIZZ_EXPORTED_API unsigned int sfizz_get_num_cc_labels(sfizz_synth_t* synth);
SFIZZ_EXPORTED_API int sfizz_get_cc_label_number(sfizz_synth_t* synth, int label_index); SFIZZ_EXPORTED_API int sfizz_get_cc_label_number(sfizz_synth_t* synth, int label_index);
/** /**
* @brief Get the CC text for the label registered at index label_index. * @brief Get the CC text for the label registered at index label_index.
* @since 0.4.0-dev * @since 0.4.0
* *
* @returns the label or NULL if the index is out of bounds. * @returns the label or NULL if the index is out of bounds.
*/ */

View file

@ -72,6 +72,7 @@ public:
* This accepts a virtual path name for the imaginary sfz file, which is not * This accepts a virtual path name for the imaginary sfz file, which is not
* required to exist on disk. The purpose of the virtual path is to locate * required to exist on disk. The purpose of the virtual path is to locate
* samples with relative paths. * samples with relative paths.
* @since 0.4.0
* *
* @param path The virtual path of the SFZ file, as string. * @param path The virtual path of the SFZ file, as string.
* @param text The contents of the virtual SFZ file. * @param text The contents of the virtual SFZ file.
@ -83,6 +84,7 @@ public:
/** /**
* @brief Sets the tuning from a Scala file loaded from the file system. * @brief Sets the tuning from a Scala file loaded from the file system.
* @since 0.4.0
* *
* @param path The path to the file in Scala format. * @param path The path to the file in Scala format.
* @return @true when tuning scale loaded OK, * @return @true when tuning scale loaded OK,
@ -92,6 +94,7 @@ public:
/** /**
* @brief Sets the tuning from a Scala file loaded from memory. * @brief Sets the tuning from a Scala file loaded from memory.
* @since 0.4.0
* *
* @param text The contents of the file in Scala format. * @param text The contents of the file in Scala format.
* @return @true when tuning scale loaded OK, * @return @true when tuning scale loaded OK,
@ -101,6 +104,7 @@ public:
/** /**
* @brief Sets the scala root key. * @brief Sets the scala root key.
* @since 0.4.0
* *
* @param rootKey The MIDI number of the Scala root key (default 60 for C4). * @param rootKey The MIDI number of the Scala root key (default 60 for C4).
*/ */
@ -108,6 +112,7 @@ public:
/** /**
* @brief Gets the scala root key. * @brief Gets the scala root key.
* @since 0.4.0
* *
* @return The MIDI number of the Scala root key (default 60 for C4). * @return The MIDI number of the Scala root key (default 60 for C4).
*/ */
@ -115,6 +120,7 @@ public:
/** /**
* @brief Sets the reference tuning frequency. * @brief Sets the reference tuning frequency.
* @since 0.4.0
* *
* @param frequency The frequency which indicates where standard tuning A4 is (default 440 Hz). * @param frequency The frequency which indicates where standard tuning A4 is (default 440 Hz).
*/ */
@ -122,6 +128,7 @@ public:
/** /**
* @brief Gets the reference tuning frequency. * @brief Gets the reference tuning frequency.
* @since 0.4.0
* *
* @return The frequency which indicates where standard tuning A4 is (default 440 Hz). * @return The frequency which indicates where standard tuning A4 is (default 440 Hz).
*/ */
@ -130,6 +137,7 @@ public:
/** /**
* @brief Configure stretch tuning using a predefined parametric Railsback curve. * @brief Configure stretch tuning using a predefined parametric Railsback curve.
* A ratio 1/2 is supposed to match the average piano; 0 disables (the default). * A ratio 1/2 is supposed to match the average piano; 0 disables (the default).
* @since 0.4.0
* *
* @param ratio The parameter in domain 0-1. * @param ratio The parameter in domain 0-1.
*/ */
@ -188,6 +196,7 @@ public:
* opcode `sample_quality`. The engine uses distinct default quality * opcode `sample_quality`. The engine uses distinct default quality
* settings for live mode and freewheeling mode, which both can be * settings for live mode and freewheeling mode, which both can be
* accessed by the means of this function. * accessed by the means of this function.
* @since 0.4.0
* *
* @param[in] mode The processing mode. * @param[in] mode The processing mode.
* *
@ -201,6 +210,7 @@ public:
* opcode `sample_quality`. The engine uses distinct default quality * opcode `sample_quality`. The engine uses distinct default quality
* settings for live mode and freewheeling mode, which both can be * settings for live mode and freewheeling mode, which both can be
* accessed by the means of this function. * accessed by the means of this function.
* @since 0.4.0
* *
* @param[in] mode The processing mode. * @param[in] mode The processing mode.
* @param[in] quality The desired sample quality, in the range 1 to 10. * @param[in] quality The desired sample quality, in the range 1 to 10.
@ -252,6 +262,7 @@ public:
/** /**
* @brief Send a high precision CC event to the synth * @brief Send a high precision CC event to the synth
* @since 0.4.0
* *
* @param delay the delay at which the event occurs; this should be lower than the size of * @param delay the delay at which the event occurs; this should be lower than the size of
* the block in the next call to renderBlock(). * the block in the next call to renderBlock().
@ -449,7 +460,7 @@ public:
* @brief Add external definitions prior to loading; * @brief Add external definitions prior to loading;
* Note that these do not get reset by loading or resetting the synth. * Note that these do not get reset by loading or resetting the synth.
* You need to call clearExternalDefintions() to erase them. * You need to call clearExternalDefintions() to erase them.
* @since 0.4.0-dev * @since 0.4.0
* *
* @param id * @param id
* @param value * @param value
@ -458,20 +469,20 @@ public:
/** /**
* @brief Clears external definitions for the next file loading. * @brief Clears external definitions for the next file loading.
* @since 0.4.0-dev * @since 0.4.0
* *
*/ */
void clearExternalDefinitions(); void clearExternalDefinitions();
/** /**
* @brief Get the key labels, if any * @brief Get the key labels, if any
* @since 0.4.0-dev * @since 0.4.0
* *
*/ */
const std::vector<std::pair<uint8_t, std::string>>& getKeyLabels() const noexcept; const std::vector<std::pair<uint8_t, std::string>>& getKeyLabels() const noexcept;
/** /**
* @brief Get the CC labels, if any * @brief Get the CC labels, if any
* @since 0.4.0-dev * @since 0.4.0
* *
*/ */
const std::vector<std::pair<uint16_t, std::string>>& getCCLabels() const noexcept; const std::vector<std::pair<uint16_t, std::string>>& getCCLabels() const noexcept;