This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-06-26 14:47:50

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

advanced squeakers, please read!

Hey guys, I've been trying in vain to find out if the squeak VM can read pitch from a microphone and wether that pitch can be displayed by a reporter in Hz?

thoughts? ta  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2010-06-26 14:54:07

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: advanced squeakers, please read!

Ugh ... hm ... well ... I looked at this before, but I'm not sure there's any easy way of reading this from an external object.


nXIII

Offline

 

#3 2010-06-26 14:59:04

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: advanced squeakers, please read!

nXIII wrote:

Ugh ... hm ... well ... I looked at this before, but I'm not sure there's any easy way of reading this from an external object.

that's what I feared. I imagine that different microphones have different states of voltage and freqency at the same state.... that could cause a problem...


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2010-06-26 15:22:22

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: advanced squeakers, please read!

sparks wrote:

nXIII wrote:

Ugh ... hm ... well ... I looked at this before, but I'm not sure there's any easy way of reading this from an external object.

that's what I feared. I imagine that different microphones have different states of voltage and freqency at the same state.... that could cause a problem...

Hmm, well, Audacity seems to do that with no problem, I'm going to try to find a squeak script.

Offline

 

#5 2010-06-26 15:25:25

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: advanced squeakers, please read!

I found something! Have you heard of Alice (programming language)? I read on the squeak website that is is programmed in Squeak Smalltalk.

It says it has pitch recognition. Maybe if it's open source...

Last edited by samurai768 (2010-06-26 15:26:07)

Offline

 

#6 2010-06-26 15:39:46

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: advanced squeakers, please read!

looking good! I just think that pitch would open up so many new areas for Scratch. Think about it, with pitch you can have projects that help you tune instruments, tell you if you are singing the right note or if you're sharp/flat, allow commands to be sent from one project to the other using notes to transfer data from speaker to mic, test if the speakers are on or loud enough, allow simple voice recognition, kareoke projects and more!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#7 2010-07-03 16:13:34

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: advanced squeakers, please read!

.... for want of a more inventive phrase, bump


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#8 2010-07-03 16:23:11

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: advanced squeakers, please read!

Alice is open source... one download link coming up!
*ding* http://www.alicedownloads.org/downloads/2010_06_15/Alice2.2.zip


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#9 2010-07-04 11:03:52

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: advanced squeakers, please read!

if you mean the scratch board, no, period. The board doesn't send pitch. Probably from the internal microphone though, because there is the audio record function.


http://blocks.scratchr.org/API.php?user=paulpsicle&action=onlineStatus&online=http://fishery.dyndns.org/paulpsicle.png&offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#10 2010-07-04 11:22:33

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: advanced squeakers, please read!

paulpsicle wrote:

if you mean the scratch board, no, period. The board doesn't send pitch. Probably from the internal microphone though, because there is the audio record function.

no, I didn't think the picoboard would work because it measures resistance.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#11 2010-07-04 11:40:02

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: advanced squeakers, please read!

You're just meaning a normal microphone aren't you?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#12 2010-07-04 12:00:50

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: advanced squeakers, please read!

markyparky56 wrote:

You're just meaning a normal microphone aren't you?

yup, the computer mic


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#13 2010-07-05 12:01:52

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: advanced squeakers, please read!

Wait, Squeak can record with the microphone, there's an audio recorder in Scratch because of it. I'll look for that in the code and see what I can get.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#14 2010-07-05 12:05:12

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: advanced squeakers, please read!

ScratchReallyROCKS wrote:

Wait, Squeak can record with the microphone, there's an audio recorder in Scratch because of it. I'll look for that in the code and see what I can get.

Doesn't that meeter just show the volume of the sound?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#15 2010-07-05 12:26:33

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: advanced squeakers, please read!

markyparky56 wrote:

ScratchReallyROCKS wrote:

Wait, Squeak can record with the microphone, there's an audio recorder in Scratch because of it. I'll look for that in the code and see what I can get.

Doesn't that meeter just show the volume of the sound?

No, I mean it actually does record the sound.....so that means it knows the pitch.......


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#16 2010-07-06 14:52:19

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: advanced squeakers, please read!

Has anyone gotten into the alice source code?

Offline

 

#17 2010-07-06 15:39:45

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: advanced squeakers, please read!

Jens has aleady done it aparrently! See panther development thread. (not last page, one before)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer