Nsound
0.9.4
|
#include <Nsound/DrumBD01.h>
Public Member Functions | |
DrumBD01 (const float64 &sample_rate) | |
Creates a Drum. More... | |
~DrumBD01 () | |
Destructor. More... | |
AudioStream | play () |
Plays a demo for this instrument. More... | |
AudioStream | play (const float64 &duration, const float64 &frequency) |
Plays a static note for this instrument. More... | |
AudioStream | play (const float64 &duration, const float64 &frequency, const float64 &velocity) |
Static play method. More... | |
std::string | getInfo () |
Nsound::DrumBD01 information. More... | |
Protected Attributes | |
float64 | sample_rate_ |
Class DrumBD01.
Definition at line 50 of file DrumBD01.h.
DrumBD01::DrumBD01 | ( | const float64 & | sample_rate | ) |
DrumBD01::~DrumBD01 | ( | ) |
|
virtual |
Plays a demo for this instrument.
Implements Nsound::Instrument.
Definition at line 50 of file DrumBD01.cc.
References Nsound::Instrument::sample_rate_.
Referenced by my_main(), and play().
|
virtual |
Plays a static note for this instrument.
Implements Nsound::Instrument.
Definition at line 64 of file DrumBD01.cc.
References play().
AudioStream DrumBD01::play | ( | const float64 & | duration, |
const float64 & | frequency, | ||
const float64 & | velocity | ||
) |
Static play method.
Definition at line 74 of file DrumBD01.cc.
References Nsound::Generator::drawDecay(), Nsound::Generator::drawLine(), Nsound::FilterLowPassIIR::filter(), Nsound::Generator::generate(), Nsound::Buffer::getSqrt(), Nsound::Buffer::limit(), Nsound::Buffer::normalize(), Nsound::Instrument::sample_rate_, and Nsound::Generator::whiteNoise().
|
inlinevirtual |
Nsound::DrumBD01 information.
Implements Nsound::Instrument.
Definition at line 73 of file DrumBD01.h.
|
protectedinherited |
Definition at line 76 of file Instrument.h.
Referenced by Nsound::Hat::Hat(), Nsound::Hat::operator=(), Nsound::Clarinet::play(), play(), Nsound::FluteSlide::play(), Nsound::GuitarBass::play(), Nsound::DrumKickBass::play(), Nsound::OrganPipe::play(), and Nsound::Hat::play().