Colour Manipulation

2017-03-18 Thread Peter Reid via use-livecode
I've got an app that allows the user to display an image using a variable number of colours (2-24 colours). In addition, the user can specify upper and lower thresholds so that all pixels below a specified value are displayed using a colour such as black and all pixels with values above a

Re: use-livecode Digest, Vol 163, Issue 13

2017-04-06 Thread Peter Reid via use-livecode
Hi HH Thanks for the advice, it was the paintCompression that caused the problem. In the IDE it defaults to PNG but in the standalone it defaults to RLE instead. As I didn't set it, the value was the default for the environment! I simply added: set the paintCompression to png to

Setting LD_LIBRARY_PATH

2017-04-16 Thread Peter Reid via use-livecode
Has anyone successfully set the environment variable LD_LIBRARY_PATH for Mac/Linux apps? I've found that I can set the variable using: put tValue into $LD_LIBRARY_PATH and it appears to be set as far as the IDE is concerned. However, if I use the shell command to display the value of

Standalone Magnify Problem

2017-04-05 Thread Peter Reid via use-livecode
I'm following an approach published sometime ago (http://forums.livecode.com/viewtopic.php?f=7=8288 ) to provide a floating magnifier over the top of quite a large image. I have it working fine when I'm in the development environment but it's

Wrapping Android Speech-to-Text?

2017-09-17 Thread Peter Reid via use-livecode
Having got Android speech input working, how easy would it be to do a similar thing to wrap Android's speech-to-text facility? I understand that it uses an on-line link to Google's voice input resources, which would be great for a number of purposes. Obviously, off-line would be better still,

Comparing 2 Spoken words, FFT function in LiveCode?

2017-10-16 Thread Peter Reid via use-livecode
Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2

Android Sound Capture in WAV format

2017-10-17 Thread Peter Reid via use-livecode
Since Ali got sound capture for Android working, I'm trying to see if it's possible to output the sound in WAV format instead of MP4 format. I'm trying to compare 2 sounds (1 prepared previously against 1 captured on the Android device) and it seems to be easier to compare them if they are both

Re: Atkinson dither algorithm & 'for each' loop

2017-10-12 Thread Peter Reid via use-livecode
One note of caution regarding the use of the "repeat for each" loop, whilst you will get a loop iteration for every value in the collection (fldhexa3 in your example), you are not guaranteed the order in which they will occur. This doesn't matter in a lot of cases but does matter when the

Re: Deploying to Android (Amazon Fire 7)

2017-09-05 Thread Peter Reid via use-livecode
Hi Jonathan, Colin & Jacqueline Thanks for the various suggestions. On my Mac, I have installed the Java SDK 8.144 and Android Studio 2.3.3 together with Android File Transfer. In LC 8.1.6 I have set up the reference to the Android SDK (/Users/peter/Library/Android/sdk/). On my Amazon Fie 7

Deploying to Android (Amazon Fire 7)

2017-09-05 Thread Peter Reid via use-livecode
OK, I've been round the various circles (Lessons, Forum trails, etc.) but I'm completely confused! On my Mac, I've tried installing Java SDK 8.144, Android Studio 2.3.3 and set up LC 8.1.6 to point at the Android root. However, I can't see how I get to specify an Android device - a previous

Re: Android Audio Playback & Recording

2017-09-13 Thread Peter Reid via use-livecode
Hi Al Thanks for the link, I had seen it previously but didn't understand how I could incorporate it into my app! I've no experience with code-wrapping or creating lcb widgets, so I can't see how I proceed with what looks like a solution!! Any help, in simple steps, gratefully received.

Android Audio Playback & Recording

2017-09-10 Thread Peter Reid via use-livecode
Hi, I'm making an app for Android in the form of an Amazon Fire 7 tablet (2017 version). I'm doing the development with LC 9-dp8 and a Mac running macOS 10.12.6. A key part of this app requires the user to say a word or two, which will be recorded by the tablet and saved for subsequent

