Nsound
0.9.4
|
The Nsound Instrument baseclass. All Nsound instruments extend this class. More...
#include <Nsound/Instrument.h>
Public Member Functions | |
Instrument (const float64 &sample_rate) | |
virtual | ~Instrument () |
virtual AudioStream | play ()=0 |
Plays a demo for this instrument. More... | |
virtual AudioStream | play (const float64 &duration, const float64 &frequency)=0 |
Plays a static note for this instrument. More... | |
virtual std::string | getInfo ()=0 |
Returns information about who wrote this instrument and how to use it. More... | |
Protected Attributes | |
float64 | sample_rate_ |
The Nsound Instrument baseclass. All Nsound instruments extend this class.
Definition at line 50 of file Instrument.h.
|
inline |
Definition at line 54 of file Instrument.h.
|
inlinevirtual |
Definition at line 57 of file Instrument.h.
|
pure virtual |
Plays a demo for this instrument.
Implemented in Nsound::Hat, Nsound::OrganPipe, Nsound::DrumKickBass, Nsound::DrumBD01, Nsound::FluteSlide, Nsound::GuitarBass, and Nsound::Clarinet.
|
pure virtual |
Plays a static note for this instrument.
Implemented in Nsound::Hat, Nsound::OrganPipe, Nsound::DrumKickBass, Nsound::DrumBD01, Nsound::FluteSlide, Nsound::GuitarBass, and Nsound::Clarinet.
|
pure virtual |
Returns information about who wrote this instrument and how to use it.
Implemented in Nsound::Hat, Nsound::DrumKickBass, Nsound::OrganPipe, Nsound::FluteSlide, Nsound::Clarinet, Nsound::DrumBD01, and Nsound::GuitarBass.
|
protected |
Definition at line 76 of file Instrument.h.
Referenced by Nsound::Hat::Hat(), Nsound::Hat::operator=(), Nsound::Clarinet::play(), Nsound::DrumBD01::play(), Nsound::FluteSlide::play(), Nsound::GuitarBass::play(), Nsound::DrumKickBass::play(), Nsound::OrganPipe::play(), and Nsound::Hat::play().