home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / misc / 23395 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!dartvax!news
  2. From: fermat@fermat.dartmouth.edu (Michael Glenn)
  3. Newsgroups: comp.sys.next.misc
  4. Subject: Converting to relative time in .score files.
  5. Message-ID: <1992Dec28.214536.16160@dartvax.dartmouth.edu>
  6. Date: 28 Dec 92 21:45:36 GMT
  7. Sender: news@dartvax.dartmouth.edu (The News Manager)
  8. Organization: Dartmouth College, Hanover, NH
  9. Lines: 33
  10.  
  11.  
  12. Does anyone know of any way to convert the times in a .score file from  
  13. absolute times to relative times.  For example,
  14.  
  15. t 0.00;
  16. Left_Hand (0.50) keyNum:e3k;
  17. t 0.25;
  18. Right_Hand (0.50) keyNum:e5k;
  19. t 0.50;
  20. Left_Hand (0.50) keyNum:fs3k;
  21. t 0.75;
  22. Right_Hand (0.50) keyNum:ds5k;
  23. t 1.00;
  24. Left_Hand (0.50) keyNum:gs3k;
  25.  
  26. converted to
  27.  
  28. t 0.00;
  29. Left_Hand (0.50) keyNum:e3k;
  30. t + 0.25;
  31. Right_Hand (0.50) keyNum:e5k;
  32. t + 0.25;
  33. Left_Hand (0.50) keyNum:fs3k;
  34. t + 0.25;
  35. Right_Hand (0.50) keyNum:ds5k;
  36. t + 0.25;
  37. Left_Hand (0.50) keyNum:gs3k;
  38.  
  39. If no solution is offered, I'll probably write a quick c program for it.   
  40. See, I want to tell some of the code to repeat itself, via "repeat n { ...  
  41. }", but you can't put in absolute times in the part that repeats.
  42.  
  43. Michael Glenn
  44.