Re: Android Audio Playback & Recording

2017-09-12 Thread Peter Reid via use-livecode
Maybe that is OT for your use case, but I have some users interest in this. > > BR > > > > On 9/10/17, 11:06 AM, "use-livecode on behalf of Peter Reid via use-livecode" > <use-livecode-boun...@lists.runrev.com on behalf of > use-livecode@lists.runrev.com>

Re: use-livecode Digest, Vol 169, Issue 18

2017-10-12 Thread Peter Reid via use-livecode
I agree that the redundant indexing is an expensive approach, however I have found that this abnormal structure of a repeat for each loop can be a lot faster than the other loop forms in some circumstances. I can't find the reference that first highlighted to me the lack of guaranteed sequence

Slow Opening IDE

2017-11-15 Thread Peter Reid via use-livecode
Please can anyone tell me how to reset LC to a clean startup state? I use the Business Editions of LC 9,0,0-dp10, 8.1.7 and 8.8.1-rc1 on a Mac (10.12.6). Recently opening LC has become much slower. Typically from initial click to open, until the splash pop-up is now taking several minutes.

Re: Slow Opening IDE

2017-11-15 Thread Peter Reid via use-livecode
; Livecode. My current file is now 32MB. > > I?ve already reported this to the bugbase in May 2016 and it was confirmed. > bug 17748 <http://quality.livecode.com/show_bug.cgi?id=17748> > > Regards, > Matthias > > >> Am 15.11.2017 um 10:43 schrieb Peter Reid via use-livecode

mobilePlaySoundOnChannel bug?

2017-11-04 Thread Peter Reid via use-livecode
I'm using LC 9.0.0-dp10 on a Mac to develop an app for an Android/Amazon Fire 7 tablet (FireOS 5.1.x). As the app launches it prompts the user to select a set of files from the microSD card plugged into the tablet. The selected set of files are copied to the specialFolderPath("documents") area.

Android Filing System using LC9

2017-10-30 Thread Peter Reid via use-livecode
I've investigated further the way the Android filing system seems to be available to LC 9.0.0-dp10. As I reported previously, I have found several anomalies. Here's what I've found, (with my app being identified as "com.reidit.aphtrain" in the examples): 1. The internal storage area pointed

Remote Debugger Frustrations

2017-10-31 Thread Peter Reid via use-livecode
How are people getting on with the remote debugger facility? I'm finding it very useful but also frustrating for the following reasons: 1. It's SLOW. I'm running LC 9 on an iMac with a 4GHz quad i7 processor and 24GB RAM connected by USB to an Amazon Fire 7 tablet, yet each step through the

Emergency Help?

2018-05-03 Thread Peter Reid via use-livecode
Hi What's the news about Sean, has anyone made contact with him and has he accepted the help? I'm asking as I'm about to make a donation and I'd like to be sure that this will get through to him before I proceed. Thanks Peter -- Peter Reid Loughborough, UK > On 2 May 2018, at 7:37pm,

Android Filing System?

2017-10-27 Thread Peter Reid via use-livecode
Please can someone explain the Android filing system as seen by LC 9. I'm developing an app that loads some files & folders with the app initially, but then changes some or all of this data. In addition, the app will read and write files & folders to the SD card plugged into the Android

Re: use-livecode Digest, Vol 172, Issue 19

2018-01-10 Thread Peter Reid via use-livecode
Hi Richard I found this problem was particularly annoying, especially when trying to extract info from vCards exported from Contacts on the Mac, so I developed a tiny app in LC called vCard Clipper. I've put together a web page about this app together with download links to a Mac App and the

Re: Problem pasting from Livecode to Mac Mail

2018-01-12 Thread Peter Reid via use-livecode
Sorry, forgot to change Subject in previous posting... Hi Richard I found this problem was particularly annoying when trying to extract info from vCards exported from Contacts on the Mac, so I developed a tiny app in LC called vCardClipper. I've put together a web page about this app together

