1. recording

Hi All!

I don't know if this is worthy of interest to Euphorians anywhere, but I'm
about to launch an.   I would dearly love to include a module from Euphoria,
that records the sounds that my app requires.   (Right now I do this with
MSVC, but I'd rather use Euphoria).  My last posting garnered no responses
whatever. . .   If anyone has any hints as to how I might use Euphoria to
record sound, I would appreciate it. . .

Thanks!

--Warren

new topic     » topic index » view message » categorize

2. recording

HI All!

I've checked the archive and don't see anything that is obviously connected
with recording sound.  Is anyone aware of any Euphoria program that might
involve recording sound?

Thanks!

--Warren

new topic     » goto parent     » topic index » view message » categorize

3. Re: recording

Just from the lack of response.  I would assume NO.  No one
has actually done any sound recording using Euphoria.

        Lucius L. Hilley III
        lhilley at cdc.net   lucius at ComputerCafeUSA.com
+----------+--------------+--------------+----------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  | Computer |
|  Horse   +--------------+--------------+  Cafe'   |
| Software | http://www.cdc.net/~lhilley |  USA     |
+----------+-------+---------------------+----------+
                   | http://www.ComputerCafeUSA.com |
                   +--------------------------------+
----- Original Message -----
From: Alyne & Warren <WCBaker at HOME.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Saturday, October 30, 1999 5:04 AM
Subject: recording


> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       Alyne & Warren <WCBaker at HOME.COM>
> Subject:      recording
> --------------------------------------------------------------------------
-----
>
> Hi All!
>
> I don't know if this is worthy of interest to Euphorians anywhere, but I'm
> about to launch an.   I would dearly love to include a module from
Euphoria,
> that records the sounds that my app requires.   (Right now I do this with
> MSVC, but I'd rather use Euphoria).  My last posting garnered no responses
> whatever. . .   If anyone has any hints as to how I might use Euphoria to
> record sound, I would appreciate it. . .
>
> Thanks!
>
> --Warren
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: recording

>     Just from the lack of response.  I would assume NO.  No one
> has actually done any sound recording using Euphoria.

Thanks Lucius!    I will look at the available possibilities.   Perhaps I'll
just stick with my MSVC app. . .

Cheers!

--Warren

new topic     » goto parent     » topic index » view message » categorize

5. Re: recording

> > I don't know if this is worthy of interest to Euphorians anywhere, but I'm
> > about to launch an.   I would dearly love to include a module from
>Euphoria,
> > that records the sounds that my app requires.   (Right now I do this with
> > MSVC, but I'd rather use Euphoria).  My last posting garnered no responses
> > whatever. . .   If anyone has any hints as to how I might use Euphoria to
> > record sound, I would appreciate it. . .

Recording should be easy to do using MCI functions.  You have to put up
with the ill-documented MCI sendstring commands, and the fact that you are
far removed from the mechanics of the process (which could be good or bad,
depending on your perspective).


An example of the code for MCIsendstring is below (note that a few details
are missing; this is just the general outline).  A 'real' implementation is
in my Euphoria midi toolkit (I've seen other people using the same basic
code in various other toolkits on the Euphoria site also).

The problem you'd have, once you get this code working, is to figure out
exactly what command strings to send to mciSendString to get MCI to record,
pause, playback, etc.  In theory, MCI will do it all.   I have found the
details to be a somewhat tricky business (especially since, as I mentioned
before, documention for MCI is scanty at best).

--Brent


Sample code:

...

   mciSendString = link_c_func(winmm, "mciSendStringA", {C_INT, C_INT,
C_INT, C_INT}, C_INT)


...

global procedure MciSendString(sequence String, integer a, integer b,
integer c)
   --Sends a string to MCI.
   --this allows you to use "high level" functions of winmm--sequencer,
wave file player, etc.

   integer result
   atom outMsg

   --can't send a sequence--must use "allocate_string" to send a string
   --in proper format expected by the C function

   String = String

   outMsg=allocate_string(String)

   result = c_func(mciSendString, {outMsg, a, b, c})
   if result > 0 then MidiError(result, "MciSendString") end if

end procedure

-------------------------------




++++++++++++++++++++ Brent Hugh / bhugh at cstp.umkc.edu ++++++++++++++++++++
+        University of Missouri-Kansas City, Conservatory of Music       +
+  Sheet Music/Recordings: http://www.sunflower.org/~bhugh/pathetic.spm  +
+ Internet Piano Concert:  http://cctr.umkc.edu/userx/bhugh/recital.html +
++++++++++ Classical Piano MP3s http://www.mp3.com/brent_d_hugh ++++++++++

new topic     » goto parent     » topic index » view message » categorize

6. Re: recording

Brent, thank you so much!   I used MCI in my MSVC application, so I think
that this aspect could go smoothly. . .  I'll be giving this a try in about
1 week (since other things that should have gone smoothly are taking rather
more time than I have. . .).

I'll keep you posted as to status.

Thanks again!

Cheers!

--Warren

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu