SunnYmidi: script your sounds

2011-06-29 Thread Thierry Douez
Hi,

Only 2 days left to benefit from the introductory price for SunnYmidi.

SunnYmidi is a MacOsX external which offers LiveCode coders
a set of commands to play MIDI notes.

- You can select up to 250 instruments
- You can play up to 16 simultaneous notes  (16 channels)
- All commands are asynchronous

If you already have a game or critical real-time stack
(for instance with a lot of animation),
you can add any SunnYmidi command into your script
and your animation will still act as before.
You don't need to bother about any latency or synchronisation.

Roadmap for SunnYmidi:

- iOs platform
- manage SoundFiles
- manage Midi Destinations (live Midi)
- add sysex command
- load/record Midi files
- ABC to LiveCode translator


Today, I've still not decided which new functionnalities
I'll start coding. So, for all those who are in need of one of them,
drop me a line - you could help me to choose the one to start with.


You can also download  from http://sunny-tdz.com :

 -   a full working Demo tutorial of SunnYmidi

 -   SunnYabc Demo
 an ABC Tunes player (only MacOsX).
(formely MaestroJunior presented
 at  revLive.09 Conference)

and from from Rev-online :

   -   SunnYbeep
   a fun alternative to the beep command,
   and more, it's free!  (only MacOsX)


Kind regards,

Thierry Douez
---
http://sunny-tdz.com - freelance consultant/developer
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SunnYmidi: script your sounds

2011-06-29 Thread René Micout
Hello Thierry,

VERY good work !!
You have lost (to say) some setups (witch works very well) : chords, arpeggio, 
reverb, vibrato, panoramic, etc.   :-)

For the roadmap :
1. load/record Midi files
2. Live Lidi
3. Sysex
4. SoundFiles  SoundFonts ?
5. iOS platform
6. ABC

Merci Thierry
René

Le 29 juin 2011 à 14:19, Thierry Douez a écrit :

 Hi,
 
 Only 2 days left to benefit from the introductory price for SunnYmidi.
 
 SunnYmidi is a MacOsX external which offers LiveCode coders
 a set of commands to play MIDI notes.
 
 - You can select up to 250 instruments
 - You can play up to 16 simultaneous notes  (16 channels)
 - All commands are asynchronous
 
 If you already have a game or critical real-time stack
 (for instance with a lot of animation),
 you can add any SunnYmidi command into your script
 and your animation will still act as before.
 You don't need to bother about any latency or synchronisation.
 
 Roadmap for SunnYmidi:
 
- iOs platform
- manage SoundFiles
- manage Midi Destinations (live Midi)
- add sysex command
- load/record Midi files
- ABC to LiveCode translator
 
 
 Today, I've still not decided which new functionnalities
 I'll start coding. So, for all those who are in need of one of them,
 drop me a line - you could help me to choose the one to start with.
 
 
 You can also download  from http://sunny-tdz.com :
 
 -   a full working Demo tutorial of SunnYmidi
 
 -   SunnYabc Demo
 an ABC Tunes player (only MacOsX).
(formely MaestroJunior presented
 at  revLive.09 Conference)
 
 and from from Rev-online :
 
   -   SunnYbeep
   a fun alternative to the beep command,
   and more, it's free!  (only MacOsX)
 
 
 Kind regards,
 
 Thierry Douez
 ---
 http://sunny-tdz.com - freelance consultant/developer
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Amiga OS in 2011

