Search found 367 matches

by JohnM
Feb 9th, '19, 12:57
Forum: Requests
Topic: Adding Stereo output?
Replies: 3
Views: 1010

Re: Adding Stereo output?

By the way, here are all the sounds "primitives". -- Sound -- openAudio closeAudio samplesNeeded writeSamples fft generateNoteSamples sendMIDI startSpeech stopSpeech startAudioInput stopAudioInput readAudioInput I got this list from the list of primitives you get from typing "help" at the GP command...
by JohnM
Feb 9th, '19, 12:56
Forum: Requests
Topic: Adding Stereo output?
Replies: 3
Views: 1010

Re: Adding Stereo output?

Stereo is actually supported by the underlying system. Here's some help I got from the GP command line: gp> help openAudio Open the audio output driver. The optional frameCount argument is the number of stereo or mono samples (frames) to buffer, a power of 2 between 256 and 8192. Output is mono unle...
by JohnM
Nov 12th, '18, 12:15
Forum: Bugs
Topic: copy costume from <dirlist> doesnt work in exported app
Replies: 2
Views: 285

Re: copy costume from <dirlist> doesnt work in exported app

Is your app meant to read an image from a file? If so, "copy costume" isn't helpful. What you'll want to do is to get the file name, then read the image file. The "read file" block (in the "Words" category) recognizes .png files and convert them into an actual bitmap image that can be used in the "s...
by JohnM
Oct 22nd, '18, 20:22
Forum: Bugs
Topic: GP-beta-082 lockup Bad texture printed repeatedly in console
Replies: 4
Views: 627

Re: GP-beta-082 lockup Bad texture printed repeatedly in console

That's one of the alternatives I'm considering. Nice to know it has a good reputation.
by JohnM
Oct 21st, '18, 22:50
Forum: Bugs
Topic: GP-beta-082 lockup Bad texture printed repeatedly in console
Replies: 4
Views: 627

Re: GP-beta-082 lockup Bad texture printed repeatedly in console

This can sometimes happen if you make the GP window too large, especially on a large, high-resolution display. You can try making the window smaller. In any case, it's probably a good idea to save the project, then quit and restart GP when this starts happening. Unfortunately, these texture issues c...
by JohnM
Sep 1st, '18, 17:32
Forum: Projects
Topic: How to use serial port?
Replies: 1
Views: 410

Re: How to use serial port?

Here are the built-in GP serial port functions: -- Serial Port -- listSerialPorts openSerialPort isOpenSerialPort closeSerialPort readSerialPort writeSerialPort I got this by running the 'help' function in a workspace window. (To open a workspace, first enter developer mode, then select 'workspace.....
by JohnM
Sep 1st, '18, 17:17
Forum: Requests
Topic: Using microphone and webcam in GP?
Replies: 5
Views: 749

Re: Using microphone and webcam in GP?

GP supports getting data from the microphone using the "sound input" block in the Sound category.

I agree, camera support would be nice to have as well, but its a fair bit of work to support that on all platforms.
by JohnM
Sep 1st, '18, 17:12
Forum: Experience Reports
Topic: Why does Creating a New Instance have such an Overhead?
Replies: 1
Views: 525

Re: Why does Creating a New Instance have such an Overhead?

I suspect what your'e seeing may be the result of displaying a thumbnail for the new instance, rather than creating the instance itself. It's also slow to add an instance to the stage. One way to address the thumbnail slowdown is to select a different class before running the code the generates new ...
by JohnM
Sep 1st, '18, 17:08
Forum: Working with GP
Topic: Pulls GP benefits from the 64bit architecture?
Replies: 3
Views: 578

Re: Pulls GP benefits from the 64bit architecture?

GP uses the same size integers on both 32-bit and 64-bit architectures. GP does run a little faster when compiled for 64-bit architectures. However, the speed increase isn't really noticeable except on benchmarks.
by JohnM
Sep 1st, '18, 17:01
Forum: Requests
Topic: asymetrical encryption/decryption?
Replies: 7
Views: 893

Re: asymetrical encryption/decryption?

As Gosha pointed out, the RSA encryption system involves multiplying and taking the modulus of very large numbers (500-1000 decimal digits). If you have a system that supports working with such large integers, then RSA isn't too difficult to implement. As I recall, the most difficult part is generat...