To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 8005
8004  |  8006
Subject: 
Re: play wav files on HB
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 18 Aug 2000 08:29:01 GMT
Original-From: 
John Hatton <john.hatton@=nospam=uk.airsysatm.thomson-csf.com>
Viewed: 
564 times
  
What I was actually wondering was whether there was a utility that could
convert small wav files (only a couple of seconds or so) into a format
playable by the hb, possibly using the existing tone functions using some
form of sampling. The intended use is for a small audio warning, either vocal
(obviously it would be very poor quality) or an audio tune, and as my musical
talents are nonexistant being able to convert a wav file into a tone()
compatible format would be better.
Any ideas ?

Thanks in advance

John Hatton
johnhatton@email.com


Jerry Normandin wrote:

Wait..

With only 16k available for a program I'd rather save room for my
application.

But...

I bet you can Pulse width modulate a digital output pin, drive an
amplifier and feed that through a speaker.  Down sample an 8 bit
sound file to one bit (Yes this works) and if you pulse width modulate
the pin you will hear sound.  I wrote code to do this MANY years
ago and used a "State of the Art"  8Hhz IBM PC.
I'll check to see if I still have the code.  It is in assembler of course.
This will use a massive amount of precious CPU time.

Another old solution from the past.. when I was in college,
is to sample raw 8bit, 8khz samples, store them in a rom,
and clock the phrases out through a DAC.

John Hatton wrote:

I've seen mentioned in the last few weeks something about playing wav
files on the hb, is this using the standard hardware or is there a
utility that can convert small wav files into a format playable by the
hb. I have gotten as far as playing the pink panther tune from the
music.c file in the IC2.x library but a wav file seems a bit out of this
particular programs league.
Any information would be appreciated.

Thanks.

John Hatton
johnhatton@email.com



Message is in Reply To:
  play wav files on HB
 
I've seen mentioned in the last few weeks something about playing wav files on the hb, is this using the standard hardware or is there a utility that can convert small wav files into a format playable by the hb. I have gotten as far as playing the (...) (24 years ago, 17-Aug-00, to lugnet.robotics.handyboard)

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