2011-06-29 Thread Peter Brigham MD
I have a sundial in my back yard. Sure, it's not quite as convenient as a 
watch, but it don't need no stinkin' batteries

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Jun 29, 2011, at 1:03 AM, Nonsanity wrote:

 Oh yeah? Well... well... MY wristwatch is a PDP-11, so NYAH!
 
 :)
 ~ Chris Innanen
 ~ Nonsanity
 
 
 On Tue, Jun 28, 2011 at 1:56 AM, Jeff Reynolds j...@siphonophore.comwrote:
 
 I still have my transparent developer's newton! talk about looks when i use
 to plop that down on a conference table! that and my sinclair z80 and my
 Basis 108 are still alive...
 
 cheers
 
 jeff
 
 
 On Jun 28, 2011, at 1:19 AM, 
 use-livecode-request@lists.**runrev.comuse-livecode-requ...@lists.runrev.comwrote:
 
 hey I was using a newton up until last year...
 
 
 
 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SunnYmidi: script your sounds

2011-06-29 Thread Thierry Douez
Bonjour René,

Thanks for your kind words and the typo correction.

Sure, it should be read soundFounts and not SoundFiles !

Merci

Thierry


Hello Thierry,

 VERY good work !!
 You have lost (to say) some setups (witch works very well) : chords,
 arpeggio, reverb, vibrato, panoramic, etc.   :-)

 For the roadmap :
 1. load/record Midi files
 2. Live Lidi
 3. Sysex
 4. SoundFiles  SoundFonts ?
 5. iOS platform
 6. ABC

 Merci Thierry
 René

 Le 29 juin 2011 à 14:19, Thierry Douez a écrit :

  Hi,
 
  Only 2 days left to benefit from the introductory price for SunnYmidi.
 
  SunnYmidi is a MacOsX external which offers LiveCode coders
  a set of commands to play MIDI notes.
 
  - You can select up to 250 instruments
  - You can play up to 16 simultaneous notes  (16 channels)
  - All commands are asynchronous
 
  If you already have a game or critical real-time stack
  (for instance with a lot of animation),
  you can add any SunnYmidi command into your script
  and your animation will still act as before.
  You don't need to bother about any latency or synchronisation.
 
  Roadmap for SunnYmidi:
 
 - iOs platform
 - manage SoundFiles
 - manage Midi Destinations (live Midi)
 - add sysex command
 - load/record Midi files
 - ABC to LiveCode translator
 
 
  Today, I've still not decided which new functionnalities
  I'll start coding. So, for all those who are in need of one of them,
  drop me a line - you could help me to choose the one to start with.
 
 
  You can also download  from http://sunny-tdz.com :
 
  -   a full working Demo tutorial of SunnYmidi
 
  -   SunnYabc Demo
  an ABC Tunes player (only MacOsX).
 (formely MaestroJunior presented
  at  revLive.09 Conference)
 
  and from from Rev-online :
 
-   SunnYbeep
a fun alternative to the beep command,
and more, it's free!  (only MacOsX)
 
 
  Kind regards,
 
  Thierry Douez
  ---
  http://sunny-tdz.com - freelance consultant/developer
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [OT] Amiga OS in 2011

2011-06-29 Thread Richard Gaskin

Peter Brigham MD wrote:


I have a sundial in my back yard. Sure, it's not quite as convenient as a 
watch, but it don't need no stinkin' batteries


My favorite car is a bicycle, which gives me about 25 MPB*


* Miles per burrito:
http://dcdownshift.wordpress.com/2010/05/18/bicycle-miles-per-burrito/

:)

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SunnYmidi: script your sounds

