Subject:
|
Re: legomin
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 6 May 2002 13:29:56 GMT
|
Viewed:
|
660 times
|
| |
| |
I figure other people are going to wonder the same thing I did, and that is
"WTF is a theremin?" So I'll give you the benefit of my search:
http://www.thereminworld.com/learn.asp
Basically, it's a musical instrument you play by waving your hand near,
without touching.
In lugnet.robotics, "Roel Scheijde" <Roel.Scheijde@tiscali.nl> writes:
> I'm a big fan of the theremin and this is the lego version.
> its basicly the lightsensor above the IR port (as in a proximitie
> sensor) and the folowing code in nqc
>
>
> int level;
>
>
> task send_signal()
> {
> while(true)
> {SendMessage(0); Wait(10);}
> }
>
> task check_signal()
> {
> while(true)
> {
> level = SENSOR_2 -400;
>
> }
> }
>
> task main()
> {
> SetSensorType(SENSOR_2, SENSOR_TYPE_LIGHT);
> SetSensorMode(SENSOR_2, SENSOR_MODE_RAW);
> start send_signal;
> start check_signal;
> while(true)
> {
> PlayTone (level, 100);
> }
> }
>
>
>
>
>
> ***
> email: Roel.Scheijde@tiscali.nl
|
|
Message is in Reply To:
| | legomin
|
| I'm a big fan of the theremin and this is the lego version. its basicly the lightsensor above the IR port (as in a proximitie sensor) and the folowing code in nqc int level; task send_signal() { while(true) {SendMessage(0); Wait(10);} } task (...) (23 years ago, 5-May-02, to lugnet.robotics)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|