This project has moved. For the latest updates, please go here.

isochronic tone

May 9, 2014 at 5:08 AM
Edited May 9, 2014 at 5:40 AM
how do i make an isochronic tone?

is it like this?
   public override int Read(float[] buffer, int offset, int sampleCount)
    {
        int sampleRate = WaveFormat.SampleRate;
    
        for (int n = 0; n < sampleCount;)
        {
            if( counter == Beat)
            {
              buffer[n + offset] = 0;
              buffer[n + offset + 1 ] = 0;
              buffer[n + offset + 2] = 0;
              n = n + 3;
                sample = sample +3;
            }
            else
            {
            buffer[n + offset] = (float)(Amplitude * Math.Sin((2 * Math.PI * sample * Frequency) / sampleRate));
            sample++;
            n++;
            if (sample >= sampleRate) sample = 0;
               
                counter =0;
            }
        }
        return sampleCount;
    }
May 12, 2014 at 8:16 PM
does anyone know about this?