JAMverb.h 1.09 KB

#pragma once

#ifndef __JAMVERB_H
#define __JAMVERB_H

#include <stdio.h>

#define NUM_OF_AP_SECTS 2
#define NUM_OF_COMB_SECTS 6
#define NUM_OF_SECTS NUM_OF_AP_SECTS+NUM_OF_COMB_SECTS

#define SAMPLE_RATE 44100
#define SAMPLES_PER_MILLISEC SAMPLE_RATE/1000
#define ms *SAMPLES_PER_MILLISEC
#define BUFF_SIZE 512

const struct {int length; float coef; float lpcoef; } JAM_REVERB_PARMS[ NUM_OF_SECTS ] = {
#if 1
    { 10.00 ms, .448, 0.46 },		/* COMB0 */
    { 16.00 ms, .432, 0.48 },		/* COMB1 */
    { 21.00 ms, .415, 0.50 },		/* COMB2 */
    { 28.00 ms, .398, 0.52 },		/* COMB3 */
    { 32.00 ms, .390, 0.53 },		/* COMB4 */
    { 38.00 ms, .374, 0.55 },		/* COMB5 */
    {  6.00 ms, .700, 0.00 } };		/* AP0 */
#else
    { 10000, 1.0, 0.0 },		/* COMB1 */
    { 10, 0.0, 0.00 },		/* COMB1 */
    { 10, 0.0, 0.00 },		/* COMB2 */
    { 10, 0.0, 0.00 },		/* COMB3 */
    { 10, 0.0, 0.00 },		/* COMB4 */
    { 10, 0.0, 0.00 },		/* COMB5 */
    {  6.00 ms, .700, 0.00 } };		/* AP0 */
#endif
/******* exported prototypes *********/
int do_reverb(FILE *in_file, FILE *out_file, float *wet, float *dry, int stereo);

#endif