Re: Aphasia

2017-12-28 Thread Peter Reid via use-livecode
Hi David Thanks for the feedback. You may be right, I'm just going on the description given by the family. As I've replied to Richmond, I'm not a medic. Nevertheless, I'll continue anyway as the family are very positive about it and how it helps them engage with the problem as a whole

Re: Audio Processing in LiveCode

2017-12-28 Thread Peter Reid via use-livecode
Hi Richmond My aim is to provide a trainer app to help the person improve their speaking (i.e. NOT 2 at this stage). This is what the family wanted and they (including the sufferer) are happy with its function and intended purpose so far. However, I'm not a medic, so I accept what you say.

Re: Audio Processing in LiveCode

2017-12-28 Thread Peter Reid via use-livecode
> To: Peter Reid via use-livecode <use-livecode@lists.runrev.com> > Subject: Re: use-livecode Digest, Vol 171, Issue 44 > > This Mark Smith was a list member who passed away in 2012. There is/was > another Mark Smith on this list after that. > > Mark created severa

Voice Comparison in LiveCode?

2017-12-27 Thread Peter Reid via use-livecode
i'm developing an app for cheap Android tablets (e.g. Amazon Fire 7in) that allows a user to practice speaking a set of words. The app plays a sample of a word and the user then tries to say the same word. So far the app can play sample words and capture the user's attempts for the same

Re: use-livecode Digest, Vol 171, Issue 44

2017-12-27 Thread Peter Reid via use-livecode
Hi Marc, Paul, Phil, Rick and Richmond Thanks for your various thoughts. To put a bit more flesh on this, here's what I'm developing and why... In the first instance I'm doing this development for a friend who's grandmother suffers from aphasia (saying completely the wrong word). The idea is

Android text-to-Speech?

2018-08-31 Thread Peter Reid via use-livecode
Does anyone have a way of converting text to speech for Android, i.e. the equivalent to revSpeak for Android (& iOS)? I came across a suggestion that involved Google's translation service but this doesn't seem to work now and I'd prefer it if I didn't have to use a Google service. revSpeak

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread Peter Reid via use-livecode
ialisation in the stack script: > > global gImageRatio > > on preOpenStack > put the width of image "CoinSet" / the height of image "CoinSet" into > gImageRatio > end preOpenStack > > I'm probably missing something obvious, but can anyone help please?! > &

Stupid Question Again - Proportional Scaling

2018-03-17 Thread Peter Reid via use-livecode
I know it's possible and I know it's simple really, but I can't remember it/figure it out! I have a sub-stack that contains an image. I want the user to be able to drag the corners and edges of the sub-stack window to make the window and its image larger or smaller, but the window and image

Size of screen diagonal?

2018-02-28 Thread Peter Reid via use-livecode
I'm developing a desktop app for Mac & PC that displays photos of coins. I'd like to display them at real size but I can't find the properties for the current screen (i.e. the one that my app is running on. I can get the screen colour depth, resolution, scaling factor, etc. but not the

Reading PDF Form Data in LiveCode?

2018-10-10 Thread Peter Reid via use-livecode
Does anyone have any code or suggestions for reading the data from PDF forms? I have several hundred form fields in 5 different design forms in PDF format that I need to extract. The data is mainly text fields but may include a few checkboxes and radio buttons. Any thoughts please? Thanks

Using A Browser for TTS?

2019-01-06 Thread Peter Reid via use-livecode
A while ago I asked whether there was any way to do Text-To-Speech (TTS) for Android. Unfortunately there were no replies. Since then I came across a browser JavaScript API that seems to provide speech synthesis: Here's a sample HTML that plays through my default browser on my Mac: -

Android Text-To-Speech?

