Nsound
0.9.4
|
#include <Nsound/OrganPipe.h>
Public Member Functions | |
OrganPipe (const float64 &sample_rate) | |
Creates an OrganPipe. More... | |
~OrganPipe () | |
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 &pan) |
Static play method. More... | |
std::string | getInfo () |
Nsound::OrganPipe information. More... | |
Protected Attributes | |
float64 | sample_rate_ |
Class OrganPipe.
Based on a Csound Pipe Organ by Hons Mikelson.
source: http://www.csounds.com/mikelson/
"A Csound Halloween" hallown.orc hallown.sco
Definition at line 59 of file OrganPipe.h.
OrganPipe::OrganPipe | ( | const float64 & | sample_rate | ) |
OrganPipe::~OrganPipe | ( | ) |
|
virtual |
Plays a demo for this instrument.
Implements Nsound::Instrument.
Definition at line 57 of file OrganPipe.cc.
References Nsound::AudioStream::add(), Nsound::AudioStream::normalize(), and Nsound::Instrument::sample_rate_.
Referenced by play().
|
virtual |
Plays a static note for this instrument.
Implements Nsound::Instrument.
Definition at line 157 of file OrganPipe.cc.
References play().
AudioStream OrganPipe::play | ( | const float64 & | duration, |
const float64 & | frequency, | ||
const float64 & | pan | ||
) |
Static play method.
Definition at line 167 of file OrganPipe.cc.
References Nsound::Generator::drawLine(), Nsound::Generator::generate(), M_ASSERT_VALUE, and Nsound::Instrument::sample_rate_.
|
inlinevirtual |
Nsound::OrganPipe information.
Implements Nsound::Instrument.
Definition at line 82 of file OrganPipe.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(), Nsound::GuitarBass::play(), Nsound::DrumKickBass::play(), play(), and Nsound::Hat::play().