Hi,
I need a little program written in C#, C++,C or visual basic.
It must work in this way:
The user writes his name in a text box. After pressing start a word appears on the screen (es. apple) , then, after 2 seconds, the program has to run 3 different and independent audio files through 3 speakers at the same time.
In other words, I have 3 speakers:
speaker1 must play sound1 (es. [login to view URL]) , speaker 2 must play sound 2 ([login to view URL]), Speaker 3 must play sound3 ([login to view URL]), at the same time!
I’ve got 3 sound cards to this purpose: 2 external (USB), one internal.
After hearing the audio files, the user has to respond using two keys: either S or J.
The program must register how many time the user need to respond. You can use
nn API ‘performance millisecond timer’ incorporated in Visual Basic 6.0 to ensure accurate stimulus timing.
After this, the program passes to next trial, presenting new word, new sounds and so on.
I want the program to read an input file (a .txt file), where are written the words and the sound files that it has to run.
This is an example of the first line of input file:
apple, [login to view URL], [login to view URL], [login to view URL], varible1, varible2, varible3, varible4, varible4
The first argument (apple) is the word the program shows on the screen, [login to view URL] is the sound for the speaker 1, , [login to view URL] for the speaker 2, [login to view URL] for the speaker 3.
varible1, varible2, varible3, varible4, varible4 are textual variables that I going to edit later.
So an input file is something similar to this:
apple, [login to view URL], [login to view URL], [login to view URL], varible1, varible2, varible3, varible4, varible4
dog, [login to view URL], [login to view URL],[login to view URL], varible1, varible2, varible3, varible4, varible4
friend, [login to view URL], [login to view URL], [login to view URL], varible1, varible2, varible3, varible4, varible4
car, [login to view URL], [login to view URL], [login to view URL], varible1, varible2, varible3, varible4, varible4
….and so on:
The program reads the first line: it shows the words on the screen and then it runs the 3 sounds.
After this, it waits for the user’s response.
After the user’s response, the program records data in a output file and passes to the next line… and so on until the last line of input file
How you can imagine… I need of an output file (a .txt file).
The name of output file must be the same as user name.
So if the user wrote “Carl” in the text box, the corresponding output file would be: Carl.txt.
A line of an output file (for instance [login to view URL]) is something similar to this:
2.2322, S, varible1, varible2, varible3, varible4, varible4
2.2322 = the time (in ms) the user needs to respond S or J.,
S = the key pressed by user (S or J)
variable1, variable2, variable3, variable4, variable4 = textual variables copied form input file.
So an output file is something similar to this:
1.2345, S, varible1, varible2, varible3, varible4, varible4
2.2212, J, varible1, varible2, varible3, varible4, varible4
3.2452, S, varible1, varible2, varible3, varible4, varible4
2.2342, S, varible1, varible2, varible3, varible4, varible4
…..
1) it’s very important that the 3 sounds are played at the same time.
2) the timer must be very precise.
3) if you need more details, send me a message.
The program will run on Windows7.
I recommend you read the paper in attachment… it’s very useful.
It's a very simple project so I expect a quick delivery!
KEEP IN MIND THAT THIS IS A LITTLE PROJECT, BUT IT'S A SORT OF TEST. I'll need a programmer for a very expansive project very soon... ;)