Re: record sound bug?

2001-12-13 Thread Signe Marie Sanne

On Wednesday, December 12, 2001, at 10:03 AM, cowhead wrote:

There used to be a send bug reports to. on this mailing 
list...but it seems to have disappeared.  Anyway, back to the old 
record sound saga...

It's great that this has now been implemented in metacard (I've 
been forced to use weird combinations of superCard/metaCard stacks 
before this) but I can only get it to work well when using the 
with dialog command...eg.
ask file what
record sound IT with dialog

This opens up a dialog stack, which offers all the 
'recordFormats()' options, and there are quite a few that sound 
really good on a Mac (OS 9.1x, Japanese) and take up very little 
memory space as well.  Unfortunately, if you try to record directly 
in these formats, without going through the dialog, it doesn't 
sound good anymore. Moreover, the quality level makes no 
difference.  e.g.

record sound file it as fl64 with best quality

sounds pretty bad, in contrast to the fl64 (floating point 64bit) 
recorded through the 'dialog', which is crystal clear.  I suspect 
the culprit is in the quality level, which seems to have no effect 
in the direct (non dialog) script.  I suspect that the dialog is 
recording as 'best' but not the direct script.  I wish I could see 
what the 'sound settings' dialog stack script looks like, but I 
can't find it.  I've tried putting quotes around the quality in the 
direct script (e.g with best quality), but the
compiler will not accept this.

In summ, can anyone show me a direct recording script for any 
format which sounds really good on the Mac?  Or is there something 
broken here that might ought to be fixed (my opinion).  I don't 
want to have to go through the dialog each time.

Thanks!

mark mitchell


IMHO, something is wrong.  I can get it to record, but it is only in 
the Qualcomm PureVoice,Qclp.  This one records very clearly.  My 
only problem is that it does not get the very beginning of a sound 
and sometime it does.  Sometimes it puts the first 2 seconds at the 
end of the recorded sound.  When I can get around to understanding 
it more, I will bug report it more clearly to Scott.

I use the following script in a record button:
   record sound file tName as Qclp --tName is a variable for the sound file

Stop button:
   stop recording

I would be interested to know if this happens for you.  Have only 
done most of my testing on OS 10

-Mark Talluto


I am able to record (with dialog) on Mac at 22.050 kHz and on Windows 
at 44.100. However, I would also get rid of the dialog, and have 
chosen the PC inbuilt sound panel:
  put word 1 to -2 of 
queryRegistry(hkey_classes_root\soundRec\shell\record\command\) 
into tRecorder
launch tRecorder

On Mac I have found that the corresponding panel is called Apple 
Simple Sound Record Dialog, but I do not know how to open it from 
within MC. I'm sure someone must have the right recipe, either using 
GURLGURL, open process, or launch or something, or an Apple Event. 
I'm eagerly looking forward to suggestions. Thanks in advance.
-- 

1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Oysteins gt. 1   
5007 Bergen  http://www.hf.uib.no/hfolk/mlab/default.html
Norway

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Memory Problems

2001-12-13 Thread Jack Rarick

