|
static StkFloat | sampleRate (void) |
| Static method that returns the current STK sample rate.
|
|
static void | setSampleRate (StkFloat rate) |
| Static method that sets the STK sample rate. More...
|
|
static std::string | rawwavePath (void) |
| Static method that returns the current rawwave path.
|
|
static void | setRawwavePath (std::string path) |
| Static method that sets the STK rawwave path.
|
|
static void | swap16 (unsigned char *ptr) |
| Static method that byte-swaps a 16-bit data type.
|
|
static void | swap32 (unsigned char *ptr) |
| Static method that byte-swaps a 32-bit data type.
|
|
static void | swap64 (unsigned char *ptr) |
| Static method that byte-swaps a 64-bit data type.
|
|
static void | sleep (unsigned long milliseconds) |
| Static cross-platform method to sleep for a number of milliseconds.
|
|
static bool | inRange (StkFloat value, StkFloat min, StkFloat max) |
| Static method to check whether a value is within a specified range.
|
|
static void | handleError (const char *message, StkError::Type type) |
| Static function for error reporting and handling using c-strings.
|
|
static void | handleError (std::string message, StkError::Type type) |
| Static function for error reporting and handling using c++ strings.
|
|
static void | showWarnings (bool status) |
| Toggle display of WARNING and STATUS messages.
|
|
static void | printErrors (bool status) |
| Toggle display of error messages before throwing exceptions.
|
|
STK base class.
Nearly all STK classes inherit from this class. The global sample rate and rawwave path variables can be queried and modified via Stk. In addition, this class provides error handling and byte-swapping functions.
The Synthesis ToolKit in C++ (STK) is a set of open source audio signal processing and algorithmic synthesis classes written in the C++ programming language. STK was designed to facilitate rapid development of music synthesis and audio processing software, with an emphasis on cross-platform functionality, realtime control, ease of use, and educational example code. STK currently runs with realtime support (audio and MIDI) on Linux, Macintosh OS X, and Windows computer platforms. Generic, non-realtime support has been tested under NeXTStep, Sun, and other platforms and should work with any standard C++ compiler.
STK WWW site: http://ccrma.stanford.edu/software/stk/
The Synthesis ToolKit in C++ (STK) Copyright (c) 1995–2014 Perry R. Cook and Gary P. Scavone
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Any person wishing to distribute modifications to the Software is asked to send the modifications to the original developer so that they can be incorporated into the canonical version. This is, however, not a binding provision of this license.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.