Instrmnt

STK instrument abstract base class.

This class provides a common interface for all STK instruments.

Porting portions of STK library to D. https://github.com/thestk/stk by Perry R. Cook and Gary P. Scavone, 1995--2016.

Constructors

this
this()
Undocumented in source.

Members

Functions

channelsOut
uint channelsOut()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
controlChange
void controlChange(int number, StkFloat value)
Undocumented in source.
lastFrame
StkFrames lastFrame()
Undocumented in source. Be warned that the author may not have intended to support it.
lastOut
StkFloat lastOut(uint channel)
Undocumented in source.
setFrequency
void setFrequency(StkFloat frequency)
Undocumented in source.

Variables

lastFrame_
StkFrames lastFrame_;
Undocumented in source.
noteOff
void noteOff(StkFloat amplitude);
Undocumented in source.
noteOn
void noteOn(StkFloat frequency, StkFloat amplitude);
Undocumented in source.
tick
StkFloat tick(uint channel = 0);
Undocumented in source.
tick
StkFrames tick(StkFrames frames, uint channel = 0);
Undocumented in source.

Inherited Members

From Stk

sampleRate
StkFloat sampleRate()
Undocumented in source. Be warned that the author may not have intended to support it.
setSampleRate
void setSampleRate(StkFloat rate)
Undocumented in source. Be warned that the author may not have intended to support it.
ignoreSampleRateChange
void ignoreSampleRateChange(bool ignore)
Undocumented in source. Be warned that the author may not have intended to support it.
clear_alertList
void clear_alertList()
Undocumented in source. Be warned that the author may not have intended to support it.
rawwavePath
string rawwavePath()
Undocumented in source. Be warned that the author may not have intended to support it.
setRawwavePath
void setRawwavePath(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
swap16
void swap16(ubyte* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
swap32
void swap32(ubyte* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
swap64
void swap64(ubyte* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
sleep
void sleep(uint milliseconds)
Undocumented in source. Be warned that the author may not have intended to support it.
inRange
bool inRange(StkFloat value, StkFloat min, StkFloat max)
Undocumented in source. Be warned that the author may not have intended to support it.
handleError
void handleError(char* message, StkErrorType type)
Undocumented in source. Be warned that the author may not have intended to support it.
handleError
void handleError(string message, StkErrorType type)
Undocumented in source. Be warned that the author may not have intended to support it.
showWarnings
void showWarnings(bool status)
Undocumented in source. Be warned that the author may not have intended to support it.
printErrors
void printErrors(bool status)
Undocumented in source. Be warned that the author may not have intended to support it.
ignoreSampleRateChange_
bool ignoreSampleRateChange_;
Undocumented in source.
~this
~this()
Undocumented in source.
sampleRateChanged
void sampleRateChanged(StkFloat newRate, StkFloat oldRate)
Undocumented in source. Be warned that the author may not have intended to support it.
addSampleRateAlert
void addSampleRateAlert(Stk ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
removeSampleRateAlert
void removeSampleRateAlert(Stk ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
handleError
void handleError(StkErrorType type)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta