[A86] Re: Speed select


[Prev][Next][Index][Thread]

[A86] Re: Speed select




you could make the sound loop shorter and play it multiple times in a row.
this might make it choppy though. in that case you can set some space aside
for the longest duration you want. Let's just say that the longest duration
is the one that you posted here. Then you could have a loop that copies
'250' for x bytes starting at Dah and then puts a 0 behind it, this way you
can make it play the duration you want with one call to the lib. Hope this
helps

> I am working on a program to play morse code, and I want to be able to
select
> speeds.  So far, I have it working at a reliable 8 words per minute.  My
> sound file is formated for soundalgo.asm by Dux:
> Dah:;zero terminated wav file with a second inside
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> Dit:;zero terminated wav file inside another
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250
> .db 250,250,250,250,250,250,250,250,250,250,0
>
> So, what I am asking is is there any way to change the duration of the
sound
> without needing seperate files for each speed?
>
>
>



References: