Realtime sound generation in LC

2019-06-06 Thread jbv via use-livecode
Hi list, I was wondering if it could be possible to generate sound in real time with LC. I don't mean to play a sound file, but to put together samples at a certain sample rate (like 44.1 or 45 KHz) and output them, while changing some parameters like signal frequency or amplitude. I am

Re: Design questions...

2019-06-06 Thread Tom Glod via use-livecode
Glen, Just to add to whats already been said... Your app can run at full screen mode or in a window. Your app can resize and reposition the controls as the window is resized. (using very simple commands inside a resizestack handler), so instead of worrying about monitor size, you can make it

Re: Date and time

2019-06-06 Thread Glen Bojsza via use-livecode
Craig, Well done...not over done. I hope you’re out from under your desk. Glen On Thu, Jun 6, 2019 at 6:18 PM dunbarxx via use-livecode < use-livecode@lists.runrev.com> wrote: > Feel like I am overdoing this, but a bit more compact: > > on mouseUp >put "06-Jun-2019;09:05:21" into rawTime

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
Feel like I am overdoing this, but a bit more compact: on mouseUp put "06-Jun-2019;09:05:21" into rawTime -- your formatted moment here set the itemDel to "-" put item 1 of rawTime into tDay put itemOffset(item 2 of rawTime,"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec") into

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
And we should not be sloppy about using a function to display the answer, rather to return a value and let the calling handler do that. But I was avoiding actually working when I snuck this in, so I was typing from under my desk. Craig -- Sent from:

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
OF course you would need a little better than the last, so the DOW is not just entered by me for testing: on mouseUp put "06-Jun-2019;09:05:21" into rawTime put dissectRawTime(rawTime) into tSeconds convert rawTime to seconds end mouseUp function dissectRawTime rawtime get the long

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
Try this in a button script somewhere" on mouseUp put "06-Jun-2019;09:05:21" into rawTime put dissectRawTime(rawTime) into tSeconds convert rawTime to seconds end mouseUp function dissectRawTime rawtime get the long date ; convert it to dateItems set the itemDel to "-" put

Re: Date and time

2019-06-06 Thread Glen Bojsza via use-livecode
Obviously I overthought this (thanks Bob)...I was trying to convert the time separately and then the date and combining them which was leading to issues. The dictionary format example doesn't show this as being a solution... Glen On Thu, Jun 6, 2019 at 2:54 PM Bob Sneidar via use-livecode <

Re: Date and time

2019-06-06 Thread Bob Sneidar via use-livecode
First of all that date cannot be converted in that format. Secondly, try convert "Jun 6 2019 09:05:21" to seconds Bob S > On Jun 6, 2019, at 11:40 , Glen Bojsza via use-livecode > wrote: > > I'm pondering the easiest way to do a linear scale based on date and time > data. > > My thoughts

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
Hi. Write a simple function that dissects the string you gave. (Pseudo) function dissectOddFormat use itemDelimeters to isolate "06", "Jun", "2019", "09", "05" and "21" reform these strings into the date/time format local to your part of the planet convert that new string to seconds or

Re: Design questions...

2019-06-06 Thread Bob Sneidar via use-livecode
I ran into this too concerning the "effective" keyword. The dictionary says, "Adding the effective adjective to either form returns the area of the screen the application has to itself. In particular, if the keyboard is activated, it take into account if the keyboard is taking up space on the

Date and time

2019-06-06 Thread Glen Bojsza via use-livecode
I'm pondering the easiest way to do a linear scale based on date and time data. My thoughts are that if you can change 06-Jun-2019;09:05:21 to epoch seconds then it would possible to take all the similar timestamped data and change it to seconds thus using it as an "x-axis" scale for graphing

Re: Design questions...

2019-06-06 Thread Glen Bojsza via use-livecode
All good feedback! Fortunately I plan to limit the scope of things to the desktop as previously mentioned. I can't fathom the tablet / phone market given the number of devices and their different specs. Thanks to everyone for their input. Glen On Thu, Jun 6, 2019 at 2:12 PM Phil Davis via

Re: Design questions...

