|
Nsound
0.9.4
|
#include <Nsound/Hat.h>

Public Member Functions | |
| Hat (const float64 &sample_rate) | |
| Creates a Hat. More... | |
| Hat (const Hat ©) | |
| Copy constructor. More... | |
| ~Hat () | |
| Destructor. More... | |
| Hat & | operator= (const Hat &rhs) |
| Assignment. More... | |
| AudioStream | play () |
| Plays a demo for this instrument. More... | |
| AudioStream | play (const float64 &duration, const float64 &tune) |
| Static play method with option of Hat open or closed. More... | |
| AudioStream | play (const float64 &duration, const float64 &tune, boolean is_closed) |
| Static play method with option of Hat open or closed. More... | |
| std::string | getInfo () |
| Nsound::Hat information. More... | |
Protected Attributes | |
| Square * | square_ |
| FilterHighPassIIR * | hpf_ |
| float64 | sample_rate_ |
Class Hat.
Simulates a Hat Hit. Based on a Csound Hat by Steven Cook.
source: http://www.csounds.com/cook/
Sound Generators: 808HiHat.orc 808HiHat.sco
| Hat::Hat | ( | const float64 & | sample_rate | ) |
Creates a Hat.
Definition at line 46 of file Hat.cc.
References hpf_, Nsound::Instrument::sample_rate_, and square_.
| Hat::Hat | ( | const Hat & | copy | ) |
Copy constructor.
Definition at line 58 of file Hat.cc.
Assignment.
Definition at line 79 of file Hat.cc.
References hpf_, Nsound::Instrument::sample_rate_, and square_.
|
virtual |
Plays a demo for this instrument.
Implements Nsound::Instrument.
Definition at line 93 of file Hat.cc.
References Nsound::AudioStream::add(), and Nsound::Instrument::sample_rate_.
Referenced by my_main(), and play().
|
inlinevirtual |
Static play method with option of Hat open or closed.
Implements Nsound::Instrument.
Definition at line 84 of file Hat.h.
References play().
| AudioStream Hat::play | ( | const float64 & | duration, |
| const float64 & | tune, | ||
| boolean | is_closed | ||
| ) |
Static play method with option of Hat open or closed.
Definition at line 149 of file Hat.cc.
References Nsound::Generator::drawDecay(), Nsound::Generator::drawLine(), Nsound::FilterHighPassIIR::filter(), Nsound::Generator::generate(), hpf_, Nsound::Instrument::sample_rate_, Nsound::Generator::silence(), and square_.
|
inlinevirtual |
Nsound::Hat information.
Implements Nsound::Instrument.
|
protected |
|
protected |
|
protectedinherited |
Definition at line 76 of file Instrument.h.
Referenced by Hat(), operator=(), Nsound::Clarinet::play(), Nsound::DrumBD01::play(), Nsound::FluteSlide::play(), Nsound::GuitarBass::play(), Nsound::DrumKickBass::play(), Nsound::OrganPipe::play(), and play().
1.8.6