home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.audio
- Path: sparky!uunet!psinntp!isc-newsserver!rbm2273
- From: rbm2273@ultb.isc.rit.edu (R.B. Mead)
- Subject: Re: Digitizing from scripts..
- Message-ID: <1992Dec25.093829.18709@ultb.isc.rit.edu>
- Originator: rbm2273@ultb
- Sender: news@ultb.isc.rit.edu (USENET News System)
- Nntp-Posting-Host: ultb-gw.isc.rit.edu
- Organization: Rochester Institute of Technology
- References: <168C6C9FB.WALLY@UKCC.UKY.EDU> <1992Dec24.005304.6603@cunews.carleton.ca> <168C78B8.WALLY@UKCC.UKY.EDU>
- Date: Fri, 25 Dec 1992 09:38:29 GMT
- Lines: 80
-
- In article <168C78B8.WALLY@UKCC.UKY.EDU> WALLY@UKCC.UKY.EDU writes:
- >In article <1992Dec24.005304.6603@cunews.carleton.ca>
- >ags@scs.carleton.ca (Alexander G. M. Smith) writes:
- >
- >>In article <168C6C9FB.WALLY@UKCC.UKY.EDU> WALLY@UKCC.UKY.EDU writes:
- >>>Any little problems, I can work out on my own. However, I can't get
- >>>AGMSRecordSound (for Perfect Sound 3) to do this:
- >>>
- >>>Record at say, 12Khz for 30 seconds. I can't get it to set a time limit.
- >>>So I tried setting a size limit (~360K in this instance), and it still
- >>>didn't work.. It just keeps recording forever. (Well... Until my
- >>>drive fills up, or I get sick of it and reboot and crash the drive
- >>>horribly and have to reformat it like LAST time I was working on this. :(
- >>
- >>Hmmm. AGMSRecordSound will stop recording if you send it a Control-C
- >>break signal. Use the "break" command to do that. You'll also need to
- >>know the process number that AGMSRecordSound is running under (the 2.0
- >>"status" command has a nice feature that finds the process number given
- >>a program name). Set up a second process (a script that is started by
- >>"run execute myscript") that will wait a fixed amount of time and then
- >>do the break.
- >>
- >
- >I can't think of a way to currently use break to stop AGMSRS because
- >unless the system is the same way each time, the process number will
- >be different. And I can't think of a way to use the 2.0 Status to
- >be able to "tell" break what number. (IE: Status->variable, then
- >break $variable)
- >
- >This, however, seems like a good idea, and I'll do testing and such
- >using it until I can find a programme that will do it automatically.
- >
-
- A friend of mine wrote me regarding this problem. Here are his
- comments:
-
-
- Well, I did something like this under os1.3. I needed to automatically
- set task priorities of a task/process or two, on startup.
-
- The following two scripts accomplished this. Note: I modified them to
- work under os2.04, which is what I'm using now. There is a one line
- change to revert back to os1.3 operation. You should be able to do this
- by looking at the script and a line (for 1.3) that I commented out.
-
- Main script to call: "prior"
- ----------------------------
- .key xnam,xpri
-
- status >t:tmp_1
- echo >t:tmp_2 "prior1 <xpri> " noline
- search >>t:tmp_2 t:tmp_1 <xnam>
- delete t:tmp_1 quiet
-
- execute t:tmp_2
- delete t:tmp_2 quiet
- ----------------------------
-
- Secondary script used by prior: "prior1"
- ----------------------------------------
- .key xpri,num1,tmp2,num3,tmp4,tmp5,tmp6,nam7
-
- ;echo >t:tmp_3 "changetaskpri p=<xpri> t=" noline ;For os1.3
- echo >t:tmp_3 "changetaskpri <xpri> process " noline ;For os2.04
- echo >>t:tmp_3 <num3> noline first 1 len 1
- echo >>t:tmp_3 " ; Name is <nam7>"
-
- type t:tmp_3
- execute t:tmp_3
-
- delete t:tmp_3 quiet
- ----------------------------------------
-
- This should be easily modifiable for use with "break". Let me know
- if you need any help.
-
- <End of comment>
-
- Regards ... rbm2273@ultb.isc.rit.edu
-
-