Changeset 32

Show
Ignore:
Timestamp:
05/09/07 22:07:01 (2 years ago)
Author:
gordonjcp
Message:

first attempt at lookup table for ensemble, not much better

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nekostring/trunk/src/neko_ensemble.c

    r31 r32  
    88 * please see the README 
    99 * 
     10 * The ensemble effect started life as Giant Flange from Steve Harris's plugins. 
    1011*/ 
    1112 
     
    4445  for (sample = 0; sample < sample_count; sample++) 
    4546    { 
    46       // Write input into delay linevoid 
     47      // Write input into delay line 
    4748      // we'll just use left as the input 
    4849 
  • nekostring/trunk/src/neko_synth.h

    r29 r32  
    3131#define NEKO_GLIDE_MODE_LEFTOVER 3 
    3232#define NEKO_GLIDE_MODE_OFF      4 
     33 
     34#define WAVE_POINTS 1024          /* must be a power of two */ 
    3335 
    3436/* 
  • nekostring/trunk/src/neko_voice_render.c

    r31 r32  
    5959    /* oscillator waveforms */ 
    6060    for (i = 0; i <= WAVE_POINTS; ++i) { 
    61         sine_wave[i + 4] = sinf(M_2PI_F * (float)i / (float)WAVE_POINTS) * 0.5f; 
     61        sine_wave[i] = sinf(M_2PI_F * (float)i / (float)WAVE_POINTS) * 0.5f; 
    6262    } 
    6363    sine_wave[-1 + 4] = sine_wave[WAVE_POINTS - 1 + 4];  /* guard points both ends */