2011-06-29 Thread René Micout
In my own mail  read 2. Live Midi and not Live Lidi !!   :-(

Le 29 juin 2011 à 16:17, Thierry Douez a écrit :

 Bonjour René,
 
 Thanks for your kind words and the typo correction.
 
 Sure, it should be read soundFounts and not SoundFiles !
 
 Merci
 
 Thierry
 
 
 Hello Thierry,
 
 VERY good work !!
 You have lost (to say) some setups (witch works very well) : chords,
 arpeggio, reverb, vibrato, panoramic, etc.   :-)
 
 For the roadmap :
 1. load/record Midi files
 2. Live Lidi
 3. Sysex
 4. SoundFiles  SoundFonts ?
 5. iOS platform
 6. ABC
 
 Merci Thierry
 René
 
 Le 29 juin 2011 à 14:19, Thierry Douez a écrit :
 
 Hi,
 
 Only 2 days left to benefit from the introductory price for SunnYmidi.
 
 SunnYmidi is a MacOsX external which offers LiveCode coders
 a set of commands to play MIDI notes.
 
 - You can select up to 250 instruments
 - You can play up to 16 simultaneous notes  (16 channels)
 - All commands are asynchronous
 
 If you already have a game or critical real-time stack
 (for instance with a lot of animation),
 you can add any SunnYmidi command into your script
 and your animation will still act as before.
 You don't need to bother about any latency or synchronisation.
 
 Roadmap for SunnYmidi:
 
   - iOs platform
   - manage SoundFiles
   - manage Midi Destinations (live Midi)
   - add sysex command
   - load/record Midi files
   - ABC to LiveCode translator
 
 
 Today, I've still not decided which new functionnalities
 I'll start coding. So, for all those who are in need of one of them,
 drop me a line - you could help me to choose the one to start with.
 
 
 You can also download  from http://sunny-tdz.com :
 
-   a full working Demo tutorial of SunnYmidi
 
-   SunnYabc Demo
an ABC Tunes player (only MacOsX).
   (formely MaestroJunior presented
at  revLive.09 Conference)
 
 and from from Rev-online :
 
  -   SunnYbeep
  a fun alternative to the beep command,
  and more, it's free!  (only MacOsX)
 
 
 Kind regards,
 
 Thierry Douez
 ---
 http://sunny-tdz.com - freelance consultant/developer
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode crashes on quit

2011-06-29 Thread william humphrey
No I don't use AOL but thanks for the suggestion. I believe it has something
to do with the latest beta release of Valentina so I'm going to try rolling
that back to see if it helps.

On Tue, Jun 28, 2011 at 11:59 PM, dunb...@aol.com wrote:

 I had this problem with v4.3 when I was using the AOL application. When I
 dumped AOL, using aol.com instead, the problem went away.


 Is this a possibility?





 -Original Message-
 From: william humphrey b...@bluewatermaritime.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Tue, Jun 28, 2011 7:16 pm
 Subject: LiveCode crashes on quit


 I've just started having a problem. LivCode crashes my 10.6.8 OS when I
 quit
 it. I even tried updating to LiveCode 4.6.2 and it still crashes when I
 quit.

 I can start LiveCode and do nothing or open and close stacks, doesn't
 matter, but when I quit LiveCode everything goes down.

 Can anyone help figure out why this is happening?
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
http://www.bluewatermaritime.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Amiga OS in 2011

2011-06-29 Thread Nonsanity
So the sundial is solar powered, and the bike is rocket powered? :)

 ~ Chris Innanen
 ~ Nonsanity


On Wed, Jun 29, 2011 at 10:20 AM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

 Peter Brigham MD wrote:

  I have a sundial in my back yard. Sure, it's not quite as convenient as a
 watch, but it don't need no stinkin' batteries


 My favorite car is a bicycle, which gives me about 25 MPB*


 * Miles per burrito:
 http://dcdownshift.wordpress.**com/2010/05/18/bicycle-miles-**
 per-burrito/http://dcdownshift.wordpress.com/2010/05/18/bicycle-miles-per-burrito/
 

 :)

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: 
 http://LiveCodejournal.com/**blog.irvhttp://LiveCodejournal.com/blog.irv

 __

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Copy Files in the Standalone Settings

2011-06-29 Thread Slava Paperno
I am happy to report that this has been fixed in 4.6.2. Good job, RunRev!

Slava
===
When I use the Add Folder button in the Copy Files tab of the Standalone
Settings dialog, I see the path to the folder listed with an asterisk, like
this:

