Shop OBEX P1 Docs P2 Docs Learn Events
Ray's ASM Wav Player - Page 2 — Parallax Forums

Ray's ASM Wav Player

2»

Comments

  • DelusDelus Posts: 79
    edited 2009-03-26 00:17
    OK, here's the first, non-hardwired, version of my WAV player.· I hope I've given Raymond sufficient credit, as·I could not have come up with this without his wav player as an example.· I apologize for the appalling lack of comments but I do intend to fix this as well as clean up some of the assembly code.· While it is only in 9-bit resolution this seems to have less high frequency noise than the Raymond’s and play at twice the volume, but is by no means an ideal solution as it currently requires 4 cogs to run…one more thing on the list of needed improvements.· I have yet to test this on any sort of variety of music so I won’t begin to list any sort of capabilities but for a first working program I’m happy with it.
    ·
    David
  • mctriviamctrivia Posts: 3,772
    edited 2009-03-27 03:01
    The pop at the begining can be removed with a ramp to 50%. See the text to speech object it mentions it some were called declick or something like that.

    If you can do MP3 even low bit rate limit would be great. I can live with mono 90kbps mp3. they sound good for most songs and all speech recordings.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
  • RaymanRayman Posts: 14,826
    edited 2009-07-21 00:39
    Here's a new version that fixes the problem playing computer generated music and also adds very basic volume control.

    Uses the new version of FSRW.

    Also, it's more clear how to change pin#s...

    If I hear back that it works, I'll post it in OBEX...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • RaymanRayman Posts: 14,826
    edited 2013-02-13 18:04
    Looking back on my wav player, it was really a kludge...
    So, I spent some time today turning into something that I'm less embarrassed about...

    Here's the new version: WavPlayer2f - Archive [Date 2013.02.13 Time 21.02].zip
  • pik33pik33 Posts: 2,396
    edited 2013-02-14 04:14
    Some time ago I made a player:

    http://forums.parallax.com/showthread.php/140767-A-new-topic-for-vga-(not-only)-sid-player?highlight=propplay

    Instead of duty dac I use NCO mode with noise shapping which gives better sound than duty dac. Also, I used modified version of Kye's FAT driver which can read long file names.

    zip.gifpropplay016a.zip‎
  • RaymanRayman Posts: 14,826
    edited 2013-02-14 06:18
    I'm interested in your NCO mode... How did you determine that the sound is better?
    I'd think most of the bit noise would be filtered out by the external RC filter circuit that is normally used...
    Did you look at the signals with a scope?
  • pik33pik33 Posts: 2,396
    edited 2013-02-14 10:35
    Download and try this. I experimented with all these dithered or non-dithered duty dac and they always creates noise. Something about -45 dB unweighted in case of dithering dac. Irregular noise bursts when slient part of sound is playing when non dithered.

    So I created this ncowav driver using 8-bit ~300 kHz sampling and noise shaping filter. It moves near all noise to ultrasound range.

    The player has to be compiled with bst with unused methods removing or it will not fit in 32 kB RAM and is made for a demoboard.
  • RaymanRayman Posts: 14,826
    edited 2013-02-14 17:18
    I can believe NCO mode would be better. I took a peek at your code and it looks interesting...
Sign In or Register to comment.