On Feb 4, 2011, at 7:01 PM, stephen barncard wrote:
I could use some help here.. I want to detect other sample rates.
The ones
above were determined by examining them in sound files with known
rates.
How would I convert these 80 bit hex floating point numbers to the
values
shown and bac
Found this via boingboing today-
https://secure.wikimedia.org/wikipedia/en/wiki/List_of_Crayola_crayon_colors
--
-Mark Wieder
mwie...@ahsoftware.net
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsu
Still messing with exporting sounds out of Livecode. Working with AIF
files for now.
I can't yet find where Livecode stores the metadata like length,
sample rate and bit depth for imported sound files.
In the meantime, I can grab these values from the incoming aif files
and store them in custom p
Tom-
Friday, February 4, 2011, 8:22:28 AM, you wrote:
> I send out a 125 but I get back three lines:
> 1
> 2
> 5
> but the analogWrite is looking for 125
I had that problem when I was bringing up the MakeBoard as well. I was
trying to send a decimal 192 to the board to initialize it. It took
mor
Strange thing happening, actually not happening, when I click on a button in a
modal dialog window. I have a mouseUp handler for the button with a few lines
of code ending with a close this stack statement. The stack closes but setting
break points shows that neither the close statement nor an
On Feb 3, 2011, at 6:10 PM, revolut...@duncansoftware.on-rev.com wrote:
> I want the end user to draw a curved line on top of an image. The line needs
> to be a separate object. They initiate the process by clicking on a button to
> change to drawing mode, then mouse down starts drawing and mou
On Fri, Feb 4, 2011 at 5:42 PM, Bob Sneidar wrote:
> Oh I see, no the first 2 buttons should not be disabled then. I got it
> backwards. I am using PowerDebug and GLX2 though. Maybe there is some
> interaction there...
>
> This is the contents of my datagrid script:
> global sq, theSaveState, th
On 04.02.11 at 12:43 -0500 dunb...@aol.com apparently wrote:
But why more logical? The simple, transparent way is to just let the
clickLine do its thing.
Well, more logical to me. It allows me, for example, to distinguish
between content with empty lines and no content. The latter is
prim
Here is the code to change a number into binary code. Put
it into a button to test.
on mouseUp
ask "enter a Number"
if it = empty or the result = "cancel" then exit to top
put it into theNum
put baseconvert(theNum,10,2) into theConv
ask "Binary number" with theConv
end mo
You dirty old man!!!
;-) very funny
-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgr...@comcast.net
On Feb 4, 2011, at 12:32 PM, Richmond wrote:
> I just uploaded this helpful little stack (well, I find it helpful),
> so anybody who feels a need is welcome to download it . . .
>
> http://a
As long as you have DoLed( int ) and DoBeep( int ) functions, that looks
right to me now. It should be clear how to modify that to your needs, and if
not, feel free to contact me off-list and I'll give you a hand. :)
~ Chris Innanen
~ Nonsanity
On Fri, Feb 4, 2011 at 12:38 PM, Thomas McGrath I
I regularly will enter data into an arbitrary line in a locked field, whether
empty or just well below the last line. Maybe one wants to just see what line
is what, or where. in relation to other lines or objects. Or who knows?
The workaround is straightforward, using the clickLoc and field and
Glad it helped. Though as a longtime hardware serial interface user, I DO
strongly suggest going the ascii route. That Arduino function should work
as-is (with the bug fixes). Couple it with really simple code on the LC side
and you're done.
write ("LED" && tValue & CR) to file thePort
~ Chris
Is this right?
char cmd[255];
int param = 0;
char buf[255];
int bufloc = 0;
while ( true )
{
buf[ bufloc ] = Serial.Read();
if ( buf[ bufloc ] == 13 ) // CR EOL
{
sscanf( buf, "%s %i", cmd, ¶m );
if ( !strcmp( cmd, "LED" ) ) // if cmd == "LED"
DoLed( param );
Tisk tisk... You didn't use the abbreviation in the code. Spoils the joke.
:)
~ Chris Innanen
~ Nonsanity
On Fri, Feb 4, 2011 at 12:32 PM, Richmond wrote:
> I just uploaded this helpful little stack (well, I find it helpful),
> so anybody who feels a need is welcome to download it . . .
>
> h
Well, Thank you very much the numtochar worked perfectly. SInce most of these
are either two or three numbers being sent for motor/stepper and LED and will
not be more than 255 I will stick with the numtochar() for this. I will still
try to come up with a parser for the Arduino for passing comma
On Fri, Feb 4, 2011 at 12:18 PM, form wrote:
> sscanf( buf, "%s %i", &cmd, ¶m );
sscanf( buf, "%s %i", cmd, ¶m );
~ Chris Innanen
~ Nonsanity
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, un
I just uploaded this helpful little stack (well, I find it helpful),
so anybody who feels a need is welcome to download it . . .
http://andregarzia.on-rev.com/richmond/SEX.rev.zip
(and, as my school doctor remarked; "Always keep one's tongue in one's
cheek!")
I wish you a wonderful Friday nig
If you are using it on a Mac which is how I tested it then you will
see the Keyspan and modem options are what you use. The
modem should work as is if you have a internal modem but the
keyspan needs to be changed in the code to represent how it
is seen by your usb driver. Get a list of the usb dr
I could not get the Communicator stack to work as is. So I have been trying to
change it to work. I will look into the scripts you mention.
Thank you
-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgr...@comcast.net
On Feb 4, 2011, at 11:53 AM, -=>JB wrote:
> There are two types of binary dat
On Fri, Feb 4, 2011 at 12:18 PM, form wrote:
>
> else
> ++bufloc; // next read will go in the next buf char
For safety's sake...
else
{
++bufloc; // next read will go in the next buf char
if ( bufloc > 255 )
{
// ERROR - buffer overflow -
Try:
write numtochar( tValue ) to file thePort
This will only work for values less than 256, however. You can increase that
range by breaking the number down into individual bytes and sending those in
sequence.
What you should do instead is send the number as ascii as you are now, but
end it wit
i forgot to answer why would you send it as a binary. Take for
instance the older X10 controller. To send it data to operate
it required you to send it as a binary code which is 0's & 1's
and that may be what your controller is asking for. If it is you
transfer say the number 125 into 3 separate
There are two types of binary data at least on the Mac.
1. Is when you use 0 and 1's which is binary code to
represent the data. For instance you can take these
words or numbers such as 125 and represent them
in binary code which would end up being a bunch of
0's and 1's. In the serial stack I
Oh I see, no the first 2 buttons should not be disabled then. I got it
backwards. I am using PowerDebug and GLX2 though. Maybe there is some
interaction there...
This is the contents of my datagrid script:
global sq, theSaveState, theDataControl, theTargetName, theIndex
--> *props
/* basic.p
That explains it then. I removed all my drag and drop related code. I do have a
couple scripts, but not drag and drop related.
Bob
On Feb 3, 2011, at 4:35 PM, zryip theSlug wrote:
> On Fri, Feb 4, 2011 at 1:12 AM, Bob Sneidar wrote:
>> Maybe not the place for this, but I looked in my datagri
How is a binary update different from a text update with the serial protocols?
What I mean is how do you send binary data from LC and why would you?
-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgr...@comcast.net
___
use-livecode mailing list
use
I am having a problem communicating with an LED. (Never thought I'd hear myself
say that!)
I have code in LC in a slider:
-- We are open driver ... for text update
on mouseUp
put the thumbPosition of me into tValue
doUpdate(tValue)
end mouseUp
on doUpdate tValue
put gThePort into theP
Le 4 févr. 2011 à 15:26, Thierry a écrit :
Tried also with a new empty stack and one field.
Same behavior.
True also for Rev 4, Livecode 5.0 up to 5.3
Thierry
>
> Le 4 févr. 2011 à 14:21, Jan Schenkel a écrit :
>
>> --- On Fri, 2/4/11, Thierry wrote:
>>> Hi all,
>>>
>>> I have a simple st
On 02.02.11 at 22:17 -0500 dunb...@aol.com apparently wrote:
Jacques.
Easy workaround using the clickLoc and knowledge of the field properties.
I must say I like the way LC/Rev/MC does it. It's more logical. Why
should one get clickline info if clicking where there is no content?
Actually,
Le 4 févr. 2011 à 14:21, Jan Schenkel a écrit :
> --- On Fri, 2/4/11, Thierry wrote:
>> Hi all,
>>
>> I have a simple stack with one card and 2 fields in a
>> group.
>>
>> I've tried to set the focus color border for the fields,
>> but it still remains blue ?
>>
>> Setting the focus color on
--- On Fri, 2/4/11, Thierry wrote:
> Hi all,
>
> I have a simple stack with one card and 2 fields in a
> group.
>
> I've tried to set the focus color border for the fields,
> but it still remains blue ?
>
> Setting the focus color on the fields, then on the group ,
> clearing the fields focus c
Hi all,
I have a simple stack with one card and 2 fields in a group.
I've tried to set the focus color border for the fields,
but it still remains blue ?
Setting the focus color on the fields, then on the group ,
clearing the fields focus color,
then on the card and on the stack,
doesn't change
Random thougth of the day:
What i always found weird is, the imagedata has a space for alphadata in
itself. it's 4 bits for each pixel, and thus has space for the three colours:
rgb and alpha too... but the fourth one just is always zero.
Meanwhile the text property can't be modified by script,
34 matches
Mail list logo