mirror of
https://github.com/thestk/stk
synced 2026-01-12 04:21:52 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e11bff2fe8 | ||
|
|
503ed3cc9f | ||
|
|
5d63b50e85 | ||
|
|
d12ef806ac | ||
|
|
cf06b7598b | ||
|
|
586b0add5f |
7
INSTALL
7
INSTALL
@@ -1,6 +1,6 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
The Synthesis ToolKit in C++ can be used in a variety of ways, depending on your particular needs. Some people just choose the classes they need for a particular project and copy those to their project directory. Others like to compile and link to a library of object files. STK was not designed with one particular style of use in mind.
|
||||
|
||||
@@ -19,14 +19,15 @@ Several options can be passed to configure, including:
|
||||
--disable-realtime = only compile generic non-realtime classes
|
||||
--enable-debug = enable various debug output
|
||||
--with-alsa = choose native ALSA API support (linux only)
|
||||
--with-jack = choose native JACK server API support (linux only)
|
||||
--enable-midiator = enable native MS-124W MIDI support (linux only)
|
||||
|
||||
Typing "./configure --help" will display all the available options. In addition, it is possible to specify the RAWWAVES and INCLUDE paths to configure as (ex. to set to /home/gary/rawwaves and /home/gary/include):
|
||||
At the moment, it is not possible to specify more than one Linux audio API, though this will change in the next release. Typing "./configure --help" will display all the available options. In addition, it is possible to specify the RAWWAVES and INCLUDE paths to configure as (ex. to set to /home/gary/rawwaves and /home/gary/include):
|
||||
|
||||
./configure RAWWAVE_PATH="/home/gary/rawwaves/"
|
||||
./configure INCLUDE_PATH="/home/gary/include/"
|
||||
|
||||
The ending "/" is required for the RAWWAVES path. The default behavior will set a relative path that works for the project files included with the distribution (assuming they are not moved).
|
||||
The ending "/" is required for the RAWWAVES path. The default behavior will set a relative path that works for the project files included with the distribution (assuming they are not moved). You can also change the RAWWAVE_PATH dynamically via the static Stk::setRawwavePath() function.
|
||||
|
||||
If you wish to use a different compiler than that selected by configure, specify that compiler in the command line (ex. to use CC):
|
||||
|
||||
|
||||
2
README
2
README
@@ -1,6 +1,6 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
This distribution of the Synthesis ToolKit in C++ (STK) contains the following:
|
||||
|
||||
|
||||
189
bin/treesed
Executable file
189
bin/treesed
Executable file
@@ -0,0 +1,189 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# treesed
|
||||
# Written January 1996 by Rick Jansen (rick@sara.nl)
|
||||
# URL: http://www.sara.nl/rick
|
||||
|
||||
# usage: treesed pattern1 pattern2 -tree
|
||||
# treesed pattern1 pattern2 -files file1 file2 ...
|
||||
|
||||
# example: treesed href HREF -files *.html
|
||||
|
||||
# Treesed searches for pattern1 and replaces pattern1 by pattern2
|
||||
# if pattern2 supplied. If only pattern1 given treesed just searches.
|
||||
# Treesed will search in all files and subdirectories of the current
|
||||
# directory
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------
|
||||
# Parameters
|
||||
|
||||
$DoEdit=0;
|
||||
$search_pattern = $ARGV[0];
|
||||
$search_pattern =~ s/(\W)/\\$1/g; # escape regexp chars
|
||||
shift;
|
||||
|
||||
while ($#ARGV >= 0) {
|
||||
|
||||
if ($ARGV[0] eq '-files') {
|
||||
@temp_ls = @ARGV[1 .. $#ARGV];
|
||||
# Get list of files, skip dirs
|
||||
foreach $file (@ARGV[1 .. $#ARGV]) {
|
||||
if (-f $file) {
|
||||
push(@ls, $file);
|
||||
}
|
||||
}
|
||||
last;
|
||||
}
|
||||
elsif ($ARGV[0] eq '-tree') {
|
||||
&Get_LS;
|
||||
last;
|
||||
}
|
||||
|
||||
if (! -f $ARGV[0]) {
|
||||
if (defined($replacement_pattern)) {
|
||||
print "usage: treesed pattern1 <pattern2> -tree/-files <files>\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$replacement_pattern = $ARGV[0];
|
||||
#$replacement_pattern =~ s/(\W)/\\$1/g; # escape regexp chars
|
||||
$DoEdit=1;
|
||||
shift;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# No files?
|
||||
if ($#ls < 0) {
|
||||
print "xx No input files\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print "search_pattern: $search_pattern\n";
|
||||
print "replacement_pattern: $replacement_pattern\n";
|
||||
if ($DoEdit) {
|
||||
print "\n** EDIT MODE!\n\n"; }
|
||||
else {
|
||||
print "\n** Search mode\n\n";
|
||||
}
|
||||
|
||||
#foreach $file (@ls) {
|
||||
# print "$file \n";
|
||||
#}
|
||||
|
||||
|
||||
#--------------------------------------------------------
|
||||
# Search list of files for pattern
|
||||
|
||||
$linepos=0;
|
||||
|
||||
$| = 1; # Force flush after every write
|
||||
foreach $file (@ls) {
|
||||
#print "$file\n";
|
||||
print '.';
|
||||
$linepos++;
|
||||
if ($linepos > 50) {
|
||||
$linepos=0;
|
||||
print "\n";
|
||||
}
|
||||
|
||||
if (!open(FILE, $file)) {
|
||||
print "\nCould not open $file\n";
|
||||
next;
|
||||
}
|
||||
|
||||
$Found = 0;
|
||||
$Count = 0;
|
||||
$lineno = 0;
|
||||
@lines = ();
|
||||
while (<FILE>) {
|
||||
$lineno++;
|
||||
if (/$search_pattern/i) {
|
||||
#print;
|
||||
$Count++;
|
||||
$Found = 1;
|
||||
push(@lines, $lineno);
|
||||
}
|
||||
}
|
||||
close(FILE);
|
||||
if ($Found) {
|
||||
print "\n$file: $Count lines on: @lines\n";
|
||||
}
|
||||
|
||||
if ($Found && $DoEdit) { &Edit($file); }
|
||||
|
||||
}
|
||||
$| = 0;
|
||||
print "\n";
|
||||
|
||||
|
||||
exit(0);
|
||||
|
||||
|
||||
#--------------------------------------------------------
|
||||
# Edit file
|
||||
|
||||
sub Edit {
|
||||
|
||||
# Replace $ARGV[0] with $ARGV[1] in $file
|
||||
|
||||
local($file) = @_;
|
||||
local($bakfile) = $file.'.'.$$;
|
||||
|
||||
# First create backup
|
||||
open(FILE, $file) || die "Could not open $file for read\n";
|
||||
open(BAKFILE, ">$bakfile") || die "Could not open $bakfile for backup\n";
|
||||
while (<FILE>) {
|
||||
print BAKFILE;
|
||||
}
|
||||
close(BAKFILE);
|
||||
close(FILE);
|
||||
|
||||
# Now replace $ARGV[0] by $ARGV[1] in the backupfile,
|
||||
# result into $file
|
||||
open(BAKFILE, $bakfile) || die "Could not open $bakfile for read\n";
|
||||
open(FILE,">$file") || die "Could not open $file for write\n";
|
||||
$Count=0;
|
||||
while (<BAKFILE>) {
|
||||
if (/$search_pattern/i) { $Count++; }
|
||||
s/$search_pattern/$replacement_pattern/gi;
|
||||
print FILE;
|
||||
}
|
||||
close(BAKFILE);
|
||||
close(FILE);
|
||||
|
||||
print
|
||||
"\nReplaced $search_pattern by $replacement_pattern on $Count lines in $file\n";
|
||||
|
||||
} #sub Edit
|
||||
|
||||
#--------------------------------------------------------
|
||||
|
||||
sub Get_LS {
|
||||
|
||||
# Get a list of full path names into array @ls
|
||||
|
||||
local(@localls)=`ls -R1`;
|
||||
local($item,$Dir);
|
||||
|
||||
#print "localls: @localls\n";
|
||||
$Dir='';
|
||||
foreach $item (@localls) {
|
||||
#print "$item\n";
|
||||
if ($item =~ /:$/) {
|
||||
$Dir=$item;
|
||||
chop($Dir);
|
||||
$Dir =~ s/:$/\//;
|
||||
}
|
||||
else {
|
||||
chop($item);
|
||||
$item = $Dir.$item;
|
||||
if ($item !~ /^\s*$/) { push(@ls, $item); }
|
||||
}
|
||||
}
|
||||
@localls=();
|
||||
|
||||
} # sub Get_LS
|
||||
|
||||
48
configure.ac
48
configure.ac
@@ -1,16 +1,12 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(STK, 4.1, gary@ccrma.stanford.edu, stk)
|
||||
AC_INIT(STK, 4.1.2, gary@ccrma.stanford.edu, stk)
|
||||
AC_CONFIG_SRCDIR(src/Stk.cpp)
|
||||
AC_CONFIG_FILES(src/Makefile projects/demo/Makefile projects/effects/Makefile projects/ragamatic/Makefile projects/examples/Makefile)
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX(CC g++ c++ cxx)
|
||||
AC_PROG_CXX(g++ CC c++ cxx)
|
||||
AC_PROG_CXX
|
||||
AC_PROG_RANLIB
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB(stdc++, printf, , AC_MSG_ERROR(Stk requires the C++ library!) )
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
@@ -40,6 +36,9 @@ AC_MSG_CHECKING(whether to compile realtime support)
|
||||
AC_ARG_ENABLE(realtime, [ --disable-realtime = only compile generic non-realtime classes], [AC_SUBST( realtime, [no] ) AC_SUBST( sound_api, [] )], [AC_SUBST( realtime, [yes] ) ] )
|
||||
AC_MSG_RESULT($realtime)
|
||||
|
||||
# Check for math library
|
||||
AC_CHECK_LIB(m, cos, , AC_MSG_ERROR(math library is needed!))
|
||||
|
||||
if test $realtime = yes; then
|
||||
AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(realtime support requires the pthread library!))
|
||||
AC_CHECK_FUNCS(gettimeofday select socket)
|
||||
@@ -54,7 +53,7 @@ AC_ARG_ENABLE(debug,
|
||||
|
||||
# Check compiler and use -Wall if gnu.
|
||||
if test $GXX = "yes" ; then
|
||||
AC_SUBST( warn, [-Wall] )
|
||||
AC_SUBST( warn, ["-Wall -g"] )
|
||||
fi
|
||||
|
||||
if test $realtime = yes; then
|
||||
@@ -63,16 +62,43 @@ if test $realtime = yes; then
|
||||
AC_MSG_CHECKING(for audio API)
|
||||
case $host in
|
||||
*-*-linux*)
|
||||
AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)], [AC_SUBST( sound_api, [-D__LINUX_ALSA__] ) AC_MSG_RESULT(using ALSA) ], [AC_SUBST( sound_api, [-D__LINUX_OSS__] ) AC_MSG_RESULT(using OSS)])
|
||||
AC_SUBST( sound_api, [_NO_API_] )
|
||||
|
||||
# Look for Jack flag
|
||||
AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (linux only)], [AC_SUBST( sound_api, [-D__LINUX_JACK__] ) AC_MSG_RESULT(using JACK)] , )
|
||||
if [test $sound_api = -D__LINUX_JACK__;] then
|
||||
TEMP_LIBS=$LIBS
|
||||
AC_CHECK_LIB(jack, jack_client_new, , AC_MSG_ERROR(JACK support requires the jack library!))
|
||||
AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))
|
||||
LIBS="`pkg-config --cflags --libs jack` $TEMP_LIBS -lasound"
|
||||
audio_apis="-D__LINUX_JACK__"
|
||||
fi
|
||||
|
||||
# Look for Alsa flag
|
||||
AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)], [AC_SUBST( sound_api, [-D__LINUX_ALSA__] ) AC_MSG_RESULT(using ALSA)], )
|
||||
if test $sound_api = -D__LINUX_ALSA__; then
|
||||
AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))
|
||||
audio_apis="-D__LINUX_ALSA__ $audio_apis"
|
||||
fi
|
||||
|
||||
# Look for OSS flag
|
||||
AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (linux only)], [AC_SUBST( sound_api, [-D__LINUX_OSS__] ) AC_MSG_RESULT(using OSS)], )
|
||||
if test $sound_api = -D__LINUX_OSS__; then
|
||||
audio_apis="-D__LINUX_OSS__ $audio_apis"
|
||||
fi
|
||||
|
||||
# If no audio api flags specified, use OSS
|
||||
if [test $sound_api = _NO_API_;] then
|
||||
AC_SUBST( sound_api, [-D__LINUX_OSS__] )
|
||||
AC_MSG_RESULT(using OSS)
|
||||
AC_SUBST( audio_apis, [-D__LINUX_OSS__] )
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(midiator, [ --enable-midiator = enable native MS-124W MIDI support (linux only)], [AC_SUBST( midiator, [-D__MIDIATOR__] )], [AC_SUBST( midiator, [] )])
|
||||
;;
|
||||
|
||||
*-sgi*)
|
||||
AC_SUBST( sound_api, [-D__IRIX_AL__] )
|
||||
AC_SUBST( audio_apis, ["-D__IRIX_AL__ -LANG:std -w"] )
|
||||
AC_MSG_RESULT(using IRIX AL)
|
||||
AC_CHECK_LIB(audio, alOpenPort, , AC_MSG_ERROR(IRIX audio support requires the audio library!) )
|
||||
AC_CHECK_LIB(md, mdOpenInPort, , AC_MSG_ERROR(IRIX MIDI support requires the md library!) )
|
||||
@@ -81,9 +107,11 @@ if test $realtime = yes; then
|
||||
*-apple*)
|
||||
# Check for CoreAudio and CoreMIDI framework
|
||||
AC_CHECK_HEADERS(CoreAudio/CoreAudio.h CoreMIDI/CoreMIDI.h CoreServices/CoreServices.h,
|
||||
[AC_SUBST( sound_api, [-D__MACOSX_CORE__] )],
|
||||
[AC_SUBST( audio_apis, [-D__MACOSX_CORE__] )],
|
||||
[AC_MSG_ERROR(CoreAudio and/or CoreMIDI header files not found!)] )
|
||||
AC_SUBST( frameworks, ["-framework CoreAudio -framework CoreMIDI -framework CoreFoundation"] )
|
||||
# Explicitly link with c++ library.
|
||||
AC_CHECK_LIB(stdc++, printf, , AC_MSG_ERROR(Stk requires the C++ library!) )
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
STK: A ToolKit of Audio Synthesis Classes and Instruments in C++
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
STK Classes - See the HTML documentation in the html directory for complete information.
|
||||
|
||||
@@ -77,7 +77,7 @@ Sources: Envelope.cpp Linearly Goes to Target by Rate
|
||||
TcpWvIn.cpp Audio Streaming (socket server) Input Class (subclass of WvIn)
|
||||
|
||||
Sinks: WvOut.cpp Output Master Class for RAW, WAV, SND (AU), AIFF, MAT-file files
|
||||
RtWvOut.cpp Realtime Output Class (subclass of WvOut)
|
||||
RtWvOut.cpp Realtime Audio Output Class (subclass of WvOut)
|
||||
TcpWvOut.cpp Audio Streaming (socket client) Output Class (subclass of WvOut)
|
||||
|
||||
Duplex: RtDuplex.cpp Synchronous Realtime Audio Input/Output Class
|
||||
@@ -98,14 +98,14 @@ Non-Linear: JetTabl.cpp Cubic Jet Non-Linearity
|
||||
BowTabl.cpp x^(-3) Bow Non-Linearity
|
||||
ReedTabl.cpp One Breakpoint Saturating Reed Non-Linearity
|
||||
|
||||
Derived: Modulate.cpp Periodic and Random Vibrato: RawWvIn, SubNoise, OnePole
|
||||
Derived: Modulate.cpp Periodic and Random Vibrato: WvIn, SubNoise, OnePole
|
||||
SingWave.cpp Looping wave table with randomness: Modulate, WaveLoop, Envelope
|
||||
|
||||
|
||||
********** INSTRUMENTS AND ALGORITHMS **************
|
||||
|
||||
Each Class will be listed either with all the unit generators it uses,
|
||||
or the <<Algorithm>> of which it is a flavor. All inherit from Instrmnt,
|
||||
Each class is listed either with some of the unit generators it uses,
|
||||
or in terms of the algorithm it implements. All inherit from Instrmnt,
|
||||
which inherits from Stk.
|
||||
|
||||
Simple.cpp Simple Instrument Pulse oscillator + resonant filtered noise
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
Please read the file README and INSTALL for more general STK information.
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
Please read the file README and INSTALL for more general STK information.
|
||||
|
||||
Realtime support for Macintosh OS X uses the CoreAudio HAL API and is specified during compilation using the __MACOSX_CORE__ preprocessor definition.
|
||||
|
||||
It is necessary to download the OS X developer kit in order to compile STK. STK was successfully tested on OS X versions 10.1 and 10.2.
|
||||
It is necessary to download the OS X developer kit in order to compile STK. STK was successfully tested on OS X version 10.2.
|
||||
|
||||
The internal Macintosh audio hardware typically supports a sample rate of 44100 Hz only. Therefore, it is necessary to either specify this rate as a command-line option to the STK example programs or to change the default sample rate inside the Stk.h file before compilation. In addition, the RT_BUFFER_SIZE, specified in Stk.h, could be increased (to a higher power of two) for more robust performance.
|
||||
|
||||
@@ -15,15 +15,8 @@ There is a potential conflict between the STK Delay class and a Delay() function
|
||||
|
||||
Tcl/Tk on OS X:
|
||||
|
||||
The tcl/tk interpreter does not ship by default with OS X, but must be downloaded from the internet. Binary distributions exist but it is instead recommended that you download recent tcl and tk source distributions (http://dev.scriptics.com/software/tcltk/downloadnow84.tml) and compile them as follows:
|
||||
|
||||
make -C tcl/macosx deploy
|
||||
make -C tk/macosx deploy
|
||||
sudo make -C tcl/macosx install-deploy
|
||||
sudo make -C tk/macosx install-deploy
|
||||
|
||||
(Note: the tcl and tk directories specified in the above lines will more likely be appended with version numbers) The default installation will place a link to the wish interpretor at /usr/bin/wish. The latest 8.4.1 release of tcl/tk has been tested on a 10.2 system and found to work correctly. In particular, redirection of a tcl/tk script to the interpreter (e.g., wish < test.tcl) works normally (which is not the case with binary distributions tested thus far).
|
||||
The tcl/tk interpreter does not ship by default with OS X, but must be downloaded from the internet. The latest Tcl/Tk Aqua distribution (http://www.apple.com/downloads/macosx/unix_open_source/tcltk.html) has been successfully tested on a 10.2 system. The default installation will place a link to the wish interpretor at /usr/bin/wish.
|
||||
|
||||
Initial tests have shown somewhat poor response between changes made in the tcl/tk script and the resulting audio updates.
|
||||
|
||||
Also, it is not recommended to connect by socket from a tcl/tk script to an STK program because the tcl/tk interpreter does not appear to properly close the socket connection, leaving the STK program in a "hung" state.
|
||||
It is possible to connect a tcl/tk interface to an STK program via a socket connection. However, the tcl/tk interpreter does not appear to properly close the socket connection during disconnection. It is therefore necessary to type "Exit" in the STK program terminal window to properly exit the STK program.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
Please read the file README and INSTALL for more general STK information.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
Please read the file README and INSTALL for more general STK information.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
Please read the file README for more general STK information.
|
||||
|
||||
|
||||
@@ -1,6 +1,23 @@
|
||||
The Synthesis ToolKit in C++ (STK)
|
||||
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2002.
|
||||
By Perry R. Cook and Gary P. Scavone, 1995-2004.
|
||||
|
||||
v4.1.3: (22 March 2004)
|
||||
- bug fix in RtAudio for Windows DirectSound output only support
|
||||
|
||||
v4.1.2: (15 March 2004)
|
||||
- added Linux JACK support to RtAudio
|
||||
- added optional doNormalize argument to WvIn to allow specification of data normalization or not
|
||||
- added volume control to demo program and various tcl scripts
|
||||
- added support for dynamic rawwavePath() setting
|
||||
- WaveLoop bug fix
|
||||
- fixed bug in ADSR::setReleaseTime() method
|
||||
- fixed missing initialization of apInput in non-default constructor of DelayA class
|
||||
- added time seeding of random number generator to Noise constructor
|
||||
- update to the contentsAt() method of Delay class
|
||||
- WAV file fixes (8-bit) in WvIn and WvOut classes
|
||||
- configure changes
|
||||
- updated <iostream> include statements and appended "std::" as necessary throughout for compatibility with gcc 3
|
||||
|
||||
v4.1.1: (24 October 2002)
|
||||
- bug fix in RtAudio for Macintosh OS X and Windows ASIO duplex operation
|
||||
@@ -122,4 +139,4 @@ v1.0:
|
||||
|
||||
|
||||
v0.8:
|
||||
- One of (if not THE) original distributions for SGI, NeXTStep, and basic Win support. I think this came out in 1996.
|
||||
- One of (if not THE) original distributions for SGI, NeXTStep, and basic Win support. I think this came out in 1996.
|
||||
|
||||
@@ -1,44 +1,56 @@
|
||||
# Doxyfile 1.2.6
|
||||
# Doxyfile 1.3.6
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# General configuration options
|
||||
# Project related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
PROJECT_NAME = STK
|
||||
PROJECT_NUMBER =
|
||||
OUTPUT_DIRECTORY = .
|
||||
OUTPUT_LANGUAGE = English
|
||||
USE_WINDOWS_ENCODING = NO
|
||||
BRIEF_MEMBER_DESC = YES
|
||||
REPEAT_BRIEF = YES
|
||||
ABBREVIATE_BRIEF =
|
||||
ALWAYS_DETAILED_SEC = NO
|
||||
INLINE_INHERITED_MEMB = NO
|
||||
FULL_PATH_NAMES = NO
|
||||
STRIP_FROM_PATH =
|
||||
SHORT_NAMES = NO
|
||||
JAVADOC_AUTOBRIEF = NO
|
||||
MULTILINE_CPP_IS_BRIEF = NO
|
||||
DETAILS_AT_TOP = NO
|
||||
INHERIT_DOCS = YES
|
||||
DISTRIBUTE_GROUP_DOC = NO
|
||||
TAB_SIZE = 8
|
||||
ALIASES =
|
||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
||||
OPTIMIZE_OUTPUT_JAVA = NO
|
||||
SUBGROUPING = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Build related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
EXTRACT_ALL = NO
|
||||
EXTRACT_PRIVATE = NO
|
||||
EXTRACT_STATIC = YES
|
||||
EXTRACT_LOCAL_CLASSES = YES
|
||||
HIDE_UNDOC_MEMBERS = YES
|
||||
HIDE_UNDOC_CLASSES = YES
|
||||
BRIEF_MEMBER_DESC = YES
|
||||
REPEAT_BRIEF = YES
|
||||
ALWAYS_DETAILED_SEC = NO
|
||||
FULL_PATH_NAMES = NO
|
||||
STRIP_FROM_PATH =
|
||||
HIDE_FRIEND_COMPOUNDS = NO
|
||||
HIDE_IN_BODY_DOCS = NO
|
||||
INTERNAL_DOCS = NO
|
||||
CLASS_DIAGRAMS = YES
|
||||
SOURCE_BROWSER = NO
|
||||
INLINE_SOURCES = NO
|
||||
STRIP_CODE_COMMENTS = YES
|
||||
CASE_SENSE_NAMES = YES
|
||||
HIDE_SCOPE_NAMES = NO
|
||||
VERBATIM_HEADERS = YES
|
||||
SHOW_INCLUDE_FILES = YES
|
||||
JAVADOC_AUTOBRIEF = NO
|
||||
INHERIT_DOCS = YES
|
||||
INLINE_INFO = YES
|
||||
SORT_MEMBER_DOCS = NO
|
||||
DISTRIBUTE_GROUP_DOC = NO
|
||||
TAB_SIZE = 8
|
||||
ENABLED_SECTIONS =
|
||||
SORT_BRIEF_DOCS = NO
|
||||
SORT_BY_SCOPE_NAME = NO
|
||||
GENERATE_TODOLIST = YES
|
||||
GENERATE_TESTLIST = YES
|
||||
GENERATE_BUGLIST = YES
|
||||
ALIASES =
|
||||
GENERATE_DEPRECATEDLIST= YES
|
||||
ENABLED_SECTIONS =
|
||||
MAX_INITIALIZER_LINES = 30
|
||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
||||
SHOW_USED_FILES = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to warning and progress messages
|
||||
@@ -46,22 +58,37 @@ SHOW_USED_FILES = YES
|
||||
QUIET = NO
|
||||
WARNINGS = YES
|
||||
WARN_IF_UNDOCUMENTED = YES
|
||||
WARN_IF_DOC_ERROR = YES
|
||||
WARN_FORMAT = "$file:$line: $text"
|
||||
WARN_LOGFILE =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the input files
|
||||
#---------------------------------------------------------------------------
|
||||
INPUT = . ../../include
|
||||
FILE_PATTERNS = *.txt *.h
|
||||
INPUT = . \
|
||||
../../include
|
||||
FILE_PATTERNS = *.txt \
|
||||
*.h \
|
||||
*.cpp
|
||||
RECURSIVE = YES
|
||||
EXCLUDE =
|
||||
EXCLUDE_PATTERNS =
|
||||
EXCLUDE = ../../src/asio
|
||||
EXCLUDE_SYMLINKS = NO
|
||||
EXCLUDE_PATTERNS =
|
||||
EXAMPLE_PATH =
|
||||
EXAMPLE_PATTERNS =
|
||||
EXAMPLE_RECURSIVE = NO
|
||||
IMAGE_PATH =
|
||||
INPUT_FILTER =
|
||||
FILTER_SOURCE_FILES = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to source browsing
|
||||
#---------------------------------------------------------------------------
|
||||
SOURCE_BROWSER = YES
|
||||
INLINE_SOURCES = NO
|
||||
STRIP_CODE_COMMENTS = YES
|
||||
REFERENCED_BY_RELATION = YES
|
||||
REFERENCES_RELATION = YES
|
||||
VERBATIM_HEADERS = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the alphabetical class index
|
||||
#---------------------------------------------------------------------------
|
||||
ALPHABETICAL_INDEX = NO
|
||||
@@ -72,11 +99,14 @@ IGNORE_PREFIX =
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_HTML = YES
|
||||
HTML_OUTPUT = ../html
|
||||
HTML_FILE_EXTENSION = .html
|
||||
HTML_HEADER = header.html
|
||||
HTML_FOOTER = footer.html
|
||||
HTML_STYLESHEET =
|
||||
HTML_ALIGN_MEMBERS = YES
|
||||
GENERATE_HTMLHELP = NO
|
||||
CHM_FILE =
|
||||
HHC_LOCATION =
|
||||
GENERATE_CHI = NO
|
||||
BINARY_TOC = NO
|
||||
TOC_EXPAND = NO
|
||||
@@ -89,6 +119,8 @@ TREEVIEW_WIDTH = 250
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_LATEX = YES
|
||||
LATEX_OUTPUT = latex
|
||||
LATEX_CMD_NAME = latex
|
||||
MAKEINDEX_CMD_NAME = makeindex
|
||||
COMPACT_LATEX = NO
|
||||
PAPER_TYPE = letter
|
||||
EXTRA_PACKAGES =
|
||||
@@ -96,6 +128,7 @@ LATEX_HEADER = header.tex
|
||||
PDF_HYPERLINKS = YES
|
||||
USE_PDFLATEX = YES
|
||||
LATEX_BATCHMODE = NO
|
||||
LATEX_HIDE_INDICES = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the RTF output
|
||||
#---------------------------------------------------------------------------
|
||||
@@ -104,12 +137,33 @@ RTF_OUTPUT = rtf
|
||||
COMPACT_RTF = NO
|
||||
RTF_HYPERLINKS = NO
|
||||
RTF_STYLESHEET_FILE =
|
||||
RTF_EXTENSIONS_FILE =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the man page output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_MAN = NO
|
||||
MAN_OUTPUT = man
|
||||
MAN_EXTENSION = .3
|
||||
MAN_LINKS = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the XML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_XML = NO
|
||||
XML_OUTPUT = xml
|
||||
XML_SCHEMA =
|
||||
XML_DTD =
|
||||
XML_PROGRAMLISTING = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options for the AutoGen Definitions output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_AUTOGEN_DEF = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the Perl module output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_PERLMOD = NO
|
||||
PERLMOD_LATEX = NO
|
||||
PERLMOD_PRETTY = YES
|
||||
PERLMOD_MAKEVAR_PREFIX =
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the preprocessor
|
||||
#---------------------------------------------------------------------------
|
||||
@@ -121,35 +175,38 @@ INCLUDE_PATH =
|
||||
INCLUDE_FILE_PATTERNS =
|
||||
PREDEFINED =
|
||||
EXPAND_AS_DEFINED =
|
||||
SKIP_FUNCTION_MACROS = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration::addtions related to external references
|
||||
# Configuration::additions related to external references
|
||||
#---------------------------------------------------------------------------
|
||||
TAGFILES =
|
||||
TAGFILES =
|
||||
GENERATE_TAGFILE =
|
||||
ALLEXTERNALS = NO
|
||||
EXTERNAL_GROUPS = YES
|
||||
PERL_PATH = /usr/bin/perl
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the dot tool
|
||||
#---------------------------------------------------------------------------
|
||||
CLASS_DIAGRAMS = YES
|
||||
HIDE_UNDOC_RELATIONS = YES
|
||||
HAVE_DOT = NO
|
||||
CLASS_GRAPH = YES
|
||||
COLLABORATION_GRAPH = YES
|
||||
UML_LOOK = NO
|
||||
TEMPLATE_RELATIONS = NO
|
||||
INCLUDE_GRAPH = YES
|
||||
INCLUDED_BY_GRAPH = YES
|
||||
CALL_GRAPH = NO
|
||||
GRAPHICAL_HIERARCHY = YES
|
||||
DOT_IMAGE_FORMAT = png
|
||||
DOT_PATH =
|
||||
DOTFILE_DIRS =
|
||||
MAX_DOT_GRAPH_WIDTH = 1024
|
||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
||||
MAX_DOT_GRAPH_DEPTH = 0
|
||||
GENERATE_LEGEND = YES
|
||||
DOT_CLEANUP = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration::addtions related to the search engine
|
||||
# Configuration::additions related to the search engine
|
||||
#---------------------------------------------------------------------------
|
||||
SEARCHENGINE = NO
|
||||
CGI_NAME = search.cgi
|
||||
CGI_URL =
|
||||
DOC_URL =
|
||||
DOC_ABSPATH =
|
||||
BIN_ABSPATH = /usr/local/bin/
|
||||
EXT_DOC_PATHS =
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ g++ -Wall -D__LITTLE_ENDIAN__ -o sineosc Stk.cpp WvIn.cpp WaveLoop.cpp WvOut.cpp
|
||||
|
||||
Note that the <TT>sineosc.cpp</TT> example does not make use of realtime audio or MIDI input/output classes. For programs using any of the STK realtime classes mentioned above, it is necessary to specify an audio/MIDI API preprocessor definition and link with the appropriate libraries or frameworks.
|
||||
|
||||
When working with a number of different projects that make use of ToolKit classes, the above approach can become cumbersome (especially when trying to synchronize with new STK releases). The example STK projects (e.g., demo, effects, ...) contain <TT>Makefiles</TT> (built by the configure script) which compile project-specific class objects from the distribution <TT>src</TT> and <TT>include</TT> directories. This approach makes it relatively easy when upgrading to a new STK release (by making path substitutions in the <TT>Makefile</TT> or by moving the projects to a similar relative path within the new STK source tree). A <TT>Makefile</TT> of this sort is provided in the <TT>projects/examples</TT> directory for compiling all the tutorial programs, as well as other example programs. To compile the <TT>sineosc.cpp</TT> program, for example, one need only type <TT>make sineosc</TT> from within the <TT>projects/examples</TT> directory.
|
||||
When working with a number of different projects that make use of ToolKit classes, the above approach can become cumbersome (especially when trying to synchronize with new STK releases). Most of the STK projects (e.g., demo, effects, ...) contain <TT>Makefiles</TT> (built by the configure script) which compile project-specific class objects from the distribution <TT>src</TT> and <TT>include</TT> directories. This approach makes it relatively easy when upgrading to a new STK release (by making path substitutions in the <TT>Makefile</TT> or by moving the projects to a similar relative path within the new STK source tree). A <TT>Makefile</TT> is provided in the <TT>projects/examples</TT> directory for compiling all the tutorial programs, as well as other example programs. To compile the <TT>sineosc.cpp</TT> program, for example, one need only type <TT>make sineosc</TT> from within the <TT>projects/examples</TT> directory. Note that this particular <TT>Makefile</TT> depends on a static library, as described in the next section.
|
||||
|
||||
|
||||
\subsection library Library Use:
|
||||
|
||||
@@ -1,26 +1,47 @@
|
||||
/*! \page download Download and Release Notes
|
||||
|
||||
<B>Version 4.1.1, 24 October 2002</B><P>
|
||||
<B>Version 4.1.3, 22 March 2004</B><P>
|
||||
<UL>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/software/stk/release/stk-4.1.1.tar.gz">Source distribution</A> (1.2 MB tar/gzipped)</LI>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/software/stk/release/stk-4.1.1.binaries.tar.gz">Source with precompiled Windows binaries</A> (2.0 MB tar/gzipped)</LI>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/software/stk/release/stk-4.1.1-1.i386.rpm">Linux RPM</A> (1.2 MB) <B>Note: Library and Makefiles built for ALSA, though the rpm can be rebuilt to use OSS</B></LI>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/software/stk/release/stkmanual.pdf">STK Manual (PDF)</A> (1.62 MB) <B>Note: HTML version already in /doc/html/ directory of distribution</B></LI>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/software/stk/release/stk-4.1.3.tar.gz">Source distribution</A></LI>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/software/stk/release/stk-4.1.3.binaries.tar.gz">Source with precompiled Windows binaries</A></LI>
|
||||
<LI><A HREF="http://www-ccrma.stanford.edu/planetccrma/software/">Linux RPMs from Planet CCRMA</A></LI>
|
||||
</UL>
|
||||
|
||||
|
||||
\section notes Release Notes:
|
||||
|
||||
\subsection v4dot1dot3 Version 4.1.1
|
||||
\subsection v4dot1dot3 Version 4.1.3
|
||||
|
||||
<ul>
|
||||
<li>Bug fix in RtAudio for Windows DirectSound output only support</li>
|
||||
</ul>
|
||||
|
||||
\subsection v4dot1dot2 Version 4.1.2
|
||||
|
||||
<UL>
|
||||
<LI>Bug fix in RtAudio for Macintosh OS X and Windows ASIO duplex operation.</LI>
|
||||
<LI>Windows ASIO fix in Stk.h.</LI>
|
||||
<LI>Documentation updates.</LI>
|
||||
<LI>Expanded tutorial.</LI>
|
||||
<LI>Fixed RtDuplex omission in src Makefile.</LI>
|
||||
<li>Added Linux JACK support to RtAudio.</li>
|
||||
<li>Added optional doNormalize argument to WvIn to allow specification of data normalization or not.</li>
|
||||
<li>Added volume control to demo program and various tcl scripts.</li>
|
||||
<li>Added support for dynamic rawwavePath() setting.</li>
|
||||
<li>WaveLoop bug fix.</li>
|
||||
<li>Fixed bug in ADSR::setReleaseTime() method.</li>
|
||||
<li>Fixed missing initialization of apInput in non-default constructor of DelayA class.</li>
|
||||
<li>Added time seeding of random number generator to Noise constructor.</li>
|
||||
<li>Update to the contentsAt() method of Delay class.</li>
|
||||
<li>WAV file fixes (8-bit) in WvIn and WvOut classes.</li>
|
||||
<li>Configure script changes.</li>
|
||||
<li>Updated <iostream> include statements and appended "std::" as necessary throughout for compatibility with gcc 3.</li>
|
||||
</UL>
|
||||
|
||||
\subsection v4dot1dot1 Version 4.1.1
|
||||
<ul>
|
||||
<li>Bug fix in RtAudio for Macintosh OS X and Windows ASIO duplex operation.</li>
|
||||
<li>Windows ASIO fix in Stk.h.</li>
|
||||
<li>Documentation updates.</li>
|
||||
<li>Expanded tutorial.</li>
|
||||
<li>Fixed RtDuplex omission in src Makefile.</li>
|
||||
</ul>
|
||||
|
||||
\subsection v4dot1 Version 4.1
|
||||
|
||||
<UL>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
</HTML>
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<HR>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
<BODY BGCOLOR="white">
|
||||
|
||||
<center><h3>Perry R. Cook & Gary P. Scavone</h3></center>
|
||||
|
||||
The <B>Synthesis ToolKit in C++ (STK)</B> is a set of open source audio signal processing and algorithmic synthesis classes written in C++. STK was designed to facilitate rapid development of music synthesis and audio processing software, with an emphasis on cross-platform functionality, realtime control, ease of use, and educational example code. The Synthesis ToolKit is extremely portable (it's mostly platform-independent C and C++ code), and it's completely user-extensible (all source included, no unusual libraries, and no hidden drivers). We like to think that this increases the chances that our programs will still work in another 5-10 years. In fact, the ToolKit has been working continuously for nearly 8 years now. STK currently runs with "realtime" support (audio and MIDI) on SGI (Irix), Linux, Macintosh OS X, and Windows computer platforms. Generic, non-realtime support has been tested under NeXTStep, Sun, and other platforms and should work with any standard C++ compiler.
|
||||
|
||||
- \ref information
|
||||
@@ -18,4 +20,5 @@ The <B>Synthesis ToolKit in C++ (STK)</B> is a set of open source audio signal p
|
||||
<P>
|
||||
<FONT SIZE=-1>
|
||||
STK is a registered trademark of Analytical Graphics, Inc., 40 General Warren Blvd., Malvern, PA 19355, the manufacturer of the Satellite Tool Kit<69> (STK<54>) family of satellite simulation software. Although the term "STK" is used in this website, the content of this site is in no way related to Analytical Graphics, Inc, or its registered STK mark. Nothing in this website should be construed to mean that a business relationship, either past or present, exists between Analytical Graphics, Inc. and the owners of this particular website.
|
||||
</FONT>
|
||||
</FONT>
|
||||
|
||||
|
||||
@@ -4,8 +4,16 @@
|
||||
|
||||
- <A HREF="http://kern.humdrum.net/">Kern Scores: A Library of Electronic Musical Scores</A> (with automatic conversion to SKINI format)
|
||||
|
||||
- <A HREF="http://stk.sapp.org/midi2skini">MIDI to SKINI file converter</A> by Craig Sapp
|
||||
|
||||
- <A HREF="http://stk.sapp.org/kern2skini">Kern Score to SKINI file converter</A> by Craig Sapp
|
||||
|
||||
- <A HREF="http://www.artassault.org/software/software.html">Calico - A Polyphonic Score File Parser for STK</A> by Greg Kellum
|
||||
|
||||
- <A HREF="http://www.music.columbia.edu/PeRColate/">PeRColate: A Port of STK for Max/MSP</A>
|
||||
|
||||
- <A HREF="http://mathmorphs.swiki.net/32/">A Partial Port of STK to Squeak</A>
|
||||
|
||||
*/
|
||||
- <a href="http://airy.andre.online.fr/AU/index.html">AUStk: a demo of integration of STK instruments into an AudioUnit</a> by Airy Andre
|
||||
|
||||
*/
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
An <A HREF="mailto:stk-request@ccrma.stanford.edu">STK</A> mailing list has been set up to facilitate communication among STK users. Subscribing to this list is your best way of keeping on top of new releases, bug fixes, and various user developments.
|
||||
<P>
|
||||
For answers to frequently asked questions, check the list <A HREF="http://ccrma-mail.stanford.edu/pipermail/stk/">archives</A>.
|
||||
<P>
|
||||
To join send a message to <A HREF="mailto:stk-request@ccrma.stanford.edu"><stk-request@ccrma.stanford.edu></A>
|
||||
with the contents: <TT>subscribe</TT>
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ int main()
|
||||
}
|
||||
\endcode
|
||||
|
||||
Assuming the program is compiled as <TT>threebees</TT>, the three-voice SKINI scorefile <A HREF="tutorial/bachfugue.ski"><TT>bachfugue.ski</TT></A> could be redirected to the program as:
|
||||
Assuming the program is compiled as <TT>threebees</TT>, the three-voice SKINI scorefile <A HREF="tutorial/bachfugue.ski"><TT>bachfugue.ski</TT></A> (also located in the <tt>scores</tt> directory with the examples) could be redirected to the program as:
|
||||
|
||||
\code
|
||||
threebees < bachfugue.ski
|
||||
|
||||
@@ -15,17 +15,10 @@
|
||||
<B>Macintosh OS X (specific):</B>
|
||||
<UL>
|
||||
<LI>A C++ compiler does not ship by default with OS X. It is necessary to download the Developer Kit from the Apple WWW site in order to compile STK.</LI>
|
||||
<LI>The internal Macintosh audio hardware typically supports a sample rate of 44100 Hz only. Therefore, it is necessary to either specify this rate as a command-line option to the STK example programs or to change the default sample rate inside the Stk.h file before compilation. In addition, the RT_BUFFER_SIZE, specified in Stk.h, could be increased (to a higher power of two) for more robust performance.</LI>
|
||||
<LI>The tcl/tk interpreter does not ship by default with OS X, but must be downloaded from the internet. Binary distributions exist but it is instead recommended that you download recent tcl and tk source distributions (http://dev.scriptics.com/software/tcltk/downloadnow84.tml) and compile them as follows:
|
||||
<LI><B>IMPORTANT:</B>The internal Macintosh audio hardware typically supports a sample rate of 44100 Hz only. Therefore, it is necessary to either specify this rate as a command-line option to the STK example programs or to change the default sample rate inside the Stk.h file before compilation. In addition, the RT_BUFFER_SIZE, specified in Stk.h, could be increased (to a higher power of two) for more robust performance.</LI>
|
||||
<LI>The tcl/tk interpreter does not ship by default with OS X, but must be downloaded from the internet. The latest Tcl/Tk Aqua distribution (http://www.apple.com/downloads/macosx/unix_open_source/tcltk.html) has been successfully tested on a 10.2 system. The default installation will place a link to the wish interpretor at /usr/bin/wish.
|
||||
|
||||
make -C tcl/macosx deploy<BR>
|
||||
make -C tk/macosx deploy<BR>
|
||||
sudo make -C tcl/macosx install-deploy<BR>
|
||||
sudo make -C tk/macosx install-deploy<BR>
|
||||
|
||||
(Note: the tcl and tk directories specified in the above lines will more likely be appended with version numbers) The default installation will place a link to the wish interpretor at /usr/bin/wish. The latest 8.4.1 release of tcl/tk has been tested on a 10.2 system and found to work correctly. In particular, redirection of a tcl/tk script to the interpreter (e.g., wish < test.tcl) works normally (which is not the case with binary distributions tested thus far).
|
||||
|
||||
Initial tests have shown somewhat poor response between changes made in the tcl/tk script and the resulting audio updates. Also, it is not recommended to connect by socket from a tcl/tk script to an STK program because the tcl/tk interpreter does not appear to properly close the socket connection, leaving the STK program in a "hung" state.</LI>
|
||||
Initial tests have shown somewhat poor response between changes made in the tcl/tk script and the resulting audio updates. It is possible to connect a tcl/tk interface to an STK program via a socket connection. However, the tcl/tk interpreter does not appear to properly close the socket connection during disconnection. It is therefore necessary to type "Exit" in the STK program terminal window to properly exit the STK program.</LI>
|
||||
|
||||
</UL>
|
||||
|
||||
|
||||
@@ -5,71 +5,71 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>ADSR.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00016 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>ADSR.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00016 <span class="comment">/***************************************************/</span>
|
||||
00017
|
||||
00018 <font class="preprocessor">#if !defined(__ADSR_H)</font>
|
||||
00019 <font class="preprocessor"></font><font class="preprocessor">#define __ADSR_H</font>
|
||||
00020 <font class="preprocessor"></font>
|
||||
00021 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00018 <span class="preprocessor">#if !defined(__ADSR_H)</span>
|
||||
00019 <span class="preprocessor"></span><span class="preprocessor">#define __ADSR_H</span>
|
||||
00020 <span class="preprocessor"></span>
|
||||
00021 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00022
|
||||
00023 <font class="keyword">class </font><a class="code" href="classADSR.html">ADSR</a> : <font class="keyword">public</font> <a class="code" href="classEnvelope.html">Envelope</a>
|
||||
<a name="l00023"></a><a class="code" href="classADSR.html">00023</a> <span class="keyword">class </span><a class="code" href="classADSR.html">ADSR</a> : <span class="keyword">public</span> <a class="code" href="classEnvelope.html">Envelope</a>
|
||||
00024 {
|
||||
00025 <font class="keyword">public</font>:
|
||||
00025 <span class="keyword">public</span>:
|
||||
00026
|
||||
00028 <font class="keyword">enum</font> { ATTACK, DECAY, SUSTAIN, RELEASE, DONE };
|
||||
00028 <span class="keyword">enum</span> { ATTACK, DECAY, SUSTAIN, RELEASE, DONE };
|
||||
00029
|
||||
00031 <a class="code" href="classADSR.html#a0">ADSR</a>(<font class="keywordtype">void</font>);
|
||||
00031 <a class="code" href="classADSR.html#a0">ADSR</a>(<span class="keywordtype">void</span>);
|
||||
00032
|
||||
00034 <a class="code" href="classADSR.html#a1">~ADSR</a>(<font class="keywordtype">void</font>);
|
||||
00034 <a class="code" href="classADSR.html#a1">~ADSR</a>(<span class="keywordtype">void</span>);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a2">keyOn</a>(<font class="keywordtype">void</font>);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a2">keyOn</a>(<span class="keywordtype">void</span>);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a3">keyOff</a>(<font class="keywordtype">void</font>);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a3">keyOff</a>(<span class="keywordtype">void</span>);
|
||||
00041
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a4">setAttackRate</a>(MY_FLOAT aRate);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a4">setAttackRate</a>(MY_FLOAT aRate);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a5">setDecayRate</a>(MY_FLOAT aRate);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a5">setDecayRate</a>(MY_FLOAT aRate);
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a6">setSustainLevel</a>(MY_FLOAT aLevel);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a6">setSustainLevel</a>(MY_FLOAT aLevel);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a7">setReleaseRate</a>(MY_FLOAT aRate);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a7">setReleaseRate</a>(MY_FLOAT aRate);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a8">setAttackTime</a>(MY_FLOAT aTime);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a8">setAttackTime</a>(MY_FLOAT aTime);
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a9">setDecayTime</a>(MY_FLOAT aTime);
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a9">setDecayTime</a>(MY_FLOAT aTime);
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a10">setReleaseTime</a>(MY_FLOAT aTime);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a10">setReleaseTime</a>(MY_FLOAT aTime);
|
||||
00062
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classADSR.html#a11">setAllTimes</a>(MY_FLOAT aTime, MY_FLOAT dTime, MY_FLOAT sLevel, MY_FLOAT rTime);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a11">setAllTimes</a>(MY_FLOAT aTime, MY_FLOAT dTime, MY_FLOAT sLevel, MY_FLOAT rTime);
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a6">setTarget</a>(MY_FLOAT aTarget);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a12">setTarget</a>(MY_FLOAT aTarget);
|
||||
00068
|
||||
00070 <font class="keywordtype">int</font> <a class="code" href="classEnvelope.html#a8">getState</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00070 <span class="keywordtype">int</span> <a class="code" href="classADSR.html#a13">getState</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00071
|
||||
00073 <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a7">setValue</a>(MY_FLOAT aValue);
|
||||
00073 <span class="keywordtype">void</span> <a class="code" href="classADSR.html#a14">setValue</a>(MY_FLOAT aValue);
|
||||
00074
|
||||
00076 MY_FLOAT <a class="code" href="classEnvelope.html#a9">tick</a>(<font class="keywordtype">void</font>);
|
||||
00076 MY_FLOAT <a class="code" href="classADSR.html#a15">tick</a>(<span class="keywordtype">void</span>);
|
||||
00077
|
||||
00079 MY_FLOAT *<a class="code" href="classEnvelope.html#a9">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00079 MY_FLOAT *<a class="code" href="classADSR.html#a15">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00080
|
||||
00081 <font class="keyword">protected</font>:
|
||||
00081 <span class="keyword">protected</span>:
|
||||
00082 MY_FLOAT attackRate;
|
||||
00083 MY_FLOAT decayRate;
|
||||
00084 MY_FLOAT sustainLevel;
|
||||
00085 MY_FLOAT releaseRate;
|
||||
00086 };
|
||||
00087
|
||||
00088 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00088 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,59 +5,59 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>BandedWG.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00030 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>BandedWG.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00030 <span class="comment">/***************************************************/</span>
|
||||
00031
|
||||
00032 <font class="preprocessor">#if !defined(__BANDEDWG_H)</font>
|
||||
00033 <font class="preprocessor"></font><font class="preprocessor">#define __BANDEDWG_H</font>
|
||||
00034 <font class="preprocessor"></font>
|
||||
00035 <font class="preprocessor">#define MAX_BANDED_MODES 20</font>
|
||||
00036 <font class="preprocessor"></font>
|
||||
00037 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00038 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00039 <font class="preprocessor">#include "BowTabl.h"</font>
|
||||
00040 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00041 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00032 <span class="preprocessor">#if !defined(__BANDEDWG_H)</span>
|
||||
00033 <span class="preprocessor"></span><span class="preprocessor">#define __BANDEDWG_H</span>
|
||||
00034 <span class="preprocessor"></span>
|
||||
00035 <span class="preprocessor">#define MAX_BANDED_MODES 20</span>
|
||||
00036 <span class="preprocessor"></span>
|
||||
00037 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00038 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00039 <span class="preprocessor">#include "BowTabl.h"</span>
|
||||
00040 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00041 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00042
|
||||
00043 <font class="keyword">class </font><a class="code" href="classBandedWG.html">BandedWG</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00043"></a><a class="code" href="classBandedWG.html">00043</a> <span class="keyword">class </span><a class="code" href="classBandedWG.html">BandedWG</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00044 {
|
||||
00045 <font class="keyword">public</font>:
|
||||
00045 <span class="keyword">public</span>:
|
||||
00047 <a class="code" href="classBandedWG.html#a0">BandedWG</a>();
|
||||
00048
|
||||
00050 <a class="code" href="classBandedWG.html#a1">~BandedWG</a>();
|
||||
00051
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classBandedWG.html#a2">clear</a>();
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a2">clear</a>();
|
||||
00054
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classBandedWG.html#a3">setStrikePosition</a>(MY_FLOAT position);
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a3">setStrikePosition</a>(MY_FLOAT position);
|
||||
00057
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classBandedWG.html#a4">setPreset</a>(<font class="keywordtype">int</font> preset);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a4">setPreset</a>(<span class="keywordtype">int</span> preset);
|
||||
00060
|
||||
00062 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00062 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a5">setFrequency</a>(MY_FLOAT frequency);
|
||||
00063
|
||||
00065 <font class="keywordtype">void</font> <a class="code" href="classBandedWG.html#a6">startBowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00065 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a6">startBowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00066
|
||||
00068 <font class="keywordtype">void</font> <a class="code" href="classBandedWG.html#a7">stopBowing</a>(MY_FLOAT rate);
|
||||
00068 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a7">stopBowing</a>(MY_FLOAT rate);
|
||||
00069
|
||||
00071 <font class="keywordtype">void</font> <a class="code" href="classBandedWG.html#a8">pluck</a>(MY_FLOAT amp);
|
||||
00071 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a8">pluck</a>(MY_FLOAT amp);
|
||||
00072
|
||||
00074 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00074 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a9">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00075
|
||||
00077 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00077 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a10">noteOff</a>(MY_FLOAT amplitude);
|
||||
00078
|
||||
00080 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00080 MY_FLOAT <a class="code" href="classBandedWG.html#a11">tick</a>();
|
||||
00081
|
||||
00083 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00083 <span class="keywordtype">void</span> <a class="code" href="classBandedWG.html#a12">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00084
|
||||
00085 <font class="keyword">protected</font>:
|
||||
00085 <span class="keyword">protected</span>:
|
||||
00086
|
||||
00087 <font class="keywordtype">bool</font> doPluck;
|
||||
00088 <font class="keywordtype">bool</font> trackVelocity;
|
||||
00089 <font class="keywordtype">int</font> nModes;
|
||||
00090 <font class="keywordtype">int</font> presetModes;
|
||||
00087 <span class="keywordtype">bool</span> doPluck;
|
||||
00088 <span class="keywordtype">bool</span> trackVelocity;
|
||||
00089 <span class="keywordtype">int</span> nModes;
|
||||
00090 <span class="keywordtype">int</span> presetModes;
|
||||
00091 <a class="code" href="classBowTabl.html">BowTabl</a> *bowTabl;
|
||||
00092 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00093 <a class="code" href="classBiQuad.html">BiQuad</a> *bandpass;
|
||||
@@ -75,16 +75,16 @@
|
||||
00105 MY_FLOAT bowTarget;
|
||||
00106 MY_FLOAT bowPosition;
|
||||
00107 MY_FLOAT strikeAmp;
|
||||
00108 <font class="keywordtype">int</font> strikePosition;
|
||||
00108 <span class="keywordtype">int</span> strikePosition;
|
||||
00109
|
||||
00110 };
|
||||
00111
|
||||
00112 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00112 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,36 +5,36 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>BeeThree.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00033 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>BeeThree.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00033 <span class="comment">/***************************************************/</span>
|
||||
00034
|
||||
00035 <font class="preprocessor">#if !defined(__BEETHREE_H)</font>
|
||||
00036 <font class="preprocessor"></font><font class="preprocessor">#define __BEETHREE_H</font>
|
||||
00037 <font class="preprocessor"></font>
|
||||
00038 <font class="preprocessor">#include "FM.h"</font>
|
||||
00035 <span class="preprocessor">#if !defined(__BEETHREE_H)</span>
|
||||
00036 <span class="preprocessor"></span><span class="preprocessor">#define __BEETHREE_H</span>
|
||||
00037 <span class="preprocessor"></span>
|
||||
00038 <span class="preprocessor">#include "FM.h"</span>
|
||||
00039
|
||||
00040 <font class="keyword">class </font><a class="code" href="classBeeThree.html">BeeThree</a> : <font class="keyword">public</font> <a class="code" href="classFM.html">FM</a>
|
||||
<a name="l00040"></a><a class="code" href="classBeeThree.html">00040</a> <span class="keyword">class </span><a class="code" href="classBeeThree.html">BeeThree</a> : <span class="keyword">public</span> <a class="code" href="classFM.html">FM</a>
|
||||
00041 {
|
||||
00042 <font class="keyword">public</font>:
|
||||
00042 <span class="keyword">public</span>:
|
||||
00044 <a class="code" href="classBeeThree.html#a0">BeeThree</a>();
|
||||
00045
|
||||
00047 <a class="code" href="classBeeThree.html#a1">~BeeThree</a>();
|
||||
00048
|
||||
00050 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classBeeThree.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00051
|
||||
00053 MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>();
|
||||
00053 MY_FLOAT <a class="code" href="classBeeThree.html#a3">tick</a>();
|
||||
00054 };
|
||||
00055
|
||||
00056 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00056 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,65 +5,65 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>BiQuad.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>BiQuad.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__BIQUAD_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __BIQUAD_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__BIQUAD_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __BIQUAD_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classBiQuad.html">BiQuad</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00020"></a><a class="code" href="classBiQuad.html">00020</a> <span class="keyword">class </span><a class="code" href="classBiQuad.html">BiQuad</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00023
|
||||
00025 <a class="code" href="classBiQuad.html#a0">BiQuad</a>();
|
||||
00026
|
||||
00028 <font class="keyword">virtual</font> <a class="code" href="classBiQuad.html#a1">~BiQuad</a>();
|
||||
00028 <span class="keyword">virtual</span> <a class="code" href="classBiQuad.html#a1">~BiQuad</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a2">clear</a>(<span class="keywordtype">void</span>);
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a4">setB1</a>(MY_FLOAT b1);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a4">setB1</a>(MY_FLOAT b1);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a5">setB2</a>(MY_FLOAT b2);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a5">setB2</a>(MY_FLOAT b2);
|
||||
00041
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a6">setA1</a>(MY_FLOAT a1);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a6">setA1</a>(MY_FLOAT a1);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a7">setA2</a>(MY_FLOAT a2);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a7">setA2</a>(MY_FLOAT a2);
|
||||
00047
|
||||
00049
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a8">setResonance</a>(MY_FLOAT frequency, MY_FLOAT radius, <font class="keywordtype">bool</font> normalize = FALSE);
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a8">setResonance</a>(MY_FLOAT frequency, MY_FLOAT radius, <span class="keywordtype">bool</span> normalize = FALSE);
|
||||
00061
|
||||
00063
|
||||
00069 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a9">setNotch</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00069 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a9">setNotch</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00070
|
||||
00072
|
||||
00078 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a10">setEqualGainZeroes</a>();
|
||||
00078 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a10">setEqualGainZeroes</a>();
|
||||
00079
|
||||
00081
|
||||
00085 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00085 <span class="keywordtype">void</span> <a class="code" href="classBiQuad.html#a11">setGain</a>(MY_FLOAT theGain);
|
||||
00086
|
||||
00088 MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00088 MY_FLOAT <a class="code" href="classBiQuad.html#a12">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00089
|
||||
00091 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00091 MY_FLOAT <a class="code" href="classBiQuad.html#a13">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00092
|
||||
00094 MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00094 MY_FLOAT <a class="code" href="classBiQuad.html#a14">tick</a>(MY_FLOAT sample);
|
||||
00095
|
||||
00097 MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00097 MY_FLOAT *<a class="code" href="classBiQuad.html#a14">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00098 };
|
||||
00099
|
||||
00100 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00100 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,48 +5,48 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>BlowBotl.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00017 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>BlowBotl.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00017 <span class="comment">/***************************************************/</span>
|
||||
00018
|
||||
00019 <font class="preprocessor">#if !defined(__BOTTLE_H)</font>
|
||||
00020 <font class="preprocessor"></font><font class="preprocessor">#define __BOTTLE_H</font>
|
||||
00021 <font class="preprocessor"></font>
|
||||
00022 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00023 <font class="preprocessor">#include "JetTabl.h"</font>
|
||||
00024 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00025 <font class="preprocessor">#include "PoleZero.h"</font>
|
||||
00026 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00027 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00028 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00019 <span class="preprocessor">#if !defined(__BOTTLE_H)</span>
|
||||
00020 <span class="preprocessor"></span><span class="preprocessor">#define __BOTTLE_H</span>
|
||||
00021 <span class="preprocessor"></span>
|
||||
00022 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00023 <span class="preprocessor">#include "JetTabl.h"</span>
|
||||
00024 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00025 <span class="preprocessor">#include "PoleZero.h"</span>
|
||||
00026 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00027 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00028 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00029
|
||||
00030 <font class="keyword">class </font><a class="code" href="classBlowBotl.html">BlowBotl</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00030"></a><a class="code" href="classBlowBotl.html">00030</a> <span class="keyword">class </span><a class="code" href="classBlowBotl.html">BlowBotl</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00031 {
|
||||
00032 <font class="keyword">public</font>:
|
||||
00032 <span class="keyword">public</span>:
|
||||
00034 <a class="code" href="classBlowBotl.html#a0">BlowBotl</a>();
|
||||
00035
|
||||
00037 <a class="code" href="classBlowBotl.html#a1">~BlowBotl</a>();
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classBlowBotl.html#a2">clear</a>();
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a2">clear</a>();
|
||||
00041
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classBlowBotl.html#a4">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a4">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classBlowBotl.html#a5">stopBlowing</a>(MY_FLOAT rate);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a5">stopBlowing</a>(MY_FLOAT rate);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a6">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a7">noteOff</a>(MY_FLOAT amplitude);
|
||||
00056
|
||||
00058 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00058 MY_FLOAT <a class="code" href="classBlowBotl.html#a8">tick</a>();
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classBlowBotl.html#a9">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00062
|
||||
00063 <font class="keyword">protected</font>:
|
||||
00063 <span class="keyword">protected</span>:
|
||||
00064 <a class="code" href="classJetTabl.html">JetTabl</a> *jetTable;
|
||||
00065 <a class="code" href="classBiQuad.html">BiQuad</a> *resonator;
|
||||
00066 <a class="code" href="classPoleZero.html">PoleZero</a> *dcBlock;
|
||||
@@ -60,12 +60,12 @@
|
||||
00074
|
||||
00075 };
|
||||
00076
|
||||
00077 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00077 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,53 +5,53 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>BlowHole.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00034 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>BlowHole.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00034 <span class="comment">/***************************************************/</span>
|
||||
00035
|
||||
00036 <font class="preprocessor">#if !defined(__BLOWHOLE_H)</font>
|
||||
00037 <font class="preprocessor"></font><font class="preprocessor">#define __BLOWHOLE_H</font>
|
||||
00038 <font class="preprocessor"></font>
|
||||
00039 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00040 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00041 <font class="preprocessor">#include "ReedTabl.h"</font>
|
||||
00042 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00043 <font class="preprocessor">#include "PoleZero.h"</font>
|
||||
00044 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00045 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00046 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00036 <span class="preprocessor">#if !defined(__BLOWHOLE_H)</span>
|
||||
00037 <span class="preprocessor"></span><span class="preprocessor">#define __BLOWHOLE_H</span>
|
||||
00038 <span class="preprocessor"></span>
|
||||
00039 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00040 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00041 <span class="preprocessor">#include "ReedTabl.h"</span>
|
||||
00042 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00043 <span class="preprocessor">#include "PoleZero.h"</span>
|
||||
00044 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00045 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00046 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00047
|
||||
00048 <font class="keyword">class </font><a class="code" href="classBlowHole.html">BlowHole</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00048"></a><a class="code" href="classBlowHole.html">00048</a> <span class="keyword">class </span><a class="code" href="classBlowHole.html">BlowHole</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00049 {
|
||||
00050 <font class="keyword">public</font>:
|
||||
00050 <span class="keyword">public</span>:
|
||||
00052 <a class="code" href="classBlowHole.html#a0">BlowHole</a>(MY_FLOAT lowestFrequency);
|
||||
00053
|
||||
00055 <a class="code" href="classBlowHole.html#a1">~BlowHole</a>();
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classBlowHole.html#a2">clear</a>();
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a2">clear</a>();
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00062
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classBlowHole.html#a4">setTonehole</a>(MY_FLOAT newValue);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a4">setTonehole</a>(MY_FLOAT newValue);
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classBlowHole.html#a5">setVent</a>(MY_FLOAT newValue);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a5">setVent</a>(MY_FLOAT newValue);
|
||||
00068
|
||||
00070 <font class="keywordtype">void</font> <a class="code" href="classBlowHole.html#a6">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00070 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a6">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00071
|
||||
00073 <font class="keywordtype">void</font> <a class="code" href="classBlowHole.html#a7">stopBlowing</a>(MY_FLOAT rate);
|
||||
00073 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a7">stopBlowing</a>(MY_FLOAT rate);
|
||||
00074
|
||||
00076 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00076 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a8">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00077
|
||||
00079 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00079 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a9">noteOff</a>(MY_FLOAT amplitude);
|
||||
00080
|
||||
00082 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00082 MY_FLOAT <a class="code" href="classBlowHole.html#a10">tick</a>();
|
||||
00083
|
||||
00085 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00085 <span class="keywordtype">void</span> <a class="code" href="classBlowHole.html#a11">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00086
|
||||
00087 <font class="keyword">protected</font>:
|
||||
00087 <span class="keyword">protected</span>:
|
||||
00088 <a class="code" href="classDelayL.html">DelayL</a> *delays[3];
|
||||
00089 <a class="code" href="classReedTabl.html">ReedTabl</a> *reedTable;
|
||||
00090 <a class="code" href="classOneZero.html">OneZero</a> *filter;
|
||||
@@ -60,7 +60,7 @@
|
||||
00093 <a class="code" href="classEnvelope.html">Envelope</a> *envelope;
|
||||
00094 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00095 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00096 <font class="keywordtype">long</font> length;
|
||||
00096 <span class="keywordtype">long</span> length;
|
||||
00097 MY_FLOAT scatter;
|
||||
00098 MY_FLOAT th_coeff;
|
||||
00099 MY_FLOAT r_th;
|
||||
@@ -72,12 +72,12 @@
|
||||
00105
|
||||
00106 };
|
||||
00107
|
||||
00108 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00108 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,51 +5,51 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>BowTabl.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00010 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>BowTabl.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00010 <span class="comment">/***************************************************/</span>
|
||||
00011
|
||||
00012 <font class="preprocessor">#if !defined(__BOWTABL_H)</font>
|
||||
00013 <font class="preprocessor"></font><font class="preprocessor">#define __BOWTABL_H</font>
|
||||
00014 <font class="preprocessor"></font>
|
||||
00015 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00012 <span class="preprocessor">#if !defined(__BOWTABL_H)</span>
|
||||
00013 <span class="preprocessor"></span><span class="preprocessor">#define __BOWTABL_H</span>
|
||||
00014 <span class="preprocessor"></span>
|
||||
00015 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00016
|
||||
00017 <font class="keyword">class </font><a class="code" href="classBowTabl.html">BowTabl</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00017"></a><a class="code" href="classBowTabl.html">00017</a> <span class="keyword">class </span><a class="code" href="classBowTabl.html">BowTabl</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00018 {
|
||||
00019 <font class="keyword">public</font>:
|
||||
00019 <span class="keyword">public</span>:
|
||||
00021 <a class="code" href="classBowTabl.html#a0">BowTabl</a>();
|
||||
00022
|
||||
00024 <a class="code" href="classBowTabl.html#a1">~BowTabl</a>();
|
||||
00025
|
||||
00027
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classBowTabl.html#a2">setOffset</a>(MY_FLOAT aValue);
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classBowTabl.html#a2">setOffset</a>(MY_FLOAT aValue);
|
||||
00034
|
||||
00036
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classBowTabl.html#a3">setSlope</a>(MY_FLOAT aValue);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classBowTabl.html#a3">setSlope</a>(MY_FLOAT aValue);
|
||||
00041
|
||||
00043 MY_FLOAT <a class="code" href="classBowTabl.html#a4">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00043 MY_FLOAT <a class="code" href="classBowTabl.html#a4">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00044
|
||||
00046
|
||||
00050 MY_FLOAT <a class="code" href="classBowTabl.html#a5">tick</a>(<font class="keyword">const</font> MY_FLOAT input);
|
||||
00050 MY_FLOAT <a class="code" href="classBowTabl.html#a5">tick</a>(<span class="keyword">const</span> MY_FLOAT input);
|
||||
00051
|
||||
00053 MY_FLOAT *<a class="code" href="classBowTabl.html#a5">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00053 MY_FLOAT *<a class="code" href="classBowTabl.html#a5">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00054
|
||||
00055 <font class="keyword">protected</font>:
|
||||
00055 <span class="keyword">protected</span>:
|
||||
00056 MY_FLOAT offSet;
|
||||
00057 MY_FLOAT slope;
|
||||
00058 MY_FLOAT lastOutput;
|
||||
00059
|
||||
00060 };
|
||||
00061
|
||||
00062 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00062 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,50 +5,50 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Bowed.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00022 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Bowed.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00022 <span class="comment">/***************************************************/</span>
|
||||
00023
|
||||
00024 <font class="preprocessor">#if !defined(__BOWED_H)</font>
|
||||
00025 <font class="preprocessor"></font><font class="preprocessor">#define __BOWED_H</font>
|
||||
00026 <font class="preprocessor"></font>
|
||||
00027 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00028 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00029 <font class="preprocessor">#include "BowTabl.h"</font>
|
||||
00030 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00031 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00032 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00033 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00024 <span class="preprocessor">#if !defined(__BOWED_H)</span>
|
||||
00025 <span class="preprocessor"></span><span class="preprocessor">#define __BOWED_H</span>
|
||||
00026 <span class="preprocessor"></span>
|
||||
00027 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00028 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00029 <span class="preprocessor">#include "BowTabl.h"</span>
|
||||
00030 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00031 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00032 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00033 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00034
|
||||
00035 <font class="keyword">class </font><a class="code" href="classBowed.html">Bowed</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00035"></a><a class="code" href="classBowed.html">00035</a> <span class="keyword">class </span><a class="code" href="classBowed.html">Bowed</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00036 {
|
||||
00037 <font class="keyword">public</font>:
|
||||
00037 <span class="keyword">public</span>:
|
||||
00039 <a class="code" href="classBowed.html#a0">Bowed</a>(MY_FLOAT lowestFrequency);
|
||||
00040
|
||||
00042 <a class="code" href="classBowed.html#a1">~Bowed</a>();
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classBowed.html#a2">clear</a>();
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a2">clear</a>();
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00049
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classBowed.html#a4">setVibrato</a>(MY_FLOAT gain);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a4">setVibrato</a>(MY_FLOAT gain);
|
||||
00052
|
||||
00054 <font class="keywordtype">void</font> <a class="code" href="classBowed.html#a5">startBowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00054 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a5">startBowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00055
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classBowed.html#a6">stopBowing</a>(MY_FLOAT rate);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a6">stopBowing</a>(MY_FLOAT rate);
|
||||
00058
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a7">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00061
|
||||
00063 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00063 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a8">noteOff</a>(MY_FLOAT amplitude);
|
||||
00064
|
||||
00066 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00066 MY_FLOAT <a class="code" href="classBowed.html#a9">tick</a>();
|
||||
00067
|
||||
00069 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00069 <span class="keywordtype">void</span> <a class="code" href="classBowed.html#a10">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00070
|
||||
00071 <font class="keyword">protected</font>:
|
||||
00071 <span class="keyword">protected</span>:
|
||||
00072 <a class="code" href="classDelayL.html">DelayL</a> *neckDelay;
|
||||
00073 <a class="code" href="classDelayL.html">DelayL</a> *bridgeDelay;
|
||||
00074 <a class="code" href="classBowTabl.html">BowTabl</a> *bowTable;
|
||||
@@ -63,12 +63,12 @@
|
||||
00083
|
||||
00084 };
|
||||
00085
|
||||
00086 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00086 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,55 +5,55 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Brass.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00021 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Brass.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00021 <span class="comment">/***************************************************/</span>
|
||||
00022
|
||||
00023 <font class="preprocessor">#if !defined(__BRASS_H)</font>
|
||||
00024 <font class="preprocessor"></font><font class="preprocessor">#define __BRASS_H</font>
|
||||
00025 <font class="preprocessor"></font>
|
||||
00026 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00027 <font class="preprocessor">#include "DelayA.h"</font>
|
||||
00028 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00029 <font class="preprocessor">#include "PoleZero.h"</font>
|
||||
00030 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00031 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00023 <span class="preprocessor">#if !defined(__BRASS_H)</span>
|
||||
00024 <span class="preprocessor"></span><span class="preprocessor">#define __BRASS_H</span>
|
||||
00025 <span class="preprocessor"></span>
|
||||
00026 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00027 <span class="preprocessor">#include "DelayA.h"</span>
|
||||
00028 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00029 <span class="preprocessor">#include "PoleZero.h"</span>
|
||||
00030 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00031 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00032
|
||||
00033 <font class="keyword">class </font><a class="code" href="classBrass.html">Brass</a>: <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00033"></a><a class="code" href="classBrass.html">00033</a> <span class="keyword">class </span><a class="code" href="classBrass.html">Brass</a>: <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00034 {
|
||||
00035 <font class="keyword">public</font>:
|
||||
00035 <span class="keyword">public</span>:
|
||||
00037 <a class="code" href="classBrass.html#a0">Brass</a>(MY_FLOAT lowestFrequency);
|
||||
00038
|
||||
00040 <a class="code" href="classBrass.html#a1">~Brass</a>();
|
||||
00041
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classBrass.html#a2">clear</a>();
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a2">clear</a>();
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classBrass.html#a4">setLip</a>(MY_FLOAT frequency);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a4">setLip</a>(MY_FLOAT frequency);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classBrass.html#a5">startBlowing</a>(MY_FLOAT amplitude,MY_FLOAT rate);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a5">startBlowing</a>(MY_FLOAT amplitude,MY_FLOAT rate);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classBrass.html#a6">stopBlowing</a>(MY_FLOAT rate);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a6">stopBlowing</a>(MY_FLOAT rate);
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a7">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a8">noteOff</a>(MY_FLOAT amplitude);
|
||||
00062
|
||||
00064 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00064 MY_FLOAT <a class="code" href="classBrass.html#a9">tick</a>();
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classBrass.html#a10">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00068
|
||||
00069 <font class="keyword">protected</font>:
|
||||
00069 <span class="keyword">protected</span>:
|
||||
00070 <a class="code" href="classDelayA.html">DelayA</a> *delayLine;
|
||||
00071 <a class="code" href="classBiQuad.html">BiQuad</a> *lipFilter;
|
||||
00072 <a class="code" href="classPoleZero.html">PoleZero</a> *dcBlock;
|
||||
00073 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00074 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00075 <font class="keywordtype">long</font> length;
|
||||
00075 <span class="keywordtype">long</span> length;
|
||||
00076 MY_FLOAT lipTarget;
|
||||
00077 MY_FLOAT slideTarget;
|
||||
00078 MY_FLOAT vibratoGain;
|
||||
@@ -61,12 +61,12 @@
|
||||
00080
|
||||
00081 };
|
||||
00082
|
||||
00083 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00083 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,46 +5,46 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Chorus.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00009 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Chorus.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00009 <span class="comment">/***************************************************/</span>
|
||||
00010
|
||||
00011 <font class="preprocessor">#if !defined(__CHORUS_H)</font>
|
||||
00012 <font class="preprocessor"></font><font class="preprocessor">#define __CHORUS_H</font>
|
||||
00013 <font class="preprocessor"></font>
|
||||
00014 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00015 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00016 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00011 <span class="preprocessor">#if !defined(__CHORUS_H)</span>
|
||||
00012 <span class="preprocessor"></span><span class="preprocessor">#define __CHORUS_H</span>
|
||||
00013 <span class="preprocessor"></span>
|
||||
00014 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00015 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00016 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00017
|
||||
00018 <font class="keyword">class </font><a class="code" href="classChorus.html">Chorus</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00018"></a><a class="code" href="classChorus.html">00018</a> <span class="keyword">class </span><a class="code" href="classChorus.html">Chorus</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00019 {
|
||||
00020 <font class="keyword">public</font>:
|
||||
00020 <span class="keyword">public</span>:
|
||||
00022 <a class="code" href="classChorus.html#a0">Chorus</a>(MY_FLOAT baseDelay);
|
||||
00023
|
||||
00025 <a class="code" href="classChorus.html#a1">~Chorus</a>();
|
||||
00026
|
||||
00028 <font class="keywordtype">void</font> <a class="code" href="classChorus.html#a2">clear</a>();
|
||||
00028 <span class="keywordtype">void</span> <a class="code" href="classChorus.html#a2">clear</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classChorus.html#a3">setModDepth</a>(MY_FLOAT depth);
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classChorus.html#a3">setModDepth</a>(MY_FLOAT depth);
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classChorus.html#a4">setModFrequency</a>(MY_FLOAT frequency);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classChorus.html#a4">setModFrequency</a>(MY_FLOAT frequency);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classChorus.html#a5">setEffectMix</a>(MY_FLOAT mix);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classChorus.html#a5">setEffectMix</a>(MY_FLOAT mix);
|
||||
00038
|
||||
00040 MY_FLOAT <a class="code" href="classChorus.html#a6">lastOut</a>() <font class="keyword">const</font>;
|
||||
00040 MY_FLOAT <a class="code" href="classChorus.html#a6">lastOut</a>() <span class="keyword">const</span>;
|
||||
00041
|
||||
00043 MY_FLOAT <a class="code" href="classChorus.html#a7">lastOutLeft</a>() <font class="keyword">const</font>;
|
||||
00043 MY_FLOAT <a class="code" href="classChorus.html#a7">lastOutLeft</a>() <span class="keyword">const</span>;
|
||||
00044
|
||||
00046 MY_FLOAT <a class="code" href="classChorus.html#a8">lastOutRight</a>() <font class="keyword">const</font>;
|
||||
00046 MY_FLOAT <a class="code" href="classChorus.html#a8">lastOutRight</a>() <span class="keyword">const</span>;
|
||||
00047
|
||||
00049 MY_FLOAT <a class="code" href="classChorus.html#a9">tick</a>(MY_FLOAT input);
|
||||
00050
|
||||
00052 MY_FLOAT *<a class="code" href="classChorus.html#a9">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00052 MY_FLOAT *<a class="code" href="classChorus.html#a9">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00053
|
||||
00054 <font class="keyword">protected</font>:
|
||||
00054 <span class="keyword">protected</span>:
|
||||
00055 <a class="code" href="classDelayL.html">DelayL</a> *delayLine[2];
|
||||
00056 <a class="code" href="classWaveLoop.html">WaveLoop</a> *mods[2];
|
||||
00057 MY_FLOAT baseLength;
|
||||
@@ -54,13 +54,13 @@
|
||||
00061
|
||||
00062 };
|
||||
00063
|
||||
00064 <font class="preprocessor">#endif</font>
|
||||
00065 <font class="preprocessor"></font>
|
||||
00064 <span class="preprocessor">#endif</span>
|
||||
00065 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,67 +5,67 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Clarinet.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00023 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Clarinet.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00023 <span class="comment">/***************************************************/</span>
|
||||
00024
|
||||
00025 <font class="preprocessor">#if !defined(__CLARINET_H)</font>
|
||||
00026 <font class="preprocessor"></font><font class="preprocessor">#define __CLARINET_H</font>
|
||||
00027 <font class="preprocessor"></font>
|
||||
00028 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00029 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00030 <font class="preprocessor">#include "ReedTabl.h"</font>
|
||||
00031 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00032 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00033 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00034 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00025 <span class="preprocessor">#if !defined(__CLARINET_H)</span>
|
||||
00026 <span class="preprocessor"></span><span class="preprocessor">#define __CLARINET_H</span>
|
||||
00027 <span class="preprocessor"></span>
|
||||
00028 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00029 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00030 <span class="preprocessor">#include "ReedTabl.h"</span>
|
||||
00031 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00032 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00033 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00034 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00035
|
||||
00036 <font class="keyword">class </font><a class="code" href="classClarinet.html">Clarinet</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00036"></a><a class="code" href="classClarinet.html">00036</a> <span class="keyword">class </span><a class="code" href="classClarinet.html">Clarinet</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00037 {
|
||||
00038 <font class="keyword">public</font>:
|
||||
00038 <span class="keyword">public</span>:
|
||||
00040 <a class="code" href="classClarinet.html#a0">Clarinet</a>(MY_FLOAT lowestFrequency);
|
||||
00041
|
||||
00043 <a class="code" href="classClarinet.html#a1">~Clarinet</a>();
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classClarinet.html#a2">clear</a>();
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a2">clear</a>();
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classClarinet.html#a4">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a4">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classClarinet.html#a5">stopBlowing</a>(MY_FLOAT rate);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a5">stopBlowing</a>(MY_FLOAT rate);
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a6">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a7">noteOff</a>(MY_FLOAT amplitude);
|
||||
00062
|
||||
00064 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00064 MY_FLOAT <a class="code" href="classClarinet.html#a8">tick</a>();
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classClarinet.html#a9">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00068
|
||||
00069 <font class="keyword">protected</font>:
|
||||
00069 <span class="keyword">protected</span>:
|
||||
00070 <a class="code" href="classDelayL.html">DelayL</a> *delayLine;
|
||||
00071 <a class="code" href="classReedTabl.html">ReedTabl</a> *reedTable;
|
||||
00072 <a class="code" href="classOneZero.html">OneZero</a> *filter;
|
||||
00073 <a class="code" href="classEnvelope.html">Envelope</a> *envelope;
|
||||
00074 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00075 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00076 <font class="keywordtype">long</font> length;
|
||||
00076 <span class="keywordtype">long</span> length;
|
||||
00077 MY_FLOAT outputGain;
|
||||
00078 MY_FLOAT noiseGain;
|
||||
00079 MY_FLOAT vibratoGain;
|
||||
00080
|
||||
00081 };
|
||||
00082
|
||||
00083 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00083 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,55 +5,55 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>DelayA.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00023 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>DelayA.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00023 <span class="comment">/***************************************************/</span>
|
||||
00024
|
||||
00025 <font class="preprocessor">#if !defined(__DelayA_h)</font>
|
||||
00026 <font class="preprocessor"></font><font class="preprocessor">#define __DelayA_h</font>
|
||||
00027 <font class="preprocessor"></font>
|
||||
00028 <font class="preprocessor">#include "Delay.h"</font>
|
||||
00025 <span class="preprocessor">#if !defined(__DelayA_h)</span>
|
||||
00026 <span class="preprocessor"></span><span class="preprocessor">#define __DelayA_h</span>
|
||||
00027 <span class="preprocessor"></span>
|
||||
00028 <span class="preprocessor">#include "Delay.h"</span>
|
||||
00029
|
||||
00030 <font class="keyword">class </font><a class="code" href="classDelayA.html">DelayA</a> : <font class="keyword">public</font> <a class="code" href="classDelay.html">Delay</a>
|
||||
<a name="l00030"></a><a class="code" href="classDelayA.html">00030</a> <span class="keyword">class </span><a class="code" href="classDelayA.html">DelayA</a> : <span class="keyword">public</span> <a class="code" href="classDelay.html">Delay</a>
|
||||
00031 {
|
||||
00032 <font class="keyword">public</font>:
|
||||
00032 <span class="keyword">public</span>:
|
||||
00033
|
||||
00035 <a class="code" href="classDelayA.html#a0">DelayA</a>();
|
||||
00036
|
||||
00038
|
||||
00039 <a class="code" href="classDelayA.html#a0">DelayA</a>(MY_FLOAT theDelay, <font class="keywordtype">long</font> maxDelay);
|
||||
00039 <a class="code" href="classDelayA.html#a0">DelayA</a>(MY_FLOAT theDelay, <span class="keywordtype">long</span> maxDelay);
|
||||
00040
|
||||
00042 <a class="code" href="classDelayA.html#a2">~DelayA</a>();
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classDelay.html#a3">clear</a>();
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classDelayA.html#a3">clear</a>();
|
||||
00046
|
||||
00048
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classDelay.html#a4">setDelay</a>(MY_FLOAT theDelay);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classDelayA.html#a4">setDelay</a>(MY_FLOAT theDelay);
|
||||
00052
|
||||
00054 MY_FLOAT <a class="code" href="classDelay.html#a5">getDelay</a>(<font class="keywordtype">void</font>);
|
||||
00054 MY_FLOAT <a class="code" href="classDelayA.html#a5">getDelay</a>(<span class="keywordtype">void</span>);
|
||||
00055
|
||||
00057
|
||||
00060 MY_FLOAT <a class="code" href="classDelay.html#a9">nextOut</a>(<font class="keywordtype">void</font>);
|
||||
00060 MY_FLOAT <a class="code" href="classDelayA.html#a6">nextOut</a>(<span class="keywordtype">void</span>);
|
||||
00061
|
||||
00063 MY_FLOAT <a class="code" href="classDelay.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00063 MY_FLOAT <a class="code" href="classDelayA.html#a7">tick</a>(MY_FLOAT sample);
|
||||
00064
|
||||
00065 <font class="keyword">protected</font>:
|
||||
00065 <span class="keyword">protected</span>:
|
||||
00066 MY_FLOAT alpha;
|
||||
00067 MY_FLOAT coeff;
|
||||
00068 MY_FLOAT apInput;
|
||||
00069 MY_FLOAT nextOutput;
|
||||
00070 <font class="keywordtype">bool</font> doNextOut;
|
||||
00070 <span class="keywordtype">bool</span> doNextOut;
|
||||
00071 };
|
||||
00072
|
||||
00073 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00073 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,52 +5,52 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>DelayL.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00023 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>DelayL.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00023 <span class="comment">/***************************************************/</span>
|
||||
00024
|
||||
00025 <font class="preprocessor">#if !defined(__DELAYL_H)</font>
|
||||
00026 <font class="preprocessor"></font><font class="preprocessor">#define __DELAYL_H</font>
|
||||
00027 <font class="preprocessor"></font>
|
||||
00028 <font class="preprocessor">#include "Delay.h"</font>
|
||||
00025 <span class="preprocessor">#if !defined(__DELAYL_H)</span>
|
||||
00026 <span class="preprocessor"></span><span class="preprocessor">#define __DELAYL_H</span>
|
||||
00027 <span class="preprocessor"></span>
|
||||
00028 <span class="preprocessor">#include "Delay.h"</span>
|
||||
00029
|
||||
00030 <font class="keyword">class </font><a class="code" href="classDelayL.html">DelayL</a> : <font class="keyword">public</font> <a class="code" href="classDelay.html">Delay</a>
|
||||
<a name="l00030"></a><a class="code" href="classDelayL.html">00030</a> <span class="keyword">class </span><a class="code" href="classDelayL.html">DelayL</a> : <span class="keyword">public</span> <a class="code" href="classDelay.html">Delay</a>
|
||||
00031 {
|
||||
00032 <font class="keyword">public</font>:
|
||||
00032 <span class="keyword">public</span>:
|
||||
00033
|
||||
00035 <a class="code" href="classDelayL.html#a0">DelayL</a>();
|
||||
00036
|
||||
00038
|
||||
00039 <a class="code" href="classDelayL.html#a0">DelayL</a>(MY_FLOAT theDelay, <font class="keywordtype">long</font> maxDelay);
|
||||
00039 <a class="code" href="classDelayL.html#a0">DelayL</a>(MY_FLOAT theDelay, <span class="keywordtype">long</span> maxDelay);
|
||||
00040
|
||||
00042 <a class="code" href="classDelayL.html#a2">~DelayL</a>();
|
||||
00043
|
||||
00045
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classDelay.html#a4">setDelay</a>(MY_FLOAT theDelay);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classDelayL.html#a3">setDelay</a>(MY_FLOAT theDelay);
|
||||
00049
|
||||
00051 MY_FLOAT <a class="code" href="classDelay.html#a5">getDelay</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00051 MY_FLOAT <a class="code" href="classDelayL.html#a4">getDelay</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00052
|
||||
00054
|
||||
00057 MY_FLOAT <a class="code" href="classDelay.html#a9">nextOut</a>(<font class="keywordtype">void</font>);
|
||||
00057 MY_FLOAT <a class="code" href="classDelayL.html#a5">nextOut</a>(<span class="keywordtype">void</span>);
|
||||
00058
|
||||
00060 MY_FLOAT <a class="code" href="classDelay.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00060 MY_FLOAT <a class="code" href="classDelayL.html#a6">tick</a>(MY_FLOAT sample);
|
||||
00061
|
||||
00062 <font class="keyword">protected</font>:
|
||||
00062 <span class="keyword">protected</span>:
|
||||
00063 MY_FLOAT alpha;
|
||||
00064 MY_FLOAT omAlpha;
|
||||
00065 MY_FLOAT nextOutput;
|
||||
00066 <font class="keywordtype">bool</font> doNextOut;
|
||||
00066 <span class="keywordtype">bool</span> doNextOut;
|
||||
00067 };
|
||||
00068
|
||||
00069 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00069 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,63 +5,63 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Delay.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00019 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Delay.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00019 <span class="comment">/***************************************************/</span>
|
||||
00020
|
||||
00021 <font class="preprocessor">#if !defined(__DELAY_H)</font>
|
||||
00022 <font class="preprocessor"></font><font class="preprocessor">#define __DELAY_H</font>
|
||||
00023 <font class="preprocessor"></font>
|
||||
00024 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00021 <span class="preprocessor">#if !defined(__DELAY_H)</span>
|
||||
00022 <span class="preprocessor"></span><span class="preprocessor">#define __DELAY_H</span>
|
||||
00023 <span class="preprocessor"></span>
|
||||
00024 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00025
|
||||
00026 <font class="keyword">class </font><a class="code" href="classDelay.html">Delay</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00026"></a><a class="code" href="classDelay.html">00026</a> <span class="keyword">class </span><a class="code" href="classDelay.html">Delay</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00027 {
|
||||
00028 <font class="keyword">public</font>:
|
||||
00028 <span class="keyword">public</span>:
|
||||
00029
|
||||
00031 <a class="code" href="classDelay.html#a0">Delay</a>();
|
||||
00032
|
||||
00034 <a class="code" href="classDelay.html#a0">Delay</a>(<font class="keywordtype">long</font> theDelay, <font class="keywordtype">long</font> maxDelay);
|
||||
00034 <a class="code" href="classDelay.html#a0">Delay</a>(<span class="keywordtype">long</span> theDelay, <span class="keywordtype">long</span> maxDelay);
|
||||
00035
|
||||
00037 <font class="keyword">virtual</font> <a class="code" href="classDelay.html#a2">~Delay</a>();
|
||||
00037 <span class="keyword">virtual</span> <a class="code" href="classDelay.html#a2">~Delay</a>();
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>();
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classDelay.html#a3">clear</a>();
|
||||
00041
|
||||
00043
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classDelay.html#a4">setDelay</a>(<font class="keywordtype">long</font> theDelay);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classDelay.html#a4">setDelay</a>(<span class="keywordtype">long</span> theDelay);
|
||||
00047
|
||||
00049 <font class="keywordtype">long</font> <a class="code" href="classDelay.html#a5">getDelay</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00049 <span class="keywordtype">long</span> <a class="code" href="classDelay.html#a5">getDelay</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00050
|
||||
00052 MY_FLOAT <a class="code" href="classDelay.html#a6">energy</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00052 MY_FLOAT <a class="code" href="classDelay.html#a6">energy</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00053
|
||||
00055
|
||||
00058 MY_FLOAT <a class="code" href="classDelay.html#a7">contentsAt</a>(<font class="keywordtype">long</font> tapDelay) <font class="keyword">const</font>;
|
||||
00059
|
||||
00061 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00062
|
||||
00060 MY_FLOAT <a class="code" href="classDelay.html#a7">contentsAt</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> tapDelay) <span class="keyword">const</span>;
|
||||
00061
|
||||
00063 MY_FLOAT <a class="code" href="classDelay.html#a8">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00064
|
||||
00067 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classDelay.html#a9">nextOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00068
|
||||
00070 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00071
|
||||
00073 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00074
|
||||
00075 <font class="keyword">protected</font>:
|
||||
00076 <font class="keywordtype">long</font> inPoint;
|
||||
00077 <font class="keywordtype">long</font> outPoint;
|
||||
00078 <font class="keywordtype">long</font> length;
|
||||
00079 MY_FLOAT delay;
|
||||
00080 };
|
||||
00081
|
||||
00082 <font class="preprocessor">#endif</font>
|
||||
00083 <font class="preprocessor"></font>
|
||||
00066
|
||||
00069 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classDelay.html#a9">nextOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00070
|
||||
00072 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classDelay.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00073
|
||||
00075 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classDelay.html#a10">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00076
|
||||
00077 <span class="keyword">protected</span>:
|
||||
00078 <span class="keywordtype">long</span> inPoint;
|
||||
00079 <span class="keywordtype">long</span> outPoint;
|
||||
00080 <span class="keywordtype">long</span> length;
|
||||
00081 MY_FLOAT delay;
|
||||
00082 };
|
||||
00083
|
||||
00084 <span class="preprocessor">#endif</span>
|
||||
00085 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,51 +5,51 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Drummer.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00016 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Drummer.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00016 <span class="comment">/***************************************************/</span>
|
||||
00017
|
||||
00018 <font class="preprocessor">#if !defined(__DRUMMER_H)</font>
|
||||
00019 <font class="preprocessor"></font><font class="preprocessor">#define __DRUMMER_H</font>
|
||||
00020 <font class="preprocessor"></font>
|
||||
00021 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00022 <font class="preprocessor">#include "WvIn.h"</font>
|
||||
00023 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00018 <span class="preprocessor">#if !defined(__DRUMMER_H)</span>
|
||||
00019 <span class="preprocessor"></span><span class="preprocessor">#define __DRUMMER_H</span>
|
||||
00020 <span class="preprocessor"></span>
|
||||
00021 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00022 <span class="preprocessor">#include "WvIn.h"</span>
|
||||
00023 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00024
|
||||
00025 <font class="preprocessor">#define DRUM_NUMWAVES 11</font>
|
||||
00026 <font class="preprocessor"></font><font class="preprocessor">#define DRUM_POLYPHONY 4</font>
|
||||
00027 <font class="preprocessor"></font>
|
||||
00028 <font class="keyword">class </font><a class="code" href="classDrummer.html">Drummer</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00025 <span class="preprocessor">#define DRUM_NUMWAVES 11</span>
|
||||
00026 <span class="preprocessor"></span><span class="preprocessor">#define DRUM_POLYPHONY 4</span>
|
||||
00027 <span class="preprocessor"></span>
|
||||
<a name="l00028"></a><a class="code" href="classDrummer.html">00028</a> <span class="keyword">class </span><a class="code" href="classDrummer.html">Drummer</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00029 {
|
||||
00030 <font class="keyword">public</font>:
|
||||
00030 <span class="keyword">public</span>:
|
||||
00032 <a class="code" href="classDrummer.html#a0">Drummer</a>();
|
||||
00033
|
||||
00035 <a class="code" href="classDrummer.html#a1">~Drummer</a>();
|
||||
00036
|
||||
00038
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT instrument, MY_FLOAT amplitude);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classDrummer.html#a2">noteOn</a>(MY_FLOAT instrument, MY_FLOAT amplitude);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classDrummer.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00047
|
||||
00049 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00049 MY_FLOAT <a class="code" href="classDrummer.html#a4">tick</a>();
|
||||
00050
|
||||
00051 <font class="keyword">protected</font>:
|
||||
00051 <span class="keyword">protected</span>:
|
||||
00052 <a class="code" href="classWvIn.html">WvIn</a> *waves[DRUM_POLYPHONY];
|
||||
00053 <a class="code" href="classOnePole.html">OnePole</a> *filters[DRUM_POLYPHONY];
|
||||
00054 <font class="keywordtype">int</font> sounding[DRUM_POLYPHONY];
|
||||
00055 <font class="keywordtype">int</font> nSounding;
|
||||
00054 <span class="keywordtype">int</span> sounding[DRUM_POLYPHONY];
|
||||
00055 <span class="keywordtype">int</span> nSounding;
|
||||
00056
|
||||
00057 };
|
||||
00058
|
||||
00059 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00059 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,53 +5,53 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Echo.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00009 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Echo.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00009 <span class="comment">/***************************************************/</span>
|
||||
00010
|
||||
00011 <font class="preprocessor">#if !defined(__ECHO_H)</font>
|
||||
00012 <font class="preprocessor"></font><font class="preprocessor">#define __ECHO_H</font>
|
||||
00013 <font class="preprocessor"></font>
|
||||
00014 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00015 <font class="preprocessor">#include "Delay.h"</font>
|
||||
00011 <span class="preprocessor">#if !defined(__ECHO_H)</span>
|
||||
00012 <span class="preprocessor"></span><span class="preprocessor">#define __ECHO_H</span>
|
||||
00013 <span class="preprocessor"></span>
|
||||
00014 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00015 <span class="preprocessor">#include "Delay.h"</span>
|
||||
00016
|
||||
00017 <font class="keyword">class </font><a class="code" href="classEcho.html">Echo</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00017"></a><a class="code" href="classEcho.html">00017</a> <span class="keyword">class </span><a class="code" href="classEcho.html">Echo</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00018 {
|
||||
00019 <font class="keyword">public</font>:
|
||||
00019 <span class="keyword">public</span>:
|
||||
00021 <a class="code" href="classEcho.html#a0">Echo</a>(MY_FLOAT longestDelay);
|
||||
00022
|
||||
00024 <a class="code" href="classEcho.html#a1">~Echo</a>();
|
||||
00025
|
||||
00027 <font class="keywordtype">void</font> <a class="code" href="classEcho.html#a2">clear</a>();
|
||||
00027 <span class="keywordtype">void</span> <a class="code" href="classEcho.html#a2">clear</a>();
|
||||
00028
|
||||
00030 <font class="keywordtype">void</font> <a class="code" href="classEcho.html#a3">setDelay</a>(MY_FLOAT delay);
|
||||
00030 <span class="keywordtype">void</span> <a class="code" href="classEcho.html#a3">setDelay</a>(MY_FLOAT delay);
|
||||
00031
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classEcho.html#a4">setEffectMix</a>(MY_FLOAT mix);
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classEcho.html#a4">setEffectMix</a>(MY_FLOAT mix);
|
||||
00034
|
||||
00036 MY_FLOAT <a class="code" href="classEcho.html#a5">lastOut</a>() <font class="keyword">const</font>;
|
||||
00036 MY_FLOAT <a class="code" href="classEcho.html#a5">lastOut</a>() <span class="keyword">const</span>;
|
||||
00037
|
||||
00039 MY_FLOAT <a class="code" href="classEcho.html#a6">tick</a>(MY_FLOAT input);
|
||||
00040
|
||||
00042 MY_FLOAT *<a class="code" href="classEcho.html#a6">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00042 MY_FLOAT *<a class="code" href="classEcho.html#a6">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00043
|
||||
00044 <font class="keyword">protected</font>:
|
||||
00044 <span class="keyword">protected</span>:
|
||||
00045 <a class="code" href="classDelay.html">Delay</a> *delayLine;
|
||||
00046 <font class="keywordtype">long</font> length;
|
||||
00046 <span class="keywordtype">long</span> length;
|
||||
00047 MY_FLOAT lastOutput;
|
||||
00048 MY_FLOAT effectMix;
|
||||
00049
|
||||
00050 };
|
||||
00051
|
||||
00052 <font class="preprocessor">#endif</font>
|
||||
00053 <font class="preprocessor"></font>
|
||||
00052 <span class="preprocessor">#endif</span>
|
||||
00053 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,59 +5,59 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Envelope.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00014 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Envelope.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00014 <span class="comment">/***************************************************/</span>
|
||||
00015
|
||||
00016 <font class="preprocessor">#if !defined(__ENVELOPE_H)</font>
|
||||
00017 <font class="preprocessor"></font><font class="preprocessor">#define __ENVELOPE_H</font>
|
||||
00018 <font class="preprocessor"></font>
|
||||
00019 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00016 <span class="preprocessor">#if !defined(__ENVELOPE_H)</span>
|
||||
00017 <span class="preprocessor"></span><span class="preprocessor">#define __ENVELOPE_H</span>
|
||||
00018 <span class="preprocessor"></span>
|
||||
00019 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00020
|
||||
00021 <font class="keyword">class </font><a class="code" href="classEnvelope.html">Envelope</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00021"></a><a class="code" href="classEnvelope.html">00021</a> <span class="keyword">class </span><a class="code" href="classEnvelope.html">Envelope</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00022 {
|
||||
00023 <font class="keyword">public</font>:
|
||||
00023 <span class="keyword">public</span>:
|
||||
00024
|
||||
00026 <a class="code" href="classEnvelope.html#a0">Envelope</a>(<font class="keywordtype">void</font>);
|
||||
00026 <a class="code" href="classEnvelope.html#a0">Envelope</a>(<span class="keywordtype">void</span>);
|
||||
00027
|
||||
00029 <font class="keyword">virtual</font> <a class="code" href="classEnvelope.html#a1">~Envelope</a>(<font class="keywordtype">void</font>);
|
||||
00029 <span class="keyword">virtual</span> <a class="code" href="classEnvelope.html#a1">~Envelope</a>(<span class="keywordtype">void</span>);
|
||||
00030
|
||||
00032 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a2">keyOn</a>(<font class="keywordtype">void</font>);
|
||||
00032 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEnvelope.html#a2">keyOn</a>(<span class="keywordtype">void</span>);
|
||||
00033
|
||||
00035 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a3">keyOff</a>(<font class="keywordtype">void</font>);
|
||||
00035 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEnvelope.html#a3">keyOff</a>(<span class="keywordtype">void</span>);
|
||||
00036
|
||||
00038 <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a4">setRate</a>(MY_FLOAT aRate);
|
||||
00038 <span class="keywordtype">void</span> <a class="code" href="classEnvelope.html#a4">setRate</a>(MY_FLOAT aRate);
|
||||
00039
|
||||
00041 <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a5">setTime</a>(MY_FLOAT aTime);
|
||||
00041 <span class="keywordtype">void</span> <a class="code" href="classEnvelope.html#a5">setTime</a>(MY_FLOAT aTime);
|
||||
00042
|
||||
00044 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a6">setTarget</a>(MY_FLOAT aTarget);
|
||||
00044 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEnvelope.html#a6">setTarget</a>(MY_FLOAT aTarget);
|
||||
00045
|
||||
00047 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classEnvelope.html#a7">setValue</a>(MY_FLOAT aValue);
|
||||
00047 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEnvelope.html#a7">setValue</a>(MY_FLOAT aValue);
|
||||
00048
|
||||
00050 <font class="keyword">virtual</font> <font class="keywordtype">int</font> <a class="code" href="classEnvelope.html#a8">getState</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00050 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classEnvelope.html#a8">getState</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00051
|
||||
00053 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classEnvelope.html#a9">tick</a>(<font class="keywordtype">void</font>);
|
||||
00053 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classEnvelope.html#a9">tick</a>(<span class="keywordtype">void</span>);
|
||||
00054
|
||||
00056 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classEnvelope.html#a9">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00056 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classEnvelope.html#a9">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00057
|
||||
00059 MY_FLOAT <a class="code" href="classEnvelope.html#a11">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00059 MY_FLOAT <a class="code" href="classEnvelope.html#a11">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00060
|
||||
00061 <font class="keyword">protected</font>:
|
||||
00061 <span class="keyword">protected</span>:
|
||||
00062 MY_FLOAT value;
|
||||
00063 MY_FLOAT target;
|
||||
00064 MY_FLOAT rate;
|
||||
00065 <font class="keywordtype">int</font> state;
|
||||
00065 <span class="keywordtype">int</span> state;
|
||||
00066 };
|
||||
00067
|
||||
00068 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00068 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,45 +5,45 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>FMVoices.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00031 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>FMVoices.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00031 <span class="comment">/***************************************************/</span>
|
||||
00032
|
||||
00033 <font class="preprocessor">#if !defined(__FMVOICES_H)</font>
|
||||
00034 <font class="preprocessor"></font><font class="preprocessor">#define __FMVOICES_H</font>
|
||||
00035 <font class="preprocessor"></font>
|
||||
00036 <font class="preprocessor">#include "FM.h"</font>
|
||||
00033 <span class="preprocessor">#if !defined(__FMVOICES_H)</span>
|
||||
00034 <span class="preprocessor"></span><span class="preprocessor">#define __FMVOICES_H</span>
|
||||
00035 <span class="preprocessor"></span>
|
||||
00036 <span class="preprocessor">#include "FM.h"</span>
|
||||
00037
|
||||
00038 <font class="keyword">class </font><a class="code" href="classFMVoices.html">FMVoices</a> : <font class="keyword">public</font> <a class="code" href="classFM.html">FM</a>
|
||||
<a name="l00038"></a><a class="code" href="classFMVoices.html">00038</a> <span class="keyword">class </span><a class="code" href="classFMVoices.html">FMVoices</a> : <span class="keyword">public</span> <a class="code" href="classFM.html">FM</a>
|
||||
00039 {
|
||||
00040 <font class="keyword">public</font>:
|
||||
00040 <span class="keyword">public</span>:
|
||||
00042 <a class="code" href="classFMVoices.html#a0">FMVoices</a>();
|
||||
00043
|
||||
00045 <a class="code" href="classFMVoices.html#a1">~FMVoices</a>();
|
||||
00046
|
||||
00048 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classFM.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00048 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFMVoices.html#a2">setFrequency</a>(MY_FLOAT frequency);
|
||||
00049
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classFMVoices.html#a3">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00052
|
||||
00054 MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>();
|
||||
00054 MY_FLOAT <a class="code" href="classFMVoices.html#a4">tick</a>();
|
||||
00055
|
||||
00057 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classFM.html#a15">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00057 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFMVoices.html#a5">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00058
|
||||
00059 <font class="keyword">protected</font>:
|
||||
00060 <font class="keywordtype">int</font> currentVowel;
|
||||
00059 <span class="keyword">protected</span>:
|
||||
00060 <span class="keywordtype">int</span> currentVowel;
|
||||
00061 MY_FLOAT tilt[3];
|
||||
00062 MY_FLOAT mods[3];
|
||||
00063 };
|
||||
00064
|
||||
00065 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00065 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,62 +5,62 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>FM.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00024 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>FM.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00024 <span class="comment">/***************************************************/</span>
|
||||
00025
|
||||
00026 <font class="preprocessor">#if !defined(__FM_H)</font>
|
||||
00027 <font class="preprocessor"></font><font class="preprocessor">#define __FM_H</font>
|
||||
00028 <font class="preprocessor"></font>
|
||||
00029 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00030 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00031 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00032 <font class="preprocessor">#include "TwoZero.h"</font>
|
||||
00026 <span class="preprocessor">#if !defined(__FM_H)</span>
|
||||
00027 <span class="preprocessor"></span><span class="preprocessor">#define __FM_H</span>
|
||||
00028 <span class="preprocessor"></span>
|
||||
00029 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00030 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00031 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00032 <span class="preprocessor">#include "TwoZero.h"</span>
|
||||
00033
|
||||
00034 <font class="keyword">class </font><a class="code" href="classFM.html">FM</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00034"></a><a class="code" href="classFM.html">00034</a> <span class="keyword">class </span><a class="code" href="classFM.html">FM</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00035 {
|
||||
00036 <font class="keyword">public</font>:
|
||||
00038 <a class="code" href="classFM.html#a0">FM</a>( <font class="keywordtype">int</font> operators = 4 );
|
||||
00036 <span class="keyword">public</span>:
|
||||
00038 <a class="code" href="classFM.html#a0">FM</a>( <span class="keywordtype">int</span> operators = 4 );
|
||||
00039
|
||||
00041 <font class="keyword">virtual</font> <a class="code" href="classFM.html#a1">~FM</a>();
|
||||
00041 <span class="keyword">virtual</span> <a class="code" href="classFM.html#a1">~FM</a>();
|
||||
00042
|
||||
00044 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a2">clear</a>();
|
||||
00044 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a2">clear</a>();
|
||||
00045
|
||||
00047 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a3">loadWaves</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> **filenames);
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a3">loadWaves</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> **filenames);
|
||||
00048
|
||||
00050 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00050 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFM.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00051
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a5">setRatio</a>(<font class="keywordtype">int</font> waveIndex, MY_FLOAT ratio);
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a5">setRatio</a>(<span class="keywordtype">int</span> waveIndex, MY_FLOAT ratio);
|
||||
00054
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a6">setGain</a>(<font class="keywordtype">int</font> waveIndex, MY_FLOAT gain);
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a6">setGain</a>(<span class="keywordtype">int</span> waveIndex, MY_FLOAT gain);
|
||||
00057
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a7">setModulationSpeed</a>(MY_FLOAT mSpeed);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a7">setModulationSpeed</a>(MY_FLOAT mSpeed);
|
||||
00060
|
||||
00062 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a8">setModulationDepth</a>(MY_FLOAT mDepth);
|
||||
00062 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a8">setModulationDepth</a>(MY_FLOAT mDepth);
|
||||
00063
|
||||
00065 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a9">setControl1</a>(MY_FLOAT cVal);
|
||||
00065 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a9">setControl1</a>(MY_FLOAT cVal);
|
||||
00066
|
||||
00068 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a10">setControl2</a>(MY_FLOAT cVal);
|
||||
00068 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a10">setControl2</a>(MY_FLOAT cVal);
|
||||
00069
|
||||
00071 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a11">keyOn</a>();
|
||||
00071 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a11">keyOn</a>();
|
||||
00072
|
||||
00074 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a12">keyOff</a>();
|
||||
00074 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a12">keyOff</a>();
|
||||
00075
|
||||
00077 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00077 <span class="keywordtype">void</span> <a class="code" href="classFM.html#a13">noteOff</a>(MY_FLOAT amplitude);
|
||||
00078
|
||||
00080 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>() = 0;
|
||||
00080 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>() = 0;
|
||||
00081
|
||||
00083 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFM.html#a15">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00084
|
||||
00085 <font class="keyword">protected</font>:
|
||||
00085 <span class="keyword">protected</span>:
|
||||
00086 <a class="code" href="classADSR.html">ADSR</a> **adsr;
|
||||
00087 <a class="code" href="classWaveLoop.html">WaveLoop</a> **waves;
|
||||
00088 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00089 <a class="code" href="classTwoZero.html">TwoZero</a> *twozero;
|
||||
00090 <font class="keywordtype">int</font> nOperators;
|
||||
00090 <span class="keywordtype">int</span> nOperators;
|
||||
00091 MY_FLOAT baseFrequency;
|
||||
00092 MY_FLOAT *ratios;
|
||||
00093 MY_FLOAT *gains;
|
||||
@@ -73,12 +73,12 @@
|
||||
00100
|
||||
00101 };
|
||||
00102
|
||||
00103 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00103 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,54 +5,54 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Filter.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00028 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Filter.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00028 <span class="comment">/***************************************************/</span>
|
||||
00029
|
||||
00030 <font class="preprocessor">#if !defined(__FILTER_H)</font>
|
||||
00031 <font class="preprocessor"></font><font class="preprocessor">#define __FILTER_H</font>
|
||||
00032 <font class="preprocessor"></font>
|
||||
00033 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00030 <span class="preprocessor">#if !defined(__FILTER_H)</span>
|
||||
00031 <span class="preprocessor"></span><span class="preprocessor">#define __FILTER_H</span>
|
||||
00032 <span class="preprocessor"></span>
|
||||
00033 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00034
|
||||
00035 <font class="keyword">class </font><a class="code" href="classFilter.html">Filter</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00035"></a><a class="code" href="classFilter.html">00035</a> <span class="keyword">class </span><a class="code" href="classFilter.html">Filter</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00036 {
|
||||
00037 <font class="keyword">public</font>:
|
||||
00039 <a class="code" href="classFilter.html#a0">Filter</a>(<font class="keywordtype">void</font>);
|
||||
00037 <span class="keyword">public</span>:
|
||||
00039 <a class="code" href="classFilter.html#a0">Filter</a>(<span class="keywordtype">void</span>);
|
||||
00040
|
||||
00042
|
||||
00046 <a class="code" href="classFilter.html#a0">Filter</a>(<font class="keywordtype">int</font> nb, MY_FLOAT *bCoefficients, <font class="keywordtype">int</font> na, MY_FLOAT *aCoefficients);
|
||||
00046 <a class="code" href="classFilter.html#a0">Filter</a>(<span class="keywordtype">int</span> nb, MY_FLOAT *bCoefficients, <span class="keywordtype">int</span> na, MY_FLOAT *aCoefficients);
|
||||
00047
|
||||
00049 <font class="keyword">virtual</font> <a class="code" href="classFilter.html#a2">~Filter</a>(<font class="keywordtype">void</font>);
|
||||
00049 <span class="keyword">virtual</span> <a class="code" href="classFilter.html#a2">~Filter</a>(<span class="keywordtype">void</span>);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classFilter.html#a3">clear</a>(<span class="keywordtype">void</span>);
|
||||
00053
|
||||
00055
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a4">setCoefficients</a>(<font class="keywordtype">int</font> nb, MY_FLOAT *bCoefficients, <font class="keywordtype">int</font> na, MY_FLOAT *aCoefficients);
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classFilter.html#a4">setCoefficients</a>(<span class="keywordtype">int</span> nb, MY_FLOAT *bCoefficients, <span class="keywordtype">int</span> na, MY_FLOAT *aCoefficients);
|
||||
00061
|
||||
00063
|
||||
00069 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a5">setNumerator</a>(<font class="keywordtype">int</font> nb, MY_FLOAT *bCoefficients);
|
||||
00069 <span class="keywordtype">void</span> <a class="code" href="classFilter.html#a5">setNumerator</a>(<span class="keywordtype">int</span> nb, MY_FLOAT *bCoefficients);
|
||||
00070
|
||||
00072
|
||||
00080 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a6">setDenominator</a>(<font class="keywordtype">int</font> na, MY_FLOAT *aCoefficients);
|
||||
00080 <span class="keywordtype">void</span> <a class="code" href="classFilter.html#a6">setDenominator</a>(<span class="keywordtype">int</span> na, MY_FLOAT *aCoefficients);
|
||||
00081
|
||||
00083
|
||||
00087 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00087 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00088
|
||||
00090 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00090 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00091
|
||||
00093 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00093 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00094
|
||||
00096 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00096 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00097
|
||||
00099 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00099 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00100
|
||||
00101 <font class="keyword">protected</font>:
|
||||
00101 <span class="keyword">protected</span>:
|
||||
00102 MY_FLOAT gain;
|
||||
00103 <font class="keywordtype">int</font> nB;
|
||||
00104 <font class="keywordtype">int</font> nA;
|
||||
00103 <span class="keywordtype">int</span> nB;
|
||||
00104 <span class="keywordtype">int</span> nA;
|
||||
00105 MY_FLOAT *b;
|
||||
00106 MY_FLOAT *a;
|
||||
00107 MY_FLOAT *outputs;
|
||||
@@ -60,12 +60,12 @@
|
||||
00109
|
||||
00110 };
|
||||
00111
|
||||
00112 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00112 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,55 +5,55 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Flute.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00023 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Flute.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00023 <span class="comment">/***************************************************/</span>
|
||||
00024
|
||||
00025 <font class="preprocessor">#if !defined(__FLUTE_H)</font>
|
||||
00026 <font class="preprocessor"></font><font class="preprocessor">#define __FLUTE_H</font>
|
||||
00027 <font class="preprocessor"></font>
|
||||
00028 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00029 <font class="preprocessor">#include "JetTabl.h"</font>
|
||||
00030 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00031 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00032 <font class="preprocessor">#include "PoleZero.h"</font>
|
||||
00033 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00034 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00035 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00025 <span class="preprocessor">#if !defined(__FLUTE_H)</span>
|
||||
00026 <span class="preprocessor"></span><span class="preprocessor">#define __FLUTE_H</span>
|
||||
00027 <span class="preprocessor"></span>
|
||||
00028 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00029 <span class="preprocessor">#include "JetTabl.h"</span>
|
||||
00030 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00031 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00032 <span class="preprocessor">#include "PoleZero.h"</span>
|
||||
00033 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00034 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00035 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00036
|
||||
00037 <font class="keyword">class </font><a class="code" href="classFlute.html">Flute</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00037"></a><a class="code" href="classFlute.html">00037</a> <span class="keyword">class </span><a class="code" href="classFlute.html">Flute</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00038 {
|
||||
00039 <font class="keyword">public</font>:
|
||||
00039 <span class="keyword">public</span>:
|
||||
00041 <a class="code" href="classFlute.html#a0">Flute</a>(MY_FLOAT lowestFrequency);
|
||||
00042
|
||||
00044 <a class="code" href="classFlute.html#a1">~Flute</a>();
|
||||
00045
|
||||
00047 <font class="keywordtype">void</font> <a class="code" href="classFlute.html#a2">clear</a>();
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a2">clear</a>();
|
||||
00048
|
||||
00050 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00051
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classFlute.html#a4">setJetReflection</a>(MY_FLOAT coefficient);
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a4">setJetReflection</a>(MY_FLOAT coefficient);
|
||||
00054
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classFlute.html#a5">setEndReflection</a>(MY_FLOAT coefficient);
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a5">setEndReflection</a>(MY_FLOAT coefficient);
|
||||
00057
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classFlute.html#a6">setJetDelay</a>(MY_FLOAT aRatio);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a6">setJetDelay</a>(MY_FLOAT aRatio);
|
||||
00060
|
||||
00062 <font class="keywordtype">void</font> <a class="code" href="classFlute.html#a7">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00062 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a7">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00063
|
||||
00065 <font class="keywordtype">void</font> <a class="code" href="classFlute.html#a8">stopBlowing</a>(MY_FLOAT rate);
|
||||
00065 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a8">stopBlowing</a>(MY_FLOAT rate);
|
||||
00066
|
||||
00068 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00068 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a9">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00069
|
||||
00071 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00071 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a10">noteOff</a>(MY_FLOAT amplitude);
|
||||
00072
|
||||
00074 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00074 MY_FLOAT <a class="code" href="classFlute.html#a11">tick</a>();
|
||||
00075
|
||||
00077 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00077 <span class="keywordtype">void</span> <a class="code" href="classFlute.html#a12">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00078
|
||||
00079 <font class="keyword">protected</font>:
|
||||
00079 <span class="keyword">protected</span>:
|
||||
00080 <a class="code" href="classDelayL.html">DelayL</a> *jetDelay;
|
||||
00081 <a class="code" href="classDelayL.html">DelayL</a> *boreDelay;
|
||||
00082 <a class="code" href="classJetTabl.html">JetTabl</a> *jetTable;
|
||||
@@ -62,7 +62,7 @@
|
||||
00085 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00086 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00087 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00088 <font class="keywordtype">long</font> length;
|
||||
00088 <span class="keywordtype">long</span> length;
|
||||
00089 MY_FLOAT lastFrequency;
|
||||
00090 MY_FLOAT maxPressure;
|
||||
00091 MY_FLOAT jetReflection;
|
||||
@@ -74,12 +74,12 @@
|
||||
00097
|
||||
00098 };
|
||||
00099
|
||||
00100 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00100 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,45 +5,45 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>FormSwep.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>FormSwep.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__FORMSWEP_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __FORMSWEP_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__FORMSWEP_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __FORMSWEP_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classFormSwep.html">FormSwep</a> : <font class="keyword">public</font> <a class="code" href="classBiQuad.html">BiQuad</a>
|
||||
<a name="l00020"></a><a class="code" href="classFormSwep.html">00020</a> <span class="keyword">class </span><a class="code" href="classFormSwep.html">FormSwep</a> : <span class="keyword">public</span> <a class="code" href="classBiQuad.html">BiQuad</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00023
|
||||
00025 <a class="code" href="classFormSwep.html#a0">FormSwep</a>();
|
||||
00026
|
||||
00028 <a class="code" href="classFormSwep.html#a1">~FormSwep</a>();
|
||||
00029
|
||||
00031
|
||||
00042 <font class="keywordtype">void</font> <a class="code" href="classBiQuad.html#a8">setResonance</a>(MY_FLOAT aFrequency, MY_FLOAT aRadius);
|
||||
00042 <span class="keywordtype">void</span> <a class="code" href="classFormSwep.html#a2">setResonance</a>(MY_FLOAT aFrequency, MY_FLOAT aRadius);
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classFormSwep.html#a3">setStates</a>(MY_FLOAT aFrequency, MY_FLOAT aRadius, MY_FLOAT aGain = 1.0);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classFormSwep.html#a3">setStates</a>(MY_FLOAT aFrequency, MY_FLOAT aRadius, MY_FLOAT aGain = 1.0);
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classFormSwep.html#a4">setTargets</a>(MY_FLOAT aFrequency, MY_FLOAT aRadius, MY_FLOAT aGain = 1.0);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classFormSwep.html#a4">setTargets</a>(MY_FLOAT aFrequency, MY_FLOAT aRadius, MY_FLOAT aGain = 1.0);
|
||||
00049
|
||||
00051
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classFormSwep.html#a5">setSweepRate</a>(MY_FLOAT aRate);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classFormSwep.html#a5">setSweepRate</a>(MY_FLOAT aRate);
|
||||
00060
|
||||
00062
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classFormSwep.html#a6">setSweepTime</a>(MY_FLOAT aTime);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classFormSwep.html#a6">setSweepTime</a>(MY_FLOAT aTime);
|
||||
00068
|
||||
00070 MY_FLOAT <a class="code" href="classBiQuad.html#a14">tick</a>(MY_FLOAT sample);
|
||||
00070 MY_FLOAT <a class="code" href="classFormSwep.html#a7">tick</a>(MY_FLOAT sample);
|
||||
00071
|
||||
00073 MY_FLOAT *<a class="code" href="classBiQuad.html#a14">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00073 MY_FLOAT *<a class="code" href="classFormSwep.html#a7">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00074
|
||||
00075 <font class="keyword">protected</font>:
|
||||
00076 <font class="keywordtype">bool</font> dirty;
|
||||
00075 <span class="keyword">protected</span>:
|
||||
00076 <span class="keywordtype">bool</span> dirty;
|
||||
00077 MY_FLOAT frequency;
|
||||
00078 MY_FLOAT radius;
|
||||
00079 MY_FLOAT startFrequency;
|
||||
@@ -60,12 +60,12 @@
|
||||
00090
|
||||
00091 };
|
||||
00092
|
||||
00093 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00093 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,36 +5,36 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>HevyMetl.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00029 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>HevyMetl.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00029 <span class="comment">/***************************************************/</span>
|
||||
00030
|
||||
00031 <font class="preprocessor">#if !defined(__HEVYMETL_H)</font>
|
||||
00032 <font class="preprocessor"></font><font class="preprocessor">#define __HEVYMETL_H</font>
|
||||
00033 <font class="preprocessor"></font>
|
||||
00034 <font class="preprocessor">#include "FM.h"</font>
|
||||
00031 <span class="preprocessor">#if !defined(__HEVYMETL_H)</span>
|
||||
00032 <span class="preprocessor"></span><span class="preprocessor">#define __HEVYMETL_H</span>
|
||||
00033 <span class="preprocessor"></span>
|
||||
00034 <span class="preprocessor">#include "FM.h"</span>
|
||||
00035
|
||||
00036 <font class="keyword">class </font><a class="code" href="classHevyMetl.html">HevyMetl</a> : <font class="keyword">public</font> <a class="code" href="classFM.html">FM</a>
|
||||
<a name="l00036"></a><a class="code" href="classHevyMetl.html">00036</a> <span class="keyword">class </span><a class="code" href="classHevyMetl.html">HevyMetl</a> : <span class="keyword">public</span> <a class="code" href="classFM.html">FM</a>
|
||||
00037 {
|
||||
00038 <font class="keyword">public</font>:
|
||||
00038 <span class="keyword">public</span>:
|
||||
00040 <a class="code" href="classHevyMetl.html#a0">HevyMetl</a>();
|
||||
00041
|
||||
00043 <a class="code" href="classHevyMetl.html#a1">~HevyMetl</a>();
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classHevyMetl.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00047
|
||||
00049 MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>();
|
||||
00049 MY_FLOAT <a class="code" href="classHevyMetl.html#a3">tick</a>();
|
||||
00050 };
|
||||
00051
|
||||
00052 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00052 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,51 +5,55 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Instrmnt.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00010 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Instrmnt.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00010 <span class="comment">/***************************************************/</span>
|
||||
00011
|
||||
00012 <font class="preprocessor">#if !defined(__INSTRMNT_H)</font>
|
||||
00013 <font class="preprocessor"></font><font class="preprocessor">#define __INSTRMNT_H</font>
|
||||
00014 <font class="preprocessor"></font>
|
||||
00015 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00016 <font class="preprocessor">#include <iostream.h></font>
|
||||
00012 <span class="preprocessor">#if !defined(__INSTRMNT_H)</span>
|
||||
00013 <span class="preprocessor"></span><span class="preprocessor">#define __INSTRMNT_H</span>
|
||||
00014 <span class="preprocessor"></span>
|
||||
00015 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00016 <span class="preprocessor">#include <iostream></span>
|
||||
00017
|
||||
00018 <font class="keyword">class </font><a class="code" href="classInstrmnt.html">Instrmnt</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00018"></a><a class="code" href="classInstrmnt.html">00018</a> <span class="keyword">class </span><a class="code" href="classInstrmnt.html">Instrmnt</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00019 {
|
||||
00020 <font class="keyword">public</font>:
|
||||
00020 <span class="keyword">public</span>:
|
||||
00022 <a class="code" href="classInstrmnt.html#a0">Instrmnt</a>();
|
||||
00023
|
||||
00025 <font class="keyword">virtual</font> <a class="code" href="classInstrmnt.html#a1">~Instrmnt</a>();
|
||||
00025 <span class="keyword">virtual</span> <a class="code" href="classInstrmnt.html#a1">~Instrmnt</a>();
|
||||
00026
|
||||
00028 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude) = 0;
|
||||
00028 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude) = 0;
|
||||
00029
|
||||
00031 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude) = 0;
|
||||
00031 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude) = 0;
|
||||
00032
|
||||
00034 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00034 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00035
|
||||
00037 MY_FLOAT <a class="code" href="classInstrmnt.html#a5">lastOut</a>() <font class="keyword">const</font>;
|
||||
00037 MY_FLOAT <a class="code" href="classInstrmnt.html#a5">lastOut</a>() <span class="keyword">const</span>;
|
||||
00038
|
||||
00040 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>() = 0;
|
||||
00040 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">lastOutLeft</a>() <span class="keyword">const</span>;
|
||||
00041
|
||||
00043 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classInstrmnt.html#a6">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00044
|
||||
00046 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00043 MY_FLOAT <a class="code" href="classInstrmnt.html#a7">lastOutRight</a>() <span class="keyword">const</span>;
|
||||
00044
|
||||
00046 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classInstrmnt.html#a8">tick</a>() = 0;
|
||||
00047
|
||||
00048 <font class="keyword">protected</font>:
|
||||
00049 MY_FLOAT lastOutput;
|
||||
00050
|
||||
00051 };
|
||||
00052
|
||||
00053 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00049 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classInstrmnt.html#a8">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00050
|
||||
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classInstrmnt.html#a10">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00053
|
||||
00054 <span class="keyword">protected</span>:
|
||||
00055 MY_FLOAT lastOutput;
|
||||
00056
|
||||
00057 };
|
||||
00058
|
||||
00059 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,31 +5,31 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>JCRev.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00015 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>JCRev.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00015 <span class="comment">/***************************************************/</span>
|
||||
00016
|
||||
00017 <font class="preprocessor">#if !defined(__JCREV_H)</font>
|
||||
00018 <font class="preprocessor"></font><font class="preprocessor">#define __JCREV_H</font>
|
||||
00019 <font class="preprocessor"></font>
|
||||
00020 <font class="preprocessor">#include "Reverb.h"</font>
|
||||
00021 <font class="preprocessor">#include "Delay.h"</font>
|
||||
00017 <span class="preprocessor">#if !defined(__JCREV_H)</span>
|
||||
00018 <span class="preprocessor"></span><span class="preprocessor">#define __JCREV_H</span>
|
||||
00019 <span class="preprocessor"></span>
|
||||
00020 <span class="preprocessor">#include "Reverb.h"</span>
|
||||
00021 <span class="preprocessor">#include "Delay.h"</span>
|
||||
00022
|
||||
00023 <font class="keyword">class </font><a class="code" href="classJCRev.html">JCRev</a> : <font class="keyword">public</font> <a class="code" href="classReverb.html">Reverb</a>
|
||||
<a name="l00023"></a><a class="code" href="classJCRev.html">00023</a> <span class="keyword">class </span><a class="code" href="classJCRev.html">JCRev</a> : <span class="keyword">public</span> <a class="code" href="classReverb.html">Reverb</a>
|
||||
00024 {
|
||||
00025 <font class="keyword">public</font>:
|
||||
00025 <span class="keyword">public</span>:
|
||||
00027 <a class="code" href="classJCRev.html#a0">JCRev</a>(MY_FLOAT T60);
|
||||
00028
|
||||
00030 <a class="code" href="classJCRev.html#a1">~JCRev</a>();
|
||||
00031
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classReverb.html#a2">clear</a>();
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classJCRev.html#a2">clear</a>();
|
||||
00034
|
||||
00036 MY_FLOAT <a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT input);
|
||||
00036 MY_FLOAT <a class="code" href="classJCRev.html#a3">tick</a>(MY_FLOAT input);
|
||||
00037
|
||||
00038 <font class="keyword">protected</font>:
|
||||
00038 <span class="keyword">protected</span>:
|
||||
00039 <a class="code" href="classDelay.html">Delay</a> *allpassDelays[3];
|
||||
00040 <a class="code" href="classDelay.html">Delay</a> *combDelays[4];
|
||||
00041 <a class="code" href="classDelay.html">Delay</a> *outLeftDelay;
|
||||
@@ -39,13 +39,13 @@
|
||||
00045
|
||||
00046 };
|
||||
00047
|
||||
00048 <font class="preprocessor">#endif</font>
|
||||
00049 <font class="preprocessor"></font>
|
||||
00048 <span class="preprocessor">#endif</span>
|
||||
00049 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,42 +5,42 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>JetTabl.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00014 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>JetTabl.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00014 <span class="comment">/***************************************************/</span>
|
||||
00015
|
||||
00016 <font class="preprocessor">#if !defined(__JETTABL_H)</font>
|
||||
00017 <font class="preprocessor"></font><font class="preprocessor">#define __JETTABL_H</font>
|
||||
00018 <font class="preprocessor"></font>
|
||||
00019 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00016 <span class="preprocessor">#if !defined(__JETTABL_H)</span>
|
||||
00017 <span class="preprocessor"></span><span class="preprocessor">#define __JETTABL_H</span>
|
||||
00018 <span class="preprocessor"></span>
|
||||
00019 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00020
|
||||
00021 <font class="keyword">class </font><a class="code" href="classJetTabl.html">JetTabl</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00021"></a><a class="code" href="classJetTabl.html">00021</a> <span class="keyword">class </span><a class="code" href="classJetTabl.html">JetTabl</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00022 {
|
||||
00023 <font class="keyword">public</font>:
|
||||
00023 <span class="keyword">public</span>:
|
||||
00025 <a class="code" href="classJetTabl.html#a0">JetTabl</a>();
|
||||
00026
|
||||
00028 <a class="code" href="classJetTabl.html#a1">~JetTabl</a>();
|
||||
00029
|
||||
00031 MY_FLOAT <a class="code" href="classJetTabl.html#a2">lastOut</a>() <font class="keyword">const</font>;
|
||||
00031 MY_FLOAT <a class="code" href="classJetTabl.html#a2">lastOut</a>() <span class="keyword">const</span>;
|
||||
00032
|
||||
00034 MY_FLOAT <a class="code" href="classJetTabl.html#a3">tick</a>(MY_FLOAT input);
|
||||
00035
|
||||
00037 MY_FLOAT *<a class="code" href="classJetTabl.html#a3">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00037 MY_FLOAT *<a class="code" href="classJetTabl.html#a3">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00038
|
||||
00039 <font class="keyword">protected</font>:
|
||||
00039 <span class="keyword">protected</span>:
|
||||
00040 MY_FLOAT lastOutput;
|
||||
00041
|
||||
00042 };
|
||||
00043
|
||||
00044 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00044 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,52 +5,52 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Mandolin.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00028 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Mandolin.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00028 <span class="comment">/***************************************************/</span>
|
||||
00029
|
||||
00030 <font class="preprocessor">#if !defined(__MANDOLIN_H)</font>
|
||||
00031 <font class="preprocessor"></font><font class="preprocessor">#define __MANDOLIN_H</font>
|
||||
00032 <font class="preprocessor"></font>
|
||||
00033 <font class="preprocessor">#include "PluckTwo.h"</font>
|
||||
00034 <font class="preprocessor">#include "WvIn.h"</font>
|
||||
00030 <span class="preprocessor">#if !defined(__MANDOLIN_H)</span>
|
||||
00031 <span class="preprocessor"></span><span class="preprocessor">#define __MANDOLIN_H</span>
|
||||
00032 <span class="preprocessor"></span>
|
||||
00033 <span class="preprocessor">#include "PluckTwo.h"</span>
|
||||
00034 <span class="preprocessor">#include "WvIn.h"</span>
|
||||
00035
|
||||
00036 <font class="keyword">class </font><a class="code" href="classMandolin.html">Mandolin</a> : <font class="keyword">public</font> <a class="code" href="classPluckTwo.html">PluckTwo</a>
|
||||
<a name="l00036"></a><a class="code" href="classMandolin.html">00036</a> <span class="keyword">class </span><a class="code" href="classMandolin.html">Mandolin</a> : <span class="keyword">public</span> <a class="code" href="classPluckTwo.html">PluckTwo</a>
|
||||
00037 {
|
||||
00038 <font class="keyword">public</font>:
|
||||
00038 <span class="keyword">public</span>:
|
||||
00040 <a class="code" href="classMandolin.html#a0">Mandolin</a>(MY_FLOAT lowestFrequency);
|
||||
00041
|
||||
00043 <font class="keyword">virtual</font> <a class="code" href="classMandolin.html#a1">~Mandolin</a>();
|
||||
00043 <span class="keyword">virtual</span> <a class="code" href="classMandolin.html#a1">~Mandolin</a>();
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classMandolin.html#a2">pluck</a>(MY_FLOAT amplitude);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a2">pluck</a>(MY_FLOAT amplitude);
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classMandolin.html#a2">pluck</a>(MY_FLOAT amplitude,MY_FLOAT position);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a2">pluck</a>(MY_FLOAT amplitude,MY_FLOAT position);
|
||||
00050
|
||||
00052 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a4">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classMandolin.html#a5">setBodySize</a>(MY_FLOAT size);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a5">setBodySize</a>(MY_FLOAT size);
|
||||
00056
|
||||
00058 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classPluckTwo.html#a9">tick</a>();
|
||||
00058 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classMandolin.html#a6">tick</a>();
|
||||
00059
|
||||
00061 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMandolin.html#a7">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00062
|
||||
00063 <font class="keyword">protected</font>:
|
||||
00063 <span class="keyword">protected</span>:
|
||||
00064 <a class="code" href="classWvIn.html">WvIn</a> *soundfile[12];
|
||||
00065 MY_FLOAT directBody;
|
||||
00066 <font class="keywordtype">int</font> mic;
|
||||
00067 <font class="keywordtype">long</font> dampTime;
|
||||
00068 <font class="keywordtype">bool</font> waveDone;
|
||||
00066 <span class="keywordtype">int</span> mic;
|
||||
00067 <span class="keywordtype">long</span> dampTime;
|
||||
00068 <span class="keywordtype">bool</span> waveDone;
|
||||
00069 };
|
||||
00070
|
||||
00071 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00071 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,84 +5,84 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Mesh2D.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00025 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Mesh2D.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00025 <span class="comment">/***************************************************/</span>
|
||||
00026
|
||||
00027 <font class="preprocessor">#if !defined(__MESH2D_H)</font>
|
||||
00028 <font class="preprocessor"></font><font class="preprocessor">#define __MESH2D_H</font>
|
||||
00029 <font class="preprocessor"></font>
|
||||
00030 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00031 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00027 <span class="preprocessor">#if !defined(__MESH2D_H)</span>
|
||||
00028 <span class="preprocessor"></span><span class="preprocessor">#define __MESH2D_H</span>
|
||||
00029 <span class="preprocessor"></span>
|
||||
00030 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00031 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00032
|
||||
00033 <font class="preprocessor">#define NXMAX ((short)(12))</font>
|
||||
00034 <font class="preprocessor"></font><font class="preprocessor">#define NYMAX ((short)(12))</font>
|
||||
00035 <font class="preprocessor"></font>
|
||||
00036 <font class="keyword">class </font><a class="code" href="classMesh2D.html">Mesh2D</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00033 <span class="preprocessor">#define NXMAX ((short)(12))</span>
|
||||
00034 <span class="preprocessor"></span><span class="preprocessor">#define NYMAX ((short)(12))</span>
|
||||
00035 <span class="preprocessor"></span>
|
||||
<a name="l00036"></a><a class="code" href="classMesh2D.html">00036</a> <span class="keyword">class </span><a class="code" href="classMesh2D.html">Mesh2D</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00037 {
|
||||
00038 <font class="keyword">public</font>:
|
||||
00040 <a class="code" href="classMesh2D.html#a0">Mesh2D</a>(<font class="keywordtype">short</font> nX, <font class="keywordtype">short</font> nY);
|
||||
00038 <span class="keyword">public</span>:
|
||||
00040 <a class="code" href="classMesh2D.html#a0">Mesh2D</a>(<span class="keywordtype">short</span> nX, <span class="keywordtype">short</span> nY);
|
||||
00041
|
||||
00043 <a class="code" href="classMesh2D.html#a1">~Mesh2D</a>();
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classMesh2D.html#a2">clear</a>();
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a2">clear</a>();
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classMesh2D.html#a3">setNX</a>(<font class="keywordtype">short</font> lenX);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a3">setNX</a>(<span class="keywordtype">short</span> lenX);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classMesh2D.html#a4">setNY</a>(<font class="keywordtype">short</font> lenY);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a4">setNY</a>(<span class="keywordtype">short</span> lenY);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classMesh2D.html#a5">setInputPosition</a>(MY_FLOAT xFactor, MY_FLOAT yFactor);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a5">setInputPosition</a>(MY_FLOAT xFactor, MY_FLOAT yFactor);
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classMesh2D.html#a6">setDecay</a>(MY_FLOAT decayFactor);
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a6">setDecay</a>(MY_FLOAT decayFactor);
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a7">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00062
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a8">noteOff</a>(MY_FLOAT amplitude);
|
||||
00065
|
||||
00067 MY_FLOAT <a class="code" href="classMesh2D.html#a9">energy</a>();
|
||||
00068
|
||||
00070 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00070 MY_FLOAT <a class="code" href="classMesh2D.html#a10">tick</a>();
|
||||
00071
|
||||
00073 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>(MY_FLOAT input);
|
||||
00073 MY_FLOAT <a class="code" href="classMesh2D.html#a10">tick</a>(MY_FLOAT input);
|
||||
00074
|
||||
00076 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00076 <span class="keywordtype">void</span> <a class="code" href="classMesh2D.html#a12">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00077
|
||||
00078 <font class="keyword">protected</font>:
|
||||
00078 <span class="keyword">protected</span>:
|
||||
00079
|
||||
00080 MY_FLOAT tick0();
|
||||
00081 MY_FLOAT tick1();
|
||||
00082 <font class="keywordtype">void</font> clearMesh();
|
||||
00082 <span class="keywordtype">void</span> clearMesh();
|
||||
00083
|
||||
00084 <font class="keywordtype">short</font> NX, NY;
|
||||
00085 <font class="keywordtype">short</font> xInput, yInput;
|
||||
00084 <span class="keywordtype">short</span> NX, NY;
|
||||
00085 <span class="keywordtype">short</span> xInput, yInput;
|
||||
00086 <a class="code" href="classOnePole.html">OnePole</a> *filterX[NXMAX];
|
||||
00087 <a class="code" href="classOnePole.html">OnePole</a> *filterY[NYMAX];
|
||||
00088 MY_FLOAT v[NXMAX-1][NYMAX-1]; <font class="comment">// junction velocities</font>
|
||||
00089 MY_FLOAT vxp[NXMAX][NYMAX]; <font class="comment">// positive-x velocity wave</font>
|
||||
00090 MY_FLOAT vxm[NXMAX][NYMAX]; <font class="comment">// negative-x velocity wave</font>
|
||||
00091 MY_FLOAT vyp[NXMAX][NYMAX]; <font class="comment">// positive-y velocity wave</font>
|
||||
00092 MY_FLOAT vym[NXMAX][NYMAX]; <font class="comment">// negative-y velocity wave</font>
|
||||
00088 MY_FLOAT v[NXMAX-1][NYMAX-1]; <span class="comment">// junction velocities</span>
|
||||
00089 MY_FLOAT vxp[NXMAX][NYMAX]; <span class="comment">// positive-x velocity wave</span>
|
||||
00090 MY_FLOAT vxm[NXMAX][NYMAX]; <span class="comment">// negative-x velocity wave</span>
|
||||
00091 MY_FLOAT vyp[NXMAX][NYMAX]; <span class="comment">// positive-y velocity wave</span>
|
||||
00092 MY_FLOAT vym[NXMAX][NYMAX]; <span class="comment">// negative-y velocity wave</span>
|
||||
00093
|
||||
00094 <font class="comment">// Alternate buffers</font>
|
||||
00095 MY_FLOAT vxp1[NXMAX][NYMAX]; <font class="comment">// positive-x velocity wave</font>
|
||||
00096 MY_FLOAT vxm1[NXMAX][NYMAX]; <font class="comment">// negative-x velocity wave</font>
|
||||
00097 MY_FLOAT vyp1[NXMAX][NYMAX]; <font class="comment">// positive-y velocity wave</font>
|
||||
00098 MY_FLOAT vym1[NXMAX][NYMAX]; <font class="comment">// negative-y velocity wave</font>
|
||||
00094 <span class="comment">// Alternate buffers</span>
|
||||
00095 MY_FLOAT vxp1[NXMAX][NYMAX]; <span class="comment">// positive-x velocity wave</span>
|
||||
00096 MY_FLOAT vxm1[NXMAX][NYMAX]; <span class="comment">// negative-x velocity wave</span>
|
||||
00097 MY_FLOAT vyp1[NXMAX][NYMAX]; <span class="comment">// positive-y velocity wave</span>
|
||||
00098 MY_FLOAT vym1[NXMAX][NYMAX]; <span class="comment">// negative-y velocity wave</span>
|
||||
00099
|
||||
00100 <font class="keywordtype">int</font> counter; <font class="comment">// time in samples</font>
|
||||
00100 <span class="keywordtype">int</span> counter; <span class="comment">// time in samples</span>
|
||||
00101
|
||||
00102
|
||||
00103 };
|
||||
00104
|
||||
00105 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00105 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,109 +5,109 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Messager.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00034 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Messager.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00034 <span class="comment">/***************************************************/</span>
|
||||
00035
|
||||
00036 <font class="preprocessor">#if !defined(__MESSAGER_H)</font>
|
||||
00037 <font class="preprocessor"></font><font class="preprocessor">#define __MESSSAGER_H</font>
|
||||
00038 <font class="preprocessor"></font>
|
||||
00039 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00040 <font class="preprocessor">#include "SKINI.h"</font>
|
||||
00036 <span class="preprocessor">#if !defined(__MESSAGER_H)</span>
|
||||
00037 <span class="preprocessor"></span><span class="preprocessor">#define __MESSSAGER_H</span>
|
||||
00038 <span class="preprocessor"></span>
|
||||
00039 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00040 <span class="preprocessor">#include "SKINI.h"</span>
|
||||
00041
|
||||
00042 <font class="preprocessor">#define MESSAGE_LENGTH 128</font>
|
||||
00043 <font class="preprocessor"></font><font class="preprocessor">#define MAX_MESSAGES 25</font>
|
||||
00044 <font class="preprocessor"></font><font class="preprocessor">#define STK_MIDI 0x0001</font>
|
||||
00045 <font class="preprocessor"></font><font class="preprocessor">#define STK_PIPE 0x0002</font>
|
||||
00046 <font class="preprocessor"></font><font class="preprocessor">#define STK_SOCKET 0x0004</font>
|
||||
00047 <font class="preprocessor"></font>
|
||||
00048 <font class="preprocessor">#if defined(__STK_REALTIME__)</font>
|
||||
00049 <font class="preprocessor"></font>
|
||||
00050 <font class="preprocessor">#include "Thread.h"</font>
|
||||
00051 <font class="preprocessor">#include "Socket.h"</font>
|
||||
00052 <font class="preprocessor">#include "RtMidi.h"</font>
|
||||
00042 <span class="preprocessor">#define MESSAGE_LENGTH 128</span>
|
||||
00043 <span class="preprocessor"></span><span class="preprocessor">#define MAX_MESSAGES 25</span>
|
||||
00044 <span class="preprocessor"></span><span class="preprocessor">#define STK_MIDI 0x0001</span>
|
||||
00045 <span class="preprocessor"></span><span class="preprocessor">#define STK_PIPE 0x0002</span>
|
||||
00046 <span class="preprocessor"></span><span class="preprocessor">#define STK_SOCKET 0x0004</span>
|
||||
00047 <span class="preprocessor"></span>
|
||||
00048 <span class="preprocessor">#if defined(__STK_REALTIME__)</span>
|
||||
00049 <span class="preprocessor"></span>
|
||||
00050 <span class="preprocessor">#include "Thread.h"</span>
|
||||
00051 <span class="preprocessor">#include "Socket.h"</span>
|
||||
00052 <span class="preprocessor">#include "RtMidi.h"</span>
|
||||
00053
|
||||
00054 <font class="keyword">extern</font> <font class="stringliteral">"C"</font> THREAD_RETURN THREAD_TYPE stdinHandler(<font class="keywordtype">void</font> * ptr);
|
||||
00054 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> THREAD_RETURN THREAD_TYPE stdinHandler(<span class="keywordtype">void</span> * ptr);
|
||||
00055
|
||||
00056 <font class="preprocessor">#if (defined(__OS_IRIX__) || defined(__OS_LINUX__) || defined(__OS_MACOSX__))</font>
|
||||
00057 <font class="preprocessor"></font><font class="preprocessor"> #include <sys/types.h></font>
|
||||
00058 <font class="preprocessor"> #include <sys/time.h></font>
|
||||
00059 <font class="preprocessor">#endif</font>
|
||||
00060 <font class="preprocessor"></font>
|
||||
00061 <font class="preprocessor">#endif // __STK_REALTIME__</font>
|
||||
00062 <font class="preprocessor"></font>
|
||||
00063 <font class="keyword">class </font><a class="code" href="classMessager.html">Messager</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
00056 <span class="preprocessor">#if (defined(__OS_IRIX__) || defined(__OS_LINUX__) || defined(__OS_MACOSX__))</span>
|
||||
00057 <span class="preprocessor"></span><span class="preprocessor"> #include <sys/types.h></span>
|
||||
00058 <span class="preprocessor"> #include <sys/time.h></span>
|
||||
00059 <span class="preprocessor">#endif</span>
|
||||
00060 <span class="preprocessor"></span>
|
||||
00061 <span class="preprocessor">#endif // __STK_REALTIME__</span>
|
||||
00062 <span class="preprocessor"></span>
|
||||
<a name="l00063"></a><a class="code" href="classMessager.html">00063</a> <span class="keyword">class </span><a class="code" href="classMessager.html">Messager</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00064 {
|
||||
00065 <font class="keyword">public</font>:
|
||||
00065 <span class="keyword">public</span>:
|
||||
00067
|
||||
00075 <a class="code" href="classMessager.html#a0">Messager</a>(<font class="keywordtype">int</font> inputMask = 0, <font class="keywordtype">int</font> port = 2001);
|
||||
00075 <a class="code" href="classMessager.html#a0">Messager</a>(<span class="keywordtype">int</span> inputMask = 0, <span class="keywordtype">int</span> port = 2001);
|
||||
00076
|
||||
00078 <a class="code" href="classMessager.html#a1">~Messager</a>();
|
||||
00079
|
||||
00081
|
||||
00087 <font class="keywordtype">long</font> <a class="code" href="classMessager.html#a2">nextMessage</a>(<font class="keywordtype">void</font>);
|
||||
00087 <span class="keywordtype">long</span> <a class="code" href="classMessager.html#a2">nextMessage</a>(<span class="keywordtype">void</span>);
|
||||
00088
|
||||
00090 <font class="keywordtype">void</font> <a class="code" href="classMessager.html#a3">setRtDelta</a>(<font class="keywordtype">long</font> nSamples);
|
||||
00090 <span class="keywordtype">void</span> <a class="code" href="classMessager.html#a3">setRtDelta</a>(<span class="keywordtype">long</span> nSamples);
|
||||
00091
|
||||
00093 <font class="keywordtype">long</font> <a class="code" href="classMessager.html#a4">getDelta</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00093 <span class="keywordtype">long</span> <a class="code" href="classMessager.html#a4">getDelta</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00094
|
||||
00096 <font class="keywordtype">long</font> <a class="code" href="classMessager.html#a5">getType</a>() <font class="keyword">const</font>;
|
||||
00096 <span class="keywordtype">long</span> <a class="code" href="classMessager.html#a5">getType</a>() <span class="keyword">const</span>;
|
||||
00097
|
||||
00099 MY_FLOAT <a class="code" href="classMessager.html#a6">getByteTwo</a>() <font class="keyword">const</font>;
|
||||
00099 MY_FLOAT <a class="code" href="classMessager.html#a6">getByteTwo</a>() <span class="keyword">const</span>;
|
||||
00100
|
||||
00102 MY_FLOAT <a class="code" href="classMessager.html#a7">getByteThree</a>() <font class="keyword">const</font>;
|
||||
00102 MY_FLOAT <a class="code" href="classMessager.html#a7">getByteThree</a>() <span class="keyword">const</span>;
|
||||
00103
|
||||
00105 <font class="keywordtype">long</font> <a class="code" href="classMessager.html#a8">getChannel</a>() <font class="keyword">const</font>;
|
||||
00105 <span class="keywordtype">long</span> <a class="code" href="classMessager.html#a8">getChannel</a>() <span class="keyword">const</span>;
|
||||
00106
|
||||
00107 <font class="keyword">protected</font>:
|
||||
00107 <span class="keyword">protected</span>:
|
||||
00108
|
||||
00109 <a class="code" href="classSKINI.html">SKINI</a> *skini;
|
||||
00110 <font class="keywordtype">long</font> type;
|
||||
00111 <font class="keywordtype">long</font> channel;
|
||||
00110 <span class="keywordtype">long</span> type;
|
||||
00111 <span class="keywordtype">long</span> channel;
|
||||
00112 MY_FLOAT byte2;
|
||||
00113 MY_FLOAT byte3;
|
||||
00114 <font class="keywordtype">int</font> sources;
|
||||
00115 <font class="keywordtype">long</font> delta;
|
||||
00116 <font class="keywordtype">long</font> rtDelta;
|
||||
00117 <font class="keywordtype">char</font> message[MAX_MESSAGES][MESSAGE_LENGTH];
|
||||
00118 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> messageIndex;
|
||||
00119 <font class="keywordtype">int</font> nMessages;
|
||||
00114 <span class="keywordtype">int</span> sources;
|
||||
00115 <span class="keywordtype">long</span> delta;
|
||||
00116 <span class="keywordtype">long</span> rtDelta;
|
||||
00117 <span class="keywordtype">char</span> message[MAX_MESSAGES][MESSAGE_LENGTH];
|
||||
00118 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> messageIndex;
|
||||
00119 <span class="keywordtype">int</span> nMessages;
|
||||
00120
|
||||
00121 <font class="preprocessor">#if defined(__STK_REALTIME__)</font>
|
||||
00122 <font class="preprocessor"></font>
|
||||
00123 <font class="comment">// Check MIDI source for new messages.</font>
|
||||
00124 <font class="keywordtype">bool</font> midiMessage(<font class="keywordtype">void</font>);
|
||||
00121 <span class="preprocessor">#if defined(__STK_REALTIME__)</span>
|
||||
00122 <span class="preprocessor"></span>
|
||||
00123 <span class="comment">// Check MIDI source for new messages.</span>
|
||||
00124 <span class="keywordtype">bool</span> midiMessage(<span class="keywordtype">void</span>);
|
||||
00125
|
||||
00126 <font class="comment">// Check socket sources for new messages.</font>
|
||||
00127 <font class="keywordtype">bool</font> socketMessage(<font class="keywordtype">void</font>);
|
||||
00126 <span class="comment">// Check socket sources for new messages.</span>
|
||||
00127 <span class="keywordtype">bool</span> socketMessage(<span class="keywordtype">void</span>);
|
||||
00128
|
||||
00129 <font class="comment">// Receive and parse socket data.</font>
|
||||
00130 <font class="keywordtype">bool</font> readSocket(<font class="keywordtype">int</font> fd);
|
||||
00129 <span class="comment">// Receive and parse socket data.</span>
|
||||
00130 <span class="keywordtype">bool</span> readSocket(<span class="keywordtype">int</span> fd);
|
||||
00131
|
||||
00132 <a class="code" href="classRtMidi.html">RtMidi</a> *midi;
|
||||
00133 <a class="code" href="classThread.html">Thread</a> *thread;
|
||||
00134 <a class="code" href="classSocket.html">Socket</a> *soket;
|
||||
00135
|
||||
00136 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nSockets;
|
||||
00136 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nSockets;
|
||||
00137 fd_set mask;
|
||||
00138 <font class="keywordtype">int</font> maxfd;
|
||||
00139 <font class="keywordtype">int</font> pipefd;
|
||||
00140 <font class="keywordtype">int</font> fd[16];
|
||||
00141 <font class="keywordtype">char</font> error[256];
|
||||
00138 <span class="keywordtype">int</span> maxfd;
|
||||
00139 <span class="keywordtype">int</span> pipefd;
|
||||
00140 <span class="keywordtype">int</span> fd[16];
|
||||
00141 <span class="keywordtype">char</span> error[256];
|
||||
00142
|
||||
00143 <font class="preprocessor">#endif // __STK_REALTIME__</font>
|
||||
00144 <font class="preprocessor"></font>
|
||||
00143 <span class="preprocessor">#endif // __STK_REALTIME__</span>
|
||||
00144 <span class="preprocessor"></span>
|
||||
00145 };
|
||||
00146
|
||||
00147 <font class="preprocessor">#endif // defined(__MESSAGER_H)</font>
|
||||
</font></pre></div><HR>
|
||||
00147 <span class="preprocessor">#endif // defined(__MESSAGER_H)</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,42 +5,42 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>ModalBar.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00028 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>ModalBar.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00028 <span class="comment">/***************************************************/</span>
|
||||
00029
|
||||
00030 <font class="preprocessor">#if !defined(__MODALBAR_H)</font>
|
||||
00031 <font class="preprocessor"></font><font class="preprocessor">#define __MODALBAR_H</font>
|
||||
00032 <font class="preprocessor"></font>
|
||||
00033 <font class="preprocessor">#include "Modal.h"</font>
|
||||
00030 <span class="preprocessor">#if !defined(__MODALBAR_H)</span>
|
||||
00031 <span class="preprocessor"></span><span class="preprocessor">#define __MODALBAR_H</span>
|
||||
00032 <span class="preprocessor"></span>
|
||||
00033 <span class="preprocessor">#include "Modal.h"</span>
|
||||
00034
|
||||
00035 <font class="keyword">class </font><a class="code" href="classModalBar.html">ModalBar</a> : <font class="keyword">public</font> <a class="code" href="classModal.html">Modal</a>
|
||||
<a name="l00035"></a><a class="code" href="classModalBar.html">00035</a> <span class="keyword">class </span><a class="code" href="classModalBar.html">ModalBar</a> : <span class="keyword">public</span> <a class="code" href="classModal.html">Modal</a>
|
||||
00036 {
|
||||
00037 <font class="keyword">public</font>:
|
||||
00037 <span class="keyword">public</span>:
|
||||
00039 <a class="code" href="classModalBar.html#a0">ModalBar</a>();
|
||||
00040
|
||||
00042 <a class="code" href="classModalBar.html#a1">~ModalBar</a>();
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classModalBar.html#a2">setStickHardness</a>(MY_FLOAT hardness);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classModalBar.html#a2">setStickHardness</a>(MY_FLOAT hardness);
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classModalBar.html#a3">setStrikePosition</a>(MY_FLOAT position);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classModalBar.html#a3">setStrikePosition</a>(MY_FLOAT position);
|
||||
00049
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classModalBar.html#a4">setPreset</a>(<font class="keywordtype">int</font> preset);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classModalBar.html#a4">setPreset</a>(<span class="keywordtype">int</span> preset);
|
||||
00052
|
||||
00054 <font class="keywordtype">void</font> <a class="code" href="classModalBar.html#a5">setModulationDepth</a>(MY_FLOAT mDepth);
|
||||
00054 <span class="keywordtype">void</span> <a class="code" href="classModalBar.html#a5">setModulationDepth</a>(MY_FLOAT mDepth);
|
||||
00055
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a13">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classModalBar.html#a6">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00058 };
|
||||
00059
|
||||
00060 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00060 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,60 +5,60 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Modal.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00012 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Modal.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00012 <span class="comment">/***************************************************/</span>
|
||||
00013
|
||||
00014 <font class="preprocessor">#if !defined(__MODAL_H)</font>
|
||||
00015 <font class="preprocessor"></font><font class="preprocessor">#define __MODAL_H</font>
|
||||
00016 <font class="preprocessor"></font>
|
||||
00017 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00018 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00019 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00020 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00021 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00014 <span class="preprocessor">#if !defined(__MODAL_H)</span>
|
||||
00015 <span class="preprocessor"></span><span class="preprocessor">#define __MODAL_H</span>
|
||||
00016 <span class="preprocessor"></span>
|
||||
00017 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00018 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00019 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00020 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00021 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00022
|
||||
00023 <font class="keyword">class </font><a class="code" href="classModal.html">Modal</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00023"></a><a class="code" href="classModal.html">00023</a> <span class="keyword">class </span><a class="code" href="classModal.html">Modal</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00024 {
|
||||
00025 <font class="keyword">public</font>:
|
||||
00027 <a class="code" href="classModal.html#a0">Modal</a>( <font class="keywordtype">int</font> modes = 4 );
|
||||
00025 <span class="keyword">public</span>:
|
||||
00027 <a class="code" href="classModal.html#a0">Modal</a>( <span class="keywordtype">int</span> modes = 4 );
|
||||
00028
|
||||
00030 <font class="keyword">virtual</font> <a class="code" href="classModal.html#a1">~Modal</a>();
|
||||
00030 <span class="keyword">virtual</span> <a class="code" href="classModal.html#a1">~Modal</a>();
|
||||
00031
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a2">clear</a>();
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a2">clear</a>();
|
||||
00034
|
||||
00036 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00036 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModal.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00037
|
||||
00039 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a4">setRatioAndRadius</a>(<font class="keywordtype">int</font> modeIndex, MY_FLOAT ratio, MY_FLOAT radius);
|
||||
00039 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a4">setRatioAndRadius</a>(<span class="keywordtype">int</span> modeIndex, MY_FLOAT ratio, MY_FLOAT radius);
|
||||
00040
|
||||
00042 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a5">setMasterGain</a>(MY_FLOAT aGain);
|
||||
00042 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a5">setMasterGain</a>(MY_FLOAT aGain);
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a6">setDirectGain</a>(MY_FLOAT aGain);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a6">setDirectGain</a>(MY_FLOAT aGain);
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a7">setModeGain</a>(<font class="keywordtype">int</font> modeIndex, MY_FLOAT gain);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a7">setModeGain</a>(<span class="keywordtype">int</span> modeIndex, MY_FLOAT gain);
|
||||
00049
|
||||
00051 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classModal.html#a8">strike</a>(MY_FLOAT amplitude);
|
||||
00051 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModal.html#a8">strike</a>(MY_FLOAT amplitude);
|
||||
00052
|
||||
00054 <font class="keywordtype">void</font> <a class="code" href="classModal.html#a9">damp</a>(MY_FLOAT amplitude);
|
||||
00054 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a9">damp</a>(MY_FLOAT amplitude);
|
||||
00055
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a10">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00058
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classModal.html#a11">noteOff</a>(MY_FLOAT amplitude);
|
||||
00061
|
||||
00063 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00063 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classModal.html#a12">tick</a>();
|
||||
00064
|
||||
00066 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value) = 0;
|
||||
00066 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModal.html#a13">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value) = 0;
|
||||
00067
|
||||
00068 <font class="keyword">protected</font>:
|
||||
00068 <span class="keyword">protected</span>:
|
||||
00069 <a class="code" href="classEnvelope.html">Envelope</a> *envelope;
|
||||
00070 <a class="code" href="classWvIn.html">WvIn</a> *wave;
|
||||
00071 <a class="code" href="classBiQuad.html">BiQuad</a> **filters;
|
||||
00072 <a class="code" href="classOnePole.html">OnePole</a> *onepole;
|
||||
00073 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00074 <font class="keywordtype">int</font> nModes;
|
||||
00074 <span class="keywordtype">int</span> nModes;
|
||||
00075 MY_FLOAT vibratoGain;
|
||||
00076 MY_FLOAT masterGain;
|
||||
00077 MY_FLOAT directGain;
|
||||
@@ -70,12 +70,12 @@
|
||||
00083
|
||||
00084 };
|
||||
00085
|
||||
00086 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00086 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,43 +5,43 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Modulate.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00011 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Modulate.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00011 <span class="comment">/***************************************************/</span>
|
||||
00012
|
||||
00013 <font class="preprocessor">#if !defined(__MODULATE_H)</font>
|
||||
00014 <font class="preprocessor"></font><font class="preprocessor">#define __MODULATE_H</font>
|
||||
00015 <font class="preprocessor"></font>
|
||||
00016 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00017 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00018 <font class="preprocessor">#include "SubNoise.h"</font>
|
||||
00019 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00013 <span class="preprocessor">#if !defined(__MODULATE_H)</span>
|
||||
00014 <span class="preprocessor"></span><span class="preprocessor">#define __MODULATE_H</span>
|
||||
00015 <span class="preprocessor"></span>
|
||||
00016 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00017 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00018 <span class="preprocessor">#include "SubNoise.h"</span>
|
||||
00019 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00020
|
||||
00021 <font class="keyword">class </font><a class="code" href="classModulate.html">Modulate</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00021"></a><a class="code" href="classModulate.html">00021</a> <span class="keyword">class </span><a class="code" href="classModulate.html">Modulate</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00022 {
|
||||
00023 <font class="keyword">public</font>:
|
||||
00023 <span class="keyword">public</span>:
|
||||
00025 <a class="code" href="classModulate.html#a0">Modulate</a>();
|
||||
00026
|
||||
00028 <a class="code" href="classModulate.html#a1">~Modulate</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classModulate.html#a2">reset</a>();
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classModulate.html#a2">reset</a>();
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classModulate.html#a3">setVibratoRate</a>(MY_FLOAT aRate);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classModulate.html#a3">setVibratoRate</a>(MY_FLOAT aRate);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classModulate.html#a4">setVibratoGain</a>(MY_FLOAT aGain);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classModulate.html#a4">setVibratoGain</a>(MY_FLOAT aGain);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classModulate.html#a5">setRandomGain</a>(MY_FLOAT aGain);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classModulate.html#a5">setRandomGain</a>(MY_FLOAT aGain);
|
||||
00041
|
||||
00043 MY_FLOAT <a class="code" href="classModulate.html#a6">tick</a>();
|
||||
00044
|
||||
00046 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classModulate.html#a6">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00046 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classModulate.html#a6">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00047
|
||||
00049 MY_FLOAT <a class="code" href="classModulate.html#a8">lastOut</a>() <font class="keyword">const</font>;
|
||||
00049 MY_FLOAT <a class="code" href="classModulate.html#a8">lastOut</a>() <span class="keyword">const</span>;
|
||||
00050
|
||||
00051 <font class="keyword">protected</font>:
|
||||
00051 <span class="keyword">protected</span>:
|
||||
00052 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00053 <a class="code" href="classSubNoise.html">SubNoise</a> *noise;
|
||||
00054 <a class="code" href="classOnePole.html">OnePole</a> *filter;
|
||||
@@ -51,12 +51,12 @@
|
||||
00058
|
||||
00059 };
|
||||
00060
|
||||
00061 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00061 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,39 +5,39 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Moog.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00019 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Moog.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00019 <span class="comment">/***************************************************/</span>
|
||||
00020
|
||||
00021 <font class="preprocessor">#if !defined(__MOOG_H)</font>
|
||||
00022 <font class="preprocessor"></font><font class="preprocessor">#define __MOOG_H</font>
|
||||
00023 <font class="preprocessor"></font>
|
||||
00024 <font class="preprocessor">#include "Sampler.h"</font>
|
||||
00025 <font class="preprocessor">#include "FormSwep.h"</font>
|
||||
00021 <span class="preprocessor">#if !defined(__MOOG_H)</span>
|
||||
00022 <span class="preprocessor"></span><span class="preprocessor">#define __MOOG_H</span>
|
||||
00023 <span class="preprocessor"></span>
|
||||
00024 <span class="preprocessor">#include "Sampler.h"</span>
|
||||
00025 <span class="preprocessor">#include "FormSwep.h"</span>
|
||||
00026
|
||||
00027 <font class="keyword">class </font><a class="code" href="classMoog.html">Moog</a> : <font class="keyword">public</font> <a class="code" href="classSampler.html">Sampler</a>
|
||||
<a name="l00027"></a><a class="code" href="classMoog.html">00027</a> <span class="keyword">class </span><a class="code" href="classMoog.html">Moog</a> : <span class="keyword">public</span> <a class="code" href="classSampler.html">Sampler</a>
|
||||
00028 {
|
||||
00029 <font class="keyword">public</font>:
|
||||
00029 <span class="keyword">public</span>:
|
||||
00031 <a class="code" href="classMoog.html#a0">Moog</a>();
|
||||
00032
|
||||
00034 <a class="code" href="classMoog.html#a1">~Moog</a>();
|
||||
00035
|
||||
00037 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classSampler.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00037 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMoog.html#a2">setFrequency</a>(MY_FLOAT frequency);
|
||||
00038
|
||||
00040 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00040 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMoog.html#a3">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00041
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classMoog.html#a4">setModulationSpeed</a>(MY_FLOAT mSpeed);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classMoog.html#a4">setModulationSpeed</a>(MY_FLOAT mSpeed);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classMoog.html#a5">setModulationDepth</a>(MY_FLOAT mDepth);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classMoog.html#a5">setModulationDepth</a>(MY_FLOAT mDepth);
|
||||
00047
|
||||
00049 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classSampler.html#a7">tick</a>();
|
||||
00049 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classMoog.html#a6">tick</a>();
|
||||
00050
|
||||
00052 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classSampler.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMoog.html#a7">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00053
|
||||
00054 <font class="keyword">protected</font>:
|
||||
00054 <span class="keyword">protected</span>:
|
||||
00055 <a class="code" href="classFormSwep.html">FormSwep</a> *filters[2];
|
||||
00056 MY_FLOAT modDepth;
|
||||
00057 MY_FLOAT filterQ;
|
||||
@@ -45,12 +45,12 @@
|
||||
00059
|
||||
00060 };
|
||||
00061
|
||||
00062 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00062 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,31 +5,31 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>NRev.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00017 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>NRev.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00017 <span class="comment">/***************************************************/</span>
|
||||
00018
|
||||
00019 <font class="preprocessor">#if !defined(__NREV_H)</font>
|
||||
00020 <font class="preprocessor"></font><font class="preprocessor">#define __NREV_H</font>
|
||||
00021 <font class="preprocessor"></font>
|
||||
00022 <font class="preprocessor">#include "Reverb.h"</font>
|
||||
00023 <font class="preprocessor">#include "Delay.h"</font>
|
||||
00019 <span class="preprocessor">#if !defined(__NREV_H)</span>
|
||||
00020 <span class="preprocessor"></span><span class="preprocessor">#define __NREV_H</span>
|
||||
00021 <span class="preprocessor"></span>
|
||||
00022 <span class="preprocessor">#include "Reverb.h"</span>
|
||||
00023 <span class="preprocessor">#include "Delay.h"</span>
|
||||
00024
|
||||
00025 <font class="keyword">class </font><a class="code" href="classNRev.html">NRev</a> : <font class="keyword">public</font> <a class="code" href="classReverb.html">Reverb</a>
|
||||
<a name="l00025"></a><a class="code" href="classNRev.html">00025</a> <span class="keyword">class </span><a class="code" href="classNRev.html">NRev</a> : <span class="keyword">public</span> <a class="code" href="classReverb.html">Reverb</a>
|
||||
00026 {
|
||||
00027 <font class="keyword">public</font>:
|
||||
00027 <span class="keyword">public</span>:
|
||||
00029 <a class="code" href="classNRev.html#a0">NRev</a>(MY_FLOAT T60);
|
||||
00030
|
||||
00032 <a class="code" href="classNRev.html#a1">~NRev</a>();
|
||||
00033
|
||||
00035 <font class="keywordtype">void</font> <a class="code" href="classReverb.html#a2">clear</a>();
|
||||
00035 <span class="keywordtype">void</span> <a class="code" href="classNRev.html#a2">clear</a>();
|
||||
00036
|
||||
00038 MY_FLOAT <a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT input);
|
||||
00038 MY_FLOAT <a class="code" href="classNRev.html#a3">tick</a>(MY_FLOAT input);
|
||||
00039
|
||||
00040 <font class="keyword">protected</font>:
|
||||
00040 <span class="keyword">protected</span>:
|
||||
00041 <a class="code" href="classDelay.html">Delay</a> *allpassDelays[8];
|
||||
00042 <a class="code" href="classDelay.html">Delay</a> *combDelays[6];
|
||||
00043 MY_FLOAT allpassCoefficient;
|
||||
@@ -38,13 +38,13 @@
|
||||
00046
|
||||
00047 };
|
||||
00048
|
||||
00049 <font class="preprocessor">#endif</font>
|
||||
00050 <font class="preprocessor"></font>
|
||||
00049 <span class="preprocessor">#endif</span>
|
||||
00050 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,44 +5,50 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Noise.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00011 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Noise.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00011 <span class="comment">/***************************************************/</span>
|
||||
00012
|
||||
00013 <font class="preprocessor">#if !defined(__NOISE_H)</font>
|
||||
00014 <font class="preprocessor"></font><font class="preprocessor">#define __NOISE_H</font>
|
||||
00015 <font class="preprocessor"></font>
|
||||
00016 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00013 <span class="preprocessor">#if !defined(__NOISE_H)</span>
|
||||
00014 <span class="preprocessor"></span><span class="preprocessor">#define __NOISE_H</span>
|
||||
00015 <span class="preprocessor"></span>
|
||||
00016 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00017
|
||||
00018 <font class="keyword">class </font><a class="code" href="classNoise.html">Noise</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00018"></a><a class="code" href="classNoise.html">00018</a> <span class="keyword">class </span><a class="code" href="classNoise.html">Noise</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00019 {
|
||||
00020 <font class="keyword">public</font>:
|
||||
00020 <span class="keyword">public</span>:
|
||||
00021
|
||||
00023 <a class="code" href="classNoise.html#a0">Noise</a>();
|
||||
00024
|
||||
00026 <font class="keyword">virtual</font> <a class="code" href="classNoise.html#a1">~Noise</a>();
|
||||
00027
|
||||
00029 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classNoise.html#a2">tick</a>();
|
||||
00030
|
||||
00032 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classNoise.html#a2">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00033
|
||||
00035 MY_FLOAT <a class="code" href="classNoise.html#a4">lastOut</a>() <font class="keyword">const</font>;
|
||||
00026
|
||||
00030 <a class="code" href="classNoise.html#a0">Noise</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seed );
|
||||
00031
|
||||
00033 <span class="keyword">virtual</span> <a class="code" href="classNoise.html#a2">~Noise</a>();
|
||||
00034
|
||||
00036
|
||||
00037 <font class="keyword">protected</font>:
|
||||
00038
|
||||
00039 MY_FLOAT lastOutput;
|
||||
00040
|
||||
00041 };
|
||||
00042
|
||||
00043 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classNoise.html#a3">setSeed</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seed = 0 );
|
||||
00041
|
||||
00043 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classNoise.html#a4">tick</a>();
|
||||
00044
|
||||
00046 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classNoise.html#a4">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00047
|
||||
00049 MY_FLOAT <a class="code" href="classNoise.html#a6">lastOut</a>() <span class="keyword">const</span>;
|
||||
00050
|
||||
00051 <span class="keyword">protected</span>:
|
||||
00052
|
||||
00053 MY_FLOAT lastOutput;
|
||||
00054
|
||||
00055 };
|
||||
00056
|
||||
00057 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,21 +5,21 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>OnePole.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>OnePole.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__ONEPOLE_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __ONEPOLE_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__ONEPOLE_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __ONEPOLE_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classOnePole.html">OnePole</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00020"></a><a class="code" href="classOnePole.html">00020</a> <span class="keyword">class </span><a class="code" href="classOnePole.html">OnePole</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00023
|
||||
00025 <a class="code" href="classOnePole.html#a0">OnePole</a>();
|
||||
00026
|
||||
@@ -27,33 +27,33 @@
|
||||
00029
|
||||
00031 <a class="code" href="classOnePole.html#a2">~OnePole</a>();
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classOnePole.html#a3">clear</a>(<span class="keywordtype">void</span>);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classOnePole.html#a4">setB0</a>(MY_FLOAT b0);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classOnePole.html#a4">setB0</a>(MY_FLOAT b0);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classOnePole.html#a5">setA1</a>(MY_FLOAT a1);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classOnePole.html#a5">setA1</a>(MY_FLOAT a1);
|
||||
00041
|
||||
00043
|
||||
00050 <font class="keywordtype">void</font> <a class="code" href="classOnePole.html#a6">setPole</a>(MY_FLOAT thePole);
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classOnePole.html#a6">setPole</a>(MY_FLOAT thePole);
|
||||
00051
|
||||
00053
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classOnePole.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00058
|
||||
00060 MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00060 MY_FLOAT <a class="code" href="classOnePole.html#a8">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00061
|
||||
00063 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00063 MY_FLOAT <a class="code" href="classOnePole.html#a9">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00064
|
||||
00066 MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00066 MY_FLOAT <a class="code" href="classOnePole.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00067
|
||||
00069 MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00069 MY_FLOAT *<a class="code" href="classOnePole.html#a10">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00070 };
|
||||
00071
|
||||
00072 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00072 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,21 +5,21 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>OneZero.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>OneZero.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__ONEZERO_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __ONEZERO_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__ONEZERO_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __ONEZERO_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classOneZero.html">OneZero</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00020"></a><a class="code" href="classOneZero.html">00020</a> <span class="keyword">class </span><a class="code" href="classOneZero.html">OneZero</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00023
|
||||
00025 <a class="code" href="classOneZero.html#a0">OneZero</a>();
|
||||
00026
|
||||
@@ -27,33 +27,33 @@
|
||||
00029
|
||||
00031 <a class="code" href="classOneZero.html#a2">~OneZero</a>();
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classOneZero.html#a3">clear</a>(<span class="keywordtype">void</span>);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classOneZero.html#a4">setB0</a>(MY_FLOAT b0);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classOneZero.html#a4">setB0</a>(MY_FLOAT b0);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classOneZero.html#a5">setB1</a>(MY_FLOAT b1);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classOneZero.html#a5">setB1</a>(MY_FLOAT b1);
|
||||
00041
|
||||
00043
|
||||
00050 <font class="keywordtype">void</font> <a class="code" href="classOneZero.html#a6">setZero</a>(MY_FLOAT theZero);
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classOneZero.html#a6">setZero</a>(MY_FLOAT theZero);
|
||||
00051
|
||||
00053
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classOneZero.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00058
|
||||
00060 MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00060 MY_FLOAT <a class="code" href="classOneZero.html#a8">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00061
|
||||
00063 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00063 MY_FLOAT <a class="code" href="classOneZero.html#a9">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00064
|
||||
00066 MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00066 MY_FLOAT <a class="code" href="classOneZero.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00067
|
||||
00069 MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00069 MY_FLOAT *<a class="code" href="classOneZero.html#a10">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00070 };
|
||||
00071
|
||||
00072 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00072 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,31 +5,31 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>PRCRev.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00015 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>PRCRev.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00015 <span class="comment">/***************************************************/</span>
|
||||
00016
|
||||
00017 <font class="preprocessor">#if !defined(__PRCREV_H)</font>
|
||||
00018 <font class="preprocessor"></font><font class="preprocessor">#define __PRCREV_H</font>
|
||||
00019 <font class="preprocessor"></font>
|
||||
00020 <font class="preprocessor">#include "Reverb.h"</font>
|
||||
00021 <font class="preprocessor">#include "Delay.h"</font>
|
||||
00017 <span class="preprocessor">#if !defined(__PRCREV_H)</span>
|
||||
00018 <span class="preprocessor"></span><span class="preprocessor">#define __PRCREV_H</span>
|
||||
00019 <span class="preprocessor"></span>
|
||||
00020 <span class="preprocessor">#include "Reverb.h"</span>
|
||||
00021 <span class="preprocessor">#include "Delay.h"</span>
|
||||
00022
|
||||
00023 <font class="keyword">class </font><a class="code" href="classPRCRev.html">PRCRev</a> : <font class="keyword">public</font> <a class="code" href="classReverb.html">Reverb</a>
|
||||
<a name="l00023"></a><a class="code" href="classPRCRev.html">00023</a> <span class="keyword">class </span><a class="code" href="classPRCRev.html">PRCRev</a> : <span class="keyword">public</span> <a class="code" href="classReverb.html">Reverb</a>
|
||||
00024 {
|
||||
00025 <font class="keyword">public</font>:
|
||||
00025 <span class="keyword">public</span>:
|
||||
00027 <a class="code" href="classPRCRev.html#a0">PRCRev</a>(MY_FLOAT T60);
|
||||
00028
|
||||
00030 <a class="code" href="classPRCRev.html#a1">~PRCRev</a>();
|
||||
00031
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classReverb.html#a2">clear</a>();
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classPRCRev.html#a2">clear</a>();
|
||||
00034
|
||||
00036 MY_FLOAT <a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT input);
|
||||
00036 MY_FLOAT <a class="code" href="classPRCRev.html#a3">tick</a>(MY_FLOAT input);
|
||||
00037
|
||||
00038 <font class="keyword">protected</font>:
|
||||
00038 <span class="keyword">protected</span>:
|
||||
00039 <a class="code" href="classDelay.html">Delay</a> *allpassDelays[2];
|
||||
00040 <a class="code" href="classDelay.html">Delay</a> *combDelays[2];
|
||||
00041 MY_FLOAT allpassCoefficient;
|
||||
@@ -37,13 +37,13 @@
|
||||
00043
|
||||
00044 };
|
||||
00045
|
||||
00046 <font class="preprocessor">#endif</font>
|
||||
00047 <font class="preprocessor"></font>
|
||||
00046 <span class="preprocessor">#endif</span>
|
||||
00047 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
BIN
doc/html/Papers/STKsiggraph96.pdf
Normal file
BIN
doc/html/Papers/STKsiggraph96.pdf
Normal file
Binary file not shown.
BIN
doc/html/Papers/stkicmc99.pdf
Normal file
BIN
doc/html/Papers/stkicmc99.pdf
Normal file
Binary file not shown.
@@ -5,38 +5,38 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>PercFlut.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00027 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>PercFlut.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00027 <span class="comment">/***************************************************/</span>
|
||||
00028
|
||||
00029 <font class="preprocessor">#if !defined(__PERCFLUT_H)</font>
|
||||
00030 <font class="preprocessor"></font><font class="preprocessor">#define __PERCFLUT_H</font>
|
||||
00031 <font class="preprocessor"></font>
|
||||
00032 <font class="preprocessor">#include "FM.h"</font>
|
||||
00029 <span class="preprocessor">#if !defined(__PERCFLUT_H)</span>
|
||||
00030 <span class="preprocessor"></span><span class="preprocessor">#define __PERCFLUT_H</span>
|
||||
00031 <span class="preprocessor"></span>
|
||||
00032 <span class="preprocessor">#include "FM.h"</span>
|
||||
00033
|
||||
00034 <font class="keyword">class </font><a class="code" href="classPercFlut.html">PercFlut</a> : <font class="keyword">public</font> <a class="code" href="classFM.html">FM</a>
|
||||
<a name="l00034"></a><a class="code" href="classPercFlut.html">00034</a> <span class="keyword">class </span><a class="code" href="classPercFlut.html">PercFlut</a> : <span class="keyword">public</span> <a class="code" href="classFM.html">FM</a>
|
||||
00035 {
|
||||
00036 <font class="keyword">public</font>:
|
||||
00036 <span class="keyword">public</span>:
|
||||
00038 <a class="code" href="classPercFlut.html#a0">PercFlut</a>();
|
||||
00039
|
||||
00041 <a class="code" href="classPercFlut.html#a1">~PercFlut</a>();
|
||||
00042
|
||||
00044 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00044 <span class="keywordtype">void</span> <a class="code" href="classPercFlut.html#a2">setFrequency</a>(MY_FLOAT frequency);
|
||||
00045
|
||||
00047 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classPercFlut.html#a3">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00048
|
||||
00050 MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>();
|
||||
00050 MY_FLOAT <a class="code" href="classPercFlut.html#a4">tick</a>();
|
||||
00051 };
|
||||
00052
|
||||
00053 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00053 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,51 +5,51 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Phonemes.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00011 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Phonemes.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00011 <span class="comment">/***************************************************/</span>
|
||||
00012
|
||||
00013 <font class="preprocessor">#if !defined(__PHONEMES_H)</font>
|
||||
00014 <font class="preprocessor"></font><font class="preprocessor">#define __PHONEMES_H</font>
|
||||
00015 <font class="preprocessor"></font>
|
||||
00016 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00013 <span class="preprocessor">#if !defined(__PHONEMES_H)</span>
|
||||
00014 <span class="preprocessor"></span><span class="preprocessor">#define __PHONEMES_H</span>
|
||||
00015 <span class="preprocessor"></span>
|
||||
00016 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00017
|
||||
00018 <font class="keyword">class </font><a class="code" href="classPhonemes.html">Phonemes</a>
|
||||
<a name="l00018"></a><a class="code" href="classPhonemes.html">00018</a> <span class="keyword">class </span><a class="code" href="classPhonemes.html">Phonemes</a>
|
||||
00019 {
|
||||
00020 <font class="keyword">public</font>:
|
||||
00020 <span class="keyword">public</span>:
|
||||
00021
|
||||
00022 Phonemes(<font class="keywordtype">void</font>);
|
||||
00023 ~Phonemes(<font class="keywordtype">void</font>);
|
||||
00022 <a class="code" href="classPhonemes.html">Phonemes</a>(<span class="keywordtype">void</span>);
|
||||
00023 ~<a class="code" href="classPhonemes.html">Phonemes</a>(<span class="keywordtype">void</span>);
|
||||
00024
|
||||
00026 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classPhonemes.html#d0">name</a>( <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index );
|
||||
00026 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classPhonemes.html#e0">name</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index );
|
||||
00027
|
||||
00029 <font class="keyword">static</font> MY_FLOAT <a class="code" href="classPhonemes.html#d1">voiceGain</a>( <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index );
|
||||
00029 <span class="keyword">static</span> MY_FLOAT <a class="code" href="classPhonemes.html#e1">voiceGain</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index );
|
||||
00030
|
||||
00032 <font class="keyword">static</font> MY_FLOAT <a class="code" href="classPhonemes.html#d2">noiseGain</a>( <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index );
|
||||
00032 <span class="keyword">static</span> MY_FLOAT <a class="code" href="classPhonemes.html#e2">noiseGain</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index );
|
||||
00033
|
||||
00035 <font class="keyword">static</font> MY_FLOAT <a class="code" href="classPhonemes.html#d3">formantFrequency</a>( <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> partial );
|
||||
00035 <span class="keyword">static</span> MY_FLOAT <a class="code" href="classPhonemes.html#e3">formantFrequency</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> partial );
|
||||
00036
|
||||
00038 <font class="keyword">static</font> MY_FLOAT <a class="code" href="classPhonemes.html#d4">formantRadius</a>( <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> partial );
|
||||
00038 <span class="keyword">static</span> MY_FLOAT <a class="code" href="classPhonemes.html#e4">formantRadius</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> partial );
|
||||
00039
|
||||
00041 <font class="keyword">static</font> MY_FLOAT <a class="code" href="classPhonemes.html#d5">formantGain</a>( <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> partial );
|
||||
00041 <span class="keyword">static</span> MY_FLOAT <a class="code" href="classPhonemes.html#e5">formantGain</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> partial );
|
||||
00042
|
||||
00043 <font class="keyword">private</font>:
|
||||
00043 <span class="keyword">private</span>:
|
||||
00044
|
||||
00045 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> phonemeNames[][4];
|
||||
00046 <font class="keyword">static</font> <font class="keyword">const</font> MY_FLOAT phonemeGains[][2];
|
||||
00047 <font class="keyword">static</font> <font class="keyword">const</font> MY_FLOAT phonemeParameters[][4][3];
|
||||
00045 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> phonemeNames[][4];
|
||||
00046 <span class="keyword">static</span> <span class="keyword">const</span> MY_FLOAT phonemeGains[][2];
|
||||
00047 <span class="keyword">static</span> <span class="keyword">const</span> MY_FLOAT phonemeParameters[][4][3];
|
||||
00048
|
||||
00049 };
|
||||
00050
|
||||
00051 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00051 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,39 +5,39 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>PitShift.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00010 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>PitShift.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00010 <span class="comment">/***************************************************/</span>
|
||||
00011
|
||||
00012 <font class="preprocessor">#if !defined(__PITSHIFT_H)</font>
|
||||
00013 <font class="preprocessor"></font><font class="preprocessor">#define __PITSHIFT_H</font>
|
||||
00014 <font class="preprocessor"></font>
|
||||
00015 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00016 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00012 <span class="preprocessor">#if !defined(__PITSHIFT_H)</span>
|
||||
00013 <span class="preprocessor"></span><span class="preprocessor">#define __PITSHIFT_H</span>
|
||||
00014 <span class="preprocessor"></span>
|
||||
00015 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00016 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00017
|
||||
00018 <font class="keyword">class </font><a class="code" href="classPitShift.html">PitShift</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00018"></a><a class="code" href="classPitShift.html">00018</a> <span class="keyword">class </span><a class="code" href="classPitShift.html">PitShift</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00019 {
|
||||
00020 <font class="keyword">public</font>:
|
||||
00020 <span class="keyword">public</span>:
|
||||
00022 <a class="code" href="classPitShift.html#a0">PitShift</a>();
|
||||
00023
|
||||
00025 <a class="code" href="classPitShift.html#a1">~PitShift</a>();
|
||||
00026
|
||||
00028 <font class="keywordtype">void</font> <a class="code" href="classPitShift.html#a2">clear</a>();
|
||||
00028 <span class="keywordtype">void</span> <a class="code" href="classPitShift.html#a2">clear</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classPitShift.html#a3">setShift</a>(MY_FLOAT shift);
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classPitShift.html#a3">setShift</a>(MY_FLOAT shift);
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classPitShift.html#a4">setEffectMix</a>(MY_FLOAT mix);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classPitShift.html#a4">setEffectMix</a>(MY_FLOAT mix);
|
||||
00035
|
||||
00037 MY_FLOAT <a class="code" href="classPitShift.html#a5">lastOut</a>() <font class="keyword">const</font>;
|
||||
00037 MY_FLOAT <a class="code" href="classPitShift.html#a5">lastOut</a>() <span class="keyword">const</span>;
|
||||
00038
|
||||
00040 MY_FLOAT <a class="code" href="classPitShift.html#a6">tick</a>(MY_FLOAT input);
|
||||
00041
|
||||
00043 MY_FLOAT *<a class="code" href="classPitShift.html#a6">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00043 MY_FLOAT *<a class="code" href="classPitShift.html#a6">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00044
|
||||
00045 <font class="keyword">protected</font>:
|
||||
00045 <span class="keyword">protected</span>:
|
||||
00046 <a class="code" href="classDelayL.html">DelayL</a> *delayLine[2];
|
||||
00047 MY_FLOAT lastOutput;
|
||||
00048 MY_FLOAT delay[2];
|
||||
@@ -47,13 +47,13 @@
|
||||
00052
|
||||
00053 };
|
||||
00054
|
||||
00055 <font class="preprocessor">#endif</font>
|
||||
00056 <font class="preprocessor"></font>
|
||||
00055 <span class="preprocessor">#endif</span>
|
||||
00056 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,52 +5,52 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>PluckTwo.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00019 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>PluckTwo.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00019 <span class="comment">/***************************************************/</span>
|
||||
00020
|
||||
00021 <font class="preprocessor">#if !defined(__PLUCKTWO_H)</font>
|
||||
00022 <font class="preprocessor"></font><font class="preprocessor">#define __PLUCKTWO_H</font>
|
||||
00023 <font class="preprocessor"></font>
|
||||
00024 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00025 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00026 <font class="preprocessor">#include "DelayA.h"</font>
|
||||
00027 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00021 <span class="preprocessor">#if !defined(__PLUCKTWO_H)</span>
|
||||
00022 <span class="preprocessor"></span><span class="preprocessor">#define __PLUCKTWO_H</span>
|
||||
00023 <span class="preprocessor"></span>
|
||||
00024 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00025 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00026 <span class="preprocessor">#include "DelayA.h"</span>
|
||||
00027 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00028
|
||||
00029 <font class="keyword">class </font><a class="code" href="classPluckTwo.html">PluckTwo</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00029"></a><a class="code" href="classPluckTwo.html">00029</a> <span class="keyword">class </span><a class="code" href="classPluckTwo.html">PluckTwo</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00030 {
|
||||
00031 <font class="keyword">public</font>:
|
||||
00031 <span class="keyword">public</span>:
|
||||
00033 <a class="code" href="classPluckTwo.html#a0">PluckTwo</a>(MY_FLOAT lowestFrequency);
|
||||
00034
|
||||
00036 <font class="keyword">virtual</font> <a class="code" href="classPluckTwo.html#a1">~PluckTwo</a>();
|
||||
00036 <span class="keyword">virtual</span> <a class="code" href="classPluckTwo.html#a1">~PluckTwo</a>();
|
||||
00037
|
||||
00039 <font class="keywordtype">void</font> <a class="code" href="classPluckTwo.html#a2">clear</a>();
|
||||
00039 <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a2">clear</a>();
|
||||
00040
|
||||
00042 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00042 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classPluckTwo.html#a4">setDetune</a>(MY_FLOAT detune);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a4">setDetune</a>(MY_FLOAT detune);
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classPluckTwo.html#a5">setFreqAndDetune</a>(MY_FLOAT frequency, MY_FLOAT detune);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a5">setFreqAndDetune</a>(MY_FLOAT frequency, MY_FLOAT detune);
|
||||
00049
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classPluckTwo.html#a6">setPluckPosition</a>(MY_FLOAT position);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a6">setPluckPosition</a>(MY_FLOAT position);
|
||||
00052
|
||||
00054
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classPluckTwo.html#a7">setBaseLoopGain</a>(MY_FLOAT aGain);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a7">setBaseLoopGain</a>(MY_FLOAT aGain);
|
||||
00060
|
||||
00062 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00062 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPluckTwo.html#a8">noteOff</a>(MY_FLOAT amplitude);
|
||||
00063
|
||||
00065 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>() = 0;
|
||||
00065 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classPluckTwo.html#a9">tick</a>() = 0;
|
||||
00066
|
||||
00067 <font class="keyword">protected</font>:
|
||||
00067 <span class="keyword">protected</span>:
|
||||
00068 <a class="code" href="classDelayA.html">DelayA</a> *delayLine;
|
||||
00069 <a class="code" href="classDelayA.html">DelayA</a> *delayLine2;
|
||||
00070 <a class="code" href="classDelayL.html">DelayL</a> *combDelay;
|
||||
00071 <a class="code" href="classOneZero.html">OneZero</a> *filter;
|
||||
00072 <a class="code" href="classOneZero.html">OneZero</a> *filter2;
|
||||
00073 <font class="keywordtype">long</font> length;
|
||||
00073 <span class="keywordtype">long</span> length;
|
||||
00074 MY_FLOAT loopGain;
|
||||
00075 MY_FLOAT baseLoopGain;
|
||||
00076 MY_FLOAT lastFrequency;
|
||||
@@ -61,12 +61,12 @@
|
||||
00081
|
||||
00082 };
|
||||
00083
|
||||
00084 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00084 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,58 +5,58 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Plucked.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00018 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Plucked.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00018 <span class="comment">/***************************************************/</span>
|
||||
00019
|
||||
00020 <font class="preprocessor">#if !defined(__PLUCKED_H)</font>
|
||||
00021 <font class="preprocessor"></font><font class="preprocessor">#define __PLUCKED_H</font>
|
||||
00022 <font class="preprocessor"></font>
|
||||
00023 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00024 <font class="preprocessor">#include "DelayA.h"</font>
|
||||
00025 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00026 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00027 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00020 <span class="preprocessor">#if !defined(__PLUCKED_H)</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define __PLUCKED_H</span>
|
||||
00022 <span class="preprocessor"></span>
|
||||
00023 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00024 <span class="preprocessor">#include "DelayA.h"</span>
|
||||
00025 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00026 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00027 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00028
|
||||
00029 <font class="keyword">class </font><a class="code" href="classPlucked.html">Plucked</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00029"></a><a class="code" href="classPlucked.html">00029</a> <span class="keyword">class </span><a class="code" href="classPlucked.html">Plucked</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00030 {
|
||||
00031 <font class="keyword">public</font>:
|
||||
00031 <span class="keyword">public</span>:
|
||||
00033 <a class="code" href="classPlucked.html#a0">Plucked</a>(MY_FLOAT lowestFrequency);
|
||||
00034
|
||||
00036 <a class="code" href="classPlucked.html#a1">~Plucked</a>();
|
||||
00037
|
||||
00039 <font class="keywordtype">void</font> <a class="code" href="classPlucked.html#a2">clear</a>();
|
||||
00039 <span class="keywordtype">void</span> <a class="code" href="classPlucked.html#a2">clear</a>();
|
||||
00040
|
||||
00042 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00042 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPlucked.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classPlucked.html#a4">pluck</a>(MY_FLOAT amplitude);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classPlucked.html#a4">pluck</a>(MY_FLOAT amplitude);
|
||||
00046
|
||||
00048 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00048 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPlucked.html#a5">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00049
|
||||
00051 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00051 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPlucked.html#a6">noteOff</a>(MY_FLOAT amplitude);
|
||||
00052
|
||||
00054 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00054 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classPlucked.html#a7">tick</a>();
|
||||
00055
|
||||
00056 <font class="keyword">protected</font>:
|
||||
00056 <span class="keyword">protected</span>:
|
||||
00057 <a class="code" href="classDelayA.html">DelayA</a> *delayLine;
|
||||
00058 <a class="code" href="classOneZero.html">OneZero</a> *loopFilter;
|
||||
00059 <a class="code" href="classOnePole.html">OnePole</a> *pickFilter;
|
||||
00060 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00061 <font class="keywordtype">long</font> length;
|
||||
00061 <span class="keywordtype">long</span> length;
|
||||
00062 MY_FLOAT loopGain;
|
||||
00063
|
||||
00064 };
|
||||
00065
|
||||
00066 <font class="preprocessor">#endif</font>
|
||||
00067 <font class="preprocessor"></font>
|
||||
00066 <span class="preprocessor">#endif</span>
|
||||
00067 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,58 +5,58 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>PoleZero.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>PoleZero.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__POLEZERO_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __POLEZERO_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__POLEZERO_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __POLEZERO_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classPoleZero.html">PoleZero</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00020"></a><a class="code" href="classPoleZero.html">00020</a> <span class="keyword">class </span><a class="code" href="classPoleZero.html">PoleZero</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00023
|
||||
00025 <a class="code" href="classPoleZero.html#a0">PoleZero</a>();
|
||||
00026
|
||||
00028 <a class="code" href="classPoleZero.html#a1">~PoleZero</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a2">clear</a>(<span class="keywordtype">void</span>);
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classPoleZero.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classPoleZero.html#a4">setB1</a>(MY_FLOAT b1);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a4">setB1</a>(MY_FLOAT b1);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classPoleZero.html#a5">setA1</a>(MY_FLOAT a1);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a5">setA1</a>(MY_FLOAT a1);
|
||||
00041
|
||||
00043
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classPoleZero.html#a6">setAllpass</a>(MY_FLOAT coefficient);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a6">setAllpass</a>(MY_FLOAT coefficient);
|
||||
00049
|
||||
00051
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classPoleZero.html#a7">setBlockZero</a>(MY_FLOAT thePole = 0.99);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a7">setBlockZero</a>(MY_FLOAT thePole = 0.99);
|
||||
00058
|
||||
00060
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classPoleZero.html#a8">setGain</a>(MY_FLOAT theGain);
|
||||
00065
|
||||
00067 MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00067 MY_FLOAT <a class="code" href="classPoleZero.html#a9">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00068
|
||||
00070 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00070 MY_FLOAT <a class="code" href="classPoleZero.html#a10">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00071
|
||||
00073 MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00073 MY_FLOAT <a class="code" href="classPoleZero.html#a11">tick</a>(MY_FLOAT sample);
|
||||
00074
|
||||
00076 MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00076 MY_FLOAT *<a class="code" href="classPoleZero.html#a11">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00077 };
|
||||
00078
|
||||
00079 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00079 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,51 +5,51 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>ReedTabl.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00018 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>ReedTabl.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00018 <span class="comment">/***************************************************/</span>
|
||||
00019
|
||||
00020 <font class="preprocessor">#if !defined(__REEDTABL_H)</font>
|
||||
00021 <font class="preprocessor"></font><font class="preprocessor">#define __REEDTABL_H</font>
|
||||
00022 <font class="preprocessor"></font>
|
||||
00023 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00020 <span class="preprocessor">#if !defined(__REEDTABL_H)</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define __REEDTABL_H</span>
|
||||
00022 <span class="preprocessor"></span>
|
||||
00023 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00024
|
||||
00025 <font class="keyword">class </font><a class="code" href="classReedTabl.html">ReedTabl</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00025"></a><a class="code" href="classReedTabl.html">00025</a> <span class="keyword">class </span><a class="code" href="classReedTabl.html">ReedTabl</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00026 {
|
||||
00027 <font class="keyword">public</font>:
|
||||
00027 <span class="keyword">public</span>:
|
||||
00029 <a class="code" href="classReedTabl.html#a0">ReedTabl</a>();
|
||||
00030
|
||||
00032 <a class="code" href="classReedTabl.html#a1">~ReedTabl</a>();
|
||||
00033
|
||||
00035
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classReedTabl.html#a2">setOffset</a>(MY_FLOAT aValue);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classReedTabl.html#a2">setOffset</a>(MY_FLOAT aValue);
|
||||
00041
|
||||
00043
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classReedTabl.html#a3">setSlope</a>(MY_FLOAT aValue);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classReedTabl.html#a3">setSlope</a>(MY_FLOAT aValue);
|
||||
00049
|
||||
00051 MY_FLOAT <a class="code" href="classReedTabl.html#a4">lastOut</a>() <font class="keyword">const</font>;
|
||||
00051 MY_FLOAT <a class="code" href="classReedTabl.html#a4">lastOut</a>() <span class="keyword">const</span>;
|
||||
00052
|
||||
00054
|
||||
00058 MY_FLOAT <a class="code" href="classReedTabl.html#a5">tick</a>(MY_FLOAT input);
|
||||
00059
|
||||
00061 MY_FLOAT *<a class="code" href="classReedTabl.html#a5">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00061 MY_FLOAT *<a class="code" href="classReedTabl.html#a5">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00062
|
||||
00063 <font class="keyword">protected</font>:
|
||||
00063 <span class="keyword">protected</span>:
|
||||
00064 MY_FLOAT offSet;
|
||||
00065 MY_FLOAT slope;
|
||||
00066 MY_FLOAT lastOutput;
|
||||
00067
|
||||
00068 };
|
||||
00069
|
||||
00070 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00070 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,49 +5,49 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Resonate.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00018 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Resonate.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00018 <span class="comment">/***************************************************/</span>
|
||||
00019
|
||||
00020 <font class="preprocessor">#if !defined(__RESONATE_H)</font>
|
||||
00021 <font class="preprocessor"></font><font class="preprocessor">#define __RESONATE_H</font>
|
||||
00022 <font class="preprocessor"></font>
|
||||
00023 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00024 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00025 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00026 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00020 <span class="preprocessor">#if !defined(__RESONATE_H)</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define __RESONATE_H</span>
|
||||
00022 <span class="preprocessor"></span>
|
||||
00023 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00024 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00025 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00026 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00027
|
||||
00028 <font class="keyword">class </font><a class="code" href="classResonate.html">Resonate</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00028"></a><a class="code" href="classResonate.html">00028</a> <span class="keyword">class </span><a class="code" href="classResonate.html">Resonate</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00029 {
|
||||
00030 <font class="keyword">public</font>:
|
||||
00030 <span class="keyword">public</span>:
|
||||
00032 <a class="code" href="classResonate.html#a0">Resonate</a>();
|
||||
00033
|
||||
00035 <a class="code" href="classResonate.html#a1">~Resonate</a>();
|
||||
00036
|
||||
00038 <font class="keywordtype">void</font> <a class="code" href="classResonate.html#a2">clear</a>();
|
||||
00038 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a2">clear</a>();
|
||||
00039
|
||||
00041 <font class="keywordtype">void</font> <a class="code" href="classResonate.html#a3">setResonance</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00041 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a3">setResonance</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00042
|
||||
00044 <font class="keywordtype">void</font> <a class="code" href="classResonate.html#a4">setNotch</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00044 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a4">setNotch</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00045
|
||||
00047 <font class="keywordtype">void</font> <a class="code" href="classResonate.html#a5">setEqualGainZeroes</a>();
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a5">setEqualGainZeroes</a>();
|
||||
00048
|
||||
00050 <font class="keywordtype">void</font> <a class="code" href="classResonate.html#a6">keyOn</a>();
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a6">keyOn</a>();
|
||||
00051
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classResonate.html#a7">keyOff</a>();
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a7">keyOff</a>();
|
||||
00054
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a8">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00057
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a9">noteOff</a>(MY_FLOAT amplitude);
|
||||
00060
|
||||
00062 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00062 MY_FLOAT <a class="code" href="classResonate.html#a10">tick</a>();
|
||||
00063
|
||||
00065 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00065 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classResonate.html#a11">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00066
|
||||
00067 <font class="keyword">protected</font>:
|
||||
00067 <span class="keyword">protected</span>:
|
||||
00068 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00069 <a class="code" href="classBiQuad.html">BiQuad</a> *filter;
|
||||
00070 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
@@ -58,12 +58,12 @@
|
||||
00075
|
||||
00076 };
|
||||
00077
|
||||
00078 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00078 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,56 +5,56 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Reverb.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00010 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Reverb.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00010 <span class="comment">/***************************************************/</span>
|
||||
00011
|
||||
00012 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00012 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00013
|
||||
00014 <font class="preprocessor">#if !defined(__REVERB_H)</font>
|
||||
00015 <font class="preprocessor"></font><font class="preprocessor">#define __REVERB_H</font>
|
||||
00016 <font class="preprocessor"></font>
|
||||
00017 <font class="keyword">class </font><a class="code" href="classReverb.html">Reverb</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
00014 <span class="preprocessor">#if !defined(__REVERB_H)</span>
|
||||
00015 <span class="preprocessor"></span><span class="preprocessor">#define __REVERB_H</span>
|
||||
00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a><a class="code" href="classReverb.html">00017</a> <span class="keyword">class </span><a class="code" href="classReverb.html">Reverb</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00018 {
|
||||
00019 <font class="keyword">public</font>:
|
||||
00019 <span class="keyword">public</span>:
|
||||
00021 <a class="code" href="classReverb.html#a0">Reverb</a>();
|
||||
00022
|
||||
00024 <font class="keyword">virtual</font> <a class="code" href="classReverb.html#a1">~Reverb</a>();
|
||||
00024 <span class="keyword">virtual</span> <a class="code" href="classReverb.html#a1">~Reverb</a>();
|
||||
00025
|
||||
00027 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classReverb.html#a2">clear</a>() = 0;
|
||||
00027 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classReverb.html#a2">clear</a>() = 0;
|
||||
00028
|
||||
00030 <font class="keywordtype">void</font> <a class="code" href="classReverb.html#a3">setEffectMix</a>(MY_FLOAT mix);
|
||||
00030 <span class="keywordtype">void</span> <a class="code" href="classReverb.html#a3">setEffectMix</a>(MY_FLOAT mix);
|
||||
00031
|
||||
00033 MY_FLOAT <a class="code" href="classReverb.html#a4">lastOut</a>() <font class="keyword">const</font>;
|
||||
00033 MY_FLOAT <a class="code" href="classReverb.html#a4">lastOut</a>() <span class="keyword">const</span>;
|
||||
00034
|
||||
00036 MY_FLOAT <a class="code" href="classReverb.html#a5">lastOutLeft</a>() <font class="keyword">const</font>;
|
||||
00036 MY_FLOAT <a class="code" href="classReverb.html#a5">lastOutLeft</a>() <span class="keyword">const</span>;
|
||||
00037
|
||||
00039 MY_FLOAT <a class="code" href="classReverb.html#a6">lastOutRight</a>() <font class="keyword">const</font>;
|
||||
00039 MY_FLOAT <a class="code" href="classReverb.html#a6">lastOutRight</a>() <span class="keyword">const</span>;
|
||||
00040
|
||||
00042 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT input) = 0;
|
||||
00042 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT input) = 0;
|
||||
00043
|
||||
00045 <font class="keyword">virtual</font> MY_FLOAT *<a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00045 <span class="keyword">virtual</span> MY_FLOAT *<a class="code" href="classReverb.html#a7">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00046
|
||||
00047 <font class="keyword">protected</font>:
|
||||
00047 <span class="keyword">protected</span>:
|
||||
00048
|
||||
00049 <font class="comment">// Returns true if argument value is prime.</font>
|
||||
00050 <font class="keywordtype">bool</font> isPrime(<font class="keywordtype">int</font> number);
|
||||
00049 <span class="comment">// Returns true if argument value is prime.</span>
|
||||
00050 <span class="keywordtype">bool</span> isPrime(<span class="keywordtype">int</span> number);
|
||||
00051
|
||||
00052 MY_FLOAT lastOutput[2];
|
||||
00053 MY_FLOAT effectMix;
|
||||
00054
|
||||
00055 };
|
||||
00056
|
||||
00057 <font class="preprocessor">#endif // defined(__REVERB_H)</font>
|
||||
00058 <font class="preprocessor"></font>
|
||||
00057 <span class="preprocessor">#endif // defined(__REVERB_H)</span>
|
||||
00058 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,38 +5,38 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Rhodey.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00031 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Rhodey.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00031 <span class="comment">/***************************************************/</span>
|
||||
00032
|
||||
00033 <font class="preprocessor">#if !defined(__RHODEY_H)</font>
|
||||
00034 <font class="preprocessor"></font><font class="preprocessor">#define __RHODEY_H</font>
|
||||
00035 <font class="preprocessor"></font>
|
||||
00036 <font class="preprocessor">#include "FM.h"</font>
|
||||
00033 <span class="preprocessor">#if !defined(__RHODEY_H)</span>
|
||||
00034 <span class="preprocessor"></span><span class="preprocessor">#define __RHODEY_H</span>
|
||||
00035 <span class="preprocessor"></span>
|
||||
00036 <span class="preprocessor">#include "FM.h"</span>
|
||||
00037
|
||||
00038 <font class="keyword">class </font><a class="code" href="classRhodey.html">Rhodey</a> : <font class="keyword">public</font> <a class="code" href="classFM.html">FM</a>
|
||||
<a name="l00038"></a><a class="code" href="classRhodey.html">00038</a> <span class="keyword">class </span><a class="code" href="classRhodey.html">Rhodey</a> : <span class="keyword">public</span> <a class="code" href="classFM.html">FM</a>
|
||||
00039 {
|
||||
00040 <font class="keyword">public</font>:
|
||||
00040 <span class="keyword">public</span>:
|
||||
00042 <a class="code" href="classRhodey.html#a0">Rhodey</a>();
|
||||
00043
|
||||
00045 <a class="code" href="classRhodey.html#a1">~Rhodey</a>();
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classFM.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classRhodey.html#a2">setFrequency</a>(MY_FLOAT frequency);
|
||||
00049
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classRhodey.html#a3">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00052
|
||||
00054 MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>();
|
||||
00054 MY_FLOAT <a class="code" href="classRhodey.html#a4">tick</a>();
|
||||
00055 };
|
||||
00056
|
||||
00057 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00057 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,331 +5,535 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>RtAudio.h</h1><div class="fragment"><pre>00001 <font class="comment">/************************************************************************/</font>
|
||||
00038 <font class="comment">/************************************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>RtAudio.h</h1><div class="fragment"><pre>00001 <span class="comment">/************************************************************************/</span>
|
||||
00038 <span class="comment">/************************************************************************/</span>
|
||||
00039
|
||||
00040 <font class="preprocessor">#if !defined(__RTAUDIO_H)</font>
|
||||
00041 <font class="preprocessor"></font><font class="preprocessor">#define __RTAUDIO_H</font>
|
||||
00042 <font class="preprocessor"></font>
|
||||
00043 <font class="preprocessor">#include <map></font>
|
||||
00044
|
||||
00045 <font class="preprocessor">#if defined(__LINUX_ALSA__)</font>
|
||||
00046 <font class="preprocessor"></font><font class="preprocessor"> #include <alsa/asoundlib.h></font>
|
||||
00047 <font class="preprocessor"> #include <pthread.h></font>
|
||||
00048 <font class="preprocessor"> #include <unistd.h></font>
|
||||
00049
|
||||
00050 <font class="keyword">typedef</font> snd_pcm_t *AUDIO_HANDLE;
|
||||
00051 <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
|
||||
00052 <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
|
||||
00053 <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
|
||||
00054
|
||||
00055 <font class="preprocessor">#elif defined(__LINUX_OSS__)</font>
|
||||
00056 <font class="preprocessor"></font><font class="preprocessor"> #include <pthread.h></font>
|
||||
00057 <font class="preprocessor"> #include <unistd.h></font>
|
||||
00058
|
||||
00059 <font class="keyword">typedef</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
|
||||
00060 <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
|
||||
00061 <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
|
||||
00062 <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
|
||||
00063
|
||||
00064 <font class="preprocessor">#elif defined(__WINDOWS_DS__)</font>
|
||||
00065 <font class="preprocessor"></font><font class="preprocessor"> #include <windows.h></font>
|
||||
00066 <font class="preprocessor"> #include <process.h></font>
|
||||
00067
|
||||
00068 <font class="comment">// The following struct is used to hold the extra variables</font>
|
||||
00069 <font class="comment">// specific to the DirectSound implementation.</font>
|
||||
00070 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
||||
00071 <font class="keywordtype">void</font> * object;
|
||||
00072 <font class="keywordtype">void</font> * buffer;
|
||||
00073 UINT bufferPointer;
|
||||
00074 } AUDIO_HANDLE;
|
||||
00040 <span class="comment">// RtAudio: Version 3.0.1, 22 March 2004</span>
|
||||
00041
|
||||
00042 <span class="preprocessor">#ifndef __RTAUDIO_H</span>
|
||||
00043 <span class="preprocessor"></span><span class="preprocessor">#define __RTAUDIO_H</span>
|
||||
00044 <span class="preprocessor"></span>
|
||||
00045 <span class="preprocessor">#include "RtError.h"</span>
|
||||
00046 <span class="preprocessor">#include <string></span>
|
||||
00047 <span class="preprocessor">#include <vector></span>
|
||||
00048
|
||||
00049 <span class="comment">// Operating system dependent thread functionality.</span>
|
||||
00050 <span class="preprocessor">#if defined(__WINDOWS_DS__) || defined(__WINDOWS_ASIO__)</span>
|
||||
00051 <span class="preprocessor"></span><span class="preprocessor"> #include <windows.h></span>
|
||||
00052 <span class="preprocessor"> #include <process.h></span>
|
||||
00053
|
||||
00054 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ThreadHandle;
|
||||
00055 <span class="keyword">typedef</span> CRITICAL_SECTION StreamMutex;
|
||||
00056
|
||||
00057 <span class="preprocessor">#else // Various unix flavors with pthread support.</span>
|
||||
00058 <span class="preprocessor"></span><span class="preprocessor"> #include <pthread.h></span>
|
||||
00059
|
||||
00060 <span class="keyword">typedef</span> pthread_t ThreadHandle;
|
||||
00061 <span class="keyword">typedef</span> pthread_mutex_t StreamMutex;
|
||||
00062
|
||||
00063 <span class="preprocessor">#endif</span>
|
||||
00064 <span class="preprocessor"></span>
|
||||
00065 <span class="comment">// This global structure type is used to pass callback information</span>
|
||||
00066 <span class="comment">// between the private RtAudio stream structure and global callback</span>
|
||||
00067 <span class="comment">// handling functions.</span>
|
||||
00068 <span class="keyword">struct </span>CallbackInfo {
|
||||
00069 <span class="keywordtype">void</span> *object; <span class="comment">// Used as a "this" pointer.</span>
|
||||
00070 ThreadHandle thread;
|
||||
00071 <span class="keywordtype">bool</span> usingCallback;
|
||||
00072 <span class="keywordtype">void</span> *callback;
|
||||
00073 <span class="keywordtype">void</span> *userData;
|
||||
00074 <span class="keywordtype">void</span> *apiInfo; <span class="comment">// void pointer for API specific callback information</span>
|
||||
00075
|
||||
00076 <font class="keyword">typedef</font> LPGUID DEVICE_ID;
|
||||
00077 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> THREAD_HANDLE;
|
||||
00078 <font class="keyword">typedef</font> CRITICAL_SECTION MUTEX;
|
||||
00079
|
||||
00080 <font class="preprocessor">#elif defined(__WINDOWS_ASIO__)</font>
|
||||
00081 <font class="preprocessor"></font><font class="preprocessor"> #include <windows.h></font>
|
||||
00082 <font class="preprocessor"> #include <process.h></font>
|
||||
00083
|
||||
00084 <font class="keyword">typedef</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
|
||||
00085 <font class="keyword">typedef</font> <font class="keywordtype">int</font> DEVICE_ID;
|
||||
00086 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> THREAD_HANDLE;
|
||||
00087 <font class="keyword">typedef</font> CRITICAL_SECTION MUTEX;
|
||||
00088
|
||||
00089 <font class="preprocessor">#elif defined(__IRIX_AL__)</font>
|
||||
00090 <font class="preprocessor"></font><font class="preprocessor"> #include <dmedia/audio.h></font>
|
||||
00091 <font class="preprocessor"> #include <pthread.h></font>
|
||||
00092 <font class="preprocessor"> #include <unistd.h></font>
|
||||
00093
|
||||
00094 <font class="keyword">typedef</font> ALport AUDIO_HANDLE;
|
||||
00095 <font class="keyword">typedef</font> <font class="keywordtype">long</font> DEVICE_ID;
|
||||
00096 <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
|
||||
00097 <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
|
||||
00098
|
||||
00099 <font class="preprocessor">#elif defined(__MACOSX_CORE__)</font>
|
||||
00100 <font class="preprocessor"></font>
|
||||
00101 <font class="preprocessor"> #include <CoreAudio/AudioHardware.h></font>
|
||||
00102 <font class="preprocessor"> #include <pthread.h></font>
|
||||
00103
|
||||
00104 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> AUDIO_HANDLE;
|
||||
00105 <font class="keyword">typedef</font> AudioDeviceID DEVICE_ID;
|
||||
00106 <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
|
||||
00107 <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
|
||||
00108
|
||||
00109 <font class="preprocessor">#endif</font>
|
||||
00110 <font class="preprocessor"></font>
|
||||
00111
|
||||
00112 <font class="comment">/************************************************************************/</font>
|
||||
00125 <font class="comment">/************************************************************************/</font>
|
||||
00126
|
||||
00127 <font class="keyword">class </font><a class="code" href="classRtError.html">RtError</a>
|
||||
00128 {
|
||||
00129 <font class="keyword">public</font>:
|
||||
<a name="l00131"></a><a class="code" href="classRtError.html#s11">00131</a> <font class="keyword">enum</font> TYPE {
|
||||
00132 WARNING,
|
||||
00133 DEBUG_WARNING,
|
||||
00134 UNSPECIFIED,
|
||||
00135 NO_DEVICES_FOUND,
|
||||
00136 INVALID_DEVICE,
|
||||
00137 INVALID_STREAM,
|
||||
00138 MEMORY_ERROR,
|
||||
00139 INVALID_PARAMETER,
|
||||
00140 DRIVER_ERROR,
|
||||
00141 SYSTEM_ERROR,
|
||||
00142 THREAD_ERROR
|
||||
00143 };
|
||||
00144
|
||||
00145 <font class="keyword">protected</font>:
|
||||
00146 <font class="keywordtype">char</font> error_message[256];
|
||||
00147 TYPE type;
|
||||
00076 <span class="comment">// Default constructor.</span>
|
||||
00077 CallbackInfo()
|
||||
00078 :object(0), usingCallback(false), callback(0),
|
||||
00079 userData(0), apiInfo(0) {}
|
||||
00080 };
|
||||
00081
|
||||
00082 <span class="comment">// Support for signed integers and floats. Audio data fed to/from</span>
|
||||
00083 <span class="comment">// the tickStream() routine is assumed to ALWAYS be in host</span>
|
||||
00084 <span class="comment">// byte order. The internal routines will automatically take care of</span>
|
||||
00085 <span class="comment">// any necessary byte-swapping between the host format and the</span>
|
||||
00086 <span class="comment">// soundcard. Thus, endian-ness is not a concern in the following</span>
|
||||
00087 <span class="comment">// format definitions.</span>
|
||||
00088 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> RtAudioFormat;
|
||||
00089 <span class="keyword">static</span> <span class="keyword">const</span> RtAudioFormat RTAUDIO_SINT8 = 0x1;
|
||||
00090 <span class="keyword">static</span> <span class="keyword">const</span> RtAudioFormat RTAUDIO_SINT16 = 0x2;
|
||||
00091 <span class="keyword">static</span> <span class="keyword">const</span> RtAudioFormat RTAUDIO_SINT24 = 0x4;
|
||||
00092 <span class="keyword">static</span> <span class="keyword">const</span> RtAudioFormat RTAUDIO_SINT32 = 0x8;
|
||||
00093 <span class="keyword">static</span> <span class="keyword">const</span> RtAudioFormat RTAUDIO_FLOAT32 = 0x10;
|
||||
00094 <span class="keyword">static</span> <span class="keyword">const</span> RtAudioFormat RTAUDIO_FLOAT64 = 0x20;
|
||||
00096 <span class="keyword">typedef</span> int (*RtAudioCallback)(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">int</span> bufferSize, <span class="keywordtype">void</span> *userData);
|
||||
00097
|
||||
<a name="l00099"></a><a class="code" href="structRtAudioDeviceInfo.html">00099</a> <span class="keyword">struct </span><a class="code" href="structRtAudioDeviceInfo.html">RtAudioDeviceInfo</a> {
|
||||
<a name="l00100"></a><a class="code" href="structRtAudioDeviceInfo.html#o0">00100</a> std::string <a class="code" href="structRtAudioDeviceInfo.html#o0">name</a>;
|
||||
<a name="l00101"></a><a class="code" href="structRtAudioDeviceInfo.html#o1">00101</a> <span class="keywordtype">bool</span> <a class="code" href="structRtAudioDeviceInfo.html#o1">probed</a>;
|
||||
<a name="l00102"></a><a class="code" href="structRtAudioDeviceInfo.html#o2">00102</a> <span class="keywordtype">int</span> <a class="code" href="structRtAudioDeviceInfo.html#o2">outputChannels</a>;
|
||||
<a name="l00103"></a><a class="code" href="structRtAudioDeviceInfo.html#o3">00103</a> <span class="keywordtype">int</span> <a class="code" href="structRtAudioDeviceInfo.html#o3">inputChannels</a>;
|
||||
<a name="l00104"></a><a class="code" href="structRtAudioDeviceInfo.html#o4">00104</a> <span class="keywordtype">int</span> <a class="code" href="structRtAudioDeviceInfo.html#o4">duplexChannels</a>;
|
||||
<a name="l00105"></a><a class="code" href="structRtAudioDeviceInfo.html#o5">00105</a> <span class="keywordtype">bool</span> <a class="code" href="structRtAudioDeviceInfo.html#o5">isDefault</a>;
|
||||
<a name="l00106"></a><a class="code" href="structRtAudioDeviceInfo.html#o6">00106</a> std::vector<int> <a class="code" href="structRtAudioDeviceInfo.html#o6">sampleRates</a>;
|
||||
<a name="l00107"></a><a class="code" href="structRtAudioDeviceInfo.html#o7">00107</a> RtAudioFormat <a class="code" href="structRtAudioDeviceInfo.html#o7">nativeFormats</a>;
|
||||
00109 <span class="comment">// Default constructor.</span>
|
||||
00110 <a class="code" href="structRtAudioDeviceInfo.html">RtAudioDeviceInfo</a>()
|
||||
00111 :<a class="code" href="structRtAudioDeviceInfo.html#o1">probed</a>(false), <a class="code" href="structRtAudioDeviceInfo.html#o2">outputChannels</a>(0), <a class="code" href="structRtAudioDeviceInfo.html#o3">inputChannels</a>(0),
|
||||
00112 <a class="code" href="structRtAudioDeviceInfo.html#o4">duplexChannels</a>(0), <a class="code" href="structRtAudioDeviceInfo.html#o5">isDefault</a>(false), <a class="code" href="structRtAudioDeviceInfo.html#o7">nativeFormats</a>(0) {}
|
||||
00113 };
|
||||
00114
|
||||
00115 <span class="comment">// **************************************************************** //</span>
|
||||
00116 <span class="comment">//</span>
|
||||
00117 <span class="comment">// RtApi class declaration.</span>
|
||||
00118 <span class="comment">//</span>
|
||||
00119 <span class="comment">// Note that RtApi is an abstract base class and cannot be</span>
|
||||
00120 <span class="comment">// explicitly instantiated. The class RtAudio will create an</span>
|
||||
00121 <span class="comment">// instance of an RtApi subclass (RtApiOss, RtApiAlsa,</span>
|
||||
00122 <span class="comment">// RtApiJack, RtApiCore, RtApiAl, RtApiDs, or RtApiAsio).</span>
|
||||
00123 <span class="comment">//</span>
|
||||
00124 <span class="comment">// **************************************************************** //</span>
|
||||
00125
|
||||
00126 <span class="keyword">class </span>RtApi
|
||||
00127 {
|
||||
00128 <span class="keyword">public</span>:
|
||||
00129
|
||||
00130 RtApi();
|
||||
00131 <span class="keyword">virtual</span> ~RtApi();
|
||||
00132 <span class="keywordtype">void</span> openStream( <span class="keywordtype">int</span> outputDevice, <span class="keywordtype">int</span> outputChannels,
|
||||
00133 <span class="keywordtype">int</span> inputDevice, <span class="keywordtype">int</span> inputChannels,
|
||||
00134 RtAudioFormat format, <span class="keywordtype">int</span> sampleRate,
|
||||
00135 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00136 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData ) = 0;
|
||||
00137 <span class="keyword">virtual</span> <span class="keywordtype">void</span> cancelStreamCallback() = 0;
|
||||
00138 <span class="keywordtype">int</span> getDeviceCount(<span class="keywordtype">void</span>);
|
||||
00139 <a class="code" href="structRtAudioDeviceInfo.html">RtAudioDeviceInfo</a> getDeviceInfo( <span class="keywordtype">int</span> device );
|
||||
00140 <span class="keywordtype">char</span> * <span class="keyword">const</span> getStreamBuffer();
|
||||
00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> tickStream() = 0;
|
||||
00142 <span class="keyword">virtual</span> <span class="keywordtype">void</span> closeStream();
|
||||
00143 <span class="keyword">virtual</span> <span class="keywordtype">void</span> startStream() = 0;
|
||||
00144 <span class="keyword">virtual</span> <span class="keywordtype">void</span> stopStream() = 0;
|
||||
00145 <span class="keyword">virtual</span> <span class="keywordtype">void</span> abortStream() = 0;
|
||||
00146
|
||||
00147 <span class="keyword">protected</span>:
|
||||
00148
|
||||
00149 <font class="keyword">public</font>:
|
||||
00151 <a class="code" href="classRtError.html#a0">RtError</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *p, TYPE tipe = RtError::UNSPECIFIED);
|
||||
00152
|
||||
00154 <font class="keyword">virtual</font> <a class="code" href="classRtError.html#a1">~RtError</a>(<font class="keywordtype">void</font>);
|
||||
00155
|
||||
00157 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classRtError.html#a2">printMessage</a>(<font class="keywordtype">void</font>);
|
||||
00158
|
||||
<a name="l00160"></a><a class="code" href="classRtError.html#a3">00160</a> <font class="keyword">virtual</font> <font class="keyword">const</font> TYPE& <a class="code" href="classRtError.html#a3">getType</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> type; }
|
||||
00161
|
||||
<a name="l00163"></a><a class="code" href="classRtError.html#a4">00163</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classRtError.html#a4">getMessage</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> error_message; }
|
||||
00164 };
|
||||
00149 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MAX_SAMPLE_RATES;
|
||||
00150 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> SAMPLE_RATES[];
|
||||
00151
|
||||
00152 <span class="keyword">enum</span> { FAILURE, SUCCESS };
|
||||
00153
|
||||
00154 <span class="keyword">enum</span> StreamMode {
|
||||
00155 OUTPUT,
|
||||
00156 INPUT,
|
||||
00157 DUPLEX,
|
||||
00158 UNINITIALIZED = -75
|
||||
00159 };
|
||||
00160
|
||||
00161 <span class="keyword">enum</span> StreamState {
|
||||
00162 STREAM_STOPPED,
|
||||
00163 STREAM_RUNNING
|
||||
00164 };
|
||||
00165
|
||||
00166
|
||||
00167 <font class="comment">// This public structure type is used to pass callback information</font>
|
||||
00168 <font class="comment">// between the private RtAudio stream structure and global callback</font>
|
||||
00169 <font class="comment">// handling functions.</font>
|
||||
00170 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
||||
00171 <font class="keywordtype">void</font> *object; <font class="comment">// Used as a "this" pointer.</font>
|
||||
00172 <font class="keywordtype">int</font> streamId;
|
||||
00173 DEVICE_ID device[2];
|
||||
00174 THREAD_HANDLE thread;
|
||||
00175 <font class="keywordtype">void</font> *callback;
|
||||
00176 <font class="keywordtype">void</font> *buffers;
|
||||
00177 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> waitTime;
|
||||
00178 <font class="keywordtype">bool</font> blockTick;
|
||||
00179 <font class="keywordtype">bool</font> stopStream;
|
||||
00180 <font class="keywordtype">bool</font> usingCallback;
|
||||
00181 <font class="keywordtype">void</font> *userData;
|
||||
00182 } CALLBACK_INFO;
|
||||
00183
|
||||
00184
|
||||
00185 <font class="comment">// *************************************************** //</font>
|
||||
00186 <font class="comment">//</font>
|
||||
00187 <font class="comment">// RtAudio class declaration.</font>
|
||||
00188 <font class="comment">//</font>
|
||||
00189 <font class="comment">// *************************************************** //</font>
|
||||
00190
|
||||
00191 <font class="keyword">class </font><a class="code" href="classRtAudio.html">RtAudio</a>
|
||||
00192 {
|
||||
00193 <font class="keyword">public</font>:
|
||||
00194
|
||||
00195 <font class="comment">// Support for signed integers and floats. Audio data fed to/from</font>
|
||||
00196 <font class="comment">// the tickStream() routine is assumed to ALWAYS be in host</font>
|
||||
00197 <font class="comment">// byte order. The internal routines will automatically take care of</font>
|
||||
00198 <font class="comment">// any necessary byte-swapping between the host format and the</font>
|
||||
00199 <font class="comment">// soundcard. Thus, endian-ness is not a concern in the following</font>
|
||||
00200 <font class="comment">// format definitions.</font>
|
||||
00201 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> RTAUDIO_FORMAT;
|
||||
<a name="l00202"></a><a class="code" href="classRtAudio.html#p0">00202</a> <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT8;
|
||||
<a name="l00203"></a><a class="code" href="classRtAudio.html#p1">00203</a> <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT16;
|
||||
<a name="l00204"></a><a class="code" href="classRtAudio.html#p2">00204</a> <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT24;
|
||||
<a name="l00205"></a><a class="code" href="classRtAudio.html#p3">00205</a> <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_SINT32;
|
||||
<a name="l00206"></a><a class="code" href="classRtAudio.html#p4">00206</a> <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_FLOAT32;
|
||||
<a name="l00207"></a><a class="code" href="classRtAudio.html#p5">00207</a> <font class="keyword">static</font> <font class="keyword">const</font> RTAUDIO_FORMAT RTAUDIO_FLOAT64;
|
||||
00209 <font class="comment">//static const int MAX_SAMPLE_RATES = 14;</font>
|
||||
00210 <font class="keyword">enum</font> { MAX_SAMPLE_RATES = 14 };
|
||||
00211
|
||||
00212 <font class="keyword">typedef</font> int (*RTAUDIO_CALLBACK)(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> bufferSize, <font class="keywordtype">void</font> *userData);
|
||||
00213
|
||||
<a name="l00215"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html">00215</a> <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
||||
<a name="l00216"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m0">00216</a> <font class="keywordtype">char</font> name[128];
|
||||
00217 DEVICE_ID id[2]; <font class="comment">/* No value reported by getDeviceInfo(). */</font>
|
||||
<a name="l00218"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m2">00218</a> <font class="keywordtype">bool</font> probed;
|
||||
<a name="l00219"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m3">00219</a> <font class="keywordtype">int</font> maxOutputChannels;
|
||||
<a name="l00220"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m4">00220</a> <font class="keywordtype">int</font> maxInputChannels;
|
||||
<a name="l00221"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m5">00221</a> <font class="keywordtype">int</font> maxDuplexChannels;
|
||||
<a name="l00222"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m6">00222</a> <font class="keywordtype">int</font> minOutputChannels;
|
||||
<a name="l00223"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m7">00223</a> <font class="keywordtype">int</font> minInputChannels;
|
||||
<a name="l00224"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m8">00224</a> <font class="keywordtype">int</font> minDuplexChannels;
|
||||
<a name="l00225"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m9">00225</a> <font class="keywordtype">bool</font> hasDuplexSupport;
|
||||
<a name="l00226"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m10">00226</a> <font class="keywordtype">bool</font> isDefault;
|
||||
<a name="l00227"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m11">00227</a> <font class="keywordtype">int</font> nSampleRates;
|
||||
<a name="l00228"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m12">00228</a> <font class="keywordtype">int</font> sampleRates[MAX_SAMPLE_RATES];
|
||||
<a name="l00229"></a><a class="code" href="structRtAudio_1_1RTAUDIO__DEVICE.html#m13">00229</a> RTAUDIO_FORMAT nativeFormats;
|
||||
00230 } RTAUDIO_DEVICE;
|
||||
00231
|
||||
00233
|
||||
00239 <a class="code" href="classRtAudio.html#a0">RtAudio</a>();
|
||||
00166 <span class="comment">// A protected structure for audio streams.</span>
|
||||
00167 <span class="keyword">struct </span>RtApiStream {
|
||||
00168 <span class="keywordtype">int</span> device[2]; <span class="comment">// Playback and record, respectively.</span>
|
||||
00169 <span class="keywordtype">void</span> *apiHandle; <span class="comment">// void pointer for API specific stream handle information</span>
|
||||
00170 StreamMode mode; <span class="comment">// OUTPUT, INPUT, or DUPLEX.</span>
|
||||
00171 StreamState state; <span class="comment">// STOPPED or RUNNING</span>
|
||||
00172 <span class="keywordtype">char</span> *userBuffer;
|
||||
00173 <span class="keywordtype">char</span> *deviceBuffer;
|
||||
00174 <span class="keywordtype">bool</span> doConvertBuffer[2]; <span class="comment">// Playback and record, respectively.</span>
|
||||
00175 <span class="keywordtype">bool</span> deInterleave[2]; <span class="comment">// Playback and record, respectively.</span>
|
||||
00176 <span class="keywordtype">bool</span> doByteSwap[2]; <span class="comment">// Playback and record, respectively.</span>
|
||||
00177 <span class="keywordtype">int</span> sampleRate;
|
||||
00178 <span class="keywordtype">int</span> bufferSize;
|
||||
00179 <span class="keywordtype">int</span> nBuffers;
|
||||
00180 <span class="keywordtype">int</span> nUserChannels[2]; <span class="comment">// Playback and record, respectively.</span>
|
||||
00181 <span class="keywordtype">int</span> nDeviceChannels[2]; <span class="comment">// Playback and record channels, respectively.</span>
|
||||
00182 RtAudioFormat userFormat;
|
||||
00183 RtAudioFormat deviceFormat[2]; <span class="comment">// Playback and record, respectively.</span>
|
||||
00184 StreamMutex mutex;
|
||||
00185 CallbackInfo callbackInfo;
|
||||
00186
|
||||
00187 RtApiStream()
|
||||
00188 :apiHandle(0), userBuffer(0), deviceBuffer(0) {}
|
||||
00189 <span class="comment">// mode(UNINITIALIZED), state(STREAM_STOPPED),</span>
|
||||
00190 };
|
||||
00191
|
||||
00192 <span class="comment">// A protected device structure for audio devices.</span>
|
||||
00193 <span class="keyword">struct </span>RtApiDevice {
|
||||
00194 std::string name;
|
||||
00195 <span class="keywordtype">bool</span> probed;
|
||||
00196 <span class="keywordtype">void</span> *apiDeviceId; <span class="comment">// void pointer for API specific device information</span>
|
||||
00197 <span class="keywordtype">int</span> maxOutputChannels;
|
||||
00198 <span class="keywordtype">int</span> maxInputChannels;
|
||||
00199 <span class="keywordtype">int</span> maxDuplexChannels;
|
||||
00200 <span class="keywordtype">int</span> minOutputChannels;
|
||||
00201 <span class="keywordtype">int</span> minInputChannels;
|
||||
00202 <span class="keywordtype">int</span> minDuplexChannels;
|
||||
00203 <span class="keywordtype">bool</span> hasDuplexSupport;
|
||||
00204 <span class="keywordtype">bool</span> isDefault;
|
||||
00205 std::vector<int> sampleRates;
|
||||
00206 RtAudioFormat nativeFormats;
|
||||
00208 <span class="comment">// Default constructor.</span>
|
||||
00209 RtApiDevice()
|
||||
00210 :probed(false), apiDeviceId(0), maxOutputChannels(0), maxInputChannels(0),
|
||||
00211 maxDuplexChannels(0), minOutputChannels(0), minInputChannels(0),
|
||||
00212 minDuplexChannels(0), isDefault(false), nativeFormats(0) {}
|
||||
00213 };
|
||||
00214
|
||||
00215 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span> Int16;
|
||||
00216 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> Int32;
|
||||
00217 <span class="keyword">typedef</span> <span class="keywordtype">float</span> Float32;
|
||||
00218 <span class="keyword">typedef</span> <span class="keywordtype">double</span> Float64;
|
||||
00219
|
||||
00220 <span class="keywordtype">char</span> message_[256];
|
||||
00221 <span class="keywordtype">int</span> nDevices_;
|
||||
00222 std::vector<RtApiDevice> devices_;
|
||||
00223 RtApiStream stream_;
|
||||
00224
|
||||
00229 <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>) = 0;
|
||||
00230
|
||||
00239 <span class="keyword">virtual</span> <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00240
|
||||
00242
|
||||
00253 <a class="code" href="classRtAudio.html#a0">RtAudio</a>(<font class="keywordtype">int</font> *streamId,
|
||||
00254 <font class="keywordtype">int</font> outputDevice, <font class="keywordtype">int</font> outputChannels,
|
||||
00255 <font class="keywordtype">int</font> inputDevice, <font class="keywordtype">int</font> inputChannels,
|
||||
00256 RTAUDIO_FORMAT format, <font class="keywordtype">int</font> sampleRate,
|
||||
00257 <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
|
||||
00249 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00250 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00251 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00252
|
||||
00257 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getDefaultInputDevice(<span class="keywordtype">void</span>);
|
||||
00258
|
||||
00260
|
||||
00264 <a class="code" href="classRtAudio.html#a2">~RtAudio</a>();
|
||||
00265
|
||||
00263 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getDefaultOutputDevice(<span class="keywordtype">void</span>);
|
||||
00264
|
||||
00266 <span class="keywordtype">void</span> clearDeviceInfo( RtApiDevice *info );
|
||||
00267
|
||||
00294 <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a3">openStream</a>(<font class="keywordtype">int</font> outputDevice, <font class="keywordtype">int</font> outputChannels,
|
||||
00295 <font class="keywordtype">int</font> inputDevice, <font class="keywordtype">int</font> inputChannels,
|
||||
00296 RTAUDIO_FORMAT format, <font class="keywordtype">int</font> sampleRate,
|
||||
00297 <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
|
||||
00298
|
||||
00300
|
||||
00319 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a4">setStreamCallback</a>(<font class="keywordtype">int</font> streamId, RTAUDIO_CALLBACK callback, <font class="keywordtype">void</font> *userData);
|
||||
00320
|
||||
00269 <span class="keywordtype">void</span> clearStreamInfo();
|
||||
00270
|
||||
00272 <span class="keywordtype">void</span> error( RtError::Type type );
|
||||
00273
|
||||
00278 <span class="keywordtype">void</span> verifyStream();
|
||||
00279
|
||||
00284 <span class="keywordtype">void</span> convertStreamBuffer( StreamMode mode );
|
||||
00285
|
||||
00287 <span class="keywordtype">void</span> byteSwapBuffer( <span class="keywordtype">char</span> *buffer, <span class="keywordtype">int</span> samples, RtAudioFormat format );
|
||||
00288
|
||||
00290 <span class="keywordtype">int</span> formatBytes( RtAudioFormat format );
|
||||
00291 };
|
||||
00292
|
||||
00293
|
||||
00294 <span class="comment">// **************************************************************** //</span>
|
||||
00295 <span class="comment">//</span>
|
||||
00296 <span class="comment">// RtAudio class declaration.</span>
|
||||
00297 <span class="comment">//</span>
|
||||
00298 <span class="comment">// RtAudio is a "controller" used to select an available audio i/o</span>
|
||||
00299 <span class="comment">// interface. It presents a common API for the user to call but all</span>
|
||||
00300 <span class="comment">// functionality is implemented by the class RtAudioApi and its</span>
|
||||
00301 <span class="comment">// subclasses. RtAudio creates an instance of an RtAudioApi subclass</span>
|
||||
00302 <span class="comment">// based on the user's API choice. If no choice is made, RtAudio</span>
|
||||
00303 <span class="comment">// attempts to make a "logical" API selection.</span>
|
||||
00304 <span class="comment">//</span>
|
||||
00305 <span class="comment">// **************************************************************** //</span>
|
||||
00306
|
||||
<a name="l00307"></a><a class="code" href="classRtAudio.html">00307</a> <span class="keyword">class </span><a class="code" href="classRtAudio.html">RtAudio</a>
|
||||
00308 {
|
||||
00309 <span class="keyword">public</span>:
|
||||
00310
|
||||
<a name="l00312"></a><a class="code" href="classRtAudio.html#w8">00312</a> <span class="keyword">enum</span> <a class="code" href="classRtAudio.html#w8">RtAudioApi</a> {
|
||||
00313 <a class="code" href="classRtAudio.html#w8w0">UNSPECIFIED</a>,
|
||||
00314 <a class="code" href="classRtAudio.html#w8w1">LINUX_ALSA</a>,
|
||||
00315 <a class="code" href="classRtAudio.html#w8w2">LINUX_OSS</a>,
|
||||
00316 <a class="code" href="classRtAudio.html#w8w3">LINUX_JACK</a>,
|
||||
00317 <a class="code" href="classRtAudio.html#w8w4">MACOSX_CORE</a>,
|
||||
00318 <a class="code" href="classRtAudio.html#w8w5">IRIX_AL</a>,
|
||||
00319 <a class="code" href="classRtAudio.html#w8w6">WINDOWS_ASIO</a>,
|
||||
00320 <a class="code" href="classRtAudio.html#w8w7">WINDOWS_DS</a>
|
||||
00321 };
|
||||
00322
|
||||
00329 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a5">cancelStreamCallback</a>(<font class="keywordtype">int</font> streamId);
|
||||
00330
|
||||
00332 <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a6">getDeviceCount</a>(<font class="keywordtype">void</font>);
|
||||
00333
|
||||
00324
|
||||
00334 <a class="code" href="classRtAudio.html#a0">RtAudio</a>( RtAudioApi api=UNSPECIFIED );
|
||||
00335
|
||||
00343 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a7">getDeviceInfo</a>(<font class="keywordtype">int</font> device, RTAUDIO_DEVICE *info);
|
||||
00344
|
||||
00346
|
||||
00351 <font class="keywordtype">char</font> * <font class="keyword">const</font> <a class="code" href="classRtAudio.html#a8">getStreamBuffer</a>(<font class="keywordtype">int</font> streamId);
|
||||
00337
|
||||
00348 <a class="code" href="classRtAudio.html#a0">RtAudio</a>( <span class="keywordtype">int</span> outputDevice, <span class="keywordtype">int</span> outputChannels,
|
||||
00349 <span class="keywordtype">int</span> inputDevice, <span class="keywordtype">int</span> inputChannels,
|
||||
00350 RtAudioFormat format, <span class="keywordtype">int</span> sampleRate,
|
||||
00351 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers, RtAudioApi api=UNSPECIFIED );
|
||||
00352
|
||||
00354
|
||||
00359 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a9">tickStream</a>(<font class="keywordtype">int</font> streamId);
|
||||
00360
|
||||
00362
|
||||
00366 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a10">closeStream</a>(<font class="keywordtype">int</font> streamId);
|
||||
00367
|
||||
00369
|
||||
00373 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a11">startStream</a>(<font class="keywordtype">int</font> streamId);
|
||||
00374
|
||||
00376
|
||||
00380 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a12">stopStream</a>(<font class="keywordtype">int</font> streamId);
|
||||
00381
|
||||
00383
|
||||
00387 <font class="keywordtype">void</font> <a class="code" href="classRtAudio.html#a13">abortStream</a>(<font class="keywordtype">int</font> streamId);
|
||||
00388
|
||||
00390
|
||||
00395 <font class="keywordtype">int</font> <a class="code" href="classRtAudio.html#a14">streamWillBlock</a>(<font class="keywordtype">int</font> streamId);
|
||||
00396
|
||||
00397 <font class="preprocessor">#if (defined(__MACOSX_CORE__) || defined(__WINDOWS_ASIO__))</font>
|
||||
00398 <font class="preprocessor"></font> <font class="comment">// This function is intended for internal use only. It must be</font>
|
||||
00399 <font class="comment">// public because it is called by the internal callback handler,</font>
|
||||
00400 <font class="comment">// which is not a member of RtAudio. External use of this function</font>
|
||||
00401 <font class="comment">// will most likely produce highly undesireable results!</font>
|
||||
00402 <font class="keywordtype">void</font> callbackEvent(<font class="keywordtype">int</font> streamId, DEVICE_ID deviceId, <font class="keywordtype">void</font> *inData, <font class="keywordtype">void</font> *outData);
|
||||
00403 <font class="preprocessor">#endif</font>
|
||||
00404 <font class="preprocessor"></font>
|
||||
00405 <font class="keyword">protected</font>:
|
||||
00406
|
||||
00407 <font class="keyword">private</font>:
|
||||
00408
|
||||
00409 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> SAMPLE_RATES[MAX_SAMPLE_RATES];
|
||||
00410
|
||||
00411 <font class="keyword">enum</font> { FAILURE, SUCCESS };
|
||||
00412
|
||||
00413 <font class="keyword">enum</font> STREAM_MODE {
|
||||
00414 OUTPUT,
|
||||
00415 INPUT,
|
||||
00416 DUPLEX,
|
||||
00417 UNINITIALIZED = -75
|
||||
00418 };
|
||||
00419
|
||||
00420 <font class="keyword">enum</font> STREAM_STATE {
|
||||
00421 STREAM_STOPPED,
|
||||
00422 STREAM_RUNNING
|
||||
00423 };
|
||||
00424
|
||||
00425 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
||||
00426 <font class="keywordtype">int</font> device[2]; <font class="comment">// Playback and record, respectively.</font>
|
||||
00427 STREAM_MODE mode; <font class="comment">// OUTPUT, INPUT, or DUPLEX.</font>
|
||||
00428 AUDIO_HANDLE handle[2]; <font class="comment">// Playback and record handles, respectively.</font>
|
||||
00429 STREAM_STATE state; <font class="comment">// STOPPED or RUNNING</font>
|
||||
00430 <font class="keywordtype">char</font> *userBuffer;
|
||||
00431 <font class="keywordtype">char</font> *deviceBuffer;
|
||||
00432 <font class="keywordtype">bool</font> doConvertBuffer[2]; <font class="comment">// Playback and record, respectively.</font>
|
||||
00433 <font class="keywordtype">bool</font> deInterleave[2]; <font class="comment">// Playback and record, respectively.</font>
|
||||
00434 <font class="keywordtype">bool</font> doByteSwap[2]; <font class="comment">// Playback and record, respectively.</font>
|
||||
00435 <font class="keywordtype">int</font> sampleRate;
|
||||
00436 <font class="keywordtype">int</font> bufferSize;
|
||||
00437 <font class="keywordtype">int</font> nBuffers;
|
||||
00438 <font class="keywordtype">int</font> nUserChannels[2]; <font class="comment">// Playback and record, respectively.</font>
|
||||
00439 <font class="keywordtype">int</font> nDeviceChannels[2]; <font class="comment">// Playback and record channels, respectively.</font>
|
||||
00440 RTAUDIO_FORMAT userFormat;
|
||||
00441 RTAUDIO_FORMAT deviceFormat[2]; <font class="comment">// Playback and record, respectively.</font>
|
||||
00442 MUTEX mutex;
|
||||
00443 CALLBACK_INFO callbackInfo;
|
||||
00444 } RTAUDIO_STREAM;
|
||||
00358 <a class="code" href="classRtAudio.html#a2">~RtAudio</a>();
|
||||
00359
|
||||
00361
|
||||
00387 <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a3">openStream</a>( <span class="keywordtype">int</span> outputDevice, <span class="keywordtype">int</span> outputChannels,
|
||||
00388 <span class="keywordtype">int</span> inputDevice, <span class="keywordtype">int</span> inputChannels,
|
||||
00389 RtAudioFormat format, <span class="keywordtype">int</span> sampleRate,
|
||||
00390 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00391
|
||||
00393
|
||||
<a name="l00412"></a><a class="code" href="classRtAudio.html#a4">00412</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a4">setStreamCallback</a>(RtAudioCallback callback, <span class="keywordtype">void</span> *userData) { rtapi_->setStreamCallback( callback, userData ); };
|
||||
00413
|
||||
00415
|
||||
<a name="l00422"></a><a class="code" href="classRtAudio.html#a5">00422</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a5">cancelStreamCallback</a>() { rtapi_->cancelStreamCallback(); };
|
||||
00423
|
||||
<a name="l00425"></a><a class="code" href="classRtAudio.html#a6">00425</a> <span class="keywordtype">int</span> <a class="code" href="classRtAudio.html#a6">getDeviceCount</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> rtapi_->getDeviceCount(); };
|
||||
00426
|
||||
00428
|
||||
<a name="l00436"></a><a class="code" href="classRtAudio.html#a7">00436</a> <a class="code" href="structRtAudioDeviceInfo.html">RtAudioDeviceInfo</a> <a class="code" href="classRtAudio.html#a7">getDeviceInfo</a>(<span class="keywordtype">int</span> device) { <span class="keywordflow">return</span> rtapi_->getDeviceInfo( device ); };
|
||||
00437
|
||||
00439
|
||||
<a name="l00444"></a><a class="code" href="classRtAudio.html#a8">00444</a> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classRtAudio.html#a8">getStreamBuffer</a>() { <span class="keywordflow">return</span> rtapi_->getStreamBuffer(); };
|
||||
00445
|
||||
00446 <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">short</font> INT16;
|
||||
00447 <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">int</font> INT32;
|
||||
00448 <font class="keyword">typedef</font> <font class="keywordtype">float</font> FLOAT32;
|
||||
00449 <font class="keyword">typedef</font> <font class="keywordtype">double</font> FLOAT64;
|
||||
00450
|
||||
00451 <font class="keywordtype">char</font> message[256];
|
||||
00452 <font class="keywordtype">int</font> nDevices;
|
||||
00453 RTAUDIO_DEVICE *devices;
|
||||
00454
|
||||
00455 std::map<int, void *> streams;
|
||||
00456
|
||||
00458 <font class="keywordtype">void</font> error(RtError::TYPE type);
|
||||
00459
|
||||
00464 <font class="keywordtype">void</font> initialize(<font class="keywordtype">void</font>);
|
||||
00465
|
||||
00470 <font class="keywordtype">int</font> getDefaultInputDevice(<font class="keywordtype">void</font>);
|
||||
00471
|
||||
00476 <font class="keywordtype">int</font> getDefaultOutputDevice(<font class="keywordtype">void</font>);
|
||||
00477
|
||||
00479 <font class="keywordtype">void</font> clearDeviceInfo(RTAUDIO_DEVICE *info);
|
||||
00480
|
||||
00488 <font class="keywordtype">void</font> probeDeviceInfo(RTAUDIO_DEVICE *info);
|
||||
00447
|
||||
<a name="l00452"></a><a class="code" href="classRtAudio.html#a9">00452</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a9">tickStream</a>() { rtapi_->tickStream(); };
|
||||
00453
|
||||
00455
|
||||
<a name="l00459"></a><a class="code" href="classRtAudio.html#a10">00459</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a10">closeStream</a>() { rtapi_->closeStream(); };
|
||||
00460
|
||||
00462
|
||||
<a name="l00466"></a><a class="code" href="classRtAudio.html#a11">00466</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a11">startStream</a>() { rtapi_->startStream(); };
|
||||
00467
|
||||
00469
|
||||
<a name="l00473"></a><a class="code" href="classRtAudio.html#a12">00473</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a12">stopStream</a>() { rtapi_->stopStream(); };
|
||||
00474
|
||||
00476
|
||||
<a name="l00480"></a><a class="code" href="classRtAudio.html#a13">00480</a> <span class="keywordtype">void</span> <a class="code" href="classRtAudio.html#a13">abortStream</a>() { rtapi_->abortStream(); };
|
||||
00481
|
||||
00482
|
||||
00483 <span class="keyword">protected</span>:
|
||||
00484
|
||||
00485 <span class="keywordtype">void</span> initialize( RtAudioApi api );
|
||||
00486
|
||||
00487 RtApi *rtapi_;
|
||||
00488 };
|
||||
00489
|
||||
00496 <font class="keywordtype">bool</font> probeDeviceOpen(<font class="keywordtype">int</font> device, RTAUDIO_STREAM *stream,
|
||||
00497 STREAM_MODE mode, <font class="keywordtype">int</font> channels,
|
||||
00498 <font class="keywordtype">int</font> sampleRate, RTAUDIO_FORMAT format,
|
||||
00499 <font class="keywordtype">int</font> *bufferSize, <font class="keywordtype">int</font> numberOfBuffers);
|
||||
00500
|
||||
00507 <font class="keywordtype">void</font> *verifyStream(<font class="keywordtype">int</font> streamId);
|
||||
00508
|
||||
00513 <font class="keywordtype">void</font> convertStreamBuffer(RTAUDIO_STREAM *stream, STREAM_MODE mode);
|
||||
00514
|
||||
00516 <font class="keywordtype">void</font> byteSwapBuffer(<font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> samples, RTAUDIO_FORMAT format);
|
||||
00517
|
||||
00519 <font class="keywordtype">int</font> formatBytes(RTAUDIO_FORMAT format);
|
||||
00520 };
|
||||
00521
|
||||
00522 <font class="comment">// Define the following flag to have extra information spewed to stderr.</font>
|
||||
00523 <font class="comment">//#define __RTAUDIO_DEBUG__</font>
|
||||
00524
|
||||
00525 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00490
|
||||
00491 <span class="comment">// RtApi Subclass prototypes.</span>
|
||||
00492
|
||||
00493 <span class="preprocessor">#if defined(__LINUX_ALSA__)</span>
|
||||
00494 <span class="preprocessor"></span>
|
||||
00495 <span class="keyword">class </span>RtApiAlsa: <span class="keyword">public</span> RtApi
|
||||
00496 {
|
||||
00497 <span class="keyword">public</span>:
|
||||
00498
|
||||
00499 RtApiAlsa();
|
||||
00500 ~RtApiAlsa();
|
||||
00501 <span class="keywordtype">void</span> tickStream();
|
||||
00502 <span class="keywordtype">void</span> closeStream();
|
||||
00503 <span class="keywordtype">void</span> startStream();
|
||||
00504 <span class="keywordtype">void</span> stopStream();
|
||||
00505 <span class="keywordtype">void</span> abortStream();
|
||||
00506 <span class="keywordtype">int</span> streamWillBlock();
|
||||
00507 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00508 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00509
|
||||
00510 <span class="keyword">private</span>:
|
||||
00511
|
||||
00512 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00513 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00514 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00515 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00516 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00517 };
|
||||
00518
|
||||
00519 <span class="preprocessor">#endif</span>
|
||||
00520 <span class="preprocessor"></span>
|
||||
00521 <span class="preprocessor">#if defined(__LINUX_JACK__)</span>
|
||||
00522 <span class="preprocessor"></span>
|
||||
00523 <span class="keyword">class </span>RtApiJack: <span class="keyword">public</span> RtApi
|
||||
00524 {
|
||||
00525 <span class="keyword">public</span>:
|
||||
00526
|
||||
00527 RtApiJack();
|
||||
00528 ~RtApiJack();
|
||||
00529 <span class="keywordtype">void</span> tickStream();
|
||||
00530 <span class="keywordtype">void</span> closeStream();
|
||||
00531 <span class="keywordtype">void</span> startStream();
|
||||
00532 <span class="keywordtype">void</span> stopStream();
|
||||
00533 <span class="keywordtype">void</span> abortStream();
|
||||
00534 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00535 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00536 <span class="comment">// This function is intended for internal use only. It must be</span>
|
||||
00537 <span class="comment">// public because it is called by the internal callback handler,</span>
|
||||
00538 <span class="comment">// which is not a member of RtAudio. External use of this function</span>
|
||||
00539 <span class="comment">// will most likely produce highly undesireable results!</span>
|
||||
00540 <span class="keywordtype">void</span> callbackEvent( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> nframes );
|
||||
00541
|
||||
00542 <span class="keyword">private</span>:
|
||||
00543
|
||||
00544 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00545 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00546 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00547 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00548 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00549 };
|
||||
00550
|
||||
00551 <span class="preprocessor">#endif</span>
|
||||
00552 <span class="preprocessor"></span>
|
||||
00553 <span class="preprocessor">#if defined(__LINUX_OSS__)</span>
|
||||
00554 <span class="preprocessor"></span>
|
||||
00555 <span class="keyword">class </span>RtApiOss: <span class="keyword">public</span> RtApi
|
||||
00556 {
|
||||
00557 <span class="keyword">public</span>:
|
||||
00558
|
||||
00559 RtApiOss();
|
||||
00560 ~RtApiOss();
|
||||
00561 <span class="keywordtype">void</span> tickStream();
|
||||
00562 <span class="keywordtype">void</span> closeStream();
|
||||
00563 <span class="keywordtype">void</span> startStream();
|
||||
00564 <span class="keywordtype">void</span> stopStream();
|
||||
00565 <span class="keywordtype">void</span> abortStream();
|
||||
00566 <span class="keywordtype">int</span> streamWillBlock();
|
||||
00567 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00568 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00569
|
||||
00570 <span class="keyword">private</span>:
|
||||
00571
|
||||
00572 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00573 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00574 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00575 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00576 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00577 };
|
||||
00578
|
||||
00579 <span class="preprocessor">#endif</span>
|
||||
00580 <span class="preprocessor"></span>
|
||||
00581 <span class="preprocessor">#if defined(__MACOSX_CORE__)</span>
|
||||
00582 <span class="preprocessor"></span>
|
||||
00583 <span class="preprocessor">#include <CoreAudio/AudioHardware.h></span>
|
||||
00584
|
||||
00585 <span class="keyword">class </span>RtApiCore: <span class="keyword">public</span> RtApi
|
||||
00586 {
|
||||
00587 <span class="keyword">public</span>:
|
||||
00588
|
||||
00589 RtApiCore();
|
||||
00590 ~RtApiCore();
|
||||
00591 <span class="keywordtype">int</span> getDefaultOutputDevice(<span class="keywordtype">void</span>);
|
||||
00592 <span class="keywordtype">int</span> getDefaultInputDevice(<span class="keywordtype">void</span>);
|
||||
00593 <span class="keywordtype">void</span> tickStream();
|
||||
00594 <span class="keywordtype">void</span> closeStream();
|
||||
00595 <span class="keywordtype">void</span> startStream();
|
||||
00596 <span class="keywordtype">void</span> stopStream();
|
||||
00597 <span class="keywordtype">void</span> abortStream();
|
||||
00598 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00599 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00600
|
||||
00601 <span class="comment">// This function is intended for internal use only. It must be</span>
|
||||
00602 <span class="comment">// public because it is called by the internal callback handler,</span>
|
||||
00603 <span class="comment">// which is not a member of RtAudio. External use of this function</span>
|
||||
00604 <span class="comment">// will most likely produce highly undesireable results!</span>
|
||||
00605 <span class="keywordtype">void</span> callbackEvent( AudioDeviceID deviceId, <span class="keywordtype">void</span> *inData, <span class="keywordtype">void</span> *outData );
|
||||
00606
|
||||
00607 <span class="keyword">private</span>:
|
||||
00608
|
||||
00609 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00610 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00611 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00612 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00613 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00614 };
|
||||
00615
|
||||
00616 <span class="preprocessor">#endif</span>
|
||||
00617 <span class="preprocessor"></span>
|
||||
00618 <span class="preprocessor">#if defined(__WINDOWS_DS__)</span>
|
||||
00619 <span class="preprocessor"></span>
|
||||
00620 <span class="keyword">class </span>RtApiDs: <span class="keyword">public</span> RtApi
|
||||
00621 {
|
||||
00622 <span class="keyword">public</span>:
|
||||
00623
|
||||
00624 RtApiDs();
|
||||
00625 ~RtApiDs();
|
||||
00626 <span class="keywordtype">int</span> getDefaultOutputDevice(<span class="keywordtype">void</span>);
|
||||
00627 <span class="keywordtype">int</span> getDefaultInputDevice(<span class="keywordtype">void</span>);
|
||||
00628 <span class="keywordtype">void</span> tickStream();
|
||||
00629 <span class="keywordtype">void</span> closeStream();
|
||||
00630 <span class="keywordtype">void</span> startStream();
|
||||
00631 <span class="keywordtype">void</span> stopStream();
|
||||
00632 <span class="keywordtype">void</span> abortStream();
|
||||
00633 <span class="keywordtype">int</span> streamWillBlock();
|
||||
00634 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00635 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00636
|
||||
00637 <span class="keyword">private</span>:
|
||||
00638
|
||||
00639 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00640 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00641 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00642 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00643 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00644 };
|
||||
00645
|
||||
00646 <span class="preprocessor">#endif</span>
|
||||
00647 <span class="preprocessor"></span>
|
||||
00648 <span class="preprocessor">#if defined(__WINDOWS_ASIO__)</span>
|
||||
00649 <span class="preprocessor"></span>
|
||||
00650 <span class="keyword">class </span>RtApiAsio: <span class="keyword">public</span> RtApi
|
||||
00651 {
|
||||
00652 <span class="keyword">public</span>:
|
||||
00653
|
||||
00654 RtApiAsio();
|
||||
00655 ~RtApiAsio();
|
||||
00656 <span class="keywordtype">void</span> tickStream();
|
||||
00657 <span class="keywordtype">void</span> closeStream();
|
||||
00658 <span class="keywordtype">void</span> startStream();
|
||||
00659 <span class="keywordtype">void</span> stopStream();
|
||||
00660 <span class="keywordtype">void</span> abortStream();
|
||||
00661 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00662 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00663
|
||||
00664 <span class="comment">// This function is intended for internal use only. It must be</span>
|
||||
00665 <span class="comment">// public because it is called by the internal callback handler,</span>
|
||||
00666 <span class="comment">// which is not a member of RtAudio. External use of this function</span>
|
||||
00667 <span class="comment">// will most likely produce highly undesireable results!</span>
|
||||
00668 <span class="keywordtype">void</span> callbackEvent( <span class="keywordtype">long</span> bufferIndex );
|
||||
00669
|
||||
00670 <span class="keyword">private</span>:
|
||||
00671
|
||||
00672 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00673 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00674 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00675 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00676 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00677 };
|
||||
00678
|
||||
00679 <span class="preprocessor">#endif</span>
|
||||
00680 <span class="preprocessor"></span>
|
||||
00681 <span class="preprocessor">#if defined(__IRIX_AL__)</span>
|
||||
00682 <span class="preprocessor"></span>
|
||||
00683 <span class="keyword">class </span>RtApiAl: <span class="keyword">public</span> RtApi
|
||||
00684 {
|
||||
00685 <span class="keyword">public</span>:
|
||||
00686
|
||||
00687 RtApiAl();
|
||||
00688 ~RtApiAl();
|
||||
00689 <span class="keywordtype">int</span> getDefaultOutputDevice(<span class="keywordtype">void</span>);
|
||||
00690 <span class="keywordtype">int</span> getDefaultInputDevice(<span class="keywordtype">void</span>);
|
||||
00691 <span class="keywordtype">void</span> tickStream();
|
||||
00692 <span class="keywordtype">void</span> closeStream();
|
||||
00693 <span class="keywordtype">void</span> startStream();
|
||||
00694 <span class="keywordtype">void</span> stopStream();
|
||||
00695 <span class="keywordtype">void</span> abortStream();
|
||||
00696 <span class="keywordtype">int</span> streamWillBlock();
|
||||
00697 <span class="keywordtype">void</span> setStreamCallback( RtAudioCallback callback, <span class="keywordtype">void</span> *userData );
|
||||
00698 <span class="keywordtype">void</span> cancelStreamCallback();
|
||||
00699
|
||||
00700 <span class="keyword">private</span>:
|
||||
00701
|
||||
00702 <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
|
||||
00703 <span class="keywordtype">void</span> probeDeviceInfo( RtApiDevice *info );
|
||||
00704 <span class="keywordtype">bool</span> probeDeviceOpen( <span class="keywordtype">int</span> device, StreamMode mode, <span class="keywordtype">int</span> channels,
|
||||
00705 <span class="keywordtype">int</span> sampleRate, RtAudioFormat format,
|
||||
00706 <span class="keywordtype">int</span> *bufferSize, <span class="keywordtype">int</span> numberOfBuffers );
|
||||
00707 };
|
||||
00708
|
||||
00709 <span class="preprocessor">#endif</span>
|
||||
00710 <span class="preprocessor"></span>
|
||||
00711 <span class="comment">// Define the following flag to have extra information spewed to stderr.</span>
|
||||
00712 <span class="comment">//#define __RTAUDIO_DEBUG__</span>
|
||||
00713
|
||||
00714 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,65 +5,64 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>RtDuplex.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00022 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>RtDuplex.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00022 <span class="comment">/***************************************************/</span>
|
||||
00023
|
||||
00024 <font class="preprocessor">#if !defined(__RTDUPLEX_H)</font>
|
||||
00025 <font class="preprocessor"></font><font class="preprocessor">#define __RTDUPLEX_H</font>
|
||||
00026 <font class="preprocessor"></font>
|
||||
00027 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00028 <font class="preprocessor">#include "RtAudio.h"</font>
|
||||
00024 <span class="preprocessor">#if !defined(__RTDUPLEX_H)</span>
|
||||
00025 <span class="preprocessor"></span><span class="preprocessor">#define __RTDUPLEX_H</span>
|
||||
00026 <span class="preprocessor"></span>
|
||||
00027 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00028 <span class="preprocessor">#include "RtAudio.h"</span>
|
||||
00029
|
||||
00030 <font class="keyword">class </font><a class="code" href="classRtDuplex.html">RtDuplex</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00030"></a><a class="code" href="classRtDuplex.html">00030</a> <span class="keyword">class </span><a class="code" href="classRtDuplex.html">RtDuplex</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00031 {
|
||||
00032 <font class="keyword">public</font>:
|
||||
00032 <span class="keyword">public</span>:
|
||||
00034
|
||||
00045 <a class="code" href="classRtDuplex.html#a0">RtDuplex</a>(<font class="keywordtype">int</font> nChannels = 1, MY_FLOAT sampleRate = Stk::sampleRate(), <font class="keywordtype">int</font> device = 0, <font class="keywordtype">int</font> bufferFrames = RT_BUFFER_SIZE, <font class="keywordtype">int</font> nBuffers = 2);
|
||||
00045 <a class="code" href="classRtDuplex.html#a0">RtDuplex</a>(<span class="keywordtype">int</span> nChannels = 1, MY_FLOAT <a class="code" href="classStk.html#e0">sampleRate</a> = <a class="code" href="classStk.html#e0">Stk::sampleRate</a>(), <span class="keywordtype">int</span> device = 0, <span class="keywordtype">int</span> bufferFrames = RT_BUFFER_SIZE, <span class="keywordtype">int</span> nBuffers = 2);
|
||||
00046
|
||||
00048 <a class="code" href="classRtDuplex.html#a1">~RtDuplex</a>();
|
||||
00049
|
||||
00051
|
||||
00054 <font class="keywordtype">void</font> <a class="code" href="classRtDuplex.html#a2">start</a>(<font class="keywordtype">void</font>);
|
||||
00054 <span class="keywordtype">void</span> <a class="code" href="classRtDuplex.html#a2">start</a>(<span class="keywordtype">void</span>);
|
||||
00055
|
||||
00057
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classRtDuplex.html#a3">stop</a>(<font class="keywordtype">void</font>);
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classRtDuplex.html#a3">stop</a>(<span class="keywordtype">void</span>);
|
||||
00061
|
||||
00063 MY_FLOAT <a class="code" href="classRtDuplex.html#a4">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00063 MY_FLOAT <a class="code" href="classRtDuplex.html#a4">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00064
|
||||
00066
|
||||
00069 MY_FLOAT <a class="code" href="classRtDuplex.html#a5">tick</a>(<font class="keyword">const</font> MY_FLOAT sample);
|
||||
00069 MY_FLOAT <a class="code" href="classRtDuplex.html#a5">tick</a>(<span class="keyword">const</span> MY_FLOAT sample);
|
||||
00070
|
||||
00072
|
||||
00075 MY_FLOAT *<a class="code" href="classRtDuplex.html#a5">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00075 MY_FLOAT *<a class="code" href="classRtDuplex.html#a5">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00076
|
||||
00078 <font class="keyword">const</font> MY_FLOAT *<a class="code" href="classRtDuplex.html#a7">lastFrame</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00078 <span class="keyword">const</span> MY_FLOAT *<a class="code" href="classRtDuplex.html#a7">lastFrame</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00079
|
||||
00081
|
||||
00084 MY_FLOAT *<a class="code" href="classRtDuplex.html#a8">tickFrame</a>(MY_FLOAT *frameVector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> frames = 1);
|
||||
00084 MY_FLOAT *<a class="code" href="classRtDuplex.html#a8">tickFrame</a>(MY_FLOAT *frameVector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frames = 1);
|
||||
00085
|
||||
00086 <font class="keyword">protected</font>:
|
||||
00086 <span class="keyword">protected</span>:
|
||||
00087
|
||||
00088 <a class="code" href="classRtAudio.html">RtAudio</a> *audio;
|
||||
00089 MY_FLOAT *data;
|
||||
00090 MY_FLOAT *lastOutput;
|
||||
00091 <font class="keywordtype">int</font> bufferSize;
|
||||
00092 <font class="keywordtype">bool</font> stopped;
|
||||
00093 <font class="keywordtype">int</font> stream;
|
||||
00094 <font class="keywordtype">long</font> counter;
|
||||
00095 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> channels;
|
||||
00096
|
||||
00097 };
|
||||
00098
|
||||
00099 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00088 <a class="code" href="classRtAudio.html">RtAudio</a> *audio_;
|
||||
00089 MY_FLOAT *data_;
|
||||
00090 MY_FLOAT *lastOutput_;
|
||||
00091 <span class="keywordtype">int</span> bufferSize_;
|
||||
00092 <span class="keywordtype">bool</span> stopped_;
|
||||
00093 <span class="keywordtype">long</span> counter_;
|
||||
00094 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channels_;
|
||||
00095
|
||||
00096 };
|
||||
00097
|
||||
00098 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
65
doc/html/RtError_8h-source.html
Normal file
65
doc/html/RtError_8h-source.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Synthesis ToolKit in C++ (STK)</TITLE>
|
||||
<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>RtError.h</h1><div class="fragment"><pre>00001 <span class="comment">/************************************************************************/</span>
|
||||
00010 <span class="comment">/************************************************************************/</span>
|
||||
00011
|
||||
00012 <span class="preprocessor">#ifndef RTERROR_H</span>
|
||||
00013 <span class="preprocessor"></span><span class="preprocessor">#define RTERROR_H</span>
|
||||
00014 <span class="preprocessor"></span>
|
||||
00015 <span class="preprocessor">#include <iostream></span>
|
||||
00016 <span class="preprocessor">#include <string></span>
|
||||
00017
|
||||
<a name="l00018"></a><a class="code" href="classRtError.html">00018</a> <span class="keyword">class </span><a class="code" href="classRtError.html">RtError</a>
|
||||
00019 {
|
||||
00020 <span class="keyword">public</span>:
|
||||
<a name="l00022"></a><a class="code" href="classRtError.html#w11">00022</a> <span class="keyword">enum</span> <a class="code" href="classRtError.html#w11">Type</a> {
|
||||
00023 <a class="code" href="classRtError.html#w11w0">WARNING</a>,
|
||||
00024 <a class="code" href="classRtError.html#w11w1">DEBUG_WARNING</a>,
|
||||
00025 <a class="code" href="classRtError.html#w11w2">UNSPECIFIED</a>,
|
||||
00026 <a class="code" href="classRtError.html#w11w3">NO_DEVICES_FOUND</a>,
|
||||
00027 <a class="code" href="classRtError.html#w11w4">INVALID_DEVICE</a>,
|
||||
00028 <a class="code" href="classRtError.html#w11w5">INVALID_STREAM</a>,
|
||||
00029 <a class="code" href="classRtError.html#w11w6">MEMORY_ERROR</a>,
|
||||
00030 <a class="code" href="classRtError.html#w11w7">INVALID_PARAMETER</a>,
|
||||
00031 <a class="code" href="classRtError.html#w11w8">DRIVER_ERROR</a>,
|
||||
00032 <a class="code" href="classRtError.html#w11w9">SYSTEM_ERROR</a>,
|
||||
00033 <a class="code" href="classRtError.html#w11w10">THREAD_ERROR</a>
|
||||
00034 };
|
||||
00035
|
||||
00036 <span class="keyword">protected</span>:
|
||||
00037 std::string message_;
|
||||
00038 <a class="code" href="classRtError.html#w11">Type</a> type_;
|
||||
00039
|
||||
00040 <span class="keyword">public</span>:
|
||||
<a name="l00042"></a><a class="code" href="classRtError.html#a0">00042</a> <a class="code" href="classRtError.html#a0">RtError</a>(<span class="keyword">const</span> std::string& message, Type type = RtError::UNSPECIFIED) : message_(message), type_(type){}
|
||||
00043
|
||||
<a name="l00045"></a><a class="code" href="classRtError.html#a1">00045</a> <span class="keyword">virtual</span> <a class="code" href="classRtError.html#a1">~RtError</a>(<span class="keywordtype">void</span>) {};
|
||||
00046
|
||||
<a name="l00048"></a><a class="code" href="classRtError.html#a2">00048</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classRtError.html#a2">printMessage</a>(<span class="keywordtype">void</span>) { std::cerr << <span class="charliteral">'\n'</span> << message_ << <span class="stringliteral">"\n\n"</span>; }
|
||||
00049
|
||||
<a name="l00051"></a><a class="code" href="classRtError.html#a3">00051</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classRtError.html#w11">Type</a>& <a class="code" href="classRtError.html#a3">getType</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> type_; }
|
||||
00052
|
||||
<a name="l00054"></a><a class="code" href="classRtError.html#a4">00054</a> <span class="keyword">virtual</span> <span class="keyword">const</span> std::string& <a class="code" href="classRtError.html#a4">getMessage</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> message_; }
|
||||
00055
|
||||
<a name="l00057"></a><a class="code" href="classRtError.html#a5">00057</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classRtError.html#a5">getMessageString</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> message_.c_str(); }
|
||||
00058 };
|
||||
00059
|
||||
00060 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -5,56 +5,56 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>RtMidi.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00030 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>RtMidi.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00030 <span class="comment">/***************************************************/</span>
|
||||
00031
|
||||
00032 <font class="preprocessor">#if !defined(__RTMIDI_H)</font>
|
||||
00033 <font class="preprocessor"></font><font class="preprocessor">#define __RTMIDI_H</font>
|
||||
00034 <font class="preprocessor"></font>
|
||||
00035 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00032 <span class="preprocessor">#if !defined(__RTMIDI_H)</span>
|
||||
00033 <span class="preprocessor"></span><span class="preprocessor">#define __RTMIDI_H</span>
|
||||
00034 <span class="preprocessor"></span>
|
||||
00035 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00036
|
||||
00037 <font class="keyword">class </font><a class="code" href="classRtMidi.html">RtMidi</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00037"></a><a class="code" href="classRtMidi.html">00037</a> <span class="keyword">class </span><a class="code" href="classRtMidi.html">RtMidi</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00038 {
|
||||
00039 <font class="keyword">public</font>:
|
||||
00041 <a class="code" href="classRtMidi.html#a0">RtMidi</a>(<font class="keywordtype">int</font> device = 0);
|
||||
00039 <span class="keyword">public</span>:
|
||||
00041 <a class="code" href="classRtMidi.html#a0">RtMidi</a>(<span class="keywordtype">int</span> device = 0);
|
||||
00042
|
||||
00044 <a class="code" href="classRtMidi.html#a1">~RtMidi</a>();
|
||||
00045
|
||||
00047 <font class="keywordtype">void</font> <a class="code" href="classRtMidi.html#a2">printMessage</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classRtMidi.html#a2">printMessage</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00048
|
||||
00050
|
||||
00053 <font class="keywordtype">int</font> <a class="code" href="classRtMidi.html#a3">nextMessage</a>(<font class="keywordtype">void</font>);
|
||||
00053 <span class="keywordtype">int</span> <a class="code" href="classRtMidi.html#a3">nextMessage</a>(<span class="keywordtype">void</span>);
|
||||
00054
|
||||
00056 <font class="keywordtype">int</font> <a class="code" href="classRtMidi.html#a4">getType</a>() <font class="keyword">const</font>;
|
||||
00056 <span class="keywordtype">int</span> <a class="code" href="classRtMidi.html#a4">getType</a>() <span class="keyword">const</span>;
|
||||
00057
|
||||
00059 <font class="keywordtype">int</font> <a class="code" href="classRtMidi.html#a5">getChannel</a>() <font class="keyword">const</font>;
|
||||
00059 <span class="keywordtype">int</span> <a class="code" href="classRtMidi.html#a5">getChannel</a>() <span class="keyword">const</span>;
|
||||
00060
|
||||
00062 MY_FLOAT <a class="code" href="classRtMidi.html#a6">getByteTwo</a>() <font class="keyword">const</font>;
|
||||
00062 MY_FLOAT <a class="code" href="classRtMidi.html#a6">getByteTwo</a>() <span class="keyword">const</span>;
|
||||
00063
|
||||
00065 MY_FLOAT <a class="code" href="classRtMidi.html#a7">getByteThree</a>() <font class="keyword">const</font>;
|
||||
00065 MY_FLOAT <a class="code" href="classRtMidi.html#a7">getByteThree</a>() <span class="keyword">const</span>;
|
||||
00066
|
||||
00068 MY_FLOAT <a class="code" href="classRtMidi.html#a8">getDeltaTime</a>() <font class="keyword">const</font>;
|
||||
00068 MY_FLOAT <a class="code" href="classRtMidi.html#a8">getDeltaTime</a>() <span class="keyword">const</span>;
|
||||
00069
|
||||
00070 <font class="keyword">protected</font>:
|
||||
00071 <font class="keywordtype">int</font> messageType;
|
||||
00072 <font class="keywordtype">int</font> channel;
|
||||
00073 <font class="keywordtype">float</font> byteTwo;
|
||||
00074 <font class="keywordtype">float</font> byteThree;
|
||||
00070 <span class="keyword">protected</span>:
|
||||
00071 <span class="keywordtype">int</span> messageType;
|
||||
00072 <span class="keywordtype">int</span> channel;
|
||||
00073 <span class="keywordtype">float</span> byteTwo;
|
||||
00074 <span class="keywordtype">float</span> byteThree;
|
||||
00075 MY_FLOAT deltaTime;
|
||||
00076 <font class="keywordtype">int</font> readIndex;
|
||||
00076 <span class="keywordtype">int</span> readIndex;
|
||||
00077
|
||||
00078 };
|
||||
00079
|
||||
00080 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00080 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,65 +5,64 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>RtWvIn.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00020 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>RtWvIn.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00020 <span class="comment">/***************************************************/</span>
|
||||
00021
|
||||
00022 <font class="preprocessor">#if !defined(__RTWVIN_H)</font>
|
||||
00023 <font class="preprocessor"></font><font class="preprocessor">#define __RTWVIN_H</font>
|
||||
00024 <font class="preprocessor"></font>
|
||||
00025 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00026 <font class="preprocessor">#include "WvIn.h"</font>
|
||||
00027 <font class="preprocessor">#include "RtAudio.h"</font>
|
||||
00022 <span class="preprocessor">#if !defined(__RTWVIN_H)</span>
|
||||
00023 <span class="preprocessor"></span><span class="preprocessor">#define __RTWVIN_H</span>
|
||||
00024 <span class="preprocessor"></span>
|
||||
00025 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00026 <span class="preprocessor">#include "WvIn.h"</span>
|
||||
00027 <span class="preprocessor">#include "RtAudio.h"</span>
|
||||
00028
|
||||
00029 <font class="keyword">class </font><a class="code" href="classRtWvIn.html">RtWvIn</a> : <font class="keyword">protected</font> <a class="code" href="classWvIn.html">WvIn</a>
|
||||
<a name="l00029"></a><a class="code" href="classRtWvIn.html">00029</a> <span class="keyword">class </span><a class="code" href="classRtWvIn.html">RtWvIn</a> : <span class="keyword">protected</span> <a class="code" href="classWvIn.html">WvIn</a>
|
||||
00030 {
|
||||
00031 <font class="keyword">public</font>:
|
||||
00031 <span class="keyword">public</span>:
|
||||
00033
|
||||
00044 <a class="code" href="classRtWvIn.html#a0">RtWvIn</a>(<font class="keywordtype">int</font> nChannels = 1, MY_FLOAT sampleRate = Stk::sampleRate(), <font class="keywordtype">int</font> device = 0, <font class="keywordtype">int</font> bufferFrames = RT_BUFFER_SIZE, <font class="keywordtype">int</font> nBuffers = 2);
|
||||
00044 <a class="code" href="classRtWvIn.html#a0">RtWvIn</a>(<span class="keywordtype">int</span> nChannels = 1, MY_FLOAT <a class="code" href="classStk.html#e0">sampleRate</a> = <a class="code" href="classStk.html#e0">Stk::sampleRate</a>(), <span class="keywordtype">int</span> device = 0, <span class="keywordtype">int</span> bufferFrames = RT_BUFFER_SIZE, <span class="keywordtype">int</span> nBuffers = 2);
|
||||
00045
|
||||
00047 <a class="code" href="classRtWvIn.html#a1">~RtWvIn</a>();
|
||||
00048
|
||||
00050
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classRtWvIn.html#a2">start</a>(<font class="keywordtype">void</font>);
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classRtWvIn.html#a2">start</a>(<span class="keywordtype">void</span>);
|
||||
00054
|
||||
00056
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classRtWvIn.html#a3">stop</a>(<font class="keywordtype">void</font>);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classRtWvIn.html#a3">stop</a>(<span class="keywordtype">void</span>);
|
||||
00060
|
||||
00062 MY_FLOAT <a class="code" href="classWvIn.html#a15">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00062 MY_FLOAT <a class="code" href="classRtWvIn.html#a4">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00063
|
||||
00065
|
||||
00068 MY_FLOAT <a class="code" href="classWvIn.html#a16">tick</a>(<font class="keywordtype">void</font>);
|
||||
00068 MY_FLOAT <a class="code" href="classRtWvIn.html#a5">tick</a>(<span class="keywordtype">void</span>);
|
||||
00069
|
||||
00071
|
||||
00074 MY_FLOAT *<a class="code" href="classWvIn.html#a16">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00074 MY_FLOAT *<a class="code" href="classRtWvIn.html#a5">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00075
|
||||
00077 <font class="keyword">const</font> MY_FLOAT *<a class="code" href="classWvIn.html#a18">lastFrame</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00077 <span class="keyword">const</span> MY_FLOAT *<a class="code" href="classRtWvIn.html#a7">lastFrame</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00078
|
||||
00080
|
||||
00083 <font class="keyword">const</font> MY_FLOAT *<a class="code" href="classWvIn.html#a19">tickFrame</a>(<font class="keywordtype">void</font>);
|
||||
00083 <span class="keyword">const</span> MY_FLOAT *<a class="code" href="classRtWvIn.html#a8">tickFrame</a>(<span class="keywordtype">void</span>);
|
||||
00084
|
||||
00086
|
||||
00089 MY_FLOAT *<a class="code" href="classWvIn.html#a19">tickFrame</a>(MY_FLOAT *frameVector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> frames);
|
||||
00089 MY_FLOAT *<a class="code" href="classRtWvIn.html#a8">tickFrame</a>(MY_FLOAT *frameVector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frames);
|
||||
00090
|
||||
00091 <font class="keyword">protected</font>:
|
||||
00091 <span class="keyword">protected</span>:
|
||||
00092
|
||||
00093 <a class="code" href="classRtAudio.html">RtAudio</a> *audio;
|
||||
00094 <font class="keywordtype">bool</font> stopped;
|
||||
00095 <font class="keywordtype">int</font> stream;
|
||||
00096 <font class="keywordtype">long</font> counter;
|
||||
00097
|
||||
00098 };
|
||||
00099
|
||||
00100 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00093 <a class="code" href="classRtAudio.html">RtAudio</a> *audio_;
|
||||
00094 <span class="keywordtype">bool</span> stopped_;
|
||||
00095 <span class="keywordtype">long</span> counter_;
|
||||
00096
|
||||
00097 };
|
||||
00098
|
||||
00099 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,61 +5,62 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>RtWvOut.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00019 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>RtWvOut.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00019 <span class="comment">/***************************************************/</span>
|
||||
00020
|
||||
00021 <font class="preprocessor">#if !defined(__RTWVOUT_H)</font>
|
||||
00022 <font class="preprocessor"></font><font class="preprocessor">#define __RTWVOUT_H</font>
|
||||
00023 <font class="preprocessor"></font>
|
||||
00024 <font class="preprocessor">#include "WvOut.h"</font>
|
||||
00025 <font class="preprocessor">#include "RtAudio.h"</font>
|
||||
00026
|
||||
00027 <font class="keyword">class </font><a class="code" href="classRtWvOut.html">RtWvOut</a> : <font class="keyword">protected</font> <a class="code" href="classWvOut.html">WvOut</a>
|
||||
00028 {
|
||||
00029 <font class="keyword">public</font>:
|
||||
00021 <span class="preprocessor">#if !defined(__RTWVOUT_H)</span>
|
||||
00022 <span class="preprocessor"></span><span class="preprocessor">#define __RTWVOUT_H</span>
|
||||
00023 <span class="preprocessor"></span>
|
||||
00024 <span class="preprocessor">#include "WvOut.h"</span>
|
||||
00025 <span class="preprocessor">#include "RtAudio.h"</span>
|
||||
00026 <span class="preprocessor">#include "Thread.h"</span>
|
||||
00027
|
||||
<a name="l00028"></a><a class="code" href="classRtWvOut.html">00028</a> <span class="keyword">class </span><a class="code" href="classRtWvOut.html">RtWvOut</a> : <span class="keyword">protected</span> <a class="code" href="classWvOut.html">WvOut</a>
|
||||
00029 {
|
||||
00030 <span class="keyword">public</span>:
|
||||
00031
|
||||
00042 <a class="code" href="classRtWvOut.html#a0">RtWvOut</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nChannels = 1, MY_FLOAT sampleRate = Stk::sampleRate(), <font class="keywordtype">int</font> device = 0, <font class="keywordtype">int</font> bufferFrames = RT_BUFFER_SIZE, <font class="keywordtype">int</font> nBuffers = 4 );
|
||||
00043
|
||||
00045 <a class="code" href="classRtWvOut.html#a1">~RtWvOut</a>();
|
||||
00046
|
||||
00033
|
||||
00044 <a class="code" href="classRtWvOut.html#a0">RtWvOut</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nChannels = 1, MY_FLOAT <a class="code" href="classStk.html#e0">sampleRate</a> = <a class="code" href="classStk.html#e0">Stk::sampleRate</a>(), <span class="keywordtype">int</span> device = 0, <span class="keywordtype">int</span> bufferFrames = RT_BUFFER_SIZE, <span class="keywordtype">int</span> nBuffers = 4 );
|
||||
00045
|
||||
00047 <a class="code" href="classRtWvOut.html#a1">~RtWvOut</a>();
|
||||
00048
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classRtWvOut.html#a2">start</a>(<font class="keywordtype">void</font>);
|
||||
00052
|
||||
00050
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classRtWvOut.html#a2">start</a>(<span class="keywordtype">void</span>);
|
||||
00054
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classRtWvOut.html#a3">stop</a>(<font class="keywordtype">void</font>);
|
||||
00058
|
||||
00060 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> <a class="code" href="classWvOut.html#a5">getFrames</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
||||
00061
|
||||
00063 MY_FLOAT <a class="code" href="classWvOut.html#a6">getTime</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
||||
00064
|
||||
00056
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classRtWvOut.html#a3">stop</a>(<span class="keywordtype">void</span>);
|
||||
00060
|
||||
00062 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classRtWvOut.html#a4">getFrames</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
|
||||
00063
|
||||
00065 MY_FLOAT <a class="code" href="classRtWvOut.html#a5">getTime</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
|
||||
00066
|
||||
00069 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a7">tick</a>(<font class="keyword">const</font> MY_FLOAT sample);
|
||||
00070
|
||||
00068
|
||||
00071 <span class="keywordtype">void</span> <a class="code" href="classRtWvOut.html#a6">tick</a>(<span class="keyword">const</span> MY_FLOAT sample);
|
||||
00072
|
||||
00075 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a7">tick</a>(<font class="keyword">const</font> MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00076
|
||||
00074
|
||||
00077 <span class="keywordtype">void</span> <a class="code" href="classRtWvOut.html#a6">tick</a>(<span class="keyword">const</span> MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00078
|
||||
00081 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a9">tickFrame</a>(<font class="keyword">const</font> MY_FLOAT *frameVector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> frames = 1);
|
||||
00082
|
||||
00083 <font class="keyword">protected</font>:
|
||||
00080
|
||||
00083 <span class="keywordtype">void</span> <a class="code" href="classRtWvOut.html#a8">tickFrame</a>(<span class="keyword">const</span> MY_FLOAT *frameVector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frames = 1);
|
||||
00084
|
||||
00085 <a class="code" href="classRtAudio.html">RtAudio</a> *audio;
|
||||
00086 <font class="keywordtype">bool</font> stopped;
|
||||
00087 <font class="keywordtype">int</font> stream;
|
||||
00088 <font class="keywordtype">int</font> bufferSize;
|
||||
00089
|
||||
00090 };
|
||||
00091
|
||||
00092 <font class="preprocessor">#endif // defined(__RTWVOUT_H)</font>
|
||||
</font></pre></div><HR>
|
||||
00085 <span class="keyword">protected</span>:
|
||||
00086
|
||||
00087 <a class="code" href="classRtAudio.html">RtAudio</a> *audio_;
|
||||
00088 <span class="keywordtype">bool</span> stopped_;
|
||||
00089 <span class="keywordtype">int</span> bufferSize_;
|
||||
00090
|
||||
00091 };
|
||||
00092
|
||||
00093 <span class="preprocessor">#endif // defined(__RTWVOUT_H)</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,72 +5,72 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>SKINI.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00026 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>SKINI.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00026 <span class="comment">/***************************************************/</span>
|
||||
00027
|
||||
00028 <font class="preprocessor">#if !defined(__SKINI_H)</font>
|
||||
00029 <font class="preprocessor"></font><font class="preprocessor">#define __SKINI_H</font>
|
||||
00030 <font class="preprocessor"></font>
|
||||
00031 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00032 <font class="preprocessor">#include <stdio.h></font>
|
||||
00028 <span class="preprocessor">#if !defined(__SKINI_H)</span>
|
||||
00029 <span class="preprocessor"></span><span class="preprocessor">#define __SKINI_H</span>
|
||||
00030 <span class="preprocessor"></span>
|
||||
00031 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00032 <span class="preprocessor">#include <stdio.h></span>
|
||||
00033
|
||||
00034 <font class="keyword">class </font><a class="code" href="classSKINI.html">SKINI</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00034"></a><a class="code" href="classSKINI.html">00034</a> <span class="keyword">class </span><a class="code" href="classSKINI.html">SKINI</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00035 {
|
||||
00036 <font class="keyword">public</font>:
|
||||
00036 <span class="keyword">public</span>:
|
||||
00038 <a class="code" href="classSKINI.html#a0">SKINI</a>();
|
||||
00039
|
||||
00041 <a class="code" href="classSKINI.html#a0">SKINI</a>(<font class="keywordtype">char</font> *fileName);
|
||||
00041 <a class="code" href="classSKINI.html#a0">SKINI</a>(<span class="keywordtype">char</span> *fileName);
|
||||
00042
|
||||
00044 <a class="code" href="classSKINI.html#a2">~SKINI</a>();
|
||||
00045
|
||||
00047
|
||||
00050 <font class="keywordtype">long</font> <a class="code" href="classSKINI.html#a3">parseThis</a>(<font class="keywordtype">char</font>* aString);
|
||||
00050 <span class="keywordtype">long</span> <a class="code" href="classSKINI.html#a3">parseThis</a>(<span class="keywordtype">char</span>* aString);
|
||||
00051
|
||||
00053
|
||||
00056 <font class="keywordtype">long</font> <a class="code" href="classSKINI.html#a4">nextMessage</a>();
|
||||
00056 <span class="keywordtype">long</span> <a class="code" href="classSKINI.html#a4">nextMessage</a>();
|
||||
00057
|
||||
00059 <font class="keywordtype">long</font> <a class="code" href="classSKINI.html#a5">getType</a>() <font class="keyword">const</font>;
|
||||
00059 <span class="keywordtype">long</span> <a class="code" href="classSKINI.html#a5">getType</a>() <span class="keyword">const</span>;
|
||||
00060
|
||||
00062 <font class="keywordtype">long</font> <a class="code" href="classSKINI.html#a6">getChannel</a>() <font class="keyword">const</font>;
|
||||
00062 <span class="keywordtype">long</span> <a class="code" href="classSKINI.html#a6">getChannel</a>() <span class="keyword">const</span>;
|
||||
00063
|
||||
00065 MY_FLOAT <a class="code" href="classSKINI.html#a7">getDelta</a>() <font class="keyword">const</font>;
|
||||
00065 MY_FLOAT <a class="code" href="classSKINI.html#a7">getDelta</a>() <span class="keyword">const</span>;
|
||||
00066
|
||||
00068 MY_FLOAT <a class="code" href="classSKINI.html#a8">getByteTwo</a>() <font class="keyword">const</font>;
|
||||
00068 MY_FLOAT <a class="code" href="classSKINI.html#a8">getByteTwo</a>() <span class="keyword">const</span>;
|
||||
00069
|
||||
00071 MY_FLOAT <a class="code" href="classSKINI.html#a9">getByteThree</a>() <font class="keyword">const</font>;
|
||||
00071 MY_FLOAT <a class="code" href="classSKINI.html#a9">getByteThree</a>() <span class="keyword">const</span>;
|
||||
00072
|
||||
00074 <font class="keywordtype">long</font> <a class="code" href="classSKINI.html#a10">getByteTwoInt</a>() <font class="keyword">const</font>;
|
||||
00074 <span class="keywordtype">long</span> <a class="code" href="classSKINI.html#a10">getByteTwoInt</a>() <span class="keyword">const</span>;
|
||||
00075
|
||||
00077 <font class="keywordtype">long</font> <a class="code" href="classSKINI.html#a11">getByteThreeInt</a>() <font class="keyword">const</font>;
|
||||
00077 <span class="keywordtype">long</span> <a class="code" href="classSKINI.html#a11">getByteThreeInt</a>() <span class="keyword">const</span>;
|
||||
00078
|
||||
00080 <font class="keyword">const</font> <font class="keywordtype">char</font>* <a class="code" href="classSKINI.html#a12">getRemainderString</a>();
|
||||
00080 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classSKINI.html#a12">getRemainderString</a>();
|
||||
00081
|
||||
00083 <font class="keyword">const</font> <font class="keywordtype">char</font>* <a class="code" href="classSKINI.html#a13">getMessageTypeString</a>();
|
||||
00083 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classSKINI.html#a13">getMessageTypeString</a>();
|
||||
00084
|
||||
00086 <font class="keyword">const</font> <font class="keywordtype">char</font>* <a class="code" href="classSKINI.html#a14">whatsThisType</a>(<font class="keywordtype">long</font> type);
|
||||
00086 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classSKINI.html#a14">whatsThisType</a>(<span class="keywordtype">long</span> type);
|
||||
00087
|
||||
00089 <font class="keyword">const</font> <font class="keywordtype">char</font>* <a class="code" href="classSKINI.html#a15">whatsThisController</a>(<font class="keywordtype">long</font> number);
|
||||
00089 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classSKINI.html#a15">whatsThisController</a>(<span class="keywordtype">long</span> number);
|
||||
00090
|
||||
00091 <font class="keyword">protected</font>:
|
||||
00091 <span class="keyword">protected</span>:
|
||||
00092
|
||||
00093 FILE *myFile;
|
||||
00094 <font class="keywordtype">long</font> messageType;
|
||||
00095 <font class="keywordtype">char</font> msgTypeString[64];
|
||||
00096 <font class="keywordtype">long</font> channel;
|
||||
00094 <span class="keywordtype">long</span> messageType;
|
||||
00095 <span class="keywordtype">char</span> msgTypeString[64];
|
||||
00096 <span class="keywordtype">long</span> channel;
|
||||
00097 MY_FLOAT deltaTime;
|
||||
00098 MY_FLOAT byteTwo;
|
||||
00099 MY_FLOAT byteThree;
|
||||
00100 <font class="keywordtype">long</font> byteTwoInt;
|
||||
00101 <font class="keywordtype">long</font> byteThreeInt;
|
||||
00102 <font class="keywordtype">char</font> remainderString[1024];
|
||||
00103 <font class="keywordtype">char</font> whatString[1024];
|
||||
00100 <span class="keywordtype">long</span> byteTwoInt;
|
||||
00101 <span class="keywordtype">long</span> byteThreeInt;
|
||||
00102 <span class="keywordtype">char</span> remainderString[1024];
|
||||
00103 <span class="keywordtype">char</span> whatString[1024];
|
||||
00104 };
|
||||
00105
|
||||
00106 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">double</font> Midi2Pitch[129] = {
|
||||
00106 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">double</span> Midi2Pitch[129] = {
|
||||
00107 8.18,8.66,9.18,9.72,10.30,10.91,11.56,12.25,
|
||||
00108 12.98,13.75,14.57,15.43,16.35,17.32,18.35,19.45,
|
||||
00109 20.60,21.83,23.12,24.50,25.96,27.50,29.14,30.87,
|
||||
@@ -89,14 +89,14 @@
|
||||
00122 8372.02,8869.84,9397.27,9956.06,10548.08,11175.30,11839.82,12543.85,
|
||||
00123 13289.75};
|
||||
00124
|
||||
00125 <font class="preprocessor">#endif</font>
|
||||
00126 <font class="preprocessor"></font>
|
||||
00125 <span class="preprocessor">#endif</span>
|
||||
00126 <span class="preprocessor"></span>
|
||||
00127
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,44 +5,44 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Sampler.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00010 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Sampler.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00010 <span class="comment">/***************************************************/</span>
|
||||
00011
|
||||
00012 <font class="preprocessor">#if !defined(__SAMPLER_H)</font>
|
||||
00013 <font class="preprocessor"></font><font class="preprocessor">#define __SAMPLER_H</font>
|
||||
00014 <font class="preprocessor"></font>
|
||||
00015 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00016 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00017 <font class="preprocessor">#include "WvIn.h"</font>
|
||||
00018 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00019 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00012 <span class="preprocessor">#if !defined(__SAMPLER_H)</span>
|
||||
00013 <span class="preprocessor"></span><span class="preprocessor">#define __SAMPLER_H</span>
|
||||
00014 <span class="preprocessor"></span>
|
||||
00015 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00016 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00017 <span class="preprocessor">#include "WvIn.h"</span>
|
||||
00018 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00019 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00020
|
||||
00021 <font class="keyword">class </font><a class="code" href="classSampler.html">Sampler</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00021"></a><a class="code" href="classSampler.html">00021</a> <span class="keyword">class </span><a class="code" href="classSampler.html">Sampler</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00022 {
|
||||
00023 <font class="keyword">public</font>:
|
||||
00023 <span class="keyword">public</span>:
|
||||
00025 <a class="code" href="classSampler.html#a0">Sampler</a>();
|
||||
00026
|
||||
00028 <font class="keyword">virtual</font> <a class="code" href="classSampler.html#a1">~Sampler</a>();
|
||||
00028 <span class="keyword">virtual</span> <a class="code" href="classSampler.html#a1">~Sampler</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classSampler.html#a2">clear</a>();
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a2">clear</a>();
|
||||
00032
|
||||
00034 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency) = 0;
|
||||
00034 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a3">setFrequency</a>(MY_FLOAT frequency) = 0;
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classSampler.html#a4">keyOn</a>();
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a4">keyOn</a>();
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classSampler.html#a5">keyOff</a>();
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a5">keyOff</a>();
|
||||
00041
|
||||
00043 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00043 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a6">noteOff</a>(MY_FLOAT amplitude);
|
||||
00044
|
||||
00046 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00046 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classSampler.html#a7">tick</a>();
|
||||
00047
|
||||
00049 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value) = 0;
|
||||
00049 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSampler.html#a8">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value) = 0;
|
||||
00050
|
||||
00051 <font class="keyword">protected</font>:
|
||||
00051 <span class="keyword">protected</span>:
|
||||
00052 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00053 <a class="code" href="classWvIn.html">WvIn</a> *attacks[5];
|
||||
00054 <a class="code" href="classWaveLoop.html">WaveLoop</a> *loops[5];
|
||||
@@ -52,16 +52,16 @@
|
||||
00058 MY_FLOAT loopRatios[5];
|
||||
00059 MY_FLOAT attackGain;
|
||||
00060 MY_FLOAT loopGain;
|
||||
00061 <font class="keywordtype">int</font> whichOne;
|
||||
00061 <span class="keywordtype">int</span> whichOne;
|
||||
00062
|
||||
00063 };
|
||||
00064
|
||||
00065 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00065 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,57 +5,57 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Saxofony.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00036 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Saxofony.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00036 <span class="comment">/***************************************************/</span>
|
||||
00037
|
||||
00038 <font class="preprocessor">#if !defined(__SAXOFONY_H)</font>
|
||||
00039 <font class="preprocessor"></font><font class="preprocessor">#define __SAXOFONY_H</font>
|
||||
00040 <font class="preprocessor"></font>
|
||||
00041 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00042 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00043 <font class="preprocessor">#include "ReedTabl.h"</font>
|
||||
00044 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00045 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00046 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00047 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00038 <span class="preprocessor">#if !defined(__SAXOFONY_H)</span>
|
||||
00039 <span class="preprocessor"></span><span class="preprocessor">#define __SAXOFONY_H</span>
|
||||
00040 <span class="preprocessor"></span>
|
||||
00041 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00042 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00043 <span class="preprocessor">#include "ReedTabl.h"</span>
|
||||
00044 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00045 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00046 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00047 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00048
|
||||
00049 <font class="keyword">class </font><a class="code" href="classSaxofony.html">Saxofony</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00049"></a><a class="code" href="classSaxofony.html">00049</a> <span class="keyword">class </span><a class="code" href="classSaxofony.html">Saxofony</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00050 {
|
||||
00051 <font class="keyword">public</font>:
|
||||
00051 <span class="keyword">public</span>:
|
||||
00053 <a class="code" href="classSaxofony.html#a0">Saxofony</a>(MY_FLOAT lowestFrequency);
|
||||
00054
|
||||
00056 <a class="code" href="classSaxofony.html#a1">~Saxofony</a>();
|
||||
00057
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classSaxofony.html#a2">clear</a>();
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a2">clear</a>();
|
||||
00060
|
||||
00062 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00062 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00063
|
||||
00065 <font class="keywordtype">void</font> <a class="code" href="classSaxofony.html#a4">setBlowPosition</a>(MY_FLOAT aPosition);
|
||||
00065 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a4">setBlowPosition</a>(MY_FLOAT aPosition);
|
||||
00066
|
||||
00068 <font class="keywordtype">void</font> <a class="code" href="classSaxofony.html#a5">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00068 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a5">startBlowing</a>(MY_FLOAT amplitude, MY_FLOAT rate);
|
||||
00069
|
||||
00071 <font class="keywordtype">void</font> <a class="code" href="classSaxofony.html#a6">stopBlowing</a>(MY_FLOAT rate);
|
||||
00071 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a6">stopBlowing</a>(MY_FLOAT rate);
|
||||
00072
|
||||
00074 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00074 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a7">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00075
|
||||
00077 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00077 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a8">noteOff</a>(MY_FLOAT amplitude);
|
||||
00078
|
||||
00080 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00080 MY_FLOAT <a class="code" href="classSaxofony.html#a9">tick</a>();
|
||||
00081
|
||||
00083 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00083 <span class="keywordtype">void</span> <a class="code" href="classSaxofony.html#a10">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00084
|
||||
00085 <font class="keyword">protected</font>:
|
||||
00085 <span class="keyword">protected</span>:
|
||||
00086 <a class="code" href="classDelayL.html">DelayL</a> *delays[2];
|
||||
00087 <a class="code" href="classReedTabl.html">ReedTabl</a> *reedTable;
|
||||
00088 <a class="code" href="classOneZero.html">OneZero</a> *filter;
|
||||
00089 <a class="code" href="classEnvelope.html">Envelope</a> *envelope;
|
||||
00090 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00091 <a class="code" href="classWaveLoop.html">WaveLoop</a> *vibrato;
|
||||
00092 <font class="keywordtype">long</font> length;
|
||||
00092 <span class="keywordtype">long</span> length;
|
||||
00093 MY_FLOAT outputGain;
|
||||
00094 MY_FLOAT noiseGain;
|
||||
00095 MY_FLOAT vibratoGain;
|
||||
@@ -63,12 +63,12 @@
|
||||
00097
|
||||
00098 };
|
||||
00099
|
||||
00100 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00100 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,50 +5,50 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Shakers.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00053 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Shakers.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00053 <span class="comment">/***************************************************/</span>
|
||||
00054
|
||||
00055 <font class="preprocessor">#if !defined(__SHAKERS_H)</font>
|
||||
00056 <font class="preprocessor"></font><font class="preprocessor">#define __SHAKERS_H</font>
|
||||
00057 <font class="preprocessor"></font>
|
||||
00058 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00055 <span class="preprocessor">#if !defined(__SHAKERS_H)</span>
|
||||
00056 <span class="preprocessor"></span><span class="preprocessor">#define __SHAKERS_H</span>
|
||||
00057 <span class="preprocessor"></span>
|
||||
00058 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00059
|
||||
00060 <font class="preprocessor">#define MAX_FREQS 8</font>
|
||||
00061 <font class="preprocessor"></font><font class="preprocessor">#define NUM_INSTR 24</font>
|
||||
00062 <font class="preprocessor"></font>
|
||||
00063 <font class="keyword">class </font><a class="code" href="classShakers.html">Shakers</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00060 <span class="preprocessor">#define MAX_FREQS 8</span>
|
||||
00061 <span class="preprocessor"></span><span class="preprocessor">#define NUM_INSTR 24</span>
|
||||
00062 <span class="preprocessor"></span>
|
||||
<a name="l00063"></a><a class="code" href="classShakers.html">00063</a> <span class="keyword">class </span><a class="code" href="classShakers.html">Shakers</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00064 {
|
||||
00065 <font class="keyword">public</font>:
|
||||
00065 <span class="keyword">public</span>:
|
||||
00067 <a class="code" href="classShakers.html#a0">Shakers</a>();
|
||||
00068
|
||||
00070 <a class="code" href="classShakers.html#a1">~Shakers</a>();
|
||||
00071
|
||||
00073
|
||||
00077 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT instrument, MY_FLOAT amplitude);
|
||||
00077 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a2">noteOn</a>(MY_FLOAT instrument, MY_FLOAT amplitude);
|
||||
00078
|
||||
00080 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00080 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00081
|
||||
00083 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00083 MY_FLOAT <a class="code" href="classShakers.html#a4">tick</a>();
|
||||
00084
|
||||
00086 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a5">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00087
|
||||
00088 <font class="keyword">protected</font>:
|
||||
00088 <span class="keyword">protected</span>:
|
||||
00089
|
||||
00090 <font class="keywordtype">int</font> setupName(<font class="keywordtype">char</font>* instr);
|
||||
00091 <font class="keywordtype">int</font> setupNum(<font class="keywordtype">int</font> inst);
|
||||
00092 <font class="keywordtype">int</font> setFreqAndReson(<font class="keywordtype">int</font> which, MY_FLOAT freq, MY_FLOAT reson);
|
||||
00093 <font class="keywordtype">void</font> setDecays(MY_FLOAT sndDecay, MY_FLOAT sysDecay);
|
||||
00094 <font class="keywordtype">void</font> setFinalZs(MY_FLOAT z0, MY_FLOAT z1, MY_FLOAT z2);
|
||||
00090 <span class="keywordtype">int</span> setupName(<span class="keywordtype">char</span>* instr);
|
||||
00091 <span class="keywordtype">int</span> setupNum(<span class="keywordtype">int</span> inst);
|
||||
00092 <span class="keywordtype">int</span> setFreqAndReson(<span class="keywordtype">int</span> which, MY_FLOAT freq, MY_FLOAT reson);
|
||||
00093 <span class="keywordtype">void</span> setDecays(MY_FLOAT sndDecay, MY_FLOAT sysDecay);
|
||||
00094 <span class="keywordtype">void</span> setFinalZs(MY_FLOAT z0, MY_FLOAT z1, MY_FLOAT z2);
|
||||
00095 MY_FLOAT wuter_tick();
|
||||
00096 MY_FLOAT tbamb_tick();
|
||||
00097 MY_FLOAT ratchet_tick();
|
||||
00098
|
||||
00099 <font class="keywordtype">int</font> instType;
|
||||
00100 <font class="keywordtype">int</font> ratchetPos, lastRatchetPos;
|
||||
00099 <span class="keywordtype">int</span> instType;
|
||||
00100 <span class="keywordtype">int</span> ratchetPos, lastRatchetPos;
|
||||
00101 MY_FLOAT shakeEnergy;
|
||||
00102 MY_FLOAT inputs[MAX_FREQS];
|
||||
00103 MY_FLOAT outputs[MAX_FREQS][2];
|
||||
@@ -56,12 +56,12 @@
|
||||
00105 MY_FLOAT sndLevel;
|
||||
00106 MY_FLOAT baseGain;
|
||||
00107 MY_FLOAT gains[MAX_FREQS];
|
||||
00108 <font class="keywordtype">int</font> nFreqs;
|
||||
00108 <span class="keywordtype">int</span> nFreqs;
|
||||
00109 MY_FLOAT t_center_freqs[MAX_FREQS];
|
||||
00110 MY_FLOAT center_freqs[MAX_FREQS];
|
||||
00111 MY_FLOAT resons[MAX_FREQS];
|
||||
00112 MY_FLOAT freq_rand[MAX_FREQS];
|
||||
00113 <font class="keywordtype">int</font> freqalloc[MAX_FREQS];
|
||||
00113 <span class="keywordtype">int</span> freqalloc[MAX_FREQS];
|
||||
00114 MY_FLOAT soundDecay;
|
||||
00115 MY_FLOAT systemDecay;
|
||||
00116 MY_FLOAT nObjects;
|
||||
@@ -76,12 +76,12 @@
|
||||
00125
|
||||
00126 };
|
||||
00127
|
||||
00128 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00128 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,47 +5,47 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Simple.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00018 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Simple.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00018 <span class="comment">/***************************************************/</span>
|
||||
00019
|
||||
00020 <font class="preprocessor">#if !defined(__SIMPLE_H)</font>
|
||||
00021 <font class="preprocessor"></font><font class="preprocessor">#define __SIMPLE_H</font>
|
||||
00022 <font class="preprocessor"></font>
|
||||
00023 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00024 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00025 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00026 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00027 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00028 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00020 <span class="preprocessor">#if !defined(__SIMPLE_H)</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define __SIMPLE_H</span>
|
||||
00022 <span class="preprocessor"></span>
|
||||
00023 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00024 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00025 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00026 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00027 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00028 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00029
|
||||
00030 <font class="keyword">class </font><a class="code" href="classSimple.html">Simple</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00030"></a><a class="code" href="classSimple.html">00030</a> <span class="keyword">class </span><a class="code" href="classSimple.html">Simple</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00031 {
|
||||
00032 <font class="keyword">public</font>:
|
||||
00032 <span class="keyword">public</span>:
|
||||
00034 <a class="code" href="classSimple.html#a0">Simple</a>();
|
||||
00035
|
||||
00037 <font class="keyword">virtual</font> <a class="code" href="classSimple.html#a1">~Simple</a>();
|
||||
00037 <span class="keyword">virtual</span> <a class="code" href="classSimple.html#a1">~Simple</a>();
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classSimple.html#a2">clear</a>();
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a2">clear</a>();
|
||||
00041
|
||||
00043 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00043 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classSimple.html#a4">keyOn</a>();
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a4">keyOn</a>();
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classSimple.html#a5">keyOff</a>();
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a5">keyOff</a>();
|
||||
00050
|
||||
00052 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a6">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00053
|
||||
00055 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00055 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a7">noteOff</a>(MY_FLOAT amplitude);
|
||||
00056
|
||||
00058 <font class="keyword">virtual</font> MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00058 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classSimple.html#a8">tick</a>();
|
||||
00059
|
||||
00061 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a9">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00062
|
||||
00063 <font class="keyword">protected</font>:
|
||||
00063 <span class="keyword">protected</span>:
|
||||
00064 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00065 <a class="code" href="classWaveLoop.html">WaveLoop</a> *loop;
|
||||
00066 <a class="code" href="classOnePole.html">OnePole</a> *filter;
|
||||
@@ -56,12 +56,12 @@
|
||||
00071
|
||||
00072 };
|
||||
00073
|
||||
00074 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00074 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,57 +5,57 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>SingWave.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00014 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>SingWave.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00014 <span class="comment">/***************************************************/</span>
|
||||
00015
|
||||
00016 <font class="preprocessor">#if !defined(__SINGWAVE_H)</font>
|
||||
00017 <font class="preprocessor"></font><font class="preprocessor">#define __SINGWAVE_H</font>
|
||||
00018 <font class="preprocessor"></font>
|
||||
00019 <font class="preprocessor">#include "WaveLoop.h"</font>
|
||||
00020 <font class="preprocessor">#include "Modulate.h"</font>
|
||||
00021 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00016 <span class="preprocessor">#if !defined(__SINGWAVE_H)</span>
|
||||
00017 <span class="preprocessor"></span><span class="preprocessor">#define __SINGWAVE_H</span>
|
||||
00018 <span class="preprocessor"></span>
|
||||
00019 <span class="preprocessor">#include "WaveLoop.h"</span>
|
||||
00020 <span class="preprocessor">#include "Modulate.h"</span>
|
||||
00021 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00022
|
||||
00023 <font class="keyword">class </font><a class="code" href="classSingWave.html">SingWave</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00023"></a><a class="code" href="classSingWave.html">00023</a> <span class="keyword">class </span><a class="code" href="classSingWave.html">SingWave</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00024 {
|
||||
00025 <font class="keyword">public</font>:
|
||||
00025 <span class="keyword">public</span>:
|
||||
00027
|
||||
00031 <a class="code" href="classSingWave.html#a0">SingWave</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *fileName, <font class="keywordtype">bool</font> raw=FALSE);
|
||||
00031 <a class="code" href="classSingWave.html#a0">SingWave</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fileName, <span class="keywordtype">bool</span> raw=FALSE);
|
||||
00032
|
||||
00034 <a class="code" href="classSingWave.html#a1">~SingWave</a>();
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a2">reset</a>();
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a2">reset</a>();
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a3">normalize</a>();
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a3">normalize</a>();
|
||||
00041
|
||||
00043 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a3">normalize</a>(MY_FLOAT peak);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a3">normalize</a>(MY_FLOAT peak);
|
||||
00044
|
||||
00046 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a5">setFrequency</a>(MY_FLOAT frequency);
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a5">setFrequency</a>(MY_FLOAT frequency);
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a6">setVibratoRate</a>(MY_FLOAT aRate);
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a6">setVibratoRate</a>(MY_FLOAT aRate);
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a7">setVibratoGain</a>(MY_FLOAT gain);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a7">setVibratoGain</a>(MY_FLOAT gain);
|
||||
00053
|
||||
00055 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a8">setRandomGain</a>(MY_FLOAT gain);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a8">setRandomGain</a>(MY_FLOAT gain);
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a9">setSweepRate</a>(MY_FLOAT aRate);
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a9">setSweepRate</a>(MY_FLOAT aRate);
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a10">setGainRate</a>(MY_FLOAT aRate);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a10">setGainRate</a>(MY_FLOAT aRate);
|
||||
00062
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a11">setGainTarget</a>(MY_FLOAT target);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a11">setGainTarget</a>(MY_FLOAT target);
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a12">noteOn</a>();
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a12">noteOn</a>();
|
||||
00068
|
||||
00070 <font class="keywordtype">void</font> <a class="code" href="classSingWave.html#a13">noteOff</a>();
|
||||
00070 <span class="keywordtype">void</span> <a class="code" href="classSingWave.html#a13">noteOff</a>();
|
||||
00071
|
||||
00073 MY_FLOAT <a class="code" href="classSingWave.html#a14">lastOut</a>();
|
||||
00074
|
||||
00076 MY_FLOAT <a class="code" href="classSingWave.html#a15">tick</a>();
|
||||
00077
|
||||
00078 <font class="keyword">protected</font>:
|
||||
00078 <span class="keyword">protected</span>:
|
||||
00079
|
||||
00080 <a class="code" href="classWaveLoop.html">WaveLoop</a> *wave;
|
||||
00081 <a class="code" href="classModulate.html">Modulate</a> *modulator;
|
||||
@@ -67,12 +67,12 @@
|
||||
00087
|
||||
00088 };
|
||||
00089
|
||||
00090 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00090 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,47 +5,47 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Sitar.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00018 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Sitar.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00018 <span class="comment">/***************************************************/</span>
|
||||
00019
|
||||
00020 <font class="preprocessor">#if !defined(__SITAR_H)</font>
|
||||
00021 <font class="preprocessor"></font><font class="preprocessor">#define __SITAR_H</font>
|
||||
00022 <font class="preprocessor"></font>
|
||||
00023 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00024 <font class="preprocessor">#include "DelayA.h"</font>
|
||||
00025 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00026 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00027 <font class="preprocessor">#include "ADSR.h"</font>
|
||||
00020 <span class="preprocessor">#if !defined(__SITAR_H)</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define __SITAR_H</span>
|
||||
00022 <span class="preprocessor"></span>
|
||||
00023 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00024 <span class="preprocessor">#include "DelayA.h"</span>
|
||||
00025 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00026 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00027 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
00028
|
||||
00029 <font class="keyword">class </font><a class="code" href="classSitar.html">Sitar</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00029"></a><a class="code" href="classSitar.html">00029</a> <span class="keyword">class </span><a class="code" href="classSitar.html">Sitar</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00030 {
|
||||
00031 <font class="keyword">public</font>:
|
||||
00031 <span class="keyword">public</span>:
|
||||
00033 <a class="code" href="classSitar.html#a0">Sitar</a>(MY_FLOAT lowestFrequency);
|
||||
00034
|
||||
00036 <a class="code" href="classSitar.html#a1">~Sitar</a>();
|
||||
00037
|
||||
00039 <font class="keywordtype">void</font> <a class="code" href="classSitar.html#a2">clear</a>();
|
||||
00039 <span class="keywordtype">void</span> <a class="code" href="classSitar.html#a2">clear</a>();
|
||||
00040
|
||||
00042 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00042 <span class="keywordtype">void</span> <a class="code" href="classSitar.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classSitar.html#a4">pluck</a>(MY_FLOAT amplitude);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classSitar.html#a4">pluck</a>(MY_FLOAT amplitude);
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classSitar.html#a5">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00049
|
||||
00051 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00051 <span class="keywordtype">void</span> <a class="code" href="classSitar.html#a6">noteOff</a>(MY_FLOAT amplitude);
|
||||
00052
|
||||
00054 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00054 MY_FLOAT <a class="code" href="classSitar.html#a7">tick</a>();
|
||||
00055
|
||||
00056 <font class="keyword">protected</font>:
|
||||
00056 <span class="keyword">protected</span>:
|
||||
00057 <a class="code" href="classDelayA.html">DelayA</a> *delayLine;
|
||||
00058 <a class="code" href="classOneZero.html">OneZero</a> *loopFilter;
|
||||
00059 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00060 <a class="code" href="classADSR.html">ADSR</a> *envelope;
|
||||
00061 <font class="keywordtype">long</font> length;
|
||||
00061 <span class="keywordtype">long</span> length;
|
||||
00062 MY_FLOAT loopGain;
|
||||
00063 MY_FLOAT amGain;
|
||||
00064 MY_FLOAT delay;
|
||||
@@ -53,13 +53,13 @@
|
||||
00066
|
||||
00067 };
|
||||
00068
|
||||
00069 <font class="preprocessor">#endif</font>
|
||||
00070 <font class="preprocessor"></font>
|
||||
00069 <span class="preprocessor">#endif</span>
|
||||
00070 <span class="preprocessor"></span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,70 +5,70 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Socket.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00019 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Socket.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00019 <span class="comment">/***************************************************/</span>
|
||||
00020
|
||||
00021 <font class="preprocessor">#if !defined(__SOCKET_H)</font>
|
||||
00022 <font class="preprocessor"></font><font class="preprocessor">#define __SOCKET_H</font>
|
||||
00023 <font class="preprocessor"></font>
|
||||
00024 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00021 <span class="preprocessor">#if !defined(__SOCKET_H)</span>
|
||||
00022 <span class="preprocessor"></span><span class="preprocessor">#define __SOCKET_H</span>
|
||||
00023 <span class="preprocessor"></span>
|
||||
00024 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00025
|
||||
00026 <font class="keyword">class </font><a class="code" href="classSocket.html">Socket</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00026"></a><a class="code" href="classSocket.html">00026</a> <span class="keyword">class </span><a class="code" href="classSocket.html">Socket</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00027 {
|
||||
00028 <font class="keyword">public</font>:
|
||||
00028 <span class="keyword">public</span>:
|
||||
00030
|
||||
00033 <a class="code" href="classSocket.html#a0">Socket</a>( <font class="keywordtype">int</font> port = 2006 );
|
||||
00033 <a class="code" href="classSocket.html#a0">Socket</a>( <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a6">port</a> = 2006 );
|
||||
00034
|
||||
00036
|
||||
00039 <a class="code" href="classSocket.html#a0">Socket</a>( <font class="keywordtype">int</font> port, <font class="keyword">const</font> <font class="keywordtype">char</font> *hostname );
|
||||
00039 <a class="code" href="classSocket.html#a0">Socket</a>( <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a6">port</a>, <span class="keyword">const</span> <span class="keywordtype">char</span> *hostname );
|
||||
00040
|
||||
00042 <a class="code" href="classSocket.html#a2">~Socket</a>();
|
||||
00043
|
||||
00045
|
||||
00053 <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a3">connect</a>( <font class="keywordtype">int</font> port, <font class="keyword">const</font> <font class="keywordtype">char</font> *hostname = <font class="stringliteral">"localhost"</font> );
|
||||
00053 <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a3">connect</a>( <span class="keywordtype">int</span> port, <span class="keyword">const</span> <span class="keywordtype">char</span> *hostname = <span class="stringliteral">"localhost"</span> );
|
||||
00054
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classSocket.html#a4">close</a>( <font class="keywordtype">void</font> );
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classSocket.html#a4">close</a>( <span class="keywordtype">void</span> );
|
||||
00057
|
||||
00059 <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a5">socket</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
||||
00059 <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a5">socket</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
|
||||
00060
|
||||
00062 <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a6">port</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
||||
00062 <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a6">port</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
|
||||
00063
|
||||
00065
|
||||
00071 <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a7">accept</a>( <font class="keywordtype">void</font> );
|
||||
00071 <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a7">accept</a>( <span class="keywordtype">void</span> );
|
||||
00072
|
||||
00074 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classSocket.html#d0">setBlocking</a>( <font class="keywordtype">int</font> socket, <font class="keywordtype">bool</font> enable );
|
||||
00074 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classSocket.html#e0">setBlocking</a>( <span class="keywordtype">int</span> socket, <span class="keywordtype">bool</span> enable );
|
||||
00075
|
||||
00077 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classSocket.html#a4">close</a>( <font class="keywordtype">int</font> socket );
|
||||
00077 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classSocket.html#a4">close</a>( <span class="keywordtype">int</span> socket );
|
||||
00078
|
||||
00080 <font class="keyword">static</font> <font class="keywordtype">bool</font> <a class="code" href="classSocket.html#d2">isValid</a>( <font class="keywordtype">int</font> socket );
|
||||
00080 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classSocket.html#e2">isValid</a>( <span class="keywordtype">int</span> socket );
|
||||
00081
|
||||
00083 <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a8">writeBuffer</a>(<font class="keyword">const</font> <font class="keywordtype">void</font> *buffer, <font class="keywordtype">long</font> bufferSize, <font class="keywordtype">int</font> flags = 0);
|
||||
00083 <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a8">writeBuffer</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *buffer, <span class="keywordtype">long</span> bufferSize, <span class="keywordtype">int</span> flags = 0);
|
||||
00084
|
||||
00086 <font class="keyword">static</font> <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a8">writeBuffer</a>(<font class="keywordtype">int</font> socket, <font class="keyword">const</font> <font class="keywordtype">void</font> *buffer, <font class="keywordtype">long</font> bufferSize, <font class="keywordtype">int</font> flags );
|
||||
00086 <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a8">writeBuffer</a>(<span class="keywordtype">int</span> socket, <span class="keyword">const</span> <span class="keywordtype">void</span> *buffer, <span class="keywordtype">long</span> bufferSize, <span class="keywordtype">int</span> flags );
|
||||
00087
|
||||
00089 <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a9">readBuffer</a>(<font class="keywordtype">void</font> *buffer, <font class="keywordtype">long</font> bufferSize, <font class="keywordtype">int</font> flags = 0);
|
||||
00089 <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a9">readBuffer</a>(<span class="keywordtype">void</span> *buffer, <span class="keywordtype">long</span> bufferSize, <span class="keywordtype">int</span> flags = 0);
|
||||
00090
|
||||
00092 <font class="keyword">static</font> <font class="keywordtype">int</font> <a class="code" href="classSocket.html#a9">readBuffer</a>(<font class="keywordtype">int</font> socket, <font class="keywordtype">void</font> *buffer, <font class="keywordtype">long</font> bufferSize, <font class="keywordtype">int</font> flags );
|
||||
00092 <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classSocket.html#a9">readBuffer</a>(<span class="keywordtype">int</span> socket, <span class="keywordtype">void</span> *buffer, <span class="keywordtype">long</span> bufferSize, <span class="keywordtype">int</span> flags );
|
||||
00093
|
||||
00094 <font class="keyword">protected</font>:
|
||||
00094 <span class="keyword">protected</span>:
|
||||
00095
|
||||
00096 <font class="keywordtype">char</font> msg[256];
|
||||
00097 <font class="keywordtype">int</font> soket;
|
||||
00098 <font class="keywordtype">int</font> poort;
|
||||
00099 <font class="keywordtype">bool</font> server;
|
||||
00096 <span class="keywordtype">char</span> msg[256];
|
||||
00097 <span class="keywordtype">int</span> soket;
|
||||
00098 <span class="keywordtype">int</span> poort;
|
||||
00099 <span class="keywordtype">bool</span> server;
|
||||
00100
|
||||
00101 };
|
||||
00102
|
||||
00103 <font class="preprocessor">#endif // defined(__SOCKET_H)</font>
|
||||
</font></pre></div><HR>
|
||||
00103 <span class="preprocessor">#endif // defined(__SOCKET_H)</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,63 +5,63 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Sphere.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00010 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Sphere.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00010 <span class="comment">/***************************************************/</span>
|
||||
00011
|
||||
00012 <font class="preprocessor">#if !defined(__SPHERE_H)</font>
|
||||
00013 <font class="preprocessor"></font><font class="preprocessor">#define __SPHERE_H</font>
|
||||
00014 <font class="preprocessor"></font>
|
||||
00015 <font class="preprocessor">#include "Vector3D.h"</font>
|
||||
00012 <span class="preprocessor">#if !defined(__SPHERE_H)</span>
|
||||
00013 <span class="preprocessor"></span><span class="preprocessor">#define __SPHERE_H</span>
|
||||
00014 <span class="preprocessor"></span>
|
||||
00015 <span class="preprocessor">#include "Vector3D.h"</span>
|
||||
00016
|
||||
00017 <font class="keyword">class </font><a class="code" href="classSphere.html">Sphere</a>
|
||||
<a name="l00017"></a><a class="code" href="classSphere.html">00017</a> <span class="keyword">class </span><a class="code" href="classSphere.html">Sphere</a>
|
||||
00018 {
|
||||
00019 <font class="keyword">public</font>:
|
||||
00021 <a class="code" href="classSphere.html#a0">Sphere</a>(<font class="keywordtype">double</font> initRadius);
|
||||
00019 <span class="keyword">public</span>:
|
||||
00021 <a class="code" href="classSphere.html#a0">Sphere</a>(<span class="keywordtype">double</span> initRadius);
|
||||
00022
|
||||
00024 <a class="code" href="classSphere.html#a1">~Sphere</a>();
|
||||
00025
|
||||
00027 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a2">setPosition</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
||||
00027 <span class="keywordtype">void</span> <a class="code" href="classSphere.html#a2">setPosition</a>(<span class="keywordtype">double</span> anX, <span class="keywordtype">double</span> aY, <span class="keywordtype">double</span> aZ);
|
||||
00028
|
||||
00030 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a3">setVelocity</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
||||
00030 <span class="keywordtype">void</span> <a class="code" href="classSphere.html#a3">setVelocity</a>(<span class="keywordtype">double</span> anX, <span class="keywordtype">double</span> aY, <span class="keywordtype">double</span> aZ);
|
||||
00031
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a4">setRadius</a>(<font class="keywordtype">double</font> aRadius);
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classSphere.html#a4">setRadius</a>(<span class="keywordtype">double</span> aRadius);
|
||||
00034
|
||||
00036 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a5">setMass</a>(<font class="keywordtype">double</font> aMass);
|
||||
00036 <span class="keywordtype">void</span> <a class="code" href="classSphere.html#a5">setMass</a>(<span class="keywordtype">double</span> aMass);
|
||||
00037
|
||||
00039 <a class="code" href="classVector3D.html">Vector3D</a>* <a class="code" href="classSphere.html#a6">getPosition</a>();
|
||||
00040
|
||||
00042 <a class="code" href="classVector3D.html">Vector3D</a>* <a class="code" href="classSphere.html#a7">getRelativePosition</a>(<a class="code" href="classVector3D.html">Vector3D</a> *aPosition);
|
||||
00043
|
||||
00045 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a8">getVelocity</a>(<a class="code" href="classVector3D.html">Vector3D</a>* aVelocity);
|
||||
00045 <span class="keywordtype">double</span> <a class="code" href="classSphere.html#a8">getVelocity</a>(<a class="code" href="classVector3D.html">Vector3D</a>* aVelocity);
|
||||
00046
|
||||
00048 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a9">isInside</a>(<a class="code" href="classVector3D.html">Vector3D</a> *aPosition);
|
||||
00048 <span class="keywordtype">double</span> <a class="code" href="classSphere.html#a9">isInside</a>(<a class="code" href="classVector3D.html">Vector3D</a> *aPosition);
|
||||
00049
|
||||
00051 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a10">getRadius</a>();
|
||||
00051 <span class="keywordtype">double</span> <a class="code" href="classSphere.html#a10">getRadius</a>();
|
||||
00052
|
||||
00054 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a11">getMass</a>();
|
||||
00054 <span class="keywordtype">double</span> <a class="code" href="classSphere.html#a11">getMass</a>();
|
||||
00055
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a12">addVelocity</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classSphere.html#a12">addVelocity</a>(<span class="keywordtype">double</span> anX, <span class="keywordtype">double</span> aY, <span class="keywordtype">double</span> aZ);
|
||||
00058
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a13">tick</a>(<font class="keywordtype">double</font> timeIncrement);
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classSphere.html#a13">tick</a>(<span class="keywordtype">double</span> timeIncrement);
|
||||
00061
|
||||
00062 <font class="keyword">private</font>:
|
||||
00062 <span class="keyword">private</span>:
|
||||
00063 <a class="code" href="classVector3D.html">Vector3D</a> *myPosition;
|
||||
00064 <a class="code" href="classVector3D.html">Vector3D</a> *myVelocity;
|
||||
00065 <a class="code" href="classVector3D.html">Vector3D</a> workingVector;
|
||||
00066 <font class="keywordtype">double</font> myRadius;
|
||||
00067 <font class="keywordtype">double</font> myMass;
|
||||
00066 <span class="keywordtype">double</span> myRadius;
|
||||
00067 <span class="keywordtype">double</span> myMass;
|
||||
00068 };
|
||||
00069
|
||||
00070 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00070 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,58 +5,58 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>StifKarp.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00022 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>StifKarp.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00022 <span class="comment">/***************************************************/</span>
|
||||
00023
|
||||
00024 <font class="preprocessor">#if !defined(__StifKarp_h)</font>
|
||||
00025 <font class="preprocessor"></font><font class="preprocessor">#define __StifKarp_h</font>
|
||||
00026 <font class="preprocessor"></font>
|
||||
00027 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00028 <font class="preprocessor">#include "DelayL.h"</font>
|
||||
00029 <font class="preprocessor">#include "DelayA.h"</font>
|
||||
00030 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00031 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00032 <font class="preprocessor">#include "BiQuad.h"</font>
|
||||
00024 <span class="preprocessor">#if !defined(__StifKarp_h)</span>
|
||||
00025 <span class="preprocessor"></span><span class="preprocessor">#define __StifKarp_h</span>
|
||||
00026 <span class="preprocessor"></span>
|
||||
00027 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00028 <span class="preprocessor">#include "DelayL.h"</span>
|
||||
00029 <span class="preprocessor">#include "DelayA.h"</span>
|
||||
00030 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00031 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00032 <span class="preprocessor">#include "BiQuad.h"</span>
|
||||
00033
|
||||
00034 <font class="keyword">class </font><a class="code" href="classStifKarp.html">StifKarp</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00034"></a><a class="code" href="classStifKarp.html">00034</a> <span class="keyword">class </span><a class="code" href="classStifKarp.html">StifKarp</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00035 {
|
||||
00036 <font class="keyword">public</font>:
|
||||
00036 <span class="keyword">public</span>:
|
||||
00038 <a class="code" href="classStifKarp.html#a0">StifKarp</a>(MY_FLOAT lowestFrequency);
|
||||
00039
|
||||
00041 <a class="code" href="classStifKarp.html#a1">~StifKarp</a>();
|
||||
00042
|
||||
00044 <font class="keywordtype">void</font> <a class="code" href="classStifKarp.html#a2">clear</a>();
|
||||
00044 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a2">clear</a>();
|
||||
00045
|
||||
00047 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00048
|
||||
00050 <font class="keywordtype">void</font> <a class="code" href="classStifKarp.html#a4">setStretch</a>(MY_FLOAT stretch);
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a4">setStretch</a>(MY_FLOAT stretch);
|
||||
00051
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classStifKarp.html#a5">setPickupPosition</a>(MY_FLOAT position);
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a5">setPickupPosition</a>(MY_FLOAT position);
|
||||
00054
|
||||
00056
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classStifKarp.html#a6">setBaseLoopGain</a>(MY_FLOAT aGain);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a6">setBaseLoopGain</a>(MY_FLOAT aGain);
|
||||
00062
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classStifKarp.html#a7">pluck</a>(MY_FLOAT amplitude);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a7">pluck</a>(MY_FLOAT amplitude);
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a8">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00068
|
||||
00070 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00070 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a9">noteOff</a>(MY_FLOAT amplitude);
|
||||
00071
|
||||
00073 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00073 MY_FLOAT <a class="code" href="classStifKarp.html#a10">tick</a>();
|
||||
00074
|
||||
00076 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00076 <span class="keywordtype">void</span> <a class="code" href="classStifKarp.html#a11">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00077
|
||||
00078 <font class="keyword">protected</font>:
|
||||
00078 <span class="keyword">protected</span>:
|
||||
00079 <a class="code" href="classDelayA.html">DelayA</a> *delayLine;
|
||||
00080 <a class="code" href="classDelayL.html">DelayL</a> *combDelay;
|
||||
00081 <a class="code" href="classOneZero.html">OneZero</a> *filter;
|
||||
00082 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00083 <a class="code" href="classBiQuad.html">BiQuad</a> *biQuad[4];
|
||||
00084 <font class="keywordtype">long</font> length;
|
||||
00084 <span class="keywordtype">long</span> length;
|
||||
00085 MY_FLOAT loopGain;
|
||||
00086 MY_FLOAT baseLoopGain;
|
||||
00087 MY_FLOAT lastFrequency;
|
||||
@@ -67,12 +67,12 @@
|
||||
00092
|
||||
00093 };
|
||||
00094
|
||||
00095 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00095 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,152 +5,171 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Stk.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Stk.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__STK_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __STK_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="comment">// Most data in STK is passed and calculated with the following</font>
|
||||
00019 <font class="comment">// user-definable floating-point type. You can change this to "float"</font>
|
||||
00020 <font class="comment">// if you prefer or perhaps a "long double" in the future.</font>
|
||||
00021 <font class="keyword">typedef</font> <font class="keywordtype">double</font> MY_FLOAT;
|
||||
00022
|
||||
00024
|
||||
<a name="l00029"></a><a class="code" href="classStkError.html">00029</a> <font class="keyword">class </font><a class="code" href="classStkError.html">StkError</a>
|
||||
00030 {
|
||||
00031 <font class="keyword">public</font>:
|
||||
00032 <font class="keyword">enum</font> TYPE {
|
||||
00033 WARNING,
|
||||
00034 DEBUG_WARNING,
|
||||
00035 FUNCTION_ARGUMENT,
|
||||
00036 FILE_NOT_FOUND,
|
||||
00037 FILE_UNKNOWN_FORMAT,
|
||||
00038 FILE_ERROR,
|
||||
00039 PROCESS_THREAD,
|
||||
00040 PROCESS_SOCKET,
|
||||
00041 PROCESS_SOCKET_IPADDR,
|
||||
00042 AUDIO_SYSTEM,
|
||||
00043 MIDI_SYSTEM,
|
||||
00044 UNSPECIFIED
|
||||
00045 };
|
||||
00046
|
||||
00047 <font class="keyword">protected</font>:
|
||||
00048 <font class="keywordtype">char</font> message[256];
|
||||
00049 TYPE type;
|
||||
00050
|
||||
00051 <font class="keyword">public</font>:
|
||||
00053 <a class="code" href="classStkError.html#a0">StkError</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *p, TYPE tipe = StkError::UNSPECIFIED);
|
||||
00054
|
||||
00056 <font class="keyword">virtual</font> <a class="code" href="classStkError.html#a1">~StkError</a>(<font class="keywordtype">void</font>);
|
||||
00057
|
||||
00059 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStkError.html#a2">printMessage</a>(<font class="keywordtype">void</font>);
|
||||
00060
|
||||
<a name="l00062"></a><a class="code" href="classStkError.html#a3">00062</a> <font class="keyword">virtual</font> <font class="keyword">const</font> TYPE& <a class="code" href="classStkError.html#a3">getType</a>(<font class="keywordtype">void</font>)<font class="keyword"> </font>{ <font class="keywordflow">return</font> type; }
|
||||
00015 <span class="preprocessor">#if !defined(__STK_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __STK_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include <string></span>
|
||||
00019
|
||||
00020 <span class="comment">// Most data in STK is passed and calculated with the</span>
|
||||
00021 <span class="comment">// following user-definable floating-point type. You</span>
|
||||
00022 <span class="comment">// can change this to "float" if you prefer or perhaps</span>
|
||||
00023 <span class="comment">// a "long double" in the future.</span>
|
||||
00024 <span class="keyword">typedef</span> <span class="keywordtype">double</span> MY_FLOAT;
|
||||
00025
|
||||
00026 <span class="comment">// The "MY_FLOAT" type will be deprecated in STK</span>
|
||||
00027 <span class="comment">// versions higher than 4.1.2 and replaced with the variable</span>
|
||||
00028 <span class="comment">// "StkFloat".</span>
|
||||
00029 <span class="comment">//typedef double StkFloat;</span>
|
||||
00030 <span class="comment">//#if defined(__WINDOWS_DS__) || defined(__WINDOWS_ASIO__)</span>
|
||||
00031 <span class="comment">// #pragma deprecated(MY_FLOAT)</span>
|
||||
00032 <span class="comment">//#else</span>
|
||||
00033 <span class="comment">// typedef StkFloat MY_FLOAT __attribute__ ((deprecated));</span>
|
||||
00034 <span class="comment">//#endif</span>
|
||||
00035
|
||||
00037
|
||||
<a name="l00042"></a><a class="code" href="classStkError.html">00042</a> <span class="keyword">class </span><a class="code" href="classStkError.html">StkError</a>
|
||||
00043 {
|
||||
00044 <span class="keyword">public</span>:
|
||||
00045 <span class="keyword">enum</span> TYPE {
|
||||
00046 WARNING,
|
||||
00047 DEBUG_WARNING,
|
||||
00048 FUNCTION_ARGUMENT,
|
||||
00049 FILE_NOT_FOUND,
|
||||
00050 FILE_UNKNOWN_FORMAT,
|
||||
00051 FILE_ERROR,
|
||||
00052 PROCESS_THREAD,
|
||||
00053 PROCESS_SOCKET,
|
||||
00054 PROCESS_SOCKET_IPADDR,
|
||||
00055 AUDIO_SYSTEM,
|
||||
00056 MIDI_SYSTEM,
|
||||
00057 UNSPECIFIED
|
||||
00058 };
|
||||
00059
|
||||
00060 <span class="keyword">protected</span>:
|
||||
00061 <span class="keywordtype">char</span> message[256];
|
||||
00062 TYPE type;
|
||||
00063
|
||||
<a name="l00065"></a><a class="code" href="classStkError.html#a4">00065</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classStkError.html#a4">getMessage</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> message; }
|
||||
00066 };
|
||||
00064 <span class="keyword">public</span>:
|
||||
00066 <a class="code" href="classStkError.html#a0">StkError</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *p, TYPE tipe = StkError::UNSPECIFIED);
|
||||
00067
|
||||
00068
|
||||
00069 <font class="keyword">class </font><a class="code" href="classStk.html">Stk</a>
|
||||
00070 {
|
||||
00071 <font class="keyword">public</font>:
|
||||
00072
|
||||
00073 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> STK_FORMAT;
|
||||
<a name="l00074"></a><a class="code" href="classStk.html#p0">00074</a> <font class="keyword">static</font> <font class="keyword">const</font> STK_FORMAT STK_SINT8;
|
||||
<a name="l00075"></a><a class="code" href="classStk.html#p1">00075</a> <font class="keyword">static</font> <font class="keyword">const</font> STK_FORMAT STK_SINT16;
|
||||
<a name="l00076"></a><a class="code" href="classStk.html#p2">00076</a> <font class="keyword">static</font> <font class="keyword">const</font> STK_FORMAT STK_SINT32;
|
||||
<a name="l00077"></a><a class="code" href="classStk.html#p3">00077</a> <font class="keyword">static</font> <font class="keyword">const</font> STK_FORMAT STK_FLOAT32;
|
||||
<a name="l00078"></a><a class="code" href="classStk.html#p4">00078</a> <font class="keyword">static</font> <font class="keyword">const</font> STK_FORMAT STK_FLOAT64;
|
||||
00069 <span class="keyword">virtual</span> <a class="code" href="classStkError.html#a1">~StkError</a>(<span class="keywordtype">void</span>);
|
||||
00070
|
||||
00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classStkError.html#a2">printMessage</a>(<span class="keywordtype">void</span>);
|
||||
00073
|
||||
<a name="l00075"></a><a class="code" href="classStkError.html#a3">00075</a> <span class="keyword">virtual</span> <span class="keyword">const</span> TYPE& <a class="code" href="classStkError.html#a3">getType</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> type; }
|
||||
00076
|
||||
<a name="l00078"></a><a class="code" href="classStkError.html#a4">00078</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classStkError.html#a4">getMessage</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> message; }
|
||||
00079 };
|
||||
00080
|
||||
00081 <font class="keyword">static</font> MY_FLOAT <a class="code" href="classStk.html#d0">sampleRate</a>(<font class="keywordtype">void</font>);
|
||||
00082
|
||||
00084
|
||||
00092 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classStk.html#d1">setSampleRate</a>(MY_FLOAT newRate);
|
||||
00081
|
||||
<a name="l00082"></a><a class="code" href="classStk.html">00082</a> <span class="keyword">class </span><a class="code" href="classStk.html">Stk</a>
|
||||
00083 {
|
||||
00084 <span class="keyword">public</span>:
|
||||
00085
|
||||
00086 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> STK_FORMAT;
|
||||
<a name="l00087"></a><a class="code" href="classStk.html#s0">00087</a> <span class="keyword">static</span> <span class="keyword">const</span> STK_FORMAT <a class="code" href="classStk.html#s0">STK_SINT8</a>;
|
||||
<a name="l00088"></a><a class="code" href="classStk.html#s1">00088</a> <span class="keyword">static</span> <span class="keyword">const</span> STK_FORMAT <a class="code" href="classStk.html#s1">STK_SINT16</a>;
|
||||
<a name="l00089"></a><a class="code" href="classStk.html#s2">00089</a> <span class="keyword">static</span> <span class="keyword">const</span> STK_FORMAT <a class="code" href="classStk.html#s2">STK_SINT32</a>;
|
||||
<a name="l00090"></a><a class="code" href="classStk.html#s3">00090</a> <span class="keyword">static</span> <span class="keyword">const</span> STK_FORMAT <a class="code" href="classStk.html#s3">MY_FLOAT32</a>;
|
||||
<a name="l00091"></a><a class="code" href="classStk.html#s4">00091</a> <span class="keyword">static</span> <span class="keyword">const</span> STK_FORMAT <a class="code" href="classStk.html#s4">MY_FLOAT64</a>;
|
||||
00093
|
||||
00095 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classStk.html#d2">swap16</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *ptr);
|
||||
00096
|
||||
00098 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classStk.html#d3">swap32</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *ptr);
|
||||
00099
|
||||
00101 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classStk.html#d4">swap64</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *ptr);
|
||||
00102
|
||||
00104 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classStk.html#d5">sleep</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> milliseconds);
|
||||
00105
|
||||
00106 <font class="keyword">private</font>:
|
||||
00107 <font class="keyword">static</font> MY_FLOAT srate;
|
||||
00108
|
||||
00109 <font class="keyword">protected</font>:
|
||||
00110
|
||||
00112 <a class="code" href="classStk.html#b0">Stk</a>(<font class="keywordtype">void</font>);
|
||||
00113
|
||||
00115 <font class="keyword">virtual</font> <a class="code" href="classStk.html#b1">~Stk</a>(<font class="keywordtype">void</font>);
|
||||
00116
|
||||
00118 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classStk.html#e0">handleError</a>( <font class="keyword">const</font> <font class="keywordtype">char</font> *message, StkError::TYPE type );
|
||||
00119
|
||||
00120 };
|
||||
00094 <span class="keyword">static</span> MY_FLOAT <a class="code" href="classStk.html#e0">sampleRate</a>(<span class="keywordtype">void</span>);
|
||||
00095
|
||||
00097
|
||||
00105 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#e1">setSampleRate</a>(MY_FLOAT newRate);
|
||||
00106
|
||||
00108 <span class="keyword">static</span> std::string <a class="code" href="classStk.html#e2">rawwavePath</a>(<span class="keywordtype">void</span>);
|
||||
00109
|
||||
00111 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#e3">setRawwavePath</a>(std::string newPath);
|
||||
00112
|
||||
00114 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#e4">swap16</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr);
|
||||
00115
|
||||
00117 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#e5">swap32</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr);
|
||||
00118
|
||||
00120 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#e6">swap64</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr);
|
||||
00121
|
||||
00122 <font class="comment">// Here are a few other useful typedefs.</font>
|
||||
00123 <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">short</font> SINT16;
|
||||
00124 <font class="keyword">typedef</font> <font class="keywordtype">signed</font> <font class="keywordtype">int</font> SINT32;
|
||||
00125 <font class="keyword">typedef</font> <font class="keywordtype">float</font> FLOAT32;
|
||||
00126 <font class="keyword">typedef</font> <font class="keywordtype">double</font> FLOAT64;
|
||||
00127
|
||||
00128 <font class="comment">// Boolean values</font>
|
||||
00129 <font class="preprocessor">#define FALSE 0</font>
|
||||
00130 <font class="preprocessor"></font><font class="preprocessor">#define TRUE 1</font>
|
||||
00131 <font class="preprocessor"></font>
|
||||
00132 <font class="comment">// The default sampling rate.</font>
|
||||
00133 <font class="preprocessor">#define SRATE (MY_FLOAT) 22050.0</font>
|
||||
00134 <font class="preprocessor"></font>
|
||||
00135 <font class="comment">// Real-time audio input and output buffer size. If clicks are</font>
|
||||
00136 <font class="comment">// occuring in the input and/or output sound stream, a larger buffer</font>
|
||||
00137 <font class="comment">// size may help. Larger buffer sizes, however, produce more latency.</font>
|
||||
00138
|
||||
00139 <font class="preprocessor">#define RT_BUFFER_SIZE 512</font>
|
||||
00140 <font class="preprocessor"></font>
|
||||
00141 <font class="comment">// The RAWWAVE_PATH definition is concatenated to the beginning of all</font>
|
||||
00142 <font class="comment">// references to rawwave files in the various STK core classes</font>
|
||||
00143 <font class="comment">// (ex. Clarinet.cpp). If you wish to move the rawwaves directory to</font>
|
||||
00144 <font class="comment">// a different location in your file system, you will need to set this</font>
|
||||
00145 <font class="comment">// path definition appropriately. The current definition is a</font>
|
||||
00146 <font class="comment">// relative reference that will work for the programs in the STK</font>
|
||||
00147 <font class="comment">// projects directory. The path can also be specified to configure and</font>
|
||||
00148 <font class="comment">// set via the Makefiles.</font>
|
||||
00149 <font class="preprocessor">#if !defined(RAWWAVE_PATH)</font>
|
||||
00150 <font class="preprocessor"></font><font class="preprocessor"> #define RAWWAVE_PATH "../../rawwaves/"</font>
|
||||
00151 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
|
||||
00152 <font class="preprocessor"></font>
|
||||
00153 <font class="preprocessor">#define PI (MY_FLOAT) 3.14159265359</font>
|
||||
00154 <font class="preprocessor"></font><font class="preprocessor">#define TWO_PI (MY_FLOAT) (MY_FLOAT) (2 * PI)</font>
|
||||
00155 <font class="preprocessor"></font>
|
||||
00156 <font class="preprocessor">#define ONE_OVER_128 (MY_FLOAT) 0.0078125</font>
|
||||
00157 <font class="preprocessor"></font>
|
||||
00158 <font class="preprocessor">#if defined(__WINDOWS_DS__) || defined(__WINDOWS_ASIO__)</font>
|
||||
00159 <font class="preprocessor"></font><font class="preprocessor"> #define __OS_WINDOWS__</font>
|
||||
00160 <font class="preprocessor"></font><font class="preprocessor"> #define __STK_REALTIME__</font>
|
||||
00161 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__LINUX_OSS__) || defined(__LINUX_ALSA__)</font>
|
||||
00162 <font class="preprocessor"></font><font class="preprocessor"> #define __OS_LINUX__</font>
|
||||
00163 <font class="preprocessor"></font><font class="preprocessor"> #define __STK_REALTIME__</font>
|
||||
00164 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__IRIX_AL__)</font>
|
||||
00165 <font class="preprocessor"></font><font class="preprocessor"> #define __OS_IRIX__</font>
|
||||
00166 <font class="preprocessor"></font><font class="preprocessor"> #define __STK_REALTIME__</font>
|
||||
00167 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__MACOSX_CORE__)</font>
|
||||
00168 <font class="preprocessor"></font><font class="preprocessor"> #define __OS_MACOSX__</font>
|
||||
00169 <font class="preprocessor"></font><font class="preprocessor"> #define __STK_REALTIME__</font>
|
||||
00170 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
|
||||
00171 <font class="preprocessor"></font>
|
||||
00172 <font class="comment">//#define _STK_DEBUG_</font>
|
||||
00173
|
||||
00174 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00123 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#e7">sleep</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> milliseconds);
|
||||
00124
|
||||
00125 <span class="keyword">private</span>:
|
||||
00126 <span class="keyword">static</span> MY_FLOAT srate;
|
||||
00127 <span class="keyword">static</span> std::string rawwavepath;
|
||||
00128
|
||||
00129 <span class="keyword">protected</span>:
|
||||
00130
|
||||
00132 <a class="code" href="classStk.html#b0">Stk</a>(<span class="keywordtype">void</span>);
|
||||
00133
|
||||
00135 <span class="keyword">virtual</span> <a class="code" href="classStk.html#b1">~Stk</a>(<span class="keywordtype">void</span>);
|
||||
00136
|
||||
00138 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classStk.html#f0">handleError</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *message, StkError::TYPE type );
|
||||
00139
|
||||
00140 };
|
||||
00141
|
||||
00142 <span class="comment">// Here are a few other useful typedefs.</span>
|
||||
00143 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span> SINT16;
|
||||
00144 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> SINT32;
|
||||
00145 <span class="keyword">typedef</span> <span class="keywordtype">float</span> FLOAT32;
|
||||
00146 <span class="keyword">typedef</span> <span class="keywordtype">double</span> FLOAT64;
|
||||
00147
|
||||
00148 <span class="comment">// Boolean values</span>
|
||||
00149 <span class="preprocessor">#define FALSE 0</span>
|
||||
00150 <span class="preprocessor"></span><span class="preprocessor">#define TRUE 1</span>
|
||||
00151 <span class="preprocessor"></span>
|
||||
00152 <span class="comment">// The default sampling rate.</span>
|
||||
00153 <span class="preprocessor">#define SRATE (MY_FLOAT) 44100.0</span>
|
||||
00154 <span class="preprocessor"></span>
|
||||
00155 <span class="comment">// The default real-time audio input and output buffer size. If</span>
|
||||
00156 <span class="comment">// clicks are occuring in the input and/or output sound stream, a</span>
|
||||
00157 <span class="comment">// larger buffer size may help. Larger buffer sizes, however, produce</span>
|
||||
00158 <span class="comment">// more latency.</span>
|
||||
00159 <span class="preprocessor">#define RT_BUFFER_SIZE 512</span>
|
||||
00160 <span class="preprocessor"></span>
|
||||
00161 <span class="comment">// The default rawwave path value is set with the preprocessor</span>
|
||||
00162 <span class="comment">// definition RAWWAVE_PATH. This can be specified as an argument to</span>
|
||||
00163 <span class="comment">// the configure script, in an integrated development environment, or</span>
|
||||
00164 <span class="comment">// below. The global STK rawwave path variable can be dynamically set</span>
|
||||
00165 <span class="comment">// with the Stk::setRawwavePath() function. This value is</span>
|
||||
00166 <span class="comment">// concatenated to the beginning of all references to rawwave files in</span>
|
||||
00167 <span class="comment">// the various STK core classes (ex. Clarinet.cpp). If you wish to</span>
|
||||
00168 <span class="comment">// move the rawwaves directory to a different location in your file</span>
|
||||
00169 <span class="comment">// system, you will need to set this path definition appropriately.</span>
|
||||
00170 <span class="preprocessor">#if !defined(RAWWAVE_PATH)</span>
|
||||
00171 <span class="preprocessor"></span><span class="preprocessor"> #define RAWWAVE_PATH "../../rawwaves/"</span>
|
||||
00172 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
00173 <span class="preprocessor"></span>
|
||||
00174 <span class="preprocessor">#define PI (MY_FLOAT) 3.14159265359</span>
|
||||
00175 <span class="preprocessor"></span><span class="preprocessor">#define TWO_PI (MY_FLOAT) (MY_FLOAT) (2 * PI)</span>
|
||||
00176 <span class="preprocessor"></span>
|
||||
00177 <span class="preprocessor">#define ONE_OVER_128 (MY_FLOAT) 0.0078125</span>
|
||||
00178 <span class="preprocessor"></span>
|
||||
00179 <span class="preprocessor">#if defined(__WINDOWS_DS__) || defined(__WINDOWS_ASIO__)</span>
|
||||
00180 <span class="preprocessor"></span><span class="preprocessor"> #define __OS_WINDOWS__</span>
|
||||
00181 <span class="preprocessor"></span><span class="preprocessor"> #define __STK_REALTIME__</span>
|
||||
00182 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__LINUX_OSS__) || defined(__LINUX_ALSA__) || defined(__LINUX_JACK__)</span>
|
||||
00183 <span class="preprocessor"></span><span class="preprocessor"> #define __OS_LINUX__</span>
|
||||
00184 <span class="preprocessor"></span><span class="preprocessor"> #define __STK_REALTIME__</span>
|
||||
00185 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__IRIX_AL__)</span>
|
||||
00186 <span class="preprocessor"></span><span class="preprocessor"> #define __OS_IRIX__</span>
|
||||
00187 <span class="preprocessor"></span><span class="preprocessor"> #define __STK_REALTIME__</span>
|
||||
00188 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__MACOSX_CORE__)</span>
|
||||
00189 <span class="preprocessor"></span><span class="preprocessor"> #define __OS_MACOSX__</span>
|
||||
00190 <span class="preprocessor"></span><span class="preprocessor"> #define __STK_REALTIME__</span>
|
||||
00191 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
00192 <span class="preprocessor"></span>
|
||||
00193 <span class="comment">//#define _STK_DEBUG_</span>
|
||||
00194
|
||||
00195 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,44 +5,44 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>SubNoise.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00011 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>SubNoise.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00011 <span class="comment">/***************************************************/</span>
|
||||
00012
|
||||
00013 <font class="preprocessor">#if !defined(__SUBNOISE_H)</font>
|
||||
00014 <font class="preprocessor"></font><font class="preprocessor">#define __SUBNOISE_H</font>
|
||||
00015 <font class="preprocessor"></font>
|
||||
00016 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00013 <span class="preprocessor">#if !defined(__SUBNOISE_H)</span>
|
||||
00014 <span class="preprocessor"></span><span class="preprocessor">#define __SUBNOISE_H</span>
|
||||
00015 <span class="preprocessor"></span>
|
||||
00016 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00017
|
||||
00018 <font class="keyword">class </font><a class="code" href="classSubNoise.html">SubNoise</a> : <font class="keyword">public</font> <a class="code" href="classNoise.html">Noise</a>
|
||||
<a name="l00018"></a><a class="code" href="classSubNoise.html">00018</a> <span class="keyword">class </span><a class="code" href="classSubNoise.html">SubNoise</a> : <span class="keyword">public</span> <a class="code" href="classNoise.html">Noise</a>
|
||||
00019 {
|
||||
00020 <font class="keyword">public</font>:
|
||||
00020 <span class="keyword">public</span>:
|
||||
00021
|
||||
00023 <a class="code" href="classSubNoise.html#a0">SubNoise</a>(<font class="keywordtype">int</font> subRate = 16);
|
||||
00023 <a class="code" href="classSubNoise.html#a0">SubNoise</a>(<span class="keywordtype">int</span> <a class="code" href="classSubNoise.html#a2">subRate</a> = 16);
|
||||
00024
|
||||
00026 <a class="code" href="classSubNoise.html#a1">~SubNoise</a>();
|
||||
00027
|
||||
00029 <font class="keywordtype">int</font> <a class="code" href="classSubNoise.html#a2">subRate</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00029 <span class="keywordtype">int</span> <a class="code" href="classSubNoise.html#a2">subRate</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00030
|
||||
00032 <font class="keywordtype">void</font> <a class="code" href="classSubNoise.html#a3">setRate</a>(<font class="keywordtype">int</font> subRate);
|
||||
00032 <span class="keywordtype">void</span> <a class="code" href="classSubNoise.html#a3">setRate</a>(<span class="keywordtype">int</span> subRate);
|
||||
00033
|
||||
00035 MY_FLOAT <a class="code" href="classNoise.html#a2">tick</a>();
|
||||
00035 MY_FLOAT <a class="code" href="classSubNoise.html#a4">tick</a>();
|
||||
00036
|
||||
00037 <font class="keyword">protected</font>:
|
||||
00038 <font class="keywordtype">int</font> counter;
|
||||
00039 <font class="keywordtype">int</font> rate;
|
||||
00037 <span class="keyword">protected</span>:
|
||||
00038 <span class="keywordtype">int</span> counter;
|
||||
00039 <span class="keywordtype">int</span> rate;
|
||||
00040
|
||||
00041 };
|
||||
00042
|
||||
00043 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00043 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,47 +5,47 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Table.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00015 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Table.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00015 <span class="comment">/***************************************************/</span>
|
||||
00016
|
||||
00017 <font class="preprocessor">#if !defined(__TABLE_H)</font>
|
||||
00018 <font class="preprocessor"></font><font class="preprocessor">#define __TABLE_H</font>
|
||||
00019 <font class="preprocessor"></font>
|
||||
00020 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00017 <span class="preprocessor">#if !defined(__TABLE_H)</span>
|
||||
00018 <span class="preprocessor"></span><span class="preprocessor">#define __TABLE_H</span>
|
||||
00019 <span class="preprocessor"></span>
|
||||
00020 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00021
|
||||
00022 <font class="keyword">class </font><a class="code" href="classTable.html">Table</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00022"></a><a class="code" href="classTable.html">00022</a> <span class="keyword">class </span><a class="code" href="classTable.html">Table</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00023 {
|
||||
00024 <font class="keyword">public</font>:
|
||||
00026 <a class="code" href="classTable.html#a0">Table</a>(<font class="keywordtype">char</font> *fileName);
|
||||
00024 <span class="keyword">public</span>:
|
||||
00026 <a class="code" href="classTable.html#a0">Table</a>(<span class="keywordtype">char</span> *fileName);
|
||||
00027
|
||||
00029 <a class="code" href="classTable.html#a1">~Table</a>();
|
||||
00030
|
||||
00032 <font class="keywordtype">long</font> <a class="code" href="classTable.html#a2">getLength</a>() <font class="keyword">const</font>;
|
||||
00032 <span class="keywordtype">long</span> <a class="code" href="classTable.html#a2">getLength</a>() <span class="keyword">const</span>;
|
||||
00033
|
||||
00035 MY_FLOAT <a class="code" href="classTable.html#a3">lastOut</a>() <font class="keyword">const</font>;
|
||||
00035 MY_FLOAT <a class="code" href="classTable.html#a3">lastOut</a>() <span class="keyword">const</span>;
|
||||
00036
|
||||
00038
|
||||
00042 MY_FLOAT <a class="code" href="classTable.html#a4">tick</a>(MY_FLOAT index);
|
||||
00043
|
||||
00045 MY_FLOAT *<a class="code" href="classTable.html#a4">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00045 MY_FLOAT *<a class="code" href="classTable.html#a4">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00046
|
||||
00047 <font class="keyword">protected</font>:
|
||||
00048 <font class="keywordtype">long</font> length;
|
||||
00047 <span class="keyword">protected</span>:
|
||||
00048 <span class="keywordtype">long</span> length;
|
||||
00049 MY_FLOAT *data;
|
||||
00050 MY_FLOAT lastOutput;
|
||||
00051
|
||||
00052 };
|
||||
00053
|
||||
00054 <font class="preprocessor">#endif // defined(__TABLE_H)</font>
|
||||
</font></pre></div><HR>
|
||||
00054 <span class="preprocessor">#endif // defined(__TABLE_H)</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,86 +5,86 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>TcpWvIn.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00027 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>TcpWvIn.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00027 <span class="comment">/***************************************************/</span>
|
||||
00028
|
||||
00029 <font class="preprocessor">#if !defined(__TCPWVIN_H)</font>
|
||||
00030 <font class="preprocessor"></font><font class="preprocessor">#define __TCPWVIN_H</font>
|
||||
00031 <font class="preprocessor"></font>
|
||||
00032 <font class="preprocessor">#include "WvIn.h"</font>
|
||||
00033 <font class="preprocessor">#include "Socket.h"</font>
|
||||
00034 <font class="preprocessor">#include "Thread.h"</font>
|
||||
00029 <span class="preprocessor">#if !defined(__TCPWVIN_H)</span>
|
||||
00030 <span class="preprocessor"></span><span class="preprocessor">#define __TCPWVIN_H</span>
|
||||
00031 <span class="preprocessor"></span>
|
||||
00032 <span class="preprocessor">#include "WvIn.h"</span>
|
||||
00033 <span class="preprocessor">#include "Socket.h"</span>
|
||||
00034 <span class="preprocessor">#include "Thread.h"</span>
|
||||
00035
|
||||
00036 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
||||
00037 <font class="keywordtype">bool</font> finished;
|
||||
00038 <font class="keywordtype">void</font> *object;
|
||||
00036 <span class="keyword">typedef</span> <span class="keyword">struct </span>{
|
||||
00037 <span class="keywordtype">bool</span> finished;
|
||||
00038 <span class="keywordtype">void</span> *object;
|
||||
00039 } thread_info;
|
||||
00040
|
||||
00041 <font class="keyword">class </font><a class="code" href="classTcpWvIn.html">TcpWvIn</a> : <font class="keyword">protected</font> <a class="code" href="classWvIn.html">WvIn</a>
|
||||
<a name="l00041"></a><a class="code" href="classTcpWvIn.html">00041</a> <span class="keyword">class </span><a class="code" href="classTcpWvIn.html">TcpWvIn</a> : <span class="keyword">protected</span> <a class="code" href="classWvIn.html">WvIn</a>
|
||||
00042 {
|
||||
00043 <font class="keyword">public</font>:
|
||||
00043 <span class="keyword">public</span>:
|
||||
00045
|
||||
00048 <a class="code" href="classTcpWvIn.html#a0">TcpWvIn</a>( <font class="keywordtype">int</font> port = 2006 );
|
||||
00048 <a class="code" href="classTcpWvIn.html#a0">TcpWvIn</a>( <span class="keywordtype">int</span> port = 2006 );
|
||||
00049
|
||||
00051 <a class="code" href="classTcpWvIn.html#a1">~TcpWvIn</a>();
|
||||
00052
|
||||
00054
|
||||
00057 <font class="keywordtype">void</font> <a class="code" href="classTcpWvIn.html#a2">listen</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nChannels = 1, Stk::STK_FORMAT format = STK_SINT16);
|
||||
00057 <span class="keywordtype">void</span> <a class="code" href="classTcpWvIn.html#a2">listen</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nChannels = 1, Stk::STK_FORMAT format = <a class="code" href="classStk.html#s1">STK_SINT16</a>);
|
||||
00058
|
||||
00060
|
||||
00064 <font class="keywordtype">bool</font> <a class="code" href="classTcpWvIn.html#a3">isConnected</a>(<font class="keywordtype">void</font>);
|
||||
00064 <span class="keywordtype">bool</span> <a class="code" href="classTcpWvIn.html#a3">isConnected</a>(<span class="keywordtype">void</span>);
|
||||
00065
|
||||
00067 MY_FLOAT <a class="code" href="classWvIn.html#a15">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00067 MY_FLOAT <a class="code" href="classTcpWvIn.html#a4">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00068
|
||||
00070 MY_FLOAT <a class="code" href="classWvIn.html#a16">tick</a>(<font class="keywordtype">void</font>);
|
||||
00070 MY_FLOAT <a class="code" href="classTcpWvIn.html#a5">tick</a>(<span class="keywordtype">void</span>);
|
||||
00071
|
||||
00073 MY_FLOAT *<a class="code" href="classWvIn.html#a16">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00073 MY_FLOAT *<a class="code" href="classTcpWvIn.html#a5">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00074
|
||||
00076 <font class="keyword">const</font> MY_FLOAT *<a class="code" href="classWvIn.html#a18">lastFrame</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00076 <span class="keyword">const</span> MY_FLOAT *<a class="code" href="classTcpWvIn.html#a7">lastFrame</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00077
|
||||
00079 <font class="keyword">const</font> MY_FLOAT *<a class="code" href="classWvIn.html#a19">tickFrame</a>(<font class="keywordtype">void</font>);
|
||||
00079 <span class="keyword">const</span> MY_FLOAT *<a class="code" href="classTcpWvIn.html#a8">tickFrame</a>(<span class="keywordtype">void</span>);
|
||||
00080
|
||||
00082 MY_FLOAT *<a class="code" href="classWvIn.html#a19">tickFrame</a>(MY_FLOAT *frameVector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> frames);
|
||||
00082 MY_FLOAT *<a class="code" href="classTcpWvIn.html#a8">tickFrame</a>(MY_FLOAT *frameVector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frames);
|
||||
00083
|
||||
00084 <font class="comment">// Called by the thread routine to receive data via the socket connection</font>
|
||||
00085 <font class="comment">// and fill the socket buffer. This is not intended for general use but</font>
|
||||
00086 <font class="comment">// had to be made public for access from the thread.</font>
|
||||
00087 <font class="keywordtype">void</font> receive(<font class="keywordtype">void</font>);
|
||||
00084 <span class="comment">// Called by the thread routine to receive data via the socket connection</span>
|
||||
00085 <span class="comment">// and fill the socket buffer. This is not intended for general use but</span>
|
||||
00086 <span class="comment">// had to be made public for access from the thread.</span>
|
||||
00087 <span class="keywordtype">void</span> receive(<span class="keywordtype">void</span>);
|
||||
00088
|
||||
00089 <font class="keyword">protected</font>:
|
||||
00089 <span class="keyword">protected</span>:
|
||||
00090
|
||||
00091 <font class="comment">// Initialize class variables.</font>
|
||||
00092 <font class="keywordtype">void</font> init( <font class="keywordtype">int</font> port );
|
||||
00091 <span class="comment">// Initialize class variables.</span>
|
||||
00092 <span class="keywordtype">void</span> init( <span class="keywordtype">int</span> port );
|
||||
00093
|
||||
00094 <font class="comment">// Read buffered socket data into the data buffer ... will block if none available.</font>
|
||||
00095 <font class="keywordtype">int</font> readData( <font class="keywordtype">void</font> );
|
||||
00094 <span class="comment">// Read buffered socket data into the data buffer ... will block if none available.</span>
|
||||
00095 <span class="keywordtype">int</span> readData( <span class="keywordtype">void</span> );
|
||||
00096
|
||||
00097 <a class="code" href="classSocket.html">Socket</a> *soket;
|
||||
00098 <a class="code" href="classThread.html">Thread</a> *thread;
|
||||
00099 Mutex mutex;
|
||||
00100 <font class="keywordtype">char</font> *buffer;
|
||||
00101 <font class="keywordtype">long</font> bufferBytes;
|
||||
00102 <font class="keywordtype">long</font> bytesFilled;
|
||||
00103 <font class="keywordtype">long</font> writePoint;
|
||||
00104 <font class="keywordtype">long</font> readPoint;
|
||||
00105 <font class="keywordtype">long</font> counter;
|
||||
00106 <font class="keywordtype">int</font> dataSize;
|
||||
00107 <font class="keywordtype">bool</font> connected;
|
||||
00108 <font class="keywordtype">int</font> fd;
|
||||
00100 <span class="keywordtype">char</span> *buffer;
|
||||
00101 <span class="keywordtype">long</span> bufferBytes;
|
||||
00102 <span class="keywordtype">long</span> bytesFilled;
|
||||
00103 <span class="keywordtype">long</span> writePoint;
|
||||
00104 <span class="keywordtype">long</span> readPoint;
|
||||
00105 <span class="keywordtype">long</span> counter;
|
||||
00106 <span class="keywordtype">int</span> dataSize;
|
||||
00107 <span class="keywordtype">bool</span> connected;
|
||||
00108 <span class="keywordtype">int</span> fd;
|
||||
00109 thread_info threadInfo;
|
||||
00110
|
||||
00111 };
|
||||
00112
|
||||
00113 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00113 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,64 +5,64 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>TcpWvOut.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00026 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>TcpWvOut.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00026 <span class="comment">/***************************************************/</span>
|
||||
00027
|
||||
00028 <font class="preprocessor">#if !defined(__TCPWVOUT_H)</font>
|
||||
00029 <font class="preprocessor"></font><font class="preprocessor">#define __TCPWVOUT_H</font>
|
||||
00030 <font class="preprocessor"></font>
|
||||
00031 <font class="preprocessor">#include "WvOut.h"</font>
|
||||
00032 <font class="preprocessor">#include "Socket.h"</font>
|
||||
00028 <span class="preprocessor">#if !defined(__TCPWVOUT_H)</span>
|
||||
00029 <span class="preprocessor"></span><span class="preprocessor">#define __TCPWVOUT_H</span>
|
||||
00030 <span class="preprocessor"></span>
|
||||
00031 <span class="preprocessor">#include "WvOut.h"</span>
|
||||
00032 <span class="preprocessor">#include "Socket.h"</span>
|
||||
00033
|
||||
00034 <font class="keyword">class </font><a class="code" href="classTcpWvOut.html">TcpWvOut</a> : <font class="keyword">protected</font> <a class="code" href="classWvOut.html">WvOut</a>
|
||||
<a name="l00034"></a><a class="code" href="classTcpWvOut.html">00034</a> <span class="keyword">class </span><a class="code" href="classTcpWvOut.html">TcpWvOut</a> : <span class="keyword">protected</span> <a class="code" href="classWvOut.html">WvOut</a>
|
||||
00035 {
|
||||
00036 <font class="keyword">public</font>:
|
||||
00036 <span class="keyword">public</span>:
|
||||
00038 <a class="code" href="classTcpWvOut.html#a0">TcpWvOut</a>();
|
||||
00039
|
||||
00041
|
||||
00044 <a class="code" href="classTcpWvOut.html#a0">TcpWvOut</a>(<font class="keywordtype">int</font> port, <font class="keyword">const</font> <font class="keywordtype">char</font> *hostname = <font class="stringliteral">"localhost"</font>, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nChannels = 1, Stk::STK_FORMAT format = STK_SINT16);
|
||||
00044 <a class="code" href="classTcpWvOut.html#a0">TcpWvOut</a>(<span class="keywordtype">int</span> port, <span class="keyword">const</span> <span class="keywordtype">char</span> *hostname = <span class="stringliteral">"localhost"</span>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nChannels = 1, Stk::STK_FORMAT format = <a class="code" href="classStk.html#s1">STK_SINT16</a>);
|
||||
00045
|
||||
00047 <a class="code" href="classTcpWvOut.html#a2">~TcpWvOut</a>();
|
||||
00048
|
||||
00050
|
||||
00053 <font class="keywordtype">void</font> <a class="code" href="classTcpWvOut.html#a3">connect</a>(<font class="keywordtype">int</font> port, <font class="keyword">const</font> <font class="keywordtype">char</font> *hostname = <font class="stringliteral">"localhost"</font>, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nChannels = 1, Stk::STK_FORMAT format = STK_SINT16);
|
||||
00053 <span class="keywordtype">void</span> <a class="code" href="classTcpWvOut.html#a3">connect</a>(<span class="keywordtype">int</span> port, <span class="keyword">const</span> <span class="keywordtype">char</span> *hostname = <span class="stringliteral">"localhost"</span>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nChannels = 1, Stk::STK_FORMAT format = <a class="code" href="classStk.html#s1">STK_SINT16</a>);
|
||||
00054
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classTcpWvOut.html#a4">disconnect</a>(<font class="keywordtype">void</font>);
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classTcpWvOut.html#a4">disconnect</a>(<span class="keywordtype">void</span>);
|
||||
00057
|
||||
00059 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> <a class="code" href="classWvOut.html#a5">getFrames</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
||||
00059 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classTcpWvOut.html#a5">getFrames</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
|
||||
00060
|
||||
00062 MY_FLOAT <a class="code" href="classWvOut.html#a6">getTime</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
||||
00062 MY_FLOAT <a class="code" href="classTcpWvOut.html#a6">getTime</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
|
||||
00063
|
||||
00065
|
||||
00068 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a7">tick</a>(MY_FLOAT sample);
|
||||
00068 <span class="keywordtype">void</span> <a class="code" href="classTcpWvOut.html#a7">tick</a>(MY_FLOAT sample);
|
||||
00069
|
||||
00071
|
||||
00074 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a7">tick</a>(<font class="keyword">const</font> MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00074 <span class="keywordtype">void</span> <a class="code" href="classTcpWvOut.html#a7">tick</a>(<span class="keyword">const</span> MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00075
|
||||
00077
|
||||
00080 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a9">tickFrame</a>(<font class="keyword">const</font> MY_FLOAT *frameVector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> frames = 1);
|
||||
00080 <span class="keywordtype">void</span> <a class="code" href="classTcpWvOut.html#a9">tickFrame</a>(<span class="keyword">const</span> MY_FLOAT *frameVector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frames = 1);
|
||||
00081
|
||||
00082 <font class="keyword">protected</font>:
|
||||
00082 <span class="keyword">protected</span>:
|
||||
00083
|
||||
00084 <font class="comment">// Write a buffer of length \e frames via the socket connection.</font>
|
||||
00085 <font class="keywordtype">void</font> writeData( <font class="keywordtype">long</font> frames );
|
||||
00084 <span class="comment">// Write a buffer of length \e frames via the socket connection.</span>
|
||||
00085 <span class="keywordtype">void</span> writeData( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> frames );
|
||||
00086
|
||||
00087 <font class="keywordtype">char</font> msg[256];
|
||||
00088 <font class="keywordtype">char</font> *buffer;
|
||||
00087 <span class="keywordtype">char</span> msg[256];
|
||||
00088 <span class="keywordtype">char</span> *buffer;
|
||||
00089 <a class="code" href="classSocket.html">Socket</a> *soket;
|
||||
00090 <font class="keywordtype">int</font> dataSize;
|
||||
00090 <span class="keywordtype">int</span> dataSize;
|
||||
00091 };
|
||||
00092
|
||||
00093 <font class="preprocessor">#endif // defined(__TCPWVOUT_H)</font>
|
||||
</font></pre></div><HR>
|
||||
00093 <span class="preprocessor">#endif // defined(__TCPWVOUT_H)</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,83 +5,83 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Thread.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00012 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Thread.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00012 <span class="comment">/***************************************************/</span>
|
||||
00013
|
||||
00014 <font class="preprocessor">#if !defined(__THREAD_H)</font>
|
||||
00015 <font class="preprocessor"></font><font class="preprocessor">#define __THREAD_H</font>
|
||||
00016 <font class="preprocessor"></font>
|
||||
00017 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00014 <span class="preprocessor">#if !defined(__THREAD_H)</span>
|
||||
00015 <span class="preprocessor"></span><span class="preprocessor">#define __THREAD_H</span>
|
||||
00016 <span class="preprocessor"></span>
|
||||
00017 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00018
|
||||
00019 <font class="preprocessor">#if (defined(__OS_IRIX__) || defined(__OS_LINUX__) || defined(__OS_MACOSX__))</font>
|
||||
00020 <font class="preprocessor"></font>
|
||||
00021 <font class="preprocessor"> #include <pthread.h></font>
|
||||
00022 <font class="preprocessor"> #define THREAD_TYPE</font>
|
||||
00023 <font class="preprocessor"></font> <font class="keyword">typedef</font> pthread_t THREAD_HANDLE;
|
||||
00024 <font class="keyword">typedef</font> <font class="keywordtype">void</font> * THREAD_RETURN;
|
||||
00025 <font class="keyword">typedef</font> <font class="keywordtype">void</font> * (*THREAD_FUNCTION)(<font class="keywordtype">void</font> *);
|
||||
00026 <font class="keyword">typedef</font> pthread_mutex_t MUTEX;
|
||||
00019 <span class="preprocessor">#if (defined(__OS_IRIX__) || defined(__OS_LINUX__) || defined(__OS_MACOSX__))</span>
|
||||
00020 <span class="preprocessor"></span>
|
||||
00021 <span class="preprocessor"> #include <pthread.h></span>
|
||||
00022 <span class="preprocessor"> #define THREAD_TYPE</span>
|
||||
00023 <span class="preprocessor"></span> <span class="keyword">typedef</span> pthread_t THREAD_HANDLE;
|
||||
00024 <span class="keyword">typedef</span> <span class="keywordtype">void</span> * THREAD_RETURN;
|
||||
00025 <span class="keyword">typedef</span> <span class="keywordtype">void</span> * (*THREAD_FUNCTION)(<span class="keywordtype">void</span> *);
|
||||
00026 <span class="keyword">typedef</span> pthread_mutex_t MUTEX;
|
||||
00027
|
||||
00028 <font class="preprocessor">#elif defined(__OS_WINDOWS__)</font>
|
||||
00029 <font class="preprocessor"></font>
|
||||
00030 <font class="preprocessor"> #include <windows.h></font>
|
||||
00031 <font class="preprocessor"> #include <process.h></font>
|
||||
00032 <font class="preprocessor"> #define THREAD_TYPE __stdcall</font>
|
||||
00033 <font class="preprocessor"></font> <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> THREAD_HANDLE;
|
||||
00034 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> THREAD_RETURN;
|
||||
00035 <font class="keyword">typedef</font> unsigned (__stdcall *THREAD_FUNCTION)(<font class="keywordtype">void</font> *);
|
||||
00036 <font class="keyword">typedef</font> CRITICAL_SECTION MUTEX;
|
||||
00028 <span class="preprocessor">#elif defined(__OS_WINDOWS__)</span>
|
||||
00029 <span class="preprocessor"></span>
|
||||
00030 <span class="preprocessor"> #include <windows.h></span>
|
||||
00031 <span class="preprocessor"> #include <process.h></span>
|
||||
00032 <span class="preprocessor"> #define THREAD_TYPE __stdcall</span>
|
||||
00033 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> THREAD_HANDLE;
|
||||
00034 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> THREAD_RETURN;
|
||||
00035 <span class="keyword">typedef</span> unsigned (__stdcall *THREAD_FUNCTION)(<span class="keywordtype">void</span> *);
|
||||
00036 <span class="keyword">typedef</span> CRITICAL_SECTION MUTEX;
|
||||
00037
|
||||
00038 <font class="preprocessor">#endif</font>
|
||||
00039 <font class="preprocessor"></font>
|
||||
00040 <font class="keyword">class </font><a class="code" href="classThread.html">Thread</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
00038 <span class="preprocessor">#endif</span>
|
||||
00039 <span class="preprocessor"></span>
|
||||
<a name="l00040"></a><a class="code" href="classThread.html">00040</a> <span class="keyword">class </span><a class="code" href="classThread.html">Thread</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00041 {
|
||||
00042 <font class="keyword">public</font>:
|
||||
00042 <span class="keyword">public</span>:
|
||||
00044 <a class="code" href="classThread.html#a0">Thread</a>();
|
||||
00045
|
||||
00047 <a class="code" href="classThread.html#a1">~Thread</a>();
|
||||
00048
|
||||
00050
|
||||
00054 <font class="keywordtype">bool</font> <a class="code" href="classThread.html#a2">start</a>( THREAD_FUNCTION routine, <font class="keywordtype">void</font> * ptr = NULL );
|
||||
00054 <span class="keywordtype">bool</span> <a class="code" href="classThread.html#a2">start</a>( THREAD_FUNCTION routine, <span class="keywordtype">void</span> * ptr = NULL );
|
||||
00055
|
||||
00057
|
||||
00063 <font class="keywordtype">bool</font> <a class="code" href="classThread.html#a3">wait</a>( <font class="keywordtype">long</font> milliseconds = -1 );
|
||||
00063 <span class="keywordtype">bool</span> <a class="code" href="classThread.html#a3">wait</a>( <span class="keywordtype">long</span> milliseconds = -1 );
|
||||
00064
|
||||
00066 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classThread.html#d0">test</a>(<font class="keywordtype">void</font>);
|
||||
00066 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classThread.html#e0">test</a>(<span class="keywordtype">void</span>);
|
||||
00067
|
||||
00068 <font class="keyword">protected</font>:
|
||||
00068 <span class="keyword">protected</span>:
|
||||
00069
|
||||
00070 THREAD_HANDLE thread;
|
||||
00071
|
||||
00072 };
|
||||
00073
|
||||
00074 <font class="keyword">class </font>Mutex : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
00074 <span class="keyword">class </span>Mutex : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00075 {
|
||||
00076 <font class="keyword">public</font>:
|
||||
00076 <span class="keyword">public</span>:
|
||||
00078 Mutex();
|
||||
00079
|
||||
00081 ~Mutex();
|
||||
00082
|
||||
00084 <font class="keywordtype">void</font> lock(<font class="keywordtype">void</font>);
|
||||
00084 <span class="keywordtype">void</span> lock(<span class="keywordtype">void</span>);
|
||||
00085
|
||||
00087 <font class="keywordtype">void</font> unlock(<font class="keywordtype">void</font>);
|
||||
00087 <span class="keywordtype">void</span> unlock(<span class="keywordtype">void</span>);
|
||||
00088
|
||||
00089 <font class="keyword">protected</font>:
|
||||
00089 <span class="keyword">protected</span>:
|
||||
00090
|
||||
00091 MUTEX mutex;
|
||||
00092
|
||||
00093 };
|
||||
00094
|
||||
00095 <font class="preprocessor">#endif // defined(__THREAD_H)</font>
|
||||
</font></pre></div><HR>
|
||||
00095 <span class="preprocessor">#endif // defined(__THREAD_H)</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,36 +5,36 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>TubeBell.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00031 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>TubeBell.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00031 <span class="comment">/***************************************************/</span>
|
||||
00032
|
||||
00033 <font class="preprocessor">#if !defined(__TUBEBELL_H)</font>
|
||||
00034 <font class="preprocessor"></font><font class="preprocessor">#define __TUBEBELL_H</font>
|
||||
00035 <font class="preprocessor"></font>
|
||||
00036 <font class="preprocessor">#include "FM.h"</font>
|
||||
00033 <span class="preprocessor">#if !defined(__TUBEBELL_H)</span>
|
||||
00034 <span class="preprocessor"></span><span class="preprocessor">#define __TUBEBELL_H</span>
|
||||
00035 <span class="preprocessor"></span>
|
||||
00036 <span class="preprocessor">#include "FM.h"</span>
|
||||
00037
|
||||
00038 <font class="keyword">class </font><a class="code" href="classTubeBell.html">TubeBell</a> : <font class="keyword">public</font> <a class="code" href="classFM.html">FM</a>
|
||||
<a name="l00038"></a><a class="code" href="classTubeBell.html">00038</a> <span class="keyword">class </span><a class="code" href="classTubeBell.html">TubeBell</a> : <span class="keyword">public</span> <a class="code" href="classFM.html">FM</a>
|
||||
00039 {
|
||||
00040 <font class="keyword">public</font>:
|
||||
00040 <span class="keyword">public</span>:
|
||||
00042 <a class="code" href="classTubeBell.html#a0">TubeBell</a>();
|
||||
00043
|
||||
00045 <a class="code" href="classTubeBell.html#a1">~TubeBell</a>();
|
||||
00046
|
||||
00048 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00048 <span class="keywordtype">void</span> <a class="code" href="classTubeBell.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00049
|
||||
00051 MY_FLOAT <a class="code" href="classFM.html#a14">tick</a>();
|
||||
00051 MY_FLOAT <a class="code" href="classTubeBell.html#a3">tick</a>();
|
||||
00052 };
|
||||
00053
|
||||
00054 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00054 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,55 +5,55 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>TwoPole.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>TwoPole.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__TWOPOLE_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __TWOPOLE_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__TWOPOLE_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __TWOPOLE_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classTwoPole.html">TwoPole</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00020"></a><a class="code" href="classTwoPole.html">00020</a> <span class="keyword">class </span><a class="code" href="classTwoPole.html">TwoPole</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00023
|
||||
00025 <a class="code" href="classTwoPole.html#a0">TwoPole</a>();
|
||||
00026
|
||||
00028 <a class="code" href="classTwoPole.html#a1">~TwoPole</a>();
|
||||
00029
|
||||
00031 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00031 <span class="keywordtype">void</span> <a class="code" href="classTwoPole.html#a2">clear</a>(<span class="keywordtype">void</span>);
|
||||
00032
|
||||
00034 <font class="keywordtype">void</font> <a class="code" href="classTwoPole.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00034 <span class="keywordtype">void</span> <a class="code" href="classTwoPole.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00035
|
||||
00037 <font class="keywordtype">void</font> <a class="code" href="classTwoPole.html#a4">setA1</a>(MY_FLOAT a1);
|
||||
00037 <span class="keywordtype">void</span> <a class="code" href="classTwoPole.html#a4">setA1</a>(MY_FLOAT a1);
|
||||
00038
|
||||
00040 <font class="keywordtype">void</font> <a class="code" href="classTwoPole.html#a5">setA2</a>(MY_FLOAT a2);
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classTwoPole.html#a5">setA2</a>(MY_FLOAT a2);
|
||||
00041
|
||||
00043
|
||||
00056 <font class="keywordtype">void</font> <a class="code" href="classTwoPole.html#a6">setResonance</a>(MY_FLOAT frequency, MY_FLOAT radius, <font class="keywordtype">bool</font> normalize = FALSE);
|
||||
00056 <span class="keywordtype">void</span> <a class="code" href="classTwoPole.html#a6">setResonance</a>(MY_FLOAT frequency, MY_FLOAT radius, <span class="keywordtype">bool</span> normalize = FALSE);
|
||||
00057
|
||||
00059
|
||||
00063 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00063 <span class="keywordtype">void</span> <a class="code" href="classTwoPole.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00064
|
||||
00066 MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00066 MY_FLOAT <a class="code" href="classTwoPole.html#a8">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00067
|
||||
00069 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00069 MY_FLOAT <a class="code" href="classTwoPole.html#a9">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00070
|
||||
00072 MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00072 MY_FLOAT <a class="code" href="classTwoPole.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00073
|
||||
00075 MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00075 MY_FLOAT *<a class="code" href="classTwoPole.html#a10">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00076 };
|
||||
00077
|
||||
00078 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00078 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,54 +5,54 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>TwoZero.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00013 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>TwoZero.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00013 <span class="comment">/***************************************************/</span>
|
||||
00014
|
||||
00015 <font class="preprocessor">#if !defined(__TWOZERO_H)</font>
|
||||
00016 <font class="preprocessor"></font><font class="preprocessor">#define __TWOZERO_H</font>
|
||||
00017 <font class="preprocessor"></font>
|
||||
00018 <font class="preprocessor">#include "Filter.h"</font>
|
||||
00015 <span class="preprocessor">#if !defined(__TWOZERO_H)</span>
|
||||
00016 <span class="preprocessor"></span><span class="preprocessor">#define __TWOZERO_H</span>
|
||||
00017 <span class="preprocessor"></span>
|
||||
00018 <span class="preprocessor">#include "Filter.h"</span>
|
||||
00019
|
||||
00020 <font class="keyword">class </font><a class="code" href="classTwoZero.html">TwoZero</a> : <font class="keyword">protected</font> <a class="code" href="classFilter.html">Filter</a>
|
||||
<a name="l00020"></a><a class="code" href="classTwoZero.html">00020</a> <span class="keyword">class </span><a class="code" href="classTwoZero.html">TwoZero</a> : <span class="keyword">protected</span> <a class="code" href="classFilter.html">Filter</a>
|
||||
00021 {
|
||||
00022 <font class="keyword">public</font>:
|
||||
00022 <span class="keyword">public</span>:
|
||||
00024 <a class="code" href="classTwoZero.html#a0">TwoZero</a>();
|
||||
00025
|
||||
00027 <a class="code" href="classTwoZero.html#a1">~TwoZero</a>();
|
||||
00028
|
||||
00030 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a3">clear</a>(<font class="keywordtype">void</font>);
|
||||
00030 <span class="keywordtype">void</span> <a class="code" href="classTwoZero.html#a2">clear</a>(<span class="keywordtype">void</span>);
|
||||
00031
|
||||
00033 <font class="keywordtype">void</font> <a class="code" href="classTwoZero.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00033 <span class="keywordtype">void</span> <a class="code" href="classTwoZero.html#a3">setB0</a>(MY_FLOAT b0);
|
||||
00034
|
||||
00036 <font class="keywordtype">void</font> <a class="code" href="classTwoZero.html#a4">setB1</a>(MY_FLOAT b1);
|
||||
00036 <span class="keywordtype">void</span> <a class="code" href="classTwoZero.html#a4">setB1</a>(MY_FLOAT b1);
|
||||
00037
|
||||
00039 <font class="keywordtype">void</font> <a class="code" href="classTwoZero.html#a5">setB2</a>(MY_FLOAT b2);
|
||||
00039 <span class="keywordtype">void</span> <a class="code" href="classTwoZero.html#a5">setB2</a>(MY_FLOAT b2);
|
||||
00040
|
||||
00042
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classTwoZero.html#a6">setNotch</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classTwoZero.html#a6">setNotch</a>(MY_FLOAT frequency, MY_FLOAT radius);
|
||||
00053
|
||||
00055
|
||||
00059 <font class="keywordtype">void</font> <a class="code" href="classFilter.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00059 <span class="keywordtype">void</span> <a class="code" href="classTwoZero.html#a7">setGain</a>(MY_FLOAT theGain);
|
||||
00060
|
||||
00062 MY_FLOAT <a class="code" href="classFilter.html#a8">getGain</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00062 MY_FLOAT <a class="code" href="classTwoZero.html#a8">getGain</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00063
|
||||
00065 MY_FLOAT <a class="code" href="classFilter.html#a9">lastOut</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
|
||||
00065 MY_FLOAT <a class="code" href="classTwoZero.html#a9">lastOut</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
|
||||
00066
|
||||
00068 MY_FLOAT <a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00068 MY_FLOAT <a class="code" href="classTwoZero.html#a10">tick</a>(MY_FLOAT sample);
|
||||
00069
|
||||
00071 MY_FLOAT *<a class="code" href="classFilter.html#a10">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00071 MY_FLOAT *<a class="code" href="classTwoZero.html#a10">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00072 };
|
||||
00073
|
||||
00074 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00074 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,51 +5,51 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Vector3D.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00009 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Vector3D.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00009 <span class="comment">/***************************************************/</span>
|
||||
00010
|
||||
00011 <font class="preprocessor">#if !defined(__VECTOR3D_H)</font>
|
||||
00012 <font class="preprocessor"></font><font class="preprocessor">#define __VECTOR3D_H</font>
|
||||
00013 <font class="preprocessor"></font>
|
||||
00014 <font class="keyword">class </font><a class="code" href="classVector3D.html">Vector3D</a> {
|
||||
00011 <span class="preprocessor">#if !defined(__VECTOR3D_H)</span>
|
||||
00012 <span class="preprocessor"></span><span class="preprocessor">#define __VECTOR3D_H</span>
|
||||
00013 <span class="preprocessor"></span>
|
||||
<a name="l00014"></a><a class="code" href="classVector3D.html">00014</a> <span class="keyword">class </span><a class="code" href="classVector3D.html">Vector3D</a> {
|
||||
00015
|
||||
00016 <font class="keyword">public</font>:
|
||||
00018 <a class="code" href="classVector3D.html#a0">Vector3D</a>(<font class="keywordtype">double</font> initX=0.0, <font class="keywordtype">double</font> initY=0.0, <font class="keywordtype">double</font> initZ=0.0);
|
||||
00016 <span class="keyword">public</span>:
|
||||
00018 <a class="code" href="classVector3D.html#a0">Vector3D</a>(<span class="keywordtype">double</span> initX=0.0, <span class="keywordtype">double</span> initY=0.0, <span class="keywordtype">double</span> initZ=0.0);
|
||||
00019
|
||||
00021 <a class="code" href="classVector3D.html#a1">~Vector3D</a>();
|
||||
00022
|
||||
00024 <font class="keywordtype">double</font> <a class="code" href="classVector3D.html#a2">getX</a>();
|
||||
00024 <span class="keywordtype">double</span> <a class="code" href="classVector3D.html#a2">getX</a>();
|
||||
00025
|
||||
00027 <font class="keywordtype">double</font> <a class="code" href="classVector3D.html#a3">getY</a>();
|
||||
00027 <span class="keywordtype">double</span> <a class="code" href="classVector3D.html#a3">getY</a>();
|
||||
00028
|
||||
00030 <font class="keywordtype">double</font> <a class="code" href="classVector3D.html#a4">getZ</a>();
|
||||
00030 <span class="keywordtype">double</span> <a class="code" href="classVector3D.html#a4">getZ</a>();
|
||||
00031
|
||||
00033 <font class="keywordtype">double</font> <a class="code" href="classVector3D.html#a5">getLength</a>();
|
||||
00033 <span class="keywordtype">double</span> <a class="code" href="classVector3D.html#a5">getLength</a>();
|
||||
00034
|
||||
00036 <font class="keywordtype">void</font> <a class="code" href="classVector3D.html#a6">setXYZ</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
||||
00036 <span class="keywordtype">void</span> <a class="code" href="classVector3D.html#a6">setXYZ</a>(<span class="keywordtype">double</span> anX, <span class="keywordtype">double</span> aY, <span class="keywordtype">double</span> aZ);
|
||||
00037
|
||||
00039 <font class="keywordtype">void</font> <a class="code" href="classVector3D.html#a7">setX</a>(<font class="keywordtype">double</font> aval);
|
||||
00039 <span class="keywordtype">void</span> <a class="code" href="classVector3D.html#a7">setX</a>(<span class="keywordtype">double</span> aval);
|
||||
00040
|
||||
00042 <font class="keywordtype">void</font> <a class="code" href="classVector3D.html#a8">setY</a>(<font class="keywordtype">double</font> aval);
|
||||
00042 <span class="keywordtype">void</span> <a class="code" href="classVector3D.html#a8">setY</a>(<span class="keywordtype">double</span> aval);
|
||||
00043
|
||||
00045 <font class="keywordtype">void</font> <a class="code" href="classVector3D.html#a9">setZ</a>(<font class="keywordtype">double</font> aval);
|
||||
00045 <span class="keywordtype">void</span> <a class="code" href="classVector3D.html#a9">setZ</a>(<span class="keywordtype">double</span> aval);
|
||||
00046
|
||||
00047 <font class="keyword">protected</font>:
|
||||
00048 <font class="keywordtype">double</font> myX;
|
||||
00049 <font class="keywordtype">double</font> myY;
|
||||
00050 <font class="keywordtype">double</font> myZ;
|
||||
00047 <span class="keyword">protected</span>:
|
||||
00048 <span class="keywordtype">double</span> myX;
|
||||
00049 <span class="keywordtype">double</span> myY;
|
||||
00050 <span class="keywordtype">double</span> myZ;
|
||||
00051 };
|
||||
00052
|
||||
00053 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00053 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,58 +5,58 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>VoicForm.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00026 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>VoicForm.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00026 <span class="comment">/***************************************************/</span>
|
||||
00027
|
||||
00028 <font class="preprocessor">#if !defined(__VOICFORM_H)</font>
|
||||
00029 <font class="preprocessor"></font><font class="preprocessor">#define __VOICFORM_H</font>
|
||||
00030 <font class="preprocessor"></font>
|
||||
00031 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00032 <font class="preprocessor">#include "Envelope.h"</font>
|
||||
00033 <font class="preprocessor">#include "Noise.h"</font>
|
||||
00034 <font class="preprocessor">#include "SingWave.h"</font>
|
||||
00035 <font class="preprocessor">#include "FormSwep.h"</font>
|
||||
00036 <font class="preprocessor">#include "OnePole.h"</font>
|
||||
00037 <font class="preprocessor">#include "OneZero.h"</font>
|
||||
00028 <span class="preprocessor">#if !defined(__VOICFORM_H)</span>
|
||||
00029 <span class="preprocessor"></span><span class="preprocessor">#define __VOICFORM_H</span>
|
||||
00030 <span class="preprocessor"></span>
|
||||
00031 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00032 <span class="preprocessor">#include "Envelope.h"</span>
|
||||
00033 <span class="preprocessor">#include "Noise.h"</span>
|
||||
00034 <span class="preprocessor">#include "SingWave.h"</span>
|
||||
00035 <span class="preprocessor">#include "FormSwep.h"</span>
|
||||
00036 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00037 <span class="preprocessor">#include "OneZero.h"</span>
|
||||
00038
|
||||
00039 <font class="keyword">class </font><a class="code" href="classVoicForm.html">VoicForm</a> : <font class="keyword">public</font> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
<a name="l00039"></a><a class="code" href="classVoicForm.html">00039</a> <span class="keyword">class </span><a class="code" href="classVoicForm.html">VoicForm</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00040 {
|
||||
00041 <font class="keyword">public</font>:
|
||||
00041 <span class="keyword">public</span>:
|
||||
00043 <a class="code" href="classVoicForm.html#a0">VoicForm</a>();
|
||||
00044
|
||||
00046 <a class="code" href="classVoicForm.html#a1">~VoicForm</a>();
|
||||
00047
|
||||
00049 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a2">clear</a>();
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a2">clear</a>();
|
||||
00050
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a4">setFrequency</a>(MY_FLOAT frequency);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00053
|
||||
00055 <font class="keywordtype">bool</font> <a class="code" href="classVoicForm.html#a4">setPhoneme</a>(<font class="keyword">const</font> <font class="keywordtype">char</font>* phoneme);
|
||||
00055 <span class="keywordtype">bool</span> <a class="code" href="classVoicForm.html#a4">setPhoneme</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* phoneme);
|
||||
00056
|
||||
00058 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a5">setVoiced</a>(MY_FLOAT vGain);
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a5">setVoiced</a>(MY_FLOAT vGain);
|
||||
00059
|
||||
00061 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a6">setUnVoiced</a>(MY_FLOAT nGain);
|
||||
00061 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a6">setUnVoiced</a>(MY_FLOAT nGain);
|
||||
00062
|
||||
00064 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a7">setFilterSweepRate</a>(<font class="keywordtype">int</font> whichOne, MY_FLOAT rate);
|
||||
00064 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a7">setFilterSweepRate</a>(<span class="keywordtype">int</span> whichOne, MY_FLOAT rate);
|
||||
00065
|
||||
00067 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a8">setPitchSweepRate</a>(MY_FLOAT rate);
|
||||
00067 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a8">setPitchSweepRate</a>(MY_FLOAT rate);
|
||||
00068
|
||||
00070 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a9">speak</a>();
|
||||
00070 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a9">speak</a>();
|
||||
00071
|
||||
00073 <font class="keywordtype">void</font> <a class="code" href="classVoicForm.html#a10">quiet</a>();
|
||||
00073 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a10">quiet</a>();
|
||||
00074
|
||||
00076 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a2">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00076 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a11">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00077
|
||||
00079 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00079 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a12">noteOff</a>(MY_FLOAT amplitude);
|
||||
00080
|
||||
00082 MY_FLOAT <a class="code" href="classInstrmnt.html#a6">tick</a>();
|
||||
00082 MY_FLOAT <a class="code" href="classVoicForm.html#a13">tick</a>();
|
||||
00083
|
||||
00085 <font class="keywordtype">void</font> <a class="code" href="classInstrmnt.html#a8">controlChange</a>(<font class="keywordtype">int</font> number, MY_FLOAT value);
|
||||
00085 <span class="keywordtype">void</span> <a class="code" href="classVoicForm.html#a14">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00086
|
||||
00087 <font class="keyword">protected</font>:
|
||||
00087 <span class="keyword">protected</span>:
|
||||
00088 <a class="code" href="classSingWave.html">SingWave</a> *voiced;
|
||||
00089 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00090 <a class="code" href="classEnvelope.html">Envelope</a> *noiseEnv;
|
||||
@@ -66,12 +66,12 @@
|
||||
00094
|
||||
00095 };
|
||||
00096
|
||||
00097 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00097 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
@@ -5,89 +5,94 @@
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF">
|
||||
<CENTER>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
||||
<img src="princeton.gif"> <img src="ccrma.gif"> <img src="mcgill.gif"><P>
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.2.8.1 -->
|
||||
<h1>Voicer.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
||||
00030 <font class="comment">/***************************************************/</font>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Voicer.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00030 <span class="comment">/***************************************************/</span>
|
||||
00031
|
||||
00032 <font class="preprocessor">#if !defined(__VOICER_H)</font>
|
||||
00033 <font class="preprocessor"></font><font class="preprocessor">#define __VOICER_H</font>
|
||||
00034 <font class="preprocessor"></font>
|
||||
00035 <font class="preprocessor">#include "Stk.h"</font>
|
||||
00036 <font class="preprocessor">#include "Instrmnt.h"</font>
|
||||
00032 <span class="preprocessor">#if !defined(__VOICER_H)</span>
|
||||
00033 <span class="preprocessor"></span><span class="preprocessor">#define __VOICER_H</span>
|
||||
00034 <span class="preprocessor"></span>
|
||||
00035 <span class="preprocessor">#include "Stk.h"</span>
|
||||
00036 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00037
|
||||
00038 <font class="keyword">class </font><a class="code" href="classVoicer.html">Voicer</a> : <font class="keyword">public</font> <a class="code" href="classStk.html">Stk</a>
|
||||
<a name="l00038"></a><a class="code" href="classVoicer.html">00038</a> <span class="keyword">class </span><a class="code" href="classVoicer.html">Voicer</a> : <span class="keyword">public</span> <a class="code" href="classStk.html">Stk</a>
|
||||
00039 {
|
||||
00040 <font class="keyword">public</font>:
|
||||
00042 <a class="code" href="classVoicer.html#a0">Voicer</a>( <font class="keywordtype">int</font> maxInstruments, MY_FLOAT decayTime=0.2 );
|
||||
00040 <span class="keyword">public</span>:
|
||||
00042 <a class="code" href="classVoicer.html#a0">Voicer</a>( <span class="keywordtype">int</span> maxInstruments, MY_FLOAT decayTime=0.2 );
|
||||
00043
|
||||
00045 <a class="code" href="classVoicer.html#a1">~Voicer</a>();
|
||||
00046
|
||||
00048
|
||||
00052 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a2">addInstrument</a>( <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument, <font class="keywordtype">int</font> channel=0 );
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a2">addInstrument</a>( <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument, <span class="keywordtype">int</span> channel=0 );
|
||||
00053
|
||||
00055
|
||||
00060 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a3">removeInstrument</a>( <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument );
|
||||
00060 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a3">removeInstrument</a>( <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument );
|
||||
00061
|
||||
00063
|
||||
00071 <font class="keywordtype">long</font> <a class="code" href="classVoicer.html#a4">noteOn</a>( MY_FLOAT noteNumber, MY_FLOAT amplitude, <font class="keywordtype">int</font> channel=0 );
|
||||
00071 <span class="keywordtype">long</span> <a class="code" href="classVoicer.html#a4">noteOn</a>( MY_FLOAT noteNumber, MY_FLOAT amplitude, <span class="keywordtype">int</span> channel=0 );
|
||||
00072
|
||||
00074
|
||||
00077 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a5">noteOff</a>( MY_FLOAT noteNumber, MY_FLOAT amplitude, <font class="keywordtype">int</font> channel=0 );
|
||||
00077 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a5">noteOff</a>( MY_FLOAT noteNumber, MY_FLOAT amplitude, <span class="keywordtype">int</span> channel=0 );
|
||||
00078
|
||||
00080
|
||||
00083 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a5">noteOff</a>( <font class="keywordtype">long</font> tag, MY_FLOAT amplitude );
|
||||
00083 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a5">noteOff</a>( <span class="keywordtype">long</span> tag, MY_FLOAT amplitude );
|
||||
00084
|
||||
00086
|
||||
00089 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a7">setFrequency</a>( MY_FLOAT noteNumber, <font class="keywordtype">int</font> channel=0 );
|
||||
00089 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a7">setFrequency</a>( MY_FLOAT noteNumber, <span class="keywordtype">int</span> channel=0 );
|
||||
00090
|
||||
00092
|
||||
00095 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a7">setFrequency</a>( <font class="keywordtype">long</font> tag, MY_FLOAT noteNumber );
|
||||
00095 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a7">setFrequency</a>( <span class="keywordtype">long</span> tag, MY_FLOAT noteNumber );
|
||||
00096
|
||||
00098 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a9">pitchBend</a>( MY_FLOAT value, <font class="keywordtype">int</font> channel=0 );
|
||||
00098 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a9">pitchBend</a>( MY_FLOAT value, <span class="keywordtype">int</span> channel=0 );
|
||||
00099
|
||||
00101 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a9">pitchBend</a>( <font class="keywordtype">long</font> tag, MY_FLOAT value );
|
||||
00101 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a9">pitchBend</a>( <span class="keywordtype">long</span> tag, MY_FLOAT value );
|
||||
00102
|
||||
00104 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a11">controlChange</a>( <font class="keywordtype">int</font> number, MY_FLOAT value, <font class="keywordtype">int</font> channel=0 );
|
||||
00104 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a11">controlChange</a>( <span class="keywordtype">int</span> number, MY_FLOAT value, <span class="keywordtype">int</span> channel=0 );
|
||||
00105
|
||||
00107 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a11">controlChange</a>( <font class="keywordtype">long</font> tag, <font class="keywordtype">int</font> number, MY_FLOAT value );
|
||||
00107 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a11">controlChange</a>( <span class="keywordtype">long</span> tag, <span class="keywordtype">int</span> number, MY_FLOAT value );
|
||||
00108
|
||||
00110 <font class="keywordtype">void</font> <a class="code" href="classVoicer.html#a13">silence</a>( <font class="keywordtype">void</font> );
|
||||
00110 <span class="keywordtype">void</span> <a class="code" href="classVoicer.html#a13">silence</a>( <span class="keywordtype">void</span> );
|
||||
00111
|
||||
00113 MY_FLOAT <a class="code" href="classVoicer.html#a14">tick</a>();
|
||||
00114
|
||||
00116 MY_FLOAT *<a class="code" href="classVoicer.html#a14">tick</a>(MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
||||
00116 MY_FLOAT *<a class="code" href="classVoicer.html#a14">tick</a>(MY_FLOAT *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00117
|
||||
00119 MY_FLOAT <a class="code" href="classVoicer.html#a16">lastOut</a>() <font class="keyword">const</font>;
|
||||
00119 MY_FLOAT <a class="code" href="classVoicer.html#a16">lastOut</a>() <span class="keyword">const</span>;
|
||||
00120
|
||||
00121 <font class="keyword">protected</font>:
|
||||
00122
|
||||
00123 <font class="keyword">typedef</font> <font class="keyword">struct </font>{
|
||||
00124 <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument;
|
||||
00125 <font class="keywordtype">long</font> tag;
|
||||
00126 MY_FLOAT noteNumber;
|
||||
00127 MY_FLOAT frequency;
|
||||
00128 <font class="keywordtype">int</font> sounding;
|
||||
00129 <font class="keywordtype">int</font> channel;
|
||||
00130 } Voice;
|
||||
00131
|
||||
00132 <font class="keywordtype">int</font> nVoices;
|
||||
00133 <font class="keywordtype">int</font> maxVoices;
|
||||
00134 Voice *voices;
|
||||
00135 <font class="keywordtype">long</font> tags;
|
||||
00136 <font class="keywordtype">int</font> muteTime;
|
||||
00137 MY_FLOAT lastOutput;
|
||||
00138
|
||||
00139 };
|
||||
00140
|
||||
00141 <font class="preprocessor">#endif</font>
|
||||
</font></pre></div><HR>
|
||||
00122 MY_FLOAT <a class="code" href="classVoicer.html#a17">lastOutLeft</a>() <span class="keyword">const</span>;
|
||||
00123
|
||||
00125 MY_FLOAT <a class="code" href="classVoicer.html#a18">lastOutRight</a>() <span class="keyword">const</span>;
|
||||
00126
|
||||
00127 <span class="keyword">protected</span>:
|
||||
00128
|
||||
00129 <span class="keyword">typedef</span> <span class="keyword">struct </span>{
|
||||
00130 <a class="code" href="classInstrmnt.html">Instrmnt</a> *instrument;
|
||||
00131 <span class="keywordtype">long</span> tag;
|
||||
00132 MY_FLOAT noteNumber;
|
||||
00133 MY_FLOAT frequency;
|
||||
00134 <span class="keywordtype">int</span> sounding;
|
||||
00135 <span class="keywordtype">int</span> channel;
|
||||
00136 } Voice;
|
||||
00137
|
||||
00138 <span class="keywordtype">int</span> nVoices;
|
||||
00139 <span class="keywordtype">int</span> maxVoices;
|
||||
00140 Voice *voices;
|
||||
00141 <span class="keywordtype">long</span> tags;
|
||||
00142 <span class="keywordtype">int</span> muteTime;
|
||||
00143 MY_FLOAT lastOutput;
|
||||
00144 MY_FLOAT lastOutputLeft;
|
||||
00145 MY_FLOAT lastOutputRight;
|
||||
00146 };
|
||||
00147
|
||||
00148 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
</BODY>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user