Nsound
0.9.4
|
Class Drum. More...
#include <Nsound/Clarinet.h>
Public Member Functions | |
Clarinet (const float64 &sample_rate) | |
Creates a Bass Kick Drum. More... | |
~Clarinet () | |
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 &presure, const float64 &filter, const float64 &reed_stiffness) |
Plays a static note for this instrument. More... | |
std::string | getInfo () |
Nsound::Clarinet information. More... | |
Protected Attributes | |
float64 | sample_rate_ |
Class Drum.
Definition at line 48 of file Clarinet.h.
Clarinet::Clarinet | ( | const float64 & | sample_rate | ) |
Clarinet::~Clarinet | ( | ) |
|
virtual |
Plays a demo for this instrument.
Implements Nsound::Instrument.
Definition at line 56 of file Clarinet.cc.
References Nsound::Instrument::sample_rate_.
Referenced by main(), and play().
|
virtual |
Plays a static note for this instrument.
Implements Nsound::Instrument.
Definition at line 73 of file Clarinet.cc.
References play().
AudioStream Clarinet::play | ( | const float64 & | duration, |
const float64 & | frequency, | ||
const float64 & | presure, | ||
const float64 & | filter, | ||
const float64 & | reed_stiffness | ||
) |
Plays a static note for this instrument.
Definition at line 80 of file Clarinet.cc.
References Nsound::Generator::drawLine(), Nsound::FilterHighPassIIR::filter(), Nsound::FilterLowPassIIR::filter(), Nsound::Generator::generate(), Nsound::Buffer::getLength(), Nsound::AudioStream::normalize(), Nsound::DelayLine::read(), Nsound::Instrument::sample_rate_, Nsound::AudioStream::substream(), and Nsound::DelayLine::write().
|
inlinevirtual |
Nsound::Clarinet information.
Implements Nsound::Instrument.
Definition at line 73 of file Clarinet.h.
|
protectedinherited |
Definition at line 76 of file Instrument.h.
Referenced by Nsound::Hat::Hat(), Nsound::Hat::operator=(), play(), Nsound::DrumBD01::play(), Nsound::FluteSlide::play(), Nsound::GuitarBass::play(), Nsound::DrumKickBass::play(), Nsound::OrganPipe::play(), and Nsound::Hat::play().