2019-06-06 Thread Phil Davis via use-livecode
Hi Glen, There are some screen resolution stats on the web that may be useful, at least for 'general public' app window sizes: https://en.wikipedia.org/wiki/Display_resolution Phil Davis On 6/6/19 6:47 AM, Glen Bojsza via use-livecode wrote: Hello, I was looking for input on the

Re: Design questions...

2019-06-06 Thread Matthias Rebbe via use-livecode
1. that really depends on the app type and of course on the customers displays. 2. most customers i know have got 17" or higher displays with a ratio of 16:9 or 16:10. The minimum resolution is 1280x1024 or 1280x768. 3. When working with ERP tools or other business software for accounting,

Re: Design questions...

2019-06-06 Thread Richmond via use-livecode
I deploy (fancy word saying I have a load of ancient Pentiums . . .) some machines in my school hooked up to flat-screens with a Max Res of 1024 by 780. I mean, at $10 a pop those monitors were impossible to resist! I make my EFL (English as a Fried Language) standalones to a "standard" of

Re: Design questions...

2019-06-06 Thread Richmond via use-livecode
Here's a silly thought that may help a bit . . . http://forums.livecode.com/viewtopic.php?f=7=32683 Richmond. On 6.06.19 16:47, Glen Bojsza via use-livecode wrote: Hello, I was looking for input on the following design questions...I haven't done anything for years so I am looking for other

Re: Design questions...

2019-06-06 Thread Peter Bogdanoff via use-livecode
We use a height of 728—that’s in compensation for a variety of issues—some laptops have very small screens: LC window title bar (can be hidden by LC if necessary) Windows Task bar (can be hidden by LC if necessary) You can get the height of the screen: (item 4 of the working screenRect) - (item

Re: How to troubleshoot Datagrid Behavior errors

2019-06-06 Thread Bob Sneidar via use-livecode
NVM it's in a column template script. Bob S > On Jun 6, 2019, at 09:09 , Bob Sneidar via use-livecode > wrote: > > Hi all. > > I have one stack that will throw errors in the column behavior. I set the > global gRevDevelopment to true and set a try catch with a breakpoint in the > two

How to troubleshoot Datagrid Behavior errors

2019-06-06 Thread Bob Sneidar via use-livecode
Hi all. I have one stack that will throw errors in the column behavior. I set the global gRevDevelopment to true and set a try catch with a breakpoint in the two places where it seems to fail, but the script is not breaking. Instead it ignores the breakpoint and continues to run. How do I

Re: Design questions...

2019-06-06 Thread Bob Sneidar via use-livecode
NP. BTW what I do for functionality that exists in both buttons and menus is, barring the handlers being in a library or behavior, I simply send mouseUp from the menu script to the button with the pertinent handlers. It's easier to edit the script of a button than it is to pull up the Menu

Re: Design questions...

2019-06-06 Thread Glen Bojsza via use-livecode
Bob, thanks for the info...I will start with 1024x768 as a minimal screen resolution for now and see what happens. As for the combo of menus and buttons I will try to find if there is a benefit of both and also usability space within the app. My target platforms are Windows 10 and OS X 10.X Glen

Re: Design questions...

2019-06-06 Thread Bob Sneidar via use-livecode
The smallerst monitor I know of is 640x480. That is tiny. Many developers require a minimal size monitor to function correctly. Our ERP system specifies a minimum of 1024x768. As far as scrolling, I suppose it depends on the app. Take Facebook for example. It depends on scrolling. You

Design questions...

2019-06-06 Thread Glen Bojsza via use-livecode
Hello, I was looking for input on the following design questions...I haven't done anything for years so I am looking for other developers' experiences. 1. what would be considered the smallest stack size for a desktop app? 2. Does the above fill most of the screens in use today ...ie what is

Android and external documents crash

2019-06-06 Thread Ludovic THEBAULT via use-livecode
Hello One user of my app report me a bug when my script call put specialfolderpath("external documents") In the standalone settings the "Write external storage" option is set to true. With all android devices I have, I’ve no bug. But all my device have an external slot (but even with no card in