1 /*
2 ** HeadlessUtils provides a collection of utility functions to manage and output
3 ** data and construct and manipulate surge
4 */
5 #pragma once
6
7 #include "SurgeSynthesizer.h"
8
updateDisplay()9 namespace Surge
10 {
11 namespace Headless
12 {
13
14 std::shared_ptr<SurgeSynthesizer> createSurge(int sr);
15
16 void writeToStream(const float *data, int nSamples, int nChannels, std::ostream &str);
17 void writeToWav(const float *data, int nSamples, int nChannels, float sampleRate,
18 std::string wavFileName);
19
20 /*
21 ** One imagines expansions along these lines:
22
23 void writeGnuplotFile(const float *data, int nSamples, int nChannels, std::string fname);
24
25 */
26
27 } // namespace Headless
28 } // namespace Surge
29