Re: how know if middle C heard?




"Geoff Cox" <gcox@xxxxxxxxxxxxx> wrote in message
news:m5odt3tppbrd27s3gmjkoee81ukfltik2o@xxxxxxxxxx
On Tue, 11 Mar 2008 11:39:58 -0000, "Gareth Magennis"
<sound.service@xxxxxxxxxxxxx> wrote:

Geoff I would seriously suggest you think about learning Delphi or Visual
basic or whatever, it makes this sort of thing so much easier.

Here's how you would do it without having to be much of a programmer, it
could be your introductory lesson to the language. Almost.

Drag and drop a Media Player component and a button you call "This is a
C"
onto your form, assign your Wav to the media player. Client starts the Wav
with the transport button provided with the Media Player. The "This is a
C" button On Click event handler reads the value of the current position
of
the Wav playback (position:=MediaPlayer1.position.value) and compares it
with the predetermined data file information, uisng the means of deploying
it, that Ian has mentioned above. (If T1 < position < T2, or T3 <
position
< T4, or T5 < position < T6 then ClientIsRight, else ClientIsWrong). T1
will be the start of the first middle C, T2 will be the time after C ends
you consider to be the appropriate reaction time window, and so on.
That is not a lot of code to have to write for this part of the program,
and
it can be written as badly as I have just done and still work perfectly
and
be easily understood.

There is no point trying to get anyone here to write your code for you, or
you will not be able to debug it, and you will certainly want to change
it.

Gareth,

This is excellent - many thanks!

Could I use Microsoft Visual Studio 2005 to do this? I have a copy
obtained from a MS event and have used it a little before.

If I buy Visual Basic can I create something which can be used on a
web site? I thought Visual Basic and Visual Studie/Visual Basic or C#
would produce a .exe file? OK for a user to download for use on
his/ner PC but not useable from a web site.

Sorry if this is muddled but so am I!

Cheers



I really don't know but if there is Delphi which can make things so easy for
Windows, there surely must be an equivalent for websites. I'm not a
programmer, I just bought a big fat "Mastering Delphi" book so I could write
my own work databases. I was surprised how much I was able to achieve while
remaining prettty much a novice. There are also plenty of freeware sites
where you can use "modules" others have written, like having coloured
buttons on your application. (Windows only does grey!)



Good luck,


Gareth.


.



Relevant Pages

  • Re: Browser unexpectedly closing
    ... Why aren't you using Media Player? ... I don't think the problem is from malicious code on the web site, ... compatibility issue with your versions of Windows and Quiktime. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: how know if middle C heard?
    ... Drag and drop a Media Player component and a button you call "This is a C" ... Client starts the Wav ... you consider to be the appropriate reaction time window, ... his/ner PC but not useable from a web site. ...
    (rec.audio.tech)
  • Re: Browser unexpectedly closing
    ... have the latest version if you are up-to-date with windows updates. ... the web site in question is using an embeded Quick-time ActiveX player, ... I am using Windows Media Player 10 and my version ... on other sites but only on this particular website. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: formatted sound
    ... ..wav entry anywhere nor does it contain a phrase "Content type". ... I did keep windows media program up-to-date. ... I completely remove media player and four of the programs updates, ... I first tried to play the files one of the other computers ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Windows Media Player and Radio Station
    ... you can use a search engine such as Windows Live Search ... to search the Internet for radio stations and listen to them using Windows ... Radio stations that can be played in Windows Media Player typically display ... To play a radio station in the Player if you know the station's Web site ...
    (microsoft.public.windowsxp.general)