Nsound
0.9.4
|
Class Drum. More...
#include <Nsound/DrumKickBass.h>
Public Member Functions | |
DrumKickBass (const float64 &sample_rate, const float64 &high_frequency, const float64 &low_frequency) | |
Creates a Bass Kick Drum. More... | |
~DrumKickBass () | |
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 &high_frequency, const float64 &low_frequency) |
Static play method. More... | |
AudioStream | play (const float64 &duation, const Buffer &high_frequency, const Buffer &low_frequency) |
Dynamic play method. More... | |
std::string | getInfo () |
Nsound::DrumKickBass information. More... | |
Protected Attributes | |
float64 | hi_f_ |
float64 | lo_f_ |
float64 | sample_rate_ |
Class Drum.
Definition at line 50 of file DrumKickBass.h.
DrumKickBass::DrumKickBass | ( | const float64 & | sample_rate, |
const float64 & | high_frequency, | ||
const float64 & | low_frequency | ||
) |
DrumKickBass::~DrumKickBass | ( | ) |
|
virtual |
Plays a demo for this instrument.
Implements Nsound::Instrument.
Definition at line 57 of file DrumKickBass.cc.
References play(), and Nsound::Instrument::sample_rate_.
Referenced by my_main(), and play().
|
virtual |
Plays a static note for this instrument.
Implements Nsound::Instrument.
Definition at line 71 of file DrumKickBass.cc.
AudioStream DrumKickBass::play | ( | const float64 & | duration, |
const float64 & | high_frequency, | ||
const float64 & | low_frequency | ||
) |
Static play method.
Definition at line 81 of file DrumKickBass.cc.
References Nsound::Generator::drawDecay(), Nsound::Generator::drawLine(), Nsound::FilterParametricEqualizer::filter(), Nsound::Generator::generate(), Nsound::AudioStream::getLength(), Nsound::FilterParametricEqualizer::HIGH_SHELF, and Nsound::Instrument::sample_rate_.
AudioStream DrumKickBass::play | ( | const float64 & | duation, |
const Buffer & | high_frequency, | ||
const Buffer & | low_frequency | ||
) |
Dynamic play method.
Definition at line 130 of file DrumKickBass.cc.
References play().
|
inlinevirtual |
Nsound::DrumKickBass information.
Implements Nsound::Instrument.
Definition at line 82 of file DrumKickBass.h.
|
protected |
Definition at line 121 of file DrumKickBass.h.
|
protected |
Definition at line 126 of file DrumKickBass.h.
Referenced by play().
|
protectedinherited |
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(), play(), Nsound::OrganPipe::play(), and Nsound::Hat::play().