To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1161
1160  |  1162
Subject: 
Music with Lego
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Wed, 6 Jun 2001 11:00:49 GMT
Viewed: 
2204 times
  
If I try to have my RCX1.0 playing these 11 notes, it will only play approx. 7
of them. It seems like if a buffer is running full or something...

task main()
{
  PlayTone(262, 40);
  PlayTone(294, 40);
  PlayTone(330, 40);
  PlayTone(349, 40);
  PlayTone(392, 100);
  PlayTone(392, 100);
  PlayTone(440, 50);
  PlayTone(440, 50);
  PlayTone(440, 50);
  PlayTone(440, 50);
  PlayTone(392, 180);
}

If I put in some waiting, it works all fine:

task main()
{
  PlayTone(262, 20);
  Wait(20);
  PlayTone(294, 20);
  Wait(20);
  PlayTone(330, 20);
  Wait(20);
  PlayTone(349, 20);
  Wait(20);
  PlayTone(392, 40);
  Wait(60);
  PlayTone(392, 40);
  Wait(60);
  PlayTone(440, 20);
  Wait(30);
  PlayTone(440, 20);
  Wait(30);
  PlayTone(440, 20);
  Wait(30);
  PlayTone(440, 20);
  Wait(30);
  PlayTone(392, 80);
  Wait(100);
}

Can someone explain or tell me where to ask ?
Regards Knut



Message has 1 Reply:
  Re: Music with Lego
 
KOS> If I try to have my RCX1.0 playing these 11 notes, it will only play approx. 7 KOS> of them. It seems like if a buffer is running full or something... KOS> If I put in some waiting, it works all fine Hi, that's because this is the way it works. (...) (23 years ago, 6-Jun-01, to lugnet.robotics.rcx.nqc)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR