Nsound
0.9.4
|
Class Drum. More...
#include <Nsound/GuitarBass.h>
Public Member Functions | |
GuitarBass (const float64 &sample_rate) | |
Creates a Bass Kick Drum. More... | |
~GuitarBass () | |
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... | |
std::string | getInfo () |
Nsound::GuitarBass information. More... | |
Protected Attributes | |
float64 | sample_rate_ |
Class Drum.
Definition at line 50 of file GuitarBass.h.
GuitarBass::GuitarBass | ( | const float64 & | sample_rate | ) |
GuitarBass::~GuitarBass | ( | ) |
|
virtual |
Plays a demo for this instrument.
Implements Nsound::Instrument.
Definition at line 56 of file GuitarBass.cc.
References play(), and Nsound::Instrument::sample_rate_.
Referenced by main(), play(), and Nsound::AudioPlayback::scanDevices().
|
virtual |
Plays a static note for this instrument.
Implements Nsound::Instrument.
Definition at line 76 of file GuitarBass.cc.
References Nsound::Buffer::cbegin(), Nsound::Generator::drawLine(), Nsound::FilterTone::filter(), Nsound::FilterBandPassIIR::filter(), Nsound::Generator::generate(), Nsound::DelayLine::read(), Nsound::Instrument::sample_rate_, and Nsound::DelayLine::write().
|
inlinevirtual |
Nsound::GuitarBass information.
Implements Nsound::Instrument.
Definition at line 67 of file GuitarBass.h.
|
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(), play(), Nsound::DrumKickBass::play(), Nsound::OrganPipe::play(), and Nsound::Hat::play().