Using several different Mac's - all running Sys 9.1.  Using put
URL(Binfile .. etc to copy large files (20 to 70 meg is size).  Using a
repeat loop to copy sets of up to 20 of these files. Works fine (1 or 2
file copies) and then hangs - throwing the error Low memory.  All of
these Mac's have at least 128 meg of RAM and the memory on Metacard has
been set all the way from 20 meg to 65 meg - Same results.

Any ideas or workarounds?

Thanks in advance,

Jack Rarick
Braintree Athletic Systems

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: (no subject)

2001-12-13 Thread Pierre Sahores

Eva Isotalo a écrit :
 
 Hello everybody,
 
 I'm getting following error message  when using a stack which worked on MC
 2.3. I don't know how to respond, if I have some strange programming or if
 it is something else.
 
 Object: button Script... of card Execution Error Card of stack
 Execution Error of stack D:MC2.4-1/mctools.mc
 
 When checking, it markes the line in:
 
 on mouseUp
editScript the long id of the errorobject of this card
 end mouseUp
 
 What should I do here?
 
 Regards,
 Eva Isotalo
 
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard

Hello Eva,

At this point, probably nothing (i.e.: don't touch to the script of the
Execution Error substack of stack mctools.mc).

When this kind of error append, it's most of the time not an error
appening in the Metacard IDE error controls substack but, just an error
in NOT CATCHING WHAT GOES WRONG IN YOUR OWN SCRIPTS.

To test this possibility of trubble, just test your scripts betwin the
try... end try functions subset.

Best Regards, Pierre Sahores

WEB  VPN applications  databases servers
Inspection académique de Seine-Saint-Denis
Qualifier  produire l'avantage compétitif
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Dumb Sort Question

2001-12-13 Thread David C. Tremmel

Greg -

While not an elegant sort solution, you could do something like this 
(I'm assuming you want a list of grade frequencies as your end 
result):

gradeLevels = A+,A,A-,B+,...

repeat for each item X in gradeLevels
   put return  freqArray[X] after gradeFreqs
end repeat


Hope this helps...

Regards,
Dave Tremmel


Hi Everyone,

  I've created a neat little function that calculates stats and a
distribution for test grades very quickly.  To create a frequency
distribution of letter grades (how many A's, B's, C's, and so on), I use
an associative array where the keys are A+, A, A-, B+, B, B-, ..., F, and
I just plunk number grades into each element according to my conversion
criteria.

  My problem is that when I put the keys into a variable, say, Distn,
and sort it, it comes out as

  A
  A+
  A-

  rather than

  A+
  A
  A-

  which still represents the correct frquencies but is not convenient
to read.  Is there a handy trick to sorting Distn to get the order I
want?  I've tried to precede each key by a number ( 1  A+,  2 A, 3  A-,
...) and sort it, but I get gobbledeegoop.

  Regards,

   Greg




Gregory Lypny
Associate Professor
Concordia University

They had the best selection,
  The were poisoned by protection,
  There was nothing that they needed,
  They had nothing left to find.
- Neil Young


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at
http://homepage.mac.com/gregorylypny/FileSharing1.html


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


-- 
David Tremmel
Assistant Director, National Phytotron

Duke University
Phytotron Bldg. Phone:  (919) 660-7415
Box 90340   FAX:(919) 660-7425
Durham, NC  27708-0340  E-mail: [EMAIL PROTECTED]
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: record sound bug

2001-12-13 Thread cowhead
 amanuensis Signe Marie Sanne wrote:

 On Mac I have found that the corresponding panel is called "Apple
 Simple Sound Record Dialog", but I do not know how to open it from
 within MC. I'm sure someone must have the right recipe, either using
 "GURLGURL", open process, or launch or something, or an Apple Event.
 I'm eagerly looking forward to suggestions. Thanks in advance.
 --


You can launch the application "simpleSound" if it is present on the system, but you 
must then specify "new sound", record the sound, then specify the name and place to 
save it.  i.e.  it is fairly labor intensive.  So, instead, I have used a dedicated 
supercard stack which I can then pass all this info on to with a simple copy paste 
into a supercard field.  I can then launch this supercard stack each time from 
metacard and use this to access the apple record dialog.  After using this dialog, it 
does not ask
you to specify the file name and location, as the simple sound dialog does.  I do not 
know if that means it is actually a different dialog, or if that asking behaviour 
comes from the application 'simplesound'.  But you are right, it would be nice if we 
could access the same dialog direct from metacard.  If supercard can do it, surely 
metacard can too.  The dialog is nice as it allows multiple recordings and playbacks 
before one actually commits to saving anything as a file on the HD.  This is, as it 
turns
out, often crucial.

mark mitchell

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: (no subject)

2001-12-13 Thread Tereza Snyder

on 12.13.01 08:42 AM, Eva Isotalo wrote:

 I'm getting following error message  when using a stack which worked on MC
 2.3. I don't know how to respond, if I have some strange programming or if
 it is something else.
 
 Object: button Script... of card Execution Error Card of stack
 Execution Error of stack D:MC2.4-1/mctools.mc
 
 When checking, it markes the line in:
 
 on mouseUp
 editScript the long id of the errorobject of this card
 end mouseUp
 
 What should I do here?


The error handling was changed in the recent version of MetaCard 2.4.1 (read
the readme -- I skipped over it until I got caught by something similar).
The errorobject is now defined differently. See the scripts in card 1 of the
executionError stack.

tereza

+ Tereza Snyder 
+ Senior Software Developer
+ Attainment Company, Inc.
+ www.attainmentcompany.com
+ 800.327.4269

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



2.3 to 2.4.1 upgrade (was (no subject)) error

2001-12-13 Thread Scott Raney

On Thu, 13 Dec 2001 Eva Isotalo [EMAIL PROTECTED] wrote:

 Hello everybody,
 
 I'm getting following error message  when using a stack which worked on MC 
 2.3. I don't know how to respond, if I have some strange programming or if 
 it is something else.
 
 Object: button Script... of card Execution Error Card of stack 
 Execution Error of stack D:MC2.4-1/mctools.mc
 
 When checking, it markes the line in:
 
 on mouseUp
editScript the long id of the errorobject of this card
 end mouseUp
 
 What should I do here?

You need to use the resource mover to either delete the old execution
error dialog from your stacks or move a new copy in there.  The
dialogs from 2.3 are not compatible with 2.4.  This is a good general
rule: if you've used the resource mover during development, you should
use it again whenever you upgrade to get new copies of these dialogs.
  Regards,
Scott

 Regards,
 Eva Isotalo


Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Field limit?

2001-12-13 Thread Shari

I have a very large text file I wanted to import into a field.

When I use the IMPORT button, the entire file ends up on one line, 
even with the wrapping turned on.  And it doesn't import the entire 
file.

When I use a script to import,

open file theFile
read from file theFile until eof
close file theFile
put it into cd fld someField

it only puts a very very small portion of theFile into the field.  I 
mean about a paragraph.

When I expand the import script to go through the file and delete 
about 2/3 of it, it pastes the result into the field, but all in 4 
lines, so that each line is overwritten several times and you cannot 
read the result.

I can import the file and put it into a global variable, and the 
entire file is in the variable, with no problem.

How do I get the field to accept the file?  I thought the limits were 
large enough to handle biggies.  I believe the file is about 40,000 
words long.  I'd rather it be embedded in the program, as it takes so 
long to load.  I'd rather a card not take several minutes to open, 
while it opens the text file and reads the result into the global 
variable.

Anybody?



-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
http://www.gypsygames.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Field limit?

2001-12-13 Thread Jacqueline Landman Gay

Shari wrote:
 
 I have a very large text file I wanted to import into a field.
 
 When I use the IMPORT button, the entire file ends up on one line,
 even with the wrapping turned on.  And it doesn't import the entire
 file.
 
 When I use a script to import,
 
 open file theFile
 read from file theFile until eof
 close file theFile
 put it into cd fld someField
 
 it only puts a very very small portion of theFile into the field.  I
 mean about a paragraph.
 
 When I expand the import script to go through the file and delete
 about 2/3 of it, it pastes the result into the field, but all in 4
 lines, so that each line is overwritten several times and you cannot
 read the result.
 
 I can import the file and put it into a global variable, and the
 entire file is in the variable, with no problem.

It sounds like the file has no natural word breaks. Some Mac apps will
break a line in the middle of a word if there isn't any other choice,
but MC doesn't. So it all shows up on one line, or if there is an
occasional space or return, just a few lines. The overwriting on the
same line sounds like a bug.

If you only need to store the info and don't need to display it, store
it in a custom property. That will act just as though it were in a variable.

Storing the file inside the stack won't help with the load times though.
MC still has to load it, whether it is from an external file on disk or
from its own stack file. You should get identical results when the stack
opens whether you store the text inside the stack itself, or whether you
read it in from an external file on openstack. The only reason to store
it inside the stack would be to keep both files consolidated into one on disk.

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard