Nsound  0.9.4
RngTausworthe.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 //
3 // $Id: RngTausworthe.h 874 2014-09-08 02:21:29Z weegreenblobbie $
4 //
5 // Nsound is a C++ library and Python module for audio synthesis featuring
6 // dynamic digital filters. Nsound lets you easily shape waveforms and write
7 // to disk or plot them. Nsound aims to be as powerful as Csound but easy to
8 // use.
9 //
10 // Copyright (c) 2009 to Present Nick Hilton
11 //
12 // weegreenblobbie_yahoo_com (replace '_' with '@' and '.')
13 //
14 //-----------------------------------------------------------------------------
15 
16 //-----------------------------------------------------------------------------
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 // This program is distributed in the hope that it will be useful,
24 // but WITHOUT ANY WARRANTY; without even the implied warranty of
25 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 // GNU Library General Public License for more details.
27 //
28 // You should have received a copy of the GNU General Public License
29 // along with this program; if not, write to the Free Software
30 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 //
32 //-----------------------------------------------------------------------------
33 #ifndef _NSOUND_RNG_TAUSWORTHE_H_
34 #define _NSOUND_RNG_TAUSWORTHE_H_
35 
36 #include <Nsound/Nsound.h>
38 
39 namespace Nsound
40 {
41 
42 //-----------------------------------------------------------------------------
46 {
47  public:
48 
50  RngTausworthe();
51 
53  uint32
54  get();
55 
57  int32
58  get(const Nsound::int32 min, const Nsound::int32 max);
59 
61  float64
62  get(const Nsound::float64 & min, const Nsound::float64 & max);
63 
66  operator=(const RngTausworthe & rhs);
67 
69  void
70  setSeed(Nsound::uint32 seed);
71 
72  private:
73 
77 };
78 
79 } // namespace
80 
81 #endif
82 
83 // :mode=c++: jEdit modeline
Nsound::uint32 s3_
Definition: RngTausworthe.h:76
unsigned int uint32
Definition: Nsound.h:153
RngTausworthe()
Default seed used is the number of seconds from unix epoch.
Nsound::uint32 s1_
Definition: RngTausworthe.h:74
Nsound::uint32 s2_
Definition: RngTausworthe.h:75
double float64
Definition: Nsound.h:146
signed int int32
Definition: Nsound.h:142
RngTausworthe & operator=(const RngTausworthe &rhs)
assignment operator
void setSeed(Nsound::uint32 seed)
Set the seed to use.
Base class for random number generators.