Go to advanced search

by timrowledge
Wed Sep 28, 2016 6:04 pm
Forum: Scratch
Topic: New Scratch things for Raspbian September 2016
Replies: 36
Views: 36071

New Scratch things for Raspbian September 2016

I've already had several message asking about the 'improvements made to Scratch' so herewith a list of the changes I've made recently. It's now built on the recently released Squeak 5.1 release (see http://www.squeak.org as always) with the latest in virtual machines etc. This has made the system ar...
by timrowledge
Tue Sep 27, 2016 12:02 am
Forum: Scratch
Topic: Scratch servo control
Replies: 26
Views: 14831

Re: Scratch servo control

Apologies for the delayed response; busy-busy! I've been flying radio controlled model planes for... 43 years now, gulp... a while, and have always understood the proper signal to range from 1000 to 2000 microseconds with the centre at 1500. If anyone can find me a good authoritative reference expla...
by timrowledge
Mon Sep 26, 2016 11:58 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

Dang. Sorry to hear it didn't improve things for you. I'm quite sure it's an issue with the size of the sound sample buffer combined with the lack of the VM routine to support merging sample into already running sounds - I've instrumented it and the evidence is pretty clear. I just need to find some...
by timrowledge
Fri Sep 16, 2016 6:00 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

Argh, that was my fault; I gave you bad instructions on starting the experimental system. Try squeak NuScratch20160915.image instead. I forgot that the older release scratch shell script explicitly set the name of the .image file to use so you were actually running the old release despite asking (yo...
by timrowledge
Fri Sep 16, 2016 5:50 pm
Forum: Scratch
Topic: GPIO Server and Piface in Scratch
Replies: 5
Views: 2560

Re: GPIO Server and Piface in Scratch

I've put in a fix for this that should appear in the next release. In the meantime, don't worry too much. You should be ok if you just click on the 'abandon' button in that error notifier. You might possibly need to also click on the red 'Stop' scratch button too.
by timrowledge
Thu Sep 15, 2016 9:02 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

OK, try downloading https://github.com/raspberrypi/scratch/blob/master/NuScratch20160915-exp.tgz unzip it in your home directory with tar xzvf NuScratch20160915-exp.tgz You should get a single .image file. In your terminal do scratch NuScratch20160915.image If you try your project it should work as ...
by timrowledge
Wed Sep 14, 2016 5:42 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

Unfortunately the way I have to set up the Scratch .image file it isn't possible to edit the code and compile it as a user. I *am* working on fixing that, but not soon.

I'll see about making a hacked image available to you soon; got visitors today so maybe tomorrow.
by timrowledge
Tue Sep 13, 2016 6:27 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

I spent some truly fascinating time digging into tracing and monitoring the sound player stuff and I have good news and bad news. The good news is that you can improve part of the delay very simply for yourself. The bad news is that the biggest part of the problem is definitely caused by the length ...
by timrowledge
Mon Sep 12, 2016 6:35 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

Looking carefully at the VM code for the unix sound system I see that the quick-start option isn't supported on anything except Mac OS. Sorry about that; somebody with experience in making the utterly deranged unix sound api work properly should be able to sort that out. That isn't likely to be me t...
by timrowledge
Mon Sep 12, 2016 12:19 am
Forum: Scratch
Topic: GPIO Server and Piface in Scratch
Replies: 5
Views: 2560

Re: GPIO Server and Piface in Scratch

OK, I can replicate this and yes it's a bug. Just goes to show how much testing is needed!

So far as I can tell this will only affect devices using the SPI bus from the ScratchGPIO server and that is only(currently) the PiFace.
by timrowledge
Sun Sep 11, 2016 5:31 pm
Forum: Other projects
Topic: Amazing new case - piServer!
Replies: 2
Views: 4172

Re: Amazing new case - piServer!

Well I like the looks of this enough to throw money at it. With the boot-from-usb stuff sorted and an SSD plugged in it should make a really nice desktop development box.
by timrowledge
Sun Sep 11, 2016 4:29 pm
Forum: Scratch
Topic: GPIO Server and Piface in Scratch
Replies: 5
Views: 2560

Re: GPIO Server and Piface in Scratch

(I've reported the post to ask it be moved to the Scratch forum - much easier for me to find later) I've not seen the error you are reporting before, but it's quite a while since I tested the PiFace board. I'll take a look soon and see if I can spot a problem. Meanwhile if you could post the 'squeak...
by timrowledge
Sun Sep 11, 2016 12:46 am
Forum: Scratch
Topic: Scratch and Python?
Replies: 1
Views: 2661

Re: Scratch and Python?

You can't directly call a python program from Scratch (you can from Squeak, but that facility is not extended to Scratch) BUT you can fairly easily write python programs that use sockets to talk with Scratch. GHP - a regular poster here - has a neat suite of Python that does a lot of good stuff. Sim...
by timrowledge
Fri Sep 09, 2016 6:09 pm
Forum: Scratch
Topic: Raspberry Pi 3 - no sound in Scratch
Replies: 1
Views: 1867

Re: Raspberry Pi 3 - no sound in Scratch

Sorry for not noticing this sooner!

I can't replicate this; I get sound via hdmi OK from all my Pi's. More info might help?
by timrowledge
Fri Sep 09, 2016 6:06 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

\I haven't checked out scratch, but sounds fun ! Can you tell us the language of programming and how audio is played ? What libraries does the software rely on ? Scratch is written in Squeak Smalltalk. Go to www.squeak.org to find out more. You can download an all-in-one zip of the latest version o...
by timrowledge
Fri Sep 09, 2016 6:04 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

Hello, there is a known flaw in scratch. Short sounds are not played reliable. https://github.com/raspberrypi/scratch/issues/150 So far as I can tell this isn't a problem anymore - the next release Scratch with the latest Raspbian seems to play the pop ok to me, though the sound quality from the he...
by timrowledge
Fri Sep 09, 2016 6:00 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

Okay, let me explain the problem better with the scratch project. Open the project, press the right arrow : the sound handclap is playing with low latency. Now, press the left arrow, the cave sample is playing. When the sample cave is playing press the right arrow. The handclap sound is playing wit...
by timrowledge
Fri Sep 09, 2016 5:34 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

MichCan wrote: the file :
http://dl.free.fr/u4Wl7RSH0
Good grief that's an obnoxious service. Make you watch a pointless video and turn off adblocking? What next - make you type in your credit card number?
by timrowledge
Wed Sep 07, 2016 6:40 pm
Forum: Scratch
Topic: Play multiple samples at the same time
Replies: 23
Views: 6178

Re: Play multiple samples at the same time

I can't replicate this at the moment; on my Pi3 with the latest (not release but soon) Scratch.I can't replicate it on a Pi2 I keep with older Scratch either. If I import two samples and make a script to play one who left-arrow is pressed and the other when right-arrow is pressed I have no problem i...
by timrowledge
Thu Sep 01, 2016 11:46 pm
Forum: Scratch
Topic: Remote sensor dialog
Replies: 15
Views: 6708

Re: Remote sensor dialog

For the visible drives, I'm assuming they have to be mounted first? Honestly, I don't really know. If I understood right the original intent was to allow Windows users to see only a restricted list of attached disks (a setup done by teacher, for example) but the code is a bit fluffy and since I've ...
by timrowledge
Thu Sep 01, 2016 11:44 pm
Forum: Scratch
Topic: Scratch 2016-1-15 and Pibrella board
Replies: 12
Views: 4381

Re: Scratch 2016-1-15 and Pibrella board

Any update on this? I'm a teacher with 30 sense hats and 100% Scratch crashing Then you should have updated your Pi's, since this was fixed (at least, the wiringPi-kills-Scratch part) in the May release of Raspbian. IF you're still having problems, please start a new thread and explain what is happ...
by timrowledge
Thu Sep 01, 2016 11:35 pm
Forum: General discussion
Topic: STICKY: USB boot now working on Pi3
Replies: 545
Views: 334203

Re: USB boot now working on Pi3

I've just updated my usb disc setup wit the latest stuff and can confirm that it seems to fix the limited memory issue for me. I had lot of trouble getting it to boot though and it seems like maybe once in three tries it will work. It took fiddling and many tries to get it to boot and then connect v...
by timrowledge
Thu Sep 01, 2016 5:32 pm
Forum: Scratch
Topic: scratch ultrasonic sensor
Replies: 7
Views: 7624

Re: scratch ultrasonic sensor

Sorry, can't offer much help on this; my SR04 seems to work well out to about 300 cm and down to maybe 4cm.

Is there any possible obstruction in front of your sensor? I know that if I place mine just wrong it gets a reflection from the case which messes things up.
by timrowledge
Wed Aug 31, 2016 6:56 pm
Forum: Scratch
Topic: Remote sensor dialog
Replies: 15
Views: 6708

Re: Remote sensor dialog

The scratch ini file can have a modest range of commands in it. language = some language descriptor fitting the two-letter ISO 639-1 standard per https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes home = directory for home visible drives = a list of drive names (Windows) or root directories (Mac)...

Go to advanced search