Fonts/*

I thought that when the standalone is built, all files in folder Fonts would
be copied to folder Fonts in the subtree that contains the executable. This
doesn't happen: the folder is created, but it is empty.
 
Thanks,

Slava


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Amiga OS in 2011

2011-06-29 Thread Bob Sneidar
I walk around the beach in bare feet!

Bob


On Jun 29, 2011, at 7:34 AM, Nonsanity wrote:

 So the sundial is solar powered, and the bike is rocket powered? :)
 
 ~ Chris Innanen
 ~ Nonsanity
 
 
 On Wed, Jun 29, 2011 at 10:20 AM, Richard Gaskin ambassa...@fourthworld.com
 wrote:
 
 Peter Brigham MD wrote:
 
 I have a sundial in my back yard. Sure, it's not quite as convenient as a
 watch, but it don't need no stinkin' batteries
 
 
 My favorite car is a bicycle, which gives me about 25 MPB*
 
 
 * Miles per burrito:
 http://dcdownshift.wordpress.**com/2010/05/18/bicycle-miles-**
 per-burrito/http://dcdownshift.wordpress.com/2010/05/18/bicycle-miles-per-burrito/
 
 
 :)
 
 --
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: 
 http://LiveCodejournal.com/**blog.irvhttp://LiveCodejournal.com/blog.irv
 
 __
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Amiga OS in 2011

2011-06-29 Thread Richmond Mathewson

On 06/29/2011 05:20 PM, Richard Gaskin wrote:

Peter Brigham MD wrote:

I have a sundial in my back yard. Sure, it's not quite as convenient 
as a watch, but it don't need no stinkin' batteries


My favorite car is a bicycle, which gives me about 25 MPB*


* Miles per burrito:
http://dcdownshift.wordpress.com/2010/05/18/bicycle-miles-per-burrito/

:)


Do all my mathematics with a British Thornton slide-rule from 1976.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Amiga OS in 2011

2011-06-29 Thread Nonsanity
On Wed, Jun 29, 2011 at 12:27 PM, Richmond Mathewson 
richmondmathew...@gmail.com wrote:

 Do all my mathematics with a British Thornton slide-rule from 1976.


If you install the latest firmware update for it, it comes with some really
nice plugins...

 ~ Chris Innanen
 ~ Nonsanity
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Snapshot command and non-rect polygon selections?

2011-06-29 Thread John Patten

Hi All!

Is it possible to to use non rectangular shapes when creating snapshots?

What if I had capture shape like the capital letter L  ...  could I  
create a snapshot out of the outline of the letter L? (That's just an  
example...)


As I understand it, snapshot only works with four coordinates, the  
points of a rect... or can they work with any group of points on a  
polygon?


Thanks in advance!

John Patten
SUSD

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Snapshot command and non-rect polygon selections?

2011-06-29 Thread Andre Garzia
John

export snapshot from graphic L to file l.png as PNG

will do as you want. No need for coords, just pass the object reference.

best
andre

On Wed, Jun 29, 2011 at 3:48 PM, John Patten johnpat...@mac.com wrote:

 Hi All!

 Is it possible to to use non rectangular shapes when creating snapshots?

 What if I had capture shape like the capital letter L  ...  could I
 create a snapshot out of the outline of the letter L? (That's just an
 example...)

 As I understand it, snapshot only works with four coordinates, the points
 of a rect... or can they work with any group of points on a polygon?

 Thanks in advance!

 John Patten
 SUSD

 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
http://www.andregarzia.com All We Do Is Code.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Snapshot command and non-rect polygon selections?

2011-06-29 Thread John Patten

Hi Andre...

The issue is the L shape is inside a larger image. So essentially I  
only want a part of the image and the part I want is in the shape of  
the letter L.


Thanks!

John Patten
SUSD

On Jun 29, 2011, at 12:24 PM, Andre Garzia wrote:


John

export snapshot from graphic L to file l.png as PNG

will do as you want. No need for coords, just pass the object  
reference.


best
andre

On Wed, Jun 29, 2011 at 3:48 PM, John Patten johnpat...@mac.com  
wrote:



Hi All!

Is it possible to to use non rectangular shapes when creating  
snapshots?


What if I had capture shape like the capital letter L  ...  could I
create a snapshot out of the outline of the letter L? (That's just an
example...)

As I understand it, snapshot only works with four coordinates, the  
points

of a rect... or can they work with any group of points on a polygon?

Thanks in advance!

John Patten
SUSD

__**_
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode 







--
http://www.andregarzia.com All We Do Is Code.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Snapshot command and non-rect polygon selections?

2011-06-29 Thread Scott Rossi
John, I don't think you can automatically do what you're asking -- a
snapshot always grabs from a rectangle.

You either need to do as Andre suggests, or you have to define the L region
yourself, and mask it out of the snapshot image.  You can do this using a
combination of ink effects, or by artificially applying alpha transparency
to the snapshot.  There are probably a few other ways as well.

Here's an example of masking using ink effects:
 go url http://tactilemedia.com/site_files/downloads/masking_options.rev;

Here's an example of applying alpha transparency to one image using the
imageData of another image:
 go url http://tactilemedia.com/site_files/downloads/get_alpha.rev;

Hope this helps.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




Recently, John Patten wrote:

 Hi Andre...
 
 The issue is the L shape is inside a larger image. So essentially I
 only want a part of the image and the part I want is in the shape of
 the letter L.
 
 Thanks!
 
 John Patten
 SUSD
 
 On Jun 29, 2011, at 12:24 PM, Andre Garzia wrote:
 
 John
 
 export snapshot from graphic L to file l.png as PNG
 
 will do as you want. No need for coords, just pass the object
 reference.
 
 best
 andre
 
 On Wed, Jun 29, 2011 at 3:48 PM, John Patten johnpat...@mac.com
 wrote:
 
 Hi All!
 
 Is it possible to to use non rectangular shapes when creating
 snapshots?
 
 What if I had capture shape like the capital letter L  ...  could I
 create a snapshot out of the outline of the letter L? (That's just an
 example...)
 
 As I understand it, snapshot only works with four coordinates, the
 points
 of a rect... or can they work with any group of points on a polygon?
 
 Thanks in advance!
 
 John Patten
 SUSD
 
 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.
 com/mailman/listinfo/use-livecode
 
 
 
 
 
 -- 
 http://www.andregarzia.com All We Do Is Code.
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android and IOS

2011-06-29 Thread Ralph DiMola
I went from a 80 col card programmer in 1973 though OS and CGI development
in the 1980-1990s to VB6 and Java today. I'm new to Livecode (1 month) So go
easy on me. I see this a rough crowd, but some help by pointing me in the
right direction would be appreciated.

My apps for both Android and IOS will access SQLite databases. The app is
coming along fine in the IDE (database access and such). I am in the process
testing on Android. After Android I will start testing on IOS. So these
question are Android related but IOS comments would be appreciated.

1) I have a splash screen that displays an image using the image control.
Works fine the in IDE, but is blank when run on the Android HW. Image file
is obviously not available to the app on the HW. The image file is in the
apk file. How is this referenced to work in both the IDE and HW?
2) I included both the db and splash screen image in the Copy Files tab of
standalone app setting. They are both in the apk file. When I browse the apk
file after installation in the elusive data/app folder and browse the apk
files assets folder the db and splash screen files are there. The real
question is how to move the db to the equally elusive
/data/app/myapp/files folder on install for R/W access. I put a copy there
manually for testing my app. I can access the db using the
specialFolderPath(documents) path. The
specialFolderPath(engine)/assets path should point to the apk's assets
folder but I having no luck during the openstack event coping the files
myself to the /data/app/myapp/files folder for R/W access.
3) What type of menu will use the native menu picker(slide with finger) on
the Android? I see that to use the native view in IOS the menu picker or
some such thing must be used. I will go there later. For now Android is the
priority.
4) Are there some example of resizing the stack for various screen sizes? I
have read the grouping of objects is helpful. I also imagine the
portrait/landscape requires some planning so resizing is practical in both
orientations. I have seen some resizing code but it is not completely clear
to me.
5) Does anyone know when GPS access on the Android will be available? Is
there a workaround?
6) Can you get runtime errors when running on the Android HW? Now all I get
is nothing.
8) How do you install app on SD card?
9) Are there any LC APIs for GPS coordinate proximity to zip codes?

I know this is a lot of questions. I have been reading and hacking 24/7 for
a month now and app is almost complete except for these issues.
Thanks in advance for any insight!!!

Ralph DiMola



use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Bounty for Google OAuth2 For Native Apps

2011-06-29 Thread Todd Geist
Hello

I really want to start messing with my Google Calendars and Contacts with
LiveCode. To do that I need to be able to Authenticate my LiveCode app.  And
I just don't have the time to figure it out.

So I am announcing a bounty of 200 dollars for a library stack that can
Authenticate to Google using OAuth2 for Native Apps.Here are the docs from
Google:

http://code.google.com/apis/accounts/docs/OAuth2.html#IA


Requirements

   - Include Sample code that can create a Google Calendar and then delete
   it.
   - Needs to work on Mac and Windows, all other platforms are optional.
   - The code needs to be releasable as free and open source stack, with no
   restrictions.

First one to get me a working example that meets the above requirements wins


Here are the docs from Google
http://code.google.com/apis/accounts/docs/OAuth2.html#IA

Happy coding and good luck!

Thanks

Todd



Todd Geist
--
geist interactive http://www.geistinteractive.com
805-419-9382
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


A save question in an app

2011-06-29 Thread Charles Szasz
I have the following code in my save handler:


if there is not a folder tNewFolder then
   create folder tNewFolder
end if

ask file Save file as:  with (tNewFolder  /Untitled.datatxt)
put it into tSaveFile
if tSaveFile is empty then exit to top
put gatherData(tCardName) into URL (file:  tSaveFile)
 end if

When an user saves a file, the user is presented with a file dialog that has 
Untitled.datatxt hilited in the Save As dialog. Is there anyway that only 
Untitled can be hilited so that the user enters a name for the file but the 
.datatxt extension is automatically saved to the file name selected by the user?

Charles Szasz
csz...@mac.com




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: A save question in an app

2011-06-29 Thread Mark Schonewille
Charles,

No. You can't do that. Not even with Applescript. Currently, you'd need an 
external to do that.

Usually, I check whether the user deleted the file extension. If yes, then I 
add the file extension again and check to see if the file already exists. If 
the files exists, I show the user an error message and leave it with that. The 
user will have to try saving again and will hopefully have learned not to 
delete the file extension.

On Mac OS X, you don't really need file extensions. You could do with file type 
and creator.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 30 jun 2011, at 01:31, Charles Szasz wrote:

 I have the following code in my save handler:
 
 
 if there is not a folder tNewFolder then
   create folder tNewFolder
end if
 
ask file Save file as:  with (tNewFolder  /Untitled.datatxt)
put it into tSaveFile
if tSaveFile is empty then exit to top
put gatherData(tCardName) into URL (file:  tSaveFile)
 end if
 
 When an user saves a file, the user is presented with a file dialog that has 
 Untitled.datatxt hilited in the Save As dialog. Is there anyway that only 
 Untitled can be hilited so that the user enters a name for the file but the 
 .datatxt extension is automatically saved to the file name selected by the 
 user?
 
 Charles Szasz
 csz...@mac.com
 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android and IOS

2011-06-29 Thread J. Landman Gay

On 6/29/11 4:53 PM, Ralph DiMola wrote:

I went from a 80 col card programmer in 1973 though OS and CGI development
in the 1980-1990s to VB6 and Java today. I'm new to Livecode (1 month) So go
easy on me. I see this a rough crowd, but some help by pointing me in the
right direction would be appreciated.


Welcome. We're not that rough. We even like each other. :)



My apps for both Android and IOS will access SQLite databases. The app is
coming along fine in the IDE (database access and such). I am in the process
testing on Android. After Android I will start testing on IOS. So these
question are Android related but IOS comments would be appreciated.

1) I have a splash screen that displays an image using the image control.
Works fine the in IDE, but is blank when run on the Android HW. Image file
is obviously not available to the app on the HW. The image file is in the
apk file. How is this referenced to work in both the IDE and HW?


You can either branch to accomodate each environment, or easier, set up 
your hard drive files to mimic what will be on the device. On Android, 
files in the Copy Files inclusion pane will by default be relative to 
the engine, so when you're using a stack in the IDE, make your files 
there relative to the stack location. Set the defaultfolder to the one 
holding your stack and then you can reference them on both platforms the 
same way. The default folder on Android, if you don't change it, is the 
engine folder so you don't have to set it there.


So if you have a folder of images next to the stack on disk (and you've 
set the defaultfolder,) it's path will be images/splash.png. On 
Android it will be the same.


Re-reading that, it doesn't sound too clear, so ask if you need more.


2) I included both the db and splash screen image in the Copy Files tab of
standalone app setting. They are both in the apk file. When I browse the apk
file after installation in the elusive data/app folder and browse the apk
files assets folder the db and splash screen files are there. The real
question is how to move the db to the equally elusive
/data/app/myapp/files folder on install for R/W access. I put a copy there
manually for testing my app. I can access the db using the
specialFolderPath(documents) path. The
specialFolderPath(engine)/assets path should point to the apk's assets
folder but I having no luck during the openstack event coping the files
myself to the /data/app/myapp/files folder for R/W access.


I'm not sure exactly what's going on under the hood, but I heard it's 
not as straightforward as you'd think. The advice is to always use the 
built-in specialFolderPaths and just let the engine do what it needs to do:


  put url (binfile:  specialFolderPath(engine)myDb.db) into url 
(binfile:  specialFolderPath(documents)  myDB.db)



3) What type of menu will use the native menu picker(slide with finger) on
the Android? I see that to use the native view in IOS the menu picker or
some such thing must be used. I will go there later. For now Android is the
priority.


A native scroller control isn't there yet, but you can emulate it. 
There's an example in the TickedOff stack shown at the conference, and I 
think at the Summer Academy, but I'm not sure if that's available for 
general download. Basically you just set up a field with the right text 
size and lineheight and then script it to scroll on touch. I'll see if I 
can find an example tomorrow and post it, unless someone else does it first.



4) Are there some example of resizing the stack for various screen sizes? I
have read the grouping of objects is helpful. I also imagine the
portrait/landscape requires some planning so resizing is practical in both
orientations. I have seen some resizing code but it is not completely clear
to me.


There is a lesson here: 
http://lessons.runrev.com/spaces/lessons/buckets/1004/lessons/28683-Displaying-Assets-On-Differing-Screen-Resolutions


You need to script each object's rectangle and/or position in response 
to a resizeStack message, which the stack receives when the device 
rotates. You'll also need to run the same resize handler on preOpenStack 
or preOpenCard, based on the screenrect.


Resizing is a pain but once you get the hang of it, it becomes more 
tedious than difficult.



5) Does anyone know when GPS access on the Android will be available? Is
there a workaround?


I don't know, but I'm pretty sure there's no workaround.


6) Can you get runtime errors when running on the Android HW? Now all I get
is nothing.


Yes, and with the older Android plugin there was a log window you could 
open just for that purpose. It got omitted when the Android build was 
integrated into the IDE (and I want it back.) But you can install the 
older plugin and use it just to see the output log, and it won't 
interfere with the IDE at all. I think the plugin can be downloaded from 
your store account.


Once you've installed the plugin (ask if you don't know how) you can 
open it and