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