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 / 1165
1164  |  1166
Subject: 
Re: R: May I use RCX to play a .wav file?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Fri, 30 Mar 2001 15:57:20 GMT
Viewed: 
1355 times
  
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 use your MIDI2RCX, but if WAV2RCX can support
NQC directly, it is better.
I want to use NQC because it can be used for RCX or Scout, all my projects and
programs try to be used both for RCX and Scout + Micro-scout.

Br
Zhengrong

Guido Truffelli wrote:

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?
 
Zhengrong Zang escribió: (...) WAV2RCX makes a "MIDI" of the wav. I'm also trying to play a wav with the RCX, and I have found this information. The pages explain how to play a tone and a PCM wave with 1 bit speaker, like the famous PC-speaker, (...) (23 years ago, 11-Apr-01, to lugnet.robotics.rcx)

Message is in Reply To:
  R: May I use RCX to play a .wav file?
 
Hi Zhengrong, (...) changed) (...) 93, (...) 160, (...) 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 (...) (23 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