From: Joerg Hansmann (info_at_jhansmann.de)
Date: 2002-01-03 00:14:00
Dear Jim,
----- Original Message -----
From: Jim Meissner <jpmeissner_at_mindspring.com>
To: <buildcheapeeg_at_yahoogroups.com>
Sent: Thursday, January 03, 2002 12:01 AM
Subject: Re: [buildcheapeeg] Re: Meditation - UP mode
...
> I did not look at the sound with the oscilloscope yet, but the phase
> was all over the place. I do not know if you did that on purpose or not.
> I did not like to listen to it....
The (phase) delay was 400us. Also there was an additional
random amplitude modulation. :
void InitUserData(void){
Prog01.PulseLength_sec=0.003;
Prog01.StartFreq=10.0;
Prog01.EndFreq=20.0;
Prog01.SweepDuration_sec=3*60;
Prog01.Delay_sec=400e-6;//400e-6;
Prog01.Volume_dB=0; // not yet implemented
Prog01.Attenuation_dB=-6;//-20;
};
> Could you write a version with no delays and rand() functions to
> see if the pulses were working. Just equal pulses that sound centered.
Ok.
I have set all random parameters and delay to 0:
void InitUserData(void){
Prog01.PulseLength_sec=0.003;
Prog01.StartFreq=10.0;
Prog01.EndFreq=20.0;
Prog01.RandomFreqVariation=0.0;//+- random range added to frequency sweep
Prog01.SweepDuration_sec=3*60;
Prog01.Delay_sec=00e-6;//400e-6;
Prog01.Volume_dB=0; // not yet implemented
Prog01.Attenuation_dB=0;//-6;//-20;
};
The *.exe (zipped, 3.85 KB) is in the attachment.
Just copy/extract it over your previous exe-file.
> I am studying your code. I have never used structures before.
Structures are just a handy way to keep data together by defining
a new datatype (e.g. struct TSoundParameter) and some instances of this
new datatype (e.g. Prog01).
If you have a pointer to the structure, you can access the data with the
"->" operator. If you have an instance (also called variable) of the
structure, you access the data with the "." operator.
...
Regards,
Joerg
This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:36 BST