1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 07:40:05 +02:00
Leland Lucius 15b9bb96cd Update nyquist to SVN r331 (r3.16+)
------------------------------------------------------------------------
   r331 | rbd | 2020-10-13 12:40:12 -0500 (Tue, 13 Oct 2020) | 2 lines

   Also forgot to install NyquistWords.txt

   ------------------------------------------------------------------------
   r330 | rbd | 2020-10-13 12:34:06 -0500 (Tue, 13 Oct 2020) | 2 lines

   Forgot to move nyquistman.pdf from docsrc/s2h to release

   ------------------------------------------------------------------------
   r329 | rbd | 2020-10-13 11:32:33 -0500 (Tue, 13 Oct 2020) | 2 lines

   Updated some version numbers for 3.16.

   ------------------------------------------------------------------------
   r328 | rbd | 2020-10-13 11:20:52 -0500 (Tue, 13 Oct 2020) | 2 lines

   Fixed NyquistIDE antialiasing for plot text, fix format of message.

   ------------------------------------------------------------------------
   r327 | rbd | 2020-10-12 21:01:53 -0500 (Mon, 12 Oct 2020) | 2 lines

   Fixed a couple of format problems in manual. This version of Nyquist has been tested wtih macOS, Linux, 32&64-bit Windows.

   ------------------------------------------------------------------------
   r326 | rbd | 2020-10-12 20:21:38 -0500 (Mon, 12 Oct 2020) | 1 line

   Modified WIN32 32-bit XLisp to use 64-bit FIXNUMs. This allows XLisp and Nyquist to handle big sounds even on 32-bit machines. Probably at some cost, but inner loops are mostly float and int32, and the Nyquist release is 64-bit anyway. Maybe we'll have to run some benchmarks on Audacity, which is still 32-bit on Windows.
   ------------------------------------------------------------------------
   r325 | rbd | 2020-10-12 13:16:57 -0500 (Mon, 12 Oct 2020) | 1 line

   Win64 passes bigfiletest.lsp now. This version should work on all 64-bit systems now. These changes untested on Linux and macOS.
   ------------------------------------------------------------------------
   r324 | rbd | 2020-10-11 21:31:53 -0500 (Sun, 11 Oct 2020) | 2 lines

   I couldn't free enough space on my linux box, so I adjusted the bigfiletest to write 8-bit ulaw. It's still >4GB and >4G samples. Works on Linux.

   ------------------------------------------------------------------------
   r323 | rbd | 2020-10-11 19:41:25 -0500 (Sun, 11 Oct 2020) | 2 lines

   Missing file from last commit.

   ------------------------------------------------------------------------
   r322 | rbd | 2020-10-11 19:36:08 -0500 (Sun, 11 Oct 2020) | 1 line

   Found another case where WIN64 needs int64_t instead of long for sample count.
   ------------------------------------------------------------------------
   r321 | rbd | 2020-10-11 19:33:25 -0500 (Sun, 11 Oct 2020) | 3 lines

   Fixed s-save to	handle optional	and keyword parameters (which should never have	been mixed in the first	place).	Documentation cleanup - should be final for this version.

   ------------------------------------------------------------------------
   r320 | rbd | 2020-10-11 14:44:37 -0500 (Sun, 11 Oct 2020) | 2 lines

   Fixes to handle IRCAM sound format and tests for big file io working on macOS.

   ------------------------------------------------------------------------
   r319 | rbd | 2020-10-10 21:31:58 -0500 (Sat, 10 Oct 2020) | 2 lines

   Changes for linux and to avoid compiler warnings on linux.

   ------------------------------------------------------------------------
   r318 | rbd | 2020-10-10 20:50:23 -0500 (Sat, 10 Oct 2020) | 1 line

   This is the test used for Win64 version.
   ------------------------------------------------------------------------
   r317 | rbd | 2020-10-10 20:34:34 -0500 (Sat, 10 Oct 2020) | 1 line

   This version works on Win64. Need to test changes on macOS and linux.
   ------------------------------------------------------------------------
   r316 | rbd | 2020-10-10 19:59:15 -0500 (Sat, 10 Oct 2020) | 2 lines

   PWL changes to avoid compiler warning.

   ------------------------------------------------------------------------
   r315 | rbd | 2020-10-10 19:34:04 -0500 (Sat, 10 Oct 2020) | 2 lines

   A few more changes for 64-bit sample counts on Win64

   ------------------------------------------------------------------------
   r314 | rbd | 2020-10-10 13:19:42 -0500 (Sat, 10 Oct 2020) | 2 lines

   Fixed int64_t declaration in gate.alg

   ------------------------------------------------------------------------
   r313 | rbd | 2020-10-10 12:07:40 -0500 (Sat, 10 Oct 2020) | 2 lines

   Fixes to gate for long sounds

   ------------------------------------------------------------------------
   r312 | rbd | 2020-10-10 11:47:29 -0500 (Sat, 10 Oct 2020) | 2 lines

   Fixed sound_save types for intgen

   ------------------------------------------------------------------------
   r311 | rbd | 2020-10-10 11:09:01 -0500 (Sat, 10 Oct 2020) | 2 lines

   Fixed a 64-bit sample count problem in siosc.alg

   ------------------------------------------------------------------------
   r310 | rbd | 2020-10-10 11:03:12 -0500 (Sat, 10 Oct 2020) | 2 lines

   Fixed sndmax to handle 64-bit sample counts.

   ------------------------------------------------------------------------
   r309 | rbd | 2020-10-10 10:57:04 -0500 (Sat, 10 Oct 2020) | 2 lines

   Forgot to re-translate all tran/*.alg files with fix for int64 cast to int32. This version compiles on macOS and ready for test on Win64.

   ------------------------------------------------------------------------
   r308 | rbd | 2020-10-10 10:16:05 -0500 (Sat, 10 Oct 2020) | 2 lines

   Everything seems to compile and run on macOS now. Moving changes to Windows for test.

   ------------------------------------------------------------------------
   r307 | rbd | 2020-10-10 09:23:45 -0500 (Sat, 10 Oct 2020) | 1 line

   Added casts to avoid compiler warnings and to review changes to support 64-bit sample counts on Windows. Still not complete, and waiting to regenerate and compile tran directory code after updates to translation code that will insert more casts.
   ------------------------------------------------------------------------
   r306 | rbd | 2020-10-09 21:55:15 -0500 (Fri, 09 Oct 2020) | 2 lines

   Rebuilt seqfnint.c from header files.

   ------------------------------------------------------------------------
   r305 | rbd | 2020-10-09 21:53:33 -0500 (Fri, 09 Oct 2020) | 1 line

   Changed some FIXNUMS to LONG to avoid compiler warnings in seqfnint.c
   ------------------------------------------------------------------------
   r304 | rbd | 2020-10-09 21:44:03 -0500 (Fri, 09 Oct 2020) | 2 lines

   I discovered forgotten regression-test.lsp and added test that requires 64-bit sample counts to pass. Fixed a few bugs revealed by running the type-checking regression tests.

   ------------------------------------------------------------------------
   r303 | rbd | 2020-10-09 12:28:58 -0500 (Fri, 09 Oct 2020) | 2 lines

   Changes for 64-bit sample counts broke mult-channel s-save. Fixed in the commit for macOS.

   ------------------------------------------------------------------------
   r302 | rbd | 2020-10-09 10:03:39 -0500 (Fri, 09 Oct 2020) | 2 lines

   Changed snd-play to return samples computed and used that to make a test for computing long sounds that would overflow 32-bit length counts.

   ------------------------------------------------------------------------
   r301 | rbd | 2020-10-09 09:11:26 -0500 (Fri, 09 Oct 2020) | 2 lines

   corrected mistake in delaycv.alg and re-translated

   ------------------------------------------------------------------------
   r300 | rbd | 2020-10-09 09:09:06 -0500 (Fri, 09 Oct 2020) | 2 lines

   Fix to delaycv.alg -- "s" changed to "input" to avoid matching "s" in "sample_type".

   ------------------------------------------------------------------------
   r299 | rbd | 2020-10-09 09:03:33 -0500 (Fri, 09 Oct 2020) | 4 lines

   To avoid compiler warnings, XLisp interfaces to C int and long are now
   specified as LONG rather than FIXNUM, and the stubs that call the C
   functions cast FIXNUMs from XLisp into longs before calling C functions.

   ------------------------------------------------------------------------
   r298 | rbd | 2020-10-08 22:20:26 -0500 (Thu, 08 Oct 2020) | 2 lines

   This commit has many more fixes to handle long (64-bit) sounds, including a lot of fixes for warnings by Visual Studio assigning int64_t to long (works on macOS, doesn't work on VS). This was compiled and tested on macOS, and even computed a 27.1-hour sound using OSC, LP, SUM and MULT (haven't tested I/O yet).

   ------------------------------------------------------------------------
   r297 | rbd | 2020-10-07 13:04:02 -0500 (Wed, 07 Oct 2020) | 2 lines

   This is a major cleanup. It started with the goal of changing long to int64_t for sample counts so that on 64-bit windows, where long is only 32-bits, the sample counts would nevertheless be 64-bit allowing long sounds, which was a limitation for long recordings in Audacity. Since I was using compiler warnings to track possible loss-of-precision conversions from 64-bit sample counts, and there were *many* warnings, I started cleaning up *all* the warnings and ended up with a very large set of changes, including "modernizing" C declarations that date back to XLisp and CMU MIDI Toolkit code and were never changed. This version runs all the examples.sal code on macOS, but will surely have problems on Windows and Linux given the number of changes.

   ------------------------------------------------------------------------
   r296 | rbd | 2020-10-06 13:34:20 -0500 (Tue, 06 Oct 2020) | 2 lines

   More changes from long to int64_t for sample counts.

   ------------------------------------------------------------------------
   r295 | rbd | 2020-10-06 11:53:49 -0500 (Tue, 06 Oct 2020) | 2 lines

   More work on using 64-bit sample counts. Changed MAX_STOP from 32-bit to 64-bit limit.

   ------------------------------------------------------------------------
   r294 | rbd | 2020-10-06 11:48:05 -0500 (Tue, 06 Oct 2020) | 2 lines

   Made some changes so that sample counts are int64_t (for windows) instead of long to support sample counts above 31 bits.

   ------------------------------------------------------------------------
   r293 | rbd | 2020-10-04 21:30:55 -0500 (Sun, 04 Oct 2020) | 2 lines

   Fixed a few minor things for Linux and tested on Linux.

   ------------------------------------------------------------------------
   r292 | rbd | 2020-10-04 21:00:28 -0500 (Sun, 04 Oct 2020) | 2 lines

   Update extensions: all are minor changes.

   ------------------------------------------------------------------------
   r291 | rbd | 2020-09-24 13:59:31 -0500 (Thu, 24 Sep 2020) | 2 lines

   New implementation of seq and seqrep, added get-real-time, documented get-real-time, fixed examples.sal and examples.lsp which are now in lib rather than extensions (so they are now back in the basic installation), other cleanup.

   ------------------------------------------------------------------------
   r290 | rbd | 2020-08-16 16:24:52 -0500 (Sun, 16 Aug 2020) | 2 lines

   Fixed bug in snd-gate, revised GATE and NOISE-GATE to handle multi-channel sound. RMS now handles multi-channel input. S-AVG added to take multichannel input (but not used, because RMS could not be written without making SND-SRATE convert multichannel sound to vector of floats. That seems to be going toward a fully vectorized model. Not going there for now.

   ------------------------------------------------------------------------
   r289 | rbd | 2020-07-09 16:27:45 -0500 (Thu, 09 Jul 2020) | 2 lines

   Added GET-REAL-TIME function to XLISP. May not work yet on Windows. Various fixes for compiler warnings. I noticed FLAC doesn't work (I guess it never did) and I cannot figure out how this even links because flac_min seems to be undefined. Something to look at later.
2021-01-27 23:45:25 -06:00

2276 lines
50 KiB
C

/* nyqsrc/sndfnint.c -- interface to nylsf/sndfile.h,
* nyqsrc/sound.h, nyqsrc/add.h, nyqsrc/avg.h,
* nyqsrc/compose.h, nyqsrc/convolve.h,
* nyqsrc/downsample.h, nyqsrc/fft.h, nyqsrc/inverse.h,
* nyqsrc/lpanal.h, nyqsrc/multiseq.h,
* nyqsrc/nyq-osc-server.h, nyqsrc/phasevocoder.h,
* nyqsrc/resamp.h, nyqsrc/resampv.h, nyqsrc/samples.h,
* nyqsrc/sliderdata.h, nyqsrc/sndmax.h, nyqsrc/sndread.h,
* nyqsrc/sndseq.h, nyqsrc/sndsliders.h,
* nyqsrc/stoponzero.h, nyqsrc/trigger.h, nyqsrc/yin.h,
* tran/abs.h, tran/allpoles.h, tran/alpass.h,
* tran/alpasscv.h, tran/alpassvc.h, tran/alpassvv.h,
* tran/amosc.h, tran/areson.h, tran/aresoncv.h,
* tran/aresonvc.h, tran/aresonvv.h, tran/atone.h,
* tran/atonev.h, tran/biquadfilt.h, tran/buzz.h,
* tran/chase.h, tran/clip.h, tran/congen.h,
* tran/const.h, tran/coterm.h, tran/delaycc.h,
* tran/delaycv.h, tran/eqbandvvv.h, tran/exp.h,
* tran/fmfb.h, tran/fmfbv.h, tran/fmosc.h,
* tran/follow.h, tran/fromarraystream.h,
* tran/fromobject.h, tran/gate.h, tran/ifft.h,
* tran/instrbanded.h, tran/instrbow.h,
* tran/instrbowedfreq.h, tran/instrclar.h,
* tran/instrclarall.h, tran/instrclarfreq.h,
* tran/instrflute.h, tran/instrfluteall.h,
* tran/instrflutefreq.h, tran/instrmandolin.h,
* tran/instrmodalbar.h, tran/instrsax.h,
* tran/instrsaxall.h, tran/instrsaxfreq.h,
* tran/instrsitar.h, tran/integrate.h, tran/log.h,
* tran/lpreson.h, tran/maxv.h, tran/offset.h,
* tran/oneshot.h, tran/osc.h, tran/partial.h,
* tran/pluck.h, tran/prod.h, tran/pwl.h,
* tran/quantize.h, tran/recip.h, tran/reson.h,
* tran/resoncv.h, tran/resonvc.h, tran/resonvv.h,
* tran/sampler.h, tran/scale.h, tran/shape.h,
* tran/sine.h, tran/siosc.h, tran/slope.h, tran/sqrt.h,
* tran/tapf.h, tran/tapv.h, tran/tone.h, tran/tonev.h,
* tran/upsample.h, tran/white.h, tran/stkpitshift.h,
* tran/stkrev.h, tran/stkchorus.h, nyqsrc/sndfmt.h,
* nyqsrc/sndwrite.h */
#ifndef mips
#include "stdlib.h"
#endif
#include "xlisp.h"
extern LVAL s_true;
#define cvboolean(i) ((i) ? s_true : NIL)
#define testarg2(e) (moreargs() ? (e) : (getflonum(xltoofew())))
#define xlgaanynum() (floatp(*xlargv) ? getflonum(nextarg()) : \
(fixp(*xlargv) ? (double) getfixnum(nextarg()) : \
getflonum(xlbadtype(*xlargv))))
#define getboolean(lval) ((lval) != NIL)
extern LVAL RSLT_sym;
#include "sndfile.h"
#include "sound.h"
/* xlc_snd_set_max_audio_mem -- interface to C routine snd_set_max_audio_mem */
/**/
LVAL xlc_snd_set_max_audio_mem(void)
{
int64_t arg1 = getfixnum(xlgafixnum());
int64_t result;
xllastarg();
result = snd_set_max_audio_mem(arg1);
return cvfixnum(result);
}
/* xlc_snd_set_latency -- interface to C routine snd_set_latency */
/**/
LVAL xlc_snd_set_latency(void)
{
double arg1 = getflonum(xlgaflonum());
double result;
xllastarg();
result = snd_set_latency(arg1);
return cvflonum(result);
}
/* xlc_soundp -- interface to C routine soundp */
/**/
LVAL xlc_soundp(void)
{
LVAL arg1 = xlgetarg();
boolean result;
xllastarg();
result = soundp(arg1);
return cvboolean(result);
}
/* xlc_hz_to_step -- interface to C routine hz_to_step */
/**/
LVAL xlc_hz_to_step(void)
{
double arg1 = testarg2(xlgaanynum());
double result;
xllastarg();
result = hz_to_step(arg1);
return cvflonum(result);
}
/* xlc_snd_set_logical_stop -- interface to C routine set_logical_stop_time */
/**/
LVAL xlc_snd_set_logical_stop(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
xllastarg();
set_logical_stop_time(arg1, arg2);
return NIL;
}
/* xlc_log -- interface to C routine xlog */
/**/
LVAL xlc_log(void)
{
double arg1 = getflonum(xlgaflonum());
double result;
xllastarg();
result = xlog(arg1);
return cvflonum(result);
}
/* xlc_snd_sref -- interface to C routine snd_sref */
/**/
LVAL xlc_snd_sref(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double result;
xllastarg();
result = snd_sref(arg1, arg2);
return cvflonum(result);
}
/* xlc_sref_inverse -- interface to C routine snd_sref_inverse */
/**/
LVAL xlc_sref_inverse(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double result;
xllastarg();
result = snd_sref_inverse(arg1, arg2);
return cvflonum(result);
}
/* xlc_snd_stop_time -- interface to C routine snd_stop_time */
/**/
LVAL xlc_snd_stop_time(void)
{
sound_type arg1 = getsound(xlgasound());
double result;
xllastarg();
result = snd_stop_time(arg1);
return cvflonum(result);
}
/* xlc_snd_time -- interface to C routine snd_time */
/**/
LVAL xlc_snd_time(void)
{
sound_type arg1 = getsound(xlgasound());
double result;
xllastarg();
result = snd_time(arg1);
return cvflonum(result);
}
/* xlc_snd_srate -- interface to C routine snd_srate */
/**/
LVAL xlc_snd_srate(void)
{
sound_type arg1 = getsound(xlgasound());
double result;
xllastarg();
result = snd_srate(arg1);
return cvflonum(result);
}
/* xlc_snd_t0 -- interface to C routine snd_t0 */
/**/
LVAL xlc_snd_t0(void)
{
sound_type arg1 = getsound(xlgasound());
double result;
xllastarg();
result = snd_t0(arg1);
return cvflonum(result);
}
/* xlc_snd_xform -- interface to C routine snd_xform */
/**/
LVAL xlc_snd_xform(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
double arg6 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_xform(arg1, arg2, arg3, arg4, arg5, arg6);
return cvsound(result);
}
/* xlc_block_watch -- interface to C routine block_watch */
/**/
LVAL xlc_block_watch(void)
{
int64_t arg1 = getfixnum(xlgafixnum());
xllastarg();
block_watch(arg1);
return NIL;
}
/* xlc_sound_nth_block -- interface to C routine sound_nth_block */
/**/
LVAL xlc_sound_nth_block(void)
{
sound_type arg1 = getsound(xlgasound());
long arg2 = (long) getfixnum(xlgafixnum());
int64_t result;
xllastarg();
result = sound_nth_block(arg1, arg2);
return cvfixnum(result);
}
/* xlc_snd_copy -- interface to C routine sound_copy */
/**/
LVAL xlc_snd_copy(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = sound_copy(arg1);
return cvsound(result);
}
/* xlc_snd_print -- interface to C routine sound_print */
/**/
LVAL xlc_snd_print(void)
{
LVAL arg1 = xlgetarg();
long arg2 = (long) getfixnum(xlgafixnum());
xllastarg();
sound_print(arg1, arg2);
return NIL;
}
/* xlc_snd_play -- interface to C routine sound_play */
/**/
LVAL xlc_snd_play(void)
{
LVAL arg1 = xlgetarg();
int64_t result;
xllastarg();
result = sound_play(arg1);
return cvfixnum(result);
}
/* xlc_stats -- interface to C routine stats */
/**/
LVAL xlc_stats(void)
{
xllastarg();
stats();
return NIL;
}
/* xlc_snd_print_tree -- interface to C routine sound_print_tree */
/**/
LVAL xlc_snd_print_tree(void)
{
sound_type arg1 = getsound(xlgasound());
xllastarg();
sound_print_tree(arg1);
return NIL;
}
/* xlc_snd_scale -- interface to C routine sound_scale */
/**/
LVAL xlc_snd_scale(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = sound_scale(arg1, arg2);
return cvsound(result);
}
/* xlc_snd_zero -- interface to C routine sound_zero */
/**/
LVAL xlc_snd_zero(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = sound_zero(arg1, arg2);
return cvsound(result);
}
/* xlc_step_to_hz -- interface to C routine step_to_hz */
/**/
LVAL xlc_step_to_hz(void)
{
double arg1 = testarg2(xlgaanynum());
double result;
xllastarg();
result = step_to_hz(arg1);
return cvflonum(result);
}
#include "add.h"
/* xlc_snd_add -- interface to C routine snd_add */
/**/
LVAL xlc_snd_add(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_add(arg1, arg2);
return cvsound(result);
}
#include "avg.h"
/* xlc_snd_avg -- interface to C routine snd_avg */
/**/
LVAL xlc_snd_avg(void)
{
sound_type arg1 = getsound(xlgasound());
long arg2 = (long) getfixnum(xlgafixnum());
long arg3 = (long) getfixnum(xlgafixnum());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_avg(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "compose.h"
/* xlc_snd_compose -- interface to C routine snd_compose */
/**/
LVAL xlc_snd_compose(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_compose(arg1, arg2);
return cvsound(result);
}
#include "convolve.h"
/* xlc_snd_convolve -- interface to C routine snd_convolve */
/**/
LVAL xlc_snd_convolve(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_convolve(arg1, arg2);
return cvsound(result);
}
#include "downsample.h"
/* xlc_snd_down -- interface to C routine snd_down */
/**/
LVAL xlc_snd_down(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_down(arg1, arg2);
return cvsound(result);
}
#include "fft.h"
/* xlc_snd_fft -- interface to C routine snd_fft */
/**/
LVAL xlc_snd_fft(void)
{
sound_type arg1 = getsound(xlgasound());
long arg2 = (long) getfixnum(xlgafixnum());
long arg3 = (long) getfixnum(xlgafixnum());
LVAL arg4 = xlgetarg();
LVAL result;
xllastarg();
result = snd_fft(arg1, arg2, arg3, arg4);
return (result);
}
#include "inverse.h"
/* xlc_snd_inverse -- interface to C routine snd_inverse */
/**/
LVAL xlc_snd_inverse(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_inverse(arg1, arg2, arg3);
return cvsound(result);
}
#include "lpanal.h"
/* xlc_snd_lpanal -- interface to C routine snd_lpanal */
/**/
LVAL xlc_snd_lpanal(void)
{
LVAL arg1 = xlgetarg();
long arg2 = (long) getfixnum(xlgafixnum());
LVAL result;
xllastarg();
result = snd_lpanal(arg1, arg2);
return (result);
}
#include "multiseq.h"
/* xlc_snd_multiseq -- interface to C routine snd_multiseq */
/**/
LVAL xlc_snd_multiseq(void)
{
LVAL arg1 = xlgetarg();
LVAL arg2 = xlgetarg();
LVAL result;
xllastarg();
result = snd_multiseq(arg1, arg2);
return (result);
}
#include "nyq-osc-server.h"
#include "phasevocoder.h"
/* xlc_snd_phasevocoder -- interface to C routine snd_phasevocoder */
/**/
LVAL xlc_snd_phasevocoder(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
long arg3 = (long) getfixnum(xlgafixnum());
long arg4 = (long) getfixnum(xlgafixnum());
long arg5 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_phasevocoder(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "resamp.h"
/* xlc_snd_resample -- interface to C routine snd_resample */
/**/
LVAL xlc_snd_resample(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_resample(arg1, arg2);
return cvsound(result);
}
#include "resampv.h"
/* xlc_snd_resamplev -- interface to C routine snd_resamplev */
/**/
LVAL xlc_snd_resamplev(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_resamplev(arg1, arg2, arg3);
return cvsound(result);
}
#include "samples.h"
/* xlc_snd_from_array -- interface to C routine snd_from_array */
/**/
LVAL xlc_snd_from_array(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
LVAL arg3 = xlgetarg();
sound_type result;
xllastarg();
result = snd_from_array(arg1, arg2, arg3);
return cvsound(result);
}
/* xlc_snd_samples -- interface to C routine snd_samples */
/**/
LVAL xlc_snd_samples(void)
{
sound_type arg1 = getsound(xlgasound());
long arg2 = (long) getfixnum(xlgafixnum());
LVAL result;
xllastarg();
result = snd_samples(arg1, arg2);
return (result);
}
/* xlc_snd_length -- interface to C routine snd_length */
/**/
LVAL xlc_snd_length(void)
{
sound_type arg1 = getsound(xlgasound());
int64_t arg2 = getfixnum(xlgafixnum());
int64_t result;
xllastarg();
result = snd_length(arg1, arg2);
return cvfixnum(result);
}
/* xlc_snd_maxsamp -- interface to C routine snd_maxsamp */
/**/
LVAL xlc_snd_maxsamp(void)
{
sound_type arg1 = getsound(xlgasound());
double result;
xllastarg();
result = snd_maxsamp(arg1);
return cvflonum(result);
}
/* xlc_snd_fetch -- interface to C routine snd_fetch */
/**/
LVAL xlc_snd_fetch(void)
{
sound_type arg1 = getsound(xlgasound());
LVAL result;
xllastarg();
result = snd_fetch(arg1);
return (result);
}
/* xlc_snd_fetch_array -- interface to C routine snd_fetch_array */
/**/
LVAL xlc_snd_fetch_array(void)
{
sound_type arg1 = getsound(xlgasound());
long arg2 = (long) getfixnum(xlgafixnum());
long arg3 = (long) getfixnum(xlgafixnum());
LVAL result;
xllastarg();
result = snd_fetch_array(arg1, arg2, arg3);
return (result);
}
#include "sliderdata.h"
#include "sndmax.h"
/* xlc_snd_max -- interface to C routine sound_max */
/**/
LVAL xlc_snd_max(void)
{
LVAL arg1 = xlgetarg();
int64_t arg2 = getfixnum(xlgafixnum());
double result;
xllastarg();
result = sound_max(arg1, arg2);
return cvflonum(result);
}
#include "sndread.h"
/* xlc_snd_read -- interface to C routine snd_make_read */
/**/
LVAL xlc_snd_read(void)
{
unsigned char * arg1 = getstring(xlgastring());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
long arg4 = (long) getfixnum(xlgafixnum());
long arg5 = (long) getfixnum(xlgafixnum());
long arg6 = (long) getfixnum(xlgafixnum());
long arg7 = (long) getfixnum(xlgafixnum());
long arg8 = (long) getfixnum(xlgafixnum());
double arg9 = testarg2(xlgaanynum());
double arg10 = testarg2(xlgaanynum());
long arg11 = (long) 0;
LVAL result;
xllastarg();
xlprot1(result);
result = snd_make_read(arg1, arg2, arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9, &arg10, &arg11);
{ LVAL *next = &getvalue(RSLT_sym);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg4); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg5); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg6); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg7); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg8); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvflonum(arg9); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvflonum(arg10); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg11);
}
xlpop();
return (result);
}
#include "sndseq.h"
/* xlc_snd_seq -- interface to C routine snd_sndseq */
/**/
LVAL xlc_snd_seq(void)
{
sound_type arg1 = getsound(xlgasound());
LVAL arg2 = xlgetarg();
sound_type result;
xllastarg();
result = snd_sndseq(arg1, arg2);
return cvsound(result);
}
#include "sndsliders.h"
/* xlc_snd_slider -- interface to C routine snd_slider */
/**/
LVAL xlc_snd_slider(void)
{
long arg1 = (long) getfixnum(xlgafixnum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_slider(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "stoponzero.h"
/* xlc_snd_stoponzero -- interface to C routine snd_stoponzero */
/**/
LVAL xlc_snd_stoponzero(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_stoponzero(arg1);
return cvsound(result);
}
#include "trigger.h"
/* xlc_snd_trigger -- interface to C routine snd_trigger */
/**/
LVAL xlc_snd_trigger(void)
{
sound_type arg1 = getsound(xlgasound());
LVAL arg2 = xlgetarg();
sound_type result;
xllastarg();
result = snd_trigger(arg1, arg2);
return cvsound(result);
}
#include "yin.h"
/* xlc_snd_yin -- interface to C routine snd_yin */
/**/
LVAL xlc_snd_yin(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
long arg4 = (long) getfixnum(xlgafixnum());
LVAL result;
xllastarg();
result = snd_yin(arg1, arg2, arg3, arg4);
return (result);
}
#include "abs.h"
/* xlc_snd_abs -- interface to C routine snd_abs */
/**/
LVAL xlc_snd_abs(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_abs(arg1);
return cvsound(result);
}
#include "allpoles.h"
/* xlc_snd_allpoles -- interface to C routine snd_allpoles */
/**/
LVAL xlc_snd_allpoles(void)
{
sound_type arg1 = getsound(xlgasound());
LVAL arg2 = xlgetarg();
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_allpoles(arg1, arg2, arg3);
return cvsound(result);
}
#include "alpass.h"
/* xlc_snd_alpass -- interface to C routine snd_alpass */
/**/
LVAL xlc_snd_alpass(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_alpass(arg1, arg2, arg3);
return cvsound(result);
}
#include "alpasscv.h"
/* xlc_snd_alpasscv -- interface to C routine snd_alpasscv */
/**/
LVAL xlc_snd_alpasscv(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_alpasscv(arg1, arg2, arg3);
return cvsound(result);
}
#include "alpassvc.h"
/* xlc_snd_alpassvc -- interface to C routine snd_alpassvc */
/**/
LVAL xlc_snd_alpassvc(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_alpassvc(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "alpassvv.h"
/* xlc_snd_alpassvv -- interface to C routine snd_alpassvv */
/**/
LVAL xlc_snd_alpassvv(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_alpassvv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "amosc.h"
/* xlc_snd_amosc -- interface to C routine snd_amosc */
/**/
LVAL xlc_snd_amosc(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type arg6 = getsound(xlgasound());
double arg7 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_amosc(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
return cvsound(result);
}
#include "areson.h"
/* xlc_snd_areson -- interface to C routine snd_areson */
/**/
LVAL xlc_snd_areson(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_areson(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "aresoncv.h"
/* xlc_snd_aresoncv -- interface to C routine snd_aresoncv */
/**/
LVAL xlc_snd_aresoncv(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_aresoncv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "aresonvc.h"
/* xlc_snd_aresonvc -- interface to C routine snd_aresonvc */
/**/
LVAL xlc_snd_aresonvc(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_aresonvc(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "aresonvv.h"
/* xlc_snd_aresonvv -- interface to C routine snd_aresonvv */
/**/
LVAL xlc_snd_aresonvv(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_aresonvv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "atone.h"
/* xlc_snd_atone -- interface to C routine snd_atone */
/**/
LVAL xlc_snd_atone(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_atone(arg1, arg2);
return cvsound(result);
}
#include "atonev.h"
/* xlc_snd_atonev -- interface to C routine snd_atonev */
/**/
LVAL xlc_snd_atonev(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_atonev(arg1, arg2);
return cvsound(result);
}
#include "biquadfilt.h"
/* xlc_snd_biquad -- interface to C routine snd_biquadfilt */
/**/
LVAL xlc_snd_biquad(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
double arg6 = testarg2(xlgaanynum());
double arg7 = testarg2(xlgaanynum());
double arg8 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_biquadfilt(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
return cvsound(result);
}
#include "buzz.h"
/* xlc_snd_buzz -- interface to C routine snd_buzz */
/**/
LVAL xlc_snd_buzz(void)
{
long arg1 = (long) getfixnum(xlgafixnum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type arg5 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_buzz(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "chase.h"
/* xlc_snd_chase -- interface to C routine snd_chase */
/**/
LVAL xlc_snd_chase(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_chase(arg1, arg2, arg3);
return cvsound(result);
}
#include "clip.h"
/* xlc_snd_clip -- interface to C routine snd_clip */
/**/
LVAL xlc_snd_clip(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_clip(arg1, arg2);
return cvsound(result);
}
#include "congen.h"
/* xlc_snd_congen -- interface to C routine snd_congen */
/**/
LVAL xlc_snd_congen(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_congen(arg1, arg2, arg3);
return cvsound(result);
}
#include "const.h"
/* xlc_snd_const -- interface to C routine snd_const */
/**/
LVAL xlc_snd_const(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_const(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "coterm.h"
/* xlc_snd_coterm -- interface to C routine snd_coterm */
/**/
LVAL xlc_snd_coterm(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_coterm(arg1, arg2);
return cvsound(result);
}
#include "delaycc.h"
/* xlc_snd_delay -- interface to C routine snd_delay */
/**/
LVAL xlc_snd_delay(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_delay(arg1, arg2, arg3);
return cvsound(result);
}
#include "delaycv.h"
/* xlc_snd_delaycv -- interface to C routine snd_delaycv */
/**/
LVAL xlc_snd_delaycv(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_delaycv(arg1, arg2, arg3);
return cvsound(result);
}
#include "eqbandvvv.h"
/* xlc_snd_eqbandvvv -- interface to C routine snd_eqbandvvv */
/**/
LVAL xlc_snd_eqbandvvv(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
sound_type arg4 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_eqbandvvv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "exp.h"
/* xlc_snd_exp -- interface to C routine snd_exp */
/**/
LVAL xlc_snd_exp(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_exp(arg1);
return cvsound(result);
}
#include "fmfb.h"
/* xlc_snd_fmfb -- interface to C routine snd_fmfb */
/**/
LVAL xlc_snd_fmfb(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_fmfb(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "fmfbv.h"
/* xlc_snd_fmfbv -- interface to C routine snd_fmfbv */
/**/
LVAL xlc_snd_fmfbv(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type arg4 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_fmfbv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "fmosc.h"
/* xlc_snd_fmosc -- interface to C routine snd_fmosc */
/**/
LVAL xlc_snd_fmosc(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type arg6 = getsound(xlgasound());
double arg7 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_fmosc(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
return cvsound(result);
}
#include "follow.h"
/* xlc_snd_follow -- interface to C routine snd_follow */
/**/
LVAL xlc_snd_follow(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
long arg5 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_follow(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "fromarraystream.h"
/* xlc_snd_fromarraystream -- interface to C routine snd_fromarraystream */
/**/
LVAL xlc_snd_fromarraystream(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
LVAL arg3 = xlgetarg();
sound_type result;
xllastarg();
result = snd_fromarraystream(arg1, arg2, arg3);
return cvsound(result);
}
#include "fromobject.h"
/* xlc_snd_fromobject -- interface to C routine snd_fromobject */
/**/
LVAL xlc_snd_fromobject(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
LVAL arg3 = xlgetarg();
sound_type result;
xllastarg();
result = snd_fromobject(arg1, arg2, arg3);
return cvsound(result);
}
#include "gate.h"
/* xlc_snd_gate -- interface to C routine snd_gate */
/**/
LVAL xlc_snd_gate(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
double arg6 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_gate(arg1, arg2, arg3, arg4, arg5, arg6);
return cvsound(result);
}
#include "ifft.h"
/* xlc_snd_ifft -- interface to C routine snd_ifft */
/**/
LVAL xlc_snd_ifft(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
LVAL arg3 = xlgetarg();
long arg4 = (long) getfixnum(xlgafixnum());
LVAL arg5 = xlgetarg();
sound_type result;
xllastarg();
result = snd_ifft(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "instrbanded.h"
/* xlc_snd_bandedwg -- interface to C routine snd_bandedwg */
/**/
LVAL xlc_snd_bandedwg(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
long arg3 = (long) getfixnum(xlgafixnum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_bandedwg(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "instrbow.h"
/* xlc_snd_bowed -- interface to C routine snd_bowed */
/**/
LVAL xlc_snd_bowed(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_bowed(arg1, arg2, arg3);
return cvsound(result);
}
#include "instrbowedfreq.h"
/* xlc_snd_bowed_freq -- interface to C routine snd_bowed_freq */
/**/
LVAL xlc_snd_bowed_freq(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_bowed_freq(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "instrclar.h"
/* xlc_snd_clarinet -- interface to C routine snd_clarinet */
/**/
LVAL xlc_snd_clarinet(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_clarinet(arg1, arg2, arg3);
return cvsound(result);
}
#include "instrclarall.h"
/* xlc_snd_clarinet_all -- interface to C routine snd_clarinet_all */
/**/
LVAL xlc_snd_clarinet_all(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type arg6 = getsound(xlgasound());
sound_type arg7 = getsound(xlgasound());
double arg8 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_clarinet_all(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
return cvsound(result);
}
#include "instrclarfreq.h"
/* xlc_snd_clarinet_freq -- interface to C routine snd_clarinet_freq */
/**/
LVAL xlc_snd_clarinet_freq(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_clarinet_freq(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "instrflute.h"
/* xlc_snd_flute -- interface to C routine snd_flute */
/**/
LVAL xlc_snd_flute(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_flute(arg1, arg2, arg3);
return cvsound(result);
}
#include "instrfluteall.h"
/* xlc_snd_flute_all -- interface to C routine snd_flute_all */
/**/
LVAL xlc_snd_flute_all(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type arg6 = getsound(xlgasound());
sound_type arg7 = getsound(xlgasound());
double arg8 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_flute_all(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
return cvsound(result);
}
#include "instrflutefreq.h"
/* xlc_snd_flute_freq -- interface to C routine snd_flute_freq */
/**/
LVAL xlc_snd_flute_freq(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_flute_freq(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "instrmandolin.h"
/* xlc_snd_mandolin -- interface to C routine snd_mandolin */
/**/
LVAL xlc_snd_mandolin(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
double arg6 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_mandolin(arg1, arg2, arg3, arg4, arg5, arg6);
return cvsound(result);
}
#include "instrmodalbar.h"
/* xlc_snd_modalbar -- interface to C routine snd_modalbar */
/**/
LVAL xlc_snd_modalbar(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
long arg3 = (long) getfixnum(xlgafixnum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_modalbar(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "instrsax.h"
/* xlc_snd_sax -- interface to C routine snd_sax */
/**/
LVAL xlc_snd_sax(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_sax(arg1, arg2, arg3);
return cvsound(result);
}
#include "instrsaxall.h"
/* xlc_snd_sax_all -- interface to C routine snd_sax_all */
/**/
LVAL xlc_snd_sax_all(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type arg6 = getsound(xlgasound());
sound_type arg7 = getsound(xlgasound());
sound_type arg8 = getsound(xlgasound());
sound_type arg9 = getsound(xlgasound());
double arg10 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_sax_all(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
return cvsound(result);
}
#include "instrsaxfreq.h"
/* xlc_snd_sax_freq -- interface to C routine snd_sax_freq */
/**/
LVAL xlc_snd_sax_freq(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_sax_freq(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "instrsitar.h"
/* xlc_snd_sitar -- interface to C routine snd_sitar */
/**/
LVAL xlc_snd_sitar(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_sitar(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "integrate.h"
/* xlc_snd_integrate -- interface to C routine snd_integrate */
/**/
LVAL xlc_snd_integrate(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_integrate(arg1);
return cvsound(result);
}
#include "log.h"
/* xlc_snd_log -- interface to C routine snd_log */
/**/
LVAL xlc_snd_log(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_log(arg1);
return cvsound(result);
}
#include "lpreson.h"
/* xlc_snd_lpreson -- interface to C routine snd_lpreson */
/**/
LVAL xlc_snd_lpreson(void)
{
sound_type arg1 = getsound(xlgasound());
LVAL arg2 = xlgetarg();
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_lpreson(arg1, arg2, arg3);
return cvsound(result);
}
#include "maxv.h"
/* xlc_snd_maxv -- interface to C routine snd_maxv */
/**/
LVAL xlc_snd_maxv(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_maxv(arg1, arg2);
return cvsound(result);
}
#include "offset.h"
/* xlc_snd_offset -- interface to C routine snd_offset */
/**/
LVAL xlc_snd_offset(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_offset(arg1, arg2);
return cvsound(result);
}
#include "oneshot.h"
/* xlc_snd_oneshot -- interface to C routine snd_oneshot */
/**/
LVAL xlc_snd_oneshot(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_oneshot(arg1, arg2, arg3);
return cvsound(result);
}
#include "osc.h"
/* xlc_snd_osc -- interface to C routine snd_osc */
/**/
LVAL xlc_snd_osc(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
double arg6 = testarg2(xlgaanynum());
double arg7 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_osc(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
return cvsound(result);
}
#include "partial.h"
/* xlc_snd_partial -- interface to C routine snd_partial */
/**/
LVAL xlc_snd_partial(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_partial(arg1, arg2, arg3);
return cvsound(result);
}
#include "pluck.h"
/* xlc_snd_pluck -- interface to C routine snd_pluck */
/**/
LVAL xlc_snd_pluck(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_pluck(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "prod.h"
/* xlc_snd_prod -- interface to C routine snd_prod */
/**/
LVAL xlc_snd_prod(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_prod(arg1, arg2);
return cvsound(result);
}
#include "pwl.h"
/* xlc_snd_pwl -- interface to C routine snd_pwl */
/**/
LVAL xlc_snd_pwl(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
LVAL arg3 = xlgetarg();
sound_type result;
xllastarg();
result = snd_pwl(arg1, arg2, arg3);
return cvsound(result);
}
#include "quantize.h"
/* xlc_snd_quantize -- interface to C routine snd_quantize */
/**/
LVAL xlc_snd_quantize(void)
{
sound_type arg1 = getsound(xlgasound());
long arg2 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_quantize(arg1, arg2);
return cvsound(result);
}
#include "recip.h"
/* xlc_snd_recip -- interface to C routine snd_recip */
/**/
LVAL xlc_snd_recip(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_recip(arg1);
return cvsound(result);
}
#include "reson.h"
/* xlc_snd_reson -- interface to C routine snd_reson */
/**/
LVAL xlc_snd_reson(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_reson(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "resoncv.h"
/* xlc_snd_resoncv -- interface to C routine snd_resoncv */
/**/
LVAL xlc_snd_resoncv(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_resoncv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "resonvc.h"
/* xlc_snd_resonvc -- interface to C routine snd_resonvc */
/**/
LVAL xlc_snd_resonvc(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_resonvc(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "resonvv.h"
/* xlc_snd_resonvv -- interface to C routine snd_resonvv */
/**/
LVAL xlc_snd_resonvv(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type arg3 = getsound(xlgasound());
long arg4 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_resonvv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "sampler.h"
/* xlc_snd_sampler -- interface to C routine snd_sampler */
/**/
LVAL xlc_snd_sampler(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
double arg6 = testarg2(xlgaanynum());
sound_type arg7 = getsound(xlgasound());
long arg8 = (long) getfixnum(xlgafixnum());
sound_type result;
xllastarg();
result = snd_sampler(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
return cvsound(result);
}
#include "scale.h"
/* xlc_snd_normalize -- interface to C routine snd_normalize */
/**/
LVAL xlc_snd_normalize(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_normalize(arg1);
return cvsound(result);
}
#include "shape.h"
/* xlc_snd_shape -- interface to C routine snd_shape */
/**/
LVAL xlc_snd_shape(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_shape(arg1, arg2, arg3);
return cvsound(result);
}
#include "sine.h"
/* xlc_snd_sine -- interface to C routine snd_sine */
/**/
LVAL xlc_snd_sine(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_sine(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "siosc.h"
/* xlc_snd_siosc -- interface to C routine snd_siosc */
/**/
LVAL xlc_snd_siosc(void)
{
LVAL arg1 = xlgetarg();
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type arg5 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_siosc(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "slope.h"
/* xlc_snd_slope -- interface to C routine snd_slope */
/**/
LVAL xlc_snd_slope(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_slope(arg1);
return cvsound(result);
}
#include "sqrt.h"
/* xlc_snd_sqrt -- interface to C routine snd_sqrt */
/**/
LVAL xlc_snd_sqrt(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_sqrt(arg1);
return cvsound(result);
}
#include "tapf.h"
/* xlc_snd_tapf -- interface to C routine snd_tapf */
/**/
LVAL xlc_snd_tapf(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_tapf(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "tapv.h"
/* xlc_snd_tapv -- interface to C routine snd_tapv */
/**/
LVAL xlc_snd_tapv(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type arg3 = getsound(xlgasound());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_tapv(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "tone.h"
/* xlc_snd_tone -- interface to C routine snd_tone */
/**/
LVAL xlc_snd_tone(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_tone(arg1, arg2);
return cvsound(result);
}
#include "tonev.h"
/* xlc_snd_tonev -- interface to C routine snd_tonev */
/**/
LVAL xlc_snd_tonev(void)
{
sound_type arg1 = getsound(xlgasound());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_tonev(arg1, arg2);
return cvsound(result);
}
#include "upsample.h"
/* xlc_snd_up -- interface to C routine snd_up */
/**/
LVAL xlc_snd_up(void)
{
double arg1 = testarg2(xlgaanynum());
sound_type arg2 = getsound(xlgasound());
sound_type result;
xllastarg();
result = snd_up(arg1, arg2);
return cvsound(result);
}
#include "white.h"
/* xlc_snd_white -- interface to C routine snd_white */
/**/
LVAL xlc_snd_white(void)
{
double arg1 = testarg2(xlgaanynum());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_white(arg1, arg2, arg3);
return cvsound(result);
}
#include "stkpitshift.h"
/* xlc_snd_stkpitshift -- interface to C routine snd_stkpitshift */
/**/
LVAL xlc_snd_stkpitshift(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_stkpitshift(arg1, arg2, arg3);
return cvsound(result);
}
#include "stkrev.h"
/* xlc_snd_stkrev -- interface to C routine snd_stkrev */
/**/
LVAL xlc_snd_stkrev(void)
{
long arg1 = (long) getfixnum(xlgafixnum());
sound_type arg2 = getsound(xlgasound());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_stkrev(arg1, arg2, arg3, arg4);
return cvsound(result);
}
#include "stkchorus.h"
/* xlc_snd_stkchorus -- interface to C routine snd_stkchorus */
/**/
LVAL xlc_snd_stkchorus(void)
{
sound_type arg1 = getsound(xlgasound());
double arg2 = testarg2(xlgaanynum());
double arg3 = testarg2(xlgaanynum());
double arg4 = testarg2(xlgaanynum());
double arg5 = testarg2(xlgaanynum());
sound_type result;
xllastarg();
result = snd_stkchorus(arg1, arg2, arg3, arg4, arg5);
return cvsound(result);
}
#include "sndfmt.h"
#include "sndwrite.h"
/* xlc_snd_save -- interface to C routine sound_save */
/**/
LVAL xlc_snd_save(void)
{
LVAL arg1 = xlgetarg();
int64_t arg2 = getfixnum(xlgafixnum());
unsigned char * arg3 = getstring(xlgastring());
long arg4 = (long) getfixnum(xlgafixnum());
long arg5 = (long) getfixnum(xlgafixnum());
long arg6 = (long) getfixnum(xlgafixnum());
long arg7 = (long) getfixnum(xlgafixnum());
double arg8 = 0.0;
long arg9 = (long) 0;
double arg10 = 0.0;
LVAL arg11 = xlgetarg();
int64_t arg12 = getfixnum(xlgafixnum());
double result;
xllastarg();
result = sound_save(arg1, arg2, arg3, arg4, arg5, arg6, arg7, &arg8, &arg9, &arg10, arg11, arg12);
{ LVAL *next = &getvalue(RSLT_sym);
*next = cons(NIL, NIL);
car(*next) = cvflonum(arg8); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvfixnum(arg9); next = &cdr(*next);
*next = cons(NIL, NIL);
car(*next) = cvflonum(arg10);
}
return cvflonum(result);
}
/* xlc_snd_overwrite -- interface to C routine sound_overwrite */
/**/
LVAL xlc_snd_overwrite(void)
{
LVAL arg1 = xlgetarg();
int64_t arg2 = getfixnum(xlgafixnum());
unsigned char * arg3 = getstring(xlgastring());
double arg4 = testarg2(xlgaanynum());
double arg5 = 0.0;
int64_t arg6 = getfixnum(xlgafixnum());
double result;
xllastarg();
result = sound_overwrite(arg1, arg2, arg3, arg4, &arg5, arg6);
{ LVAL *next = &getvalue(RSLT_sym);
*next = cons(NIL, NIL);
car(*next) = cvflonum(arg5);
}
return cvflonum(result);
}