diff options
-rwxr-xr-x | experimental/Object.h | 142 | ||||
-rwxr-xr-x | experimental/stk.pd | 76 |
2 files changed, 0 insertions, 218 deletions
diff --git a/experimental/Object.h b/experimental/Object.h deleted file mode 100755 index 6b453c1..0000000 --- a/experimental/Object.h +++ /dev/null @@ -1,142 +0,0 @@ -/*********************************************/
-/* Object Class, by Perry R. Cook, 1995-99 */
-/* */
-/* This is mostly here for compatibility */
-/* with Objective C. We'll also stick */
-/* global defines here, so everyone will */
-/* see them. */
-/*********************************************/
-
-#if !defined(__Object_h)
-#define __Object_h
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-class Object
-{
- public:
- protected:
- Object();
- virtual ~Object();
-};
-
-/* The OS type definitions are made in the Makefile */
-
-#if defined(__OS_NeXT_) /* For NeXTStep - Black or White Hardware */
- #define RANDLIMIT 2147483647
-#elif defined(__OS_IRIX_) /* For SGI */
- #define __STK_REALTIME_
- #define RANDLIMIT 2147483647
-#elif defined(__OS_Linux_) /* For Linux */
- #define __STK_REALTIME_
- #define __OSS_API_ /* Use OSS API */
-// #define __MIDIATOR_ /* Use special MIDIator support */
-// #define __ALSA_API_ /* Use ALSA API */
- #define __LITTLE_ENDIAN__
- #define RANDLIMIT 2147483647
-#elif defined(__OS_Win_) /* For WindowsXX or NT */
- #define __STK_REALTIME_
- #define __LITTLE_ENDIAN__
- #define RANDLIMIT 32767
-#endif
-
-/*
- Real-time audio input and output buffer size. If clicks
- are occuring in the input or output sound stream, a
- larger buffer size may help. Larger buffer sizes, however,
- produce more latency between input and output.
-*/
-#define RT_BUFFER_SIZE 256
-
-/*
- The following definition is concatenated to the beginning
- of all references to rawwave files in the various STK core
- classes (ex. Clarinet.cpp). If you wish to move the
- rawwaves directory to a different location in your file
- system, you will need to set this path definition
- appropriately. The current definition is a relative reference
- that will work "out of the box" for the STK distribution.
-*/
-#ifndef RAWWAVE_PATH
-#define RAWWAVE_PATH "../../"
-#endif
-
-/* Sampling Rate */
-#ifndef SRATE
-#define SRATE (MY_FLOAT) 22050.0
-#endif
-
-/* Other SRATE derived defines */
-#define SRATE_OVER_TWO (MY_FLOAT) (SRATE / 2)
-#define ONE_OVER_SRATE (MY_FLOAT) (1 / SRATE)
-#define TWO_PI_OVER_SRATE (MY_FLOAT) (2 * PI / SRATE)
-
-/* Yer Basic Trigonometric constants */
-#if !defined(PI)
- #define PI (MY_FLOAT) 3.14159265359
-#endif
-#define TWO_PI (MY_FLOAT) (MY_FLOAT) (2 * PI)
-#define ONE_OVER_TWO_PI (MY_FLOAT) (1.0 / PI)
-#define SQRT_TWO 1.414213562
-
-/* Useful random number generator values */
-#define ONE_OVER_RANDLIMIT (1.0/RANDLIMIT)
-#define RANDLIMIT_OVER_TWO (int)(RANDLIMIT/2)
-
-/* FPU Underflow Limit
- * The IEEE specification doesn't call for automatic
- * zeroing of floating-point values when they reach
- * their numerical limits. Instead, most processors
- * switch to a much more computation-intensive mode
- * when a FPU underflow occurs. We set a lower limit
- * here for our own (not so efficient) checks. Here's
- * a useful macro for limiting MY_FLOATs. At this time,
- * no FPU underflow checks are being performed.
- */
-
-#define FPU_UFLOW_LIMIT 0.0000000001
-#define LIMIT_MY_FLOAT(j) ((((j)<(MY_FLOAT)FPU_UFLOW_LIMIT)&&((j)>(MY_FLOAT)-FPU_UFLOW_LIMIT))?(MY_FLOAT)0.0:(j))
-
-/* States for Envelopes, etc. */
-#define ATTACK 0
-#define DECAY 1
-#define SUSTAIN 2
-#define RELEASE 3
-
-/* Machine dependent stuff, possibly useful for optimization.
- * For example, changing double to float here increases
- * performance (speed) by a whopping 4-6% on 486-flavor machines.
- * BUT!! a change from float to double here increases speed by
- * 30% or so on SGI machines.
-*/
-#define MY_FLOAT double
-//#define MY_FLOAT float
-
-/* MY_MULTI is just a pointer to MY_FLOAT. This type is used
- * to pass multichannel data back and forth within STK.
-*/
-typedef MY_FLOAT *MY_MULTI;
-
-/* INT16 is just that ... a 16-bit signed integer. */
-typedef signed short INT16;
-
-/* INT32 is just that ... a 32-bit signed integer. */
-typedef int INT32;
-
-/* Boolean values */
-#define FALSE 0
-#define TRUE 1
-
-/* Debugging define, causes massive printf's to come out.
- * Also enables timing calculations in WaveOut class, other stuff.
- * Uncomment to enable.
- */
-//#define _debug_ 1
-
-/* MIDI definitions */
-#define NORM_7 (MY_FLOAT) 0.0078125 /* this is 1/128 */
-
-#endif
diff --git a/experimental/stk.pd b/experimental/stk.pd deleted file mode 100755 index 85c161c..0000000 --- a/experimental/stk.pd +++ /dev/null @@ -1,76 +0,0 @@ -#N canvas 226 44 704 495 12;
-#X obj 50 422 dac~;
-#X obj 19 295 stk Rhodey;
-#X obj 19 321 throw~ out1;
-#X obj 61 379 catch~ out1;
-#X obj 19 246 mtof;
-#X floatatom 19 87 0 0 0;
-#X msg 56 247 0;
-#X floatatom 100 112 0 0 0;
-#X msg 56 112 bang;
-#X obj 56 134 pipe 600;
-#X floatatom 97 230 0 0 0;
-#X obj 97 254 * 0.01;
-#X text 95 211 velocity;
-#X obj 380 383 stk Flute;
-#X obj 380 350 mtof;
-#X floatatom 380 277 0 0 0;
-#X msg 417 351 0;
-#X floatatom 461 302 0 0 0;
-#X msg 417 302 bang;
-#X obj 417 324 pipe 600;
-#X floatatom 483 331 0 0 0;
-#X obj 483 355 * 0.01;
-#X text 481 312 velocity;
-#X obj 380 411 throw~ out1;
-#X floatatom 557 299 0 0 0;
-#X obj 130 319 throw~ out1;
-#X floatatom 208 242 0 0 0;
-#X obj 208 266 * 0.01;
-#X text 206 223 velocity;
-#X obj 130 293 stk BeeThree;
-#X msg 557 323 control 1 \$1;
-#X msg 161 97 print;
-#X text 233 96 print: prints out all available stk instruments;
-#X text 232 113 control f1 f2: sets the control channel f1 to the;
-#X text 255 129 value of f2;
-#X text 230 150 control1: short for control 1 f2;
-#X text 28 14 PD interface to Perry Cook's STK;
-#X text 231 48 Messages;
-#X text 229 63 ===========;
-#X text 231 79 float number: sets the frequency in Hz;
-#X text 230 171 aftertouch \, pitchbend: MIDI values for aftertouch
-and pitchbend;
-#X msg 319 248 print;
-#X text 317 224 click to see available instruments;
-#X connect 1 0 2 0;
-#X connect 3 0 0 0;
-#X connect 3 0 0 1;
-#X connect 4 0 1 0;
-#X connect 4 0 29 0;
-#X connect 5 0 4 0;
-#X connect 5 0 8 0;
-#X connect 6 0 1 0;
-#X connect 6 0 29 0;
-#X connect 7 0 9 1;
-#X connect 8 0 9 0;
-#X connect 9 0 6 0;
-#X connect 10 0 11 0;
-#X connect 11 0 1 1;
-#X connect 13 0 23 0;
-#X connect 14 0 13 0;
-#X connect 15 0 14 0;
-#X connect 15 0 18 0;
-#X connect 16 0 13 0;
-#X connect 17 0 19 1;
-#X connect 18 0 19 0;
-#X connect 19 0 16 0;
-#X connect 20 0 21 0;
-#X connect 21 0 13 1;
-#X connect 24 0 30 0;
-#X connect 26 0 27 0;
-#X connect 27 0 29 1;
-#X connect 29 0 25 0;
-#X connect 30 0 13 0;
-#X connect 31 0 1 0;
-#X connect 41 0 13 0;
|