2018-12-18 Thread Peter Reid via use-livecode
Has anyone got a way of doing text-to-speech for Android? We have revSpeak for desktop/laptop but not for Android deployment. Any solutions please? Peter -- Peter Reid Loughborough, UK ___ use-livecode mailing list use-livecode@lists.runrev.com

How to reliably identify an Android Tablet microSD Card

2018-11-28 Thread Peter Reid via use-livecode
I've got an app running on an Android 8.1 7in tablet which uses a microSD card for its RW data storage. I've tried using: specialFolderPath("external documents") which the docs describe as follows: • "external documents": The folder on the primary shared/external storage

FYI: How to reliably identify an Android Tablet microSD Card

2018-12-19 Thread Peter Reid via use-livecode
FYI I've managed to put together some code that reliably locates the microSD card in 4 very different Android-based tablets. The approach involves 3 different methods: 1. Search for a known folder on the SD card starting in the standard "/mnt" folder using a breadth-first search strategy. 2.

Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-10 Thread Peter Reid via use-livecode
I've been reading the responses to my original posting with interest. My thoughts are as follows: 1. Matthias Rebbe's tutorial and helper stack seem to be excellent and appear to be the best way of complying with Apple's requirements, for now. Let's hope that Matthias can maintain this as

OT: Catalina - the end of ad hoc & in-house development?

2019-09-07 Thread Peter Reid via use-livecode
I've been using LiveCode as my development platform since 1999. Practically all the apps I've developed have been for in-house use by my family, friends and customers - all very low numbers of copies distributed in an informal manner. I've no interest in App Store distribution and the users of

Building Android Apps

2019-10-09 Thread Peter Reid via use-livecode
I've been building Android apps using my iMac for some time. However, yesterday I started to get an error message "Failure [INSTALL_FAILED_VERSION_DOWNGRADE]" when I try to build an Android standalone app. Any ideas what's causing this and how to fix it? Separately I'd like to be able to build

Automating User Input

2020-01-31 Thread Peter Reid via use-livecode
I'm writing an app that needs to complete a couple of forms that are being displayed by a browser as if the user was doing it interactively. This is to save the user from having to enter complex medical terms. If the user were to interact directly with the browser, they could press the tab key

Re: A Windows 10 WTF

2019-12-24 Thread Peter Reid via use-livecode
Hi Tom I'm not sure about Windows 10 behaviour but I had a similar problem with Windows 7. It seemed that my LC app was not releasing the processor long enough to handle basic user I/O. The solution was to add the following to all my tight loops: wait 0 milliseconds with messages The

Re: Atom Editor Help

2020-05-15 Thread Peter Reid via use-livecode
dit to replace the IDE. > > http://forums.livecode.com/viewtopic.php?f=7=33891=190832=bbedit#p190832 > > <http://forums.livecode.com/viewtopic.php?f=7=33891=190832=bbedit#p190832> > > > On May 14 2020, at 11:28 pm, Peter Reid via use-livecode > mailto:use-livecode@l

Atom Editor Help

2020-05-14 Thread Peter Reid via use-livecode
Hi, I’ve noticed that several of the LiveCode staff use the Atom text editor. Until now I’ve used BBEdit on the Mac and Notepad++ on the PC. I’m thinking of switching to Atom but need to be sure it can everything I need. For example, I have a typical piece of pre-process manipulation of text

ICS Generation

2020-10-01 Thread Peter Reid via use-livecode
Has anyone got a calendar library for LiveCode? I'm developing an app, part of which exports a handful of events to do with ordering regular medication. I'd like to export an ICS format file containing 3 all-day events titled something like the following: 1. MEDS RUN-OUT TODAY 2. COLLECT MEDS

Re: ICS Generation

2020-10-03 Thread Peter Reid via use-livecode
Thanks all for the leads/links to Bill Vlahos' and Andre Garzia's developments, both look very interesting. I think Andre's vObject library looks to fit my needs better as it doesn't rely on other scripting technology such as AppleScript. I'll report back to the list how I get on with my very