Removed factory presets. Readme edits.
This commit is contained in:
parent
0a9a087cb2
commit
aed9e459cf
@ -31,23 +31,6 @@ String g_plugintitle{ "PaulXStretch 1.0.0 preview 6" };
|
||||
|
||||
std::set<PaulstretchpluginAudioProcessor*> g_activeprocessors;
|
||||
|
||||
struct PresetEntry
|
||||
{
|
||||
PresetEntry(String name, String data) : m_name(name), m_data(data) {}
|
||||
String m_name;
|
||||
String m_data;
|
||||
};
|
||||
|
||||
const int g_num_presets = 4;
|
||||
|
||||
static const PresetEntry g_presets[g_num_presets] =
|
||||
{
|
||||
{"Factory reset","cGF1bHN0cmV0Y2gzcGx1Z2luc3RhdGUAASZtYWludm9sdW1lMAABCQQAAACAi1cewHN0cmV0Y2hhbW91bnQwAAEJBAAAACAAAPA/ZmZ0c2l6ZTAAAQkEAAAAYGZm5j9waXRjaHNoaWZ0MAABCQQAAAAAAAAAAGZyZXFzaGlmdDAAAQkEAAAAAAAAAABwbGF5cmFuZ2Vfc3RhcnQwAAEJBAAAAAAAAAAAcGxheXJhbmdlX2VuZDAAAQkEAAAAAAAA8D9zcHJlYWQwAAEJBAAAAAAAAAAAY29tcHJlc3MwAAEJBAAAAAAAAAAAbG9vcHhmYWRlbGVuMAABCQQAAABA4XqEP251bWhhcm1vbmljczAAAQkEAAAAAABAWUBoYXJtb25pY3NmcmVxMAABCQQAAAAAAABgQGhhcm1vbmljc2J3MAABCQQAAAAAAAA5QG9jdGF2ZW1peG0yXzAAAQkEAAAAAAAAAABvY3RhdmVtaXhtMV8wAAEJBAAAAAAAAAAAb2N0YXZlbWl4MF8wAAEJBAAAAAAAAPA/b2N0YXZlbWl4MV8wAAEJBAAAAAAAAAAAb2N0YXZlbWl4MTVfMAABCQQAAAAAAAAAAG9jdGF2ZW1peDJfMAABCQQAAAAAAAAAAHRvbmFsdnNub2lzZWJ3XzAAAQkEAAAAgBSu5z90b25hbHZzbm9pc2VwcmVzZXJ2ZV8wAAEJBAAAAAAAAOA/ZmlsdGVyX2xvd18wAAEJ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lc3MwAAEJBAAAAKAONdg/bG9vcHhmYWRlbGVuMAABCQQAAABA4XqEP251bWhhcm1vbmljczAAAQkEAAAAAABAWUBoYXJtb25pY3NmcmVxMAABCQQAAAAAAABgQGhhcm1vbmljc2J3MAABCQQAAAAAAAA5QG9jdGF2ZW1peG0yXzAAAQkEAAAAAAAAAABvY3RhdmVtaXhtMV8wAAEJBAAAAAAAAAAAb2N0YXZlbWl4MF8wAAEJBAAAAAAAAPA/b2N0YXZlbWl4MV8wAAEJBAAAAAAAAAAAb2N0YXZlbWl4MTVfMAABCQQAAAAAAAAAAG9jdGF2ZW1peDJfMAABCQQAAAAAAAAAAHRvbmFsdnNub2lzZWJ3XzAAAQkEAAAAgBSu5z90b25hbHZzbm9pc2VwcmVzZXJ2ZV8wAAEJBAAAAAAAAOA/ZmlsdGVyX2xvd18wAAEJBAAAAAAAADRAZmlsdGVyX2hpZ2hfMAABCQQAAABgAHCXQG9uc2V0ZGV0ZWN0XzAAAQkEAAAAAAAAAABtYXhjYXB0dXJlbGVuXzAAAQkEAAAAAAAAJEBudW1vdXRjaGFuczAAAQUBAgAAAG51bXNwZWN0cmFsc3RhZ2VzAAEFAQgAAABzcGVjb3JkZXIwAAEFAQMAAABzcGVjb3JkZXIxAAEFAQAAAABzcGVjb3JkZXIyAAEFAQEAAABzcGVjb3JkZXIzAAEFAQIAAABzcGVjb3JkZXI0AAEFAQQAAABzcGVjb3JkZXI1AAEFAQUAAABzcGVjb3JkZXI2AAEFAQYAAABzcGVjb3JkZXI3AAEFAQcAAAAAzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N"}
|
||||
};
|
||||
|
||||
int get_optimized_updown(int n, bool up) {
|
||||
int orig_n = n;
|
||||
while (true) {
|
||||
@ -332,35 +315,22 @@ double PaulstretchpluginAudioProcessor::getTailLengthSeconds() const
|
||||
|
||||
int PaulstretchpluginAudioProcessor::getNumPrograms()
|
||||
{
|
||||
return g_num_presets;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int PaulstretchpluginAudioProcessor::getCurrentProgram()
|
||||
{
|
||||
return m_cur_program;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PaulstretchpluginAudioProcessor::setCurrentProgram (int index)
|
||||
{
|
||||
index = jlimit(0, g_num_presets-1, index);
|
||||
m_cur_program = index;
|
||||
bool temp = m_load_file_with_state;
|
||||
m_load_file_with_state = false;
|
||||
MemoryBlock mb;
|
||||
MemoryOutputStream stream(mb, true);
|
||||
if (Base64::convertFromBase64(stream, g_presets[index].m_data)==true)
|
||||
{
|
||||
ValueTree tree = ValueTree::readFromData(mb.getData(), mb.getSize());
|
||||
tree.setProperty("loadfilewithstate", false, nullptr);
|
||||
setStateFromTree(tree);
|
||||
}
|
||||
m_load_file_with_state = temp;
|
||||
|
||||
}
|
||||
|
||||
const String PaulstretchpluginAudioProcessor::getProgramName (int index)
|
||||
{
|
||||
index = jlimit(0, g_num_presets-1, index);
|
||||
return g_presets[index].m_name;
|
||||
return String();
|
||||
}
|
||||
|
||||
void PaulstretchpluginAudioProcessor::changeProgramName (int index, const String& newName)
|
||||
|
20
readme.txt
20
readme.txt
@ -6,20 +6,13 @@ Copyright (C) 2017 Xenakios
|
||||
|
||||
Released under GNU General Public License v.2 license.
|
||||
|
||||
Source code at (currently missing GPL license for some of the source files, will be fixed later) :
|
||||
|
||||
https://bitbucket.org/xenakios/paulstretchplugin/overview
|
||||
|
||||
Requirements for building from source code :
|
||||
-C++17 compiler and C++17 standard library
|
||||
-JUCE 5.2 : https://github.com/WeAreROLI/JUCE
|
||||
-FFTW3
|
||||
|
||||
History :
|
||||
|
||||
02-07-2018 1.0.0
|
||||
-Control/Command click on waveform seeks (if click within active play range)
|
||||
-Moved prebuffering amount menu to prebuffering meter (click to show)
|
||||
-Added dummy parameter to tell the host the plugin state has changed when the imported file has changed etc
|
||||
-Removed the factory presets as they are not really that useful
|
||||
02-02-2018 1.0.0 preview 5
|
||||
-Added buttons to enable/disable spectral processing modules
|
||||
-Restored ability to set capture buffer length (via the settings menu)
|
||||
@ -57,3 +50,12 @@ History :
|
||||
-File import dialog allows importing file formats supported by JUCE, not just .wav
|
||||
12-15-2017 1.0.0 preview 1
|
||||
-Very early public release. Various issues present.
|
||||
|
||||
Source code at :
|
||||
|
||||
https://bitbucket.org/xenakios/paulstretchplugin/overview
|
||||
|
||||
Requirements for building from source code :
|
||||
-C++17 compiler and C++17 standard library
|
||||
-JUCE 5.2 : https://github.com/WeAreROLI/JUCE
|
||||
-FFTW3
|
||||
|
Loading…
Reference in New Issue
Block a user