To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1164
1163  |  1165
Subject: 
R: May I use RCX to play a .wav file?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Fri, 30 Mar 2001 15:24:13 GMT
Viewed: 
1605 times
  
Hi Zhengrong,

Now I have converted wav file to mono data sampled at 11025Hz (can be • changed)
and sample range is 0-255 as below:
144, 150, 154, 156, 160, 159, 154, 149, 143, 134, 128, 120, 110, 103, 97, • 93,
91, 93, 96, 102, 110, 120, 127, 138, 149, 156, 163, 168, 171, 171, 166, • 160,
153, 140, 128, 120, 107, 97, 88, 82, 81, 82, 87, 93, 102, 113, 125, 135,
How can I convert it to (freq., duration) ?

I wrote a small utility that converts midi files in LegOs or NQC source
files
and another utility that can convert a "certain" type (i.e. noises) of wav
samples in LegOs.
I think that playing wav files in NQC is very impractical or almost
undoable.
I was successful in converting samples like tada.wav or laser.wav,
but speech was a complete failure

The generated C source code can be used as a basis for white noise
generation (steam engine).
You can find them at www.aga.it/~guy/lego.htm, and I hope you find them
useful.

Guido



Message has 1 Reply:
  Re: R: May I use RCX to play a .wav file?
 
Thank you very much! I think your utilities are evry useful! I don't know more about music, so I wan to ask you, if you can convert MIDI to NQC, why didn't you also convert WAV to NQC? Although I can convert WAV to MIDI using anothe utility, then (...) (24 years ago, 30-Mar-01, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: May I use RCX to play a .wav file?
 
Thanks. Now I have converted wav file to mono data sampled at 11025Hz (can be changed) and sample range is 0-255 as below: 144, 150, 154, 156, 160, 159, 154, 149, 143, 134, 128, 120, 110, 103, 97, 93, 91, 93, 96, 102, 110, 120, 127, 138, 149, 156, (...) (24 years ago, 30-Mar-01, to lugnet.robotics.rcx)

6 Messages in This Thread:

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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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