| @@ -491,8 +491,11 @@ void PaulstretchpluginAudioProcessor::saveCaptureBuffer() | |||||
| Uuid uid; | Uuid uid; | ||||
| WavAudioFormat wavformat; | WavAudioFormat wavformat; | ||||
| String propsdir = m_propsfile->m_props_file->getFile().getParentDirectory().getFullPathName(); | String propsdir = m_propsfile->m_props_file->getFile().getParentDirectory().getFullPathName(); | ||||
| String outfn = propsdir + "/paulxstretchaudiocaptures/" + uid.toString() + ".wav"; | |||||
| Logger::writeToLog("Attempting to save capture to file " + outfn); | |||||
| String outfn; | |||||
| if (m_capture_location.isEmpty()) | |||||
| outfn = propsdir + "/paulxstretchaudiocaptures/" + uid.toString() + ".wav"; | |||||
| else | |||||
| outfn = m_capture_location + "/pxscapture_" + uid.toString() + ".wav"; | |||||
| File outfile(outfn); | File outfile(outfn); | ||||
| outfile.create(); | outfile.create(); | ||||
| if (outfile.existsAsFile()) | if (outfile.existsAsFile()) | ||||
| @@ -227,6 +227,7 @@ public: | |||||
| int m_cur_tab_index = 0; | int m_cur_tab_index = 0; | ||||
| bool m_is_recording = false; | bool m_is_recording = false; | ||||
| bool m_save_captured_audio = true; | bool m_save_captured_audio = true; | ||||
| String m_capture_location; | |||||
| private: | private: | ||||
| bool m_prebuffering_inited = false; | bool m_prebuffering_inited = false; | ||||
| AudioBuffer<float> m_recbuffer; | AudioBuffer<float> m_recbuffer; | ||||
| @@ -7,8 +7,8 @@ Copyright (C) 2017-2018 Xenakios | |||||
| Released under GNU General Public License v.3 license. | Released under GNU General Public License v.3 license. | ||||
| History : | History : | ||||
| 11-08-2018 1.3.0 | |||||
| -Captured audio buffers can be saved as files on disk for later recall | |||||
| 12-19-2018 1.3.0 | |||||
| -Captured audio buffers can optionally be saved as files on disk for later recall. | |||||
| -Added varispeed (resampling speed change) feature when spectral stretch engine is bypassed | -Added varispeed (resampling speed change) feature when spectral stretch engine is bypassed | ||||
| -Added shortcut key (may not work properly in all plugin formats and hosts) : | -Added shortcut key (may not work properly in all plugin formats and hosts) : | ||||
| "I" to open file import dialog | "I" to open file import dialog | ||||