Vital
|
#include "JuceHeader.h"
#include "border_bounds_constrainer.h"
#include "full_interface.h"
#include "load_save.h"
#include "startup.h"
#include "synth_editor.h"
#include "tuning.h"
Classes | |
class | SynthApplication |
The main application class for Vital's standalone version. More... | |
class | SynthApplication::MainWindow |
The main window of the Vital standalone application. More... | |
Functions | |
void | handleVitalCrash (void *data) |
Handles a crash in Vital by writing the current stack backtrace to a crash log file. | |
String | getArgumentValue (const StringArray &args, const String &flag, const String &full_flag) |
Parses command-line arguments to find the value associated with a given flag. | |
int | loadAudioFile (AudioSampleBuffer &destination, InputStream *audio_stream) |
Loads an audio file from an InputStream into an AudioSampleBuffer. | |
FileSource::FadeStyle | getFadeStyleFromWavetableString (String data) |
Determines the fading style to use when interpreting a wavetable from data strings. | |
String getArgumentValue | ( | const StringArray & | args, |
const String & | flag, | ||
const String & | full_flag ) |
Parses command-line arguments to find the value associated with a given flag.
args | The array of command-line arguments. |
flag | A short flag (e.g., "-m"). |
full_flag | A long flag (e.g., "--midi"). |
FileSource::FadeStyle getFadeStyleFromWavetableString | ( | String | data | ) |
Determines the fading style to use when interpreting a wavetable from data strings.
This function looks for special markers in the wavetable data and returns a corresponding FileSource::FadeStyle to indicate how frames should be interpolated.
data | The wavetable data string. |
void handleVitalCrash | ( | void * | data | ) |
Handles a crash in Vital by writing the current stack backtrace to a crash log file.
data | Unused pointer parameter, required by the system crash handler signature. |
int loadAudioFile | ( | AudioSampleBuffer & | destination, |
InputStream * | audio_stream ) |
Loads an audio file from an InputStream into an AudioSampleBuffer.
The function attempts to read the audio data using available AudioFormatReaders. On success, the destination buffer is resized and populated with the file's samples.
destination | The AudioSampleBuffer to load data into. |
audio_stream | A pointer to the input stream containing audio data. |