Author Topic: Nspire Audio player!  (Read 54701 times)

0 Members and 1 Guest are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Audio player!
« Reply #30 on: March 02, 2013, 11:45:05 am »
Ok, it seems to not work with 10000, could you try it with 32000? I'll try to find the bug :D

Edit: Found: Try to delete the author, title, track information.. My wav decoder tries to interpret it as the file length
« Last Edit: March 02, 2013, 11:48:13 am by Vogtinator »

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Nspire Audio player!
« Reply #31 on: March 02, 2013, 11:50:13 am »
How would I delete those things?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Audio player!
« Reply #32 on: March 02, 2013, 11:51:30 am »
Audacity should ask you after the file save dialog. There's a delete (or remove or similiar) button on the bottom right

Edit: Bug resolved
« Last Edit: March 02, 2013, 12:00:39 pm by Vogtinator »

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Nspire Audio player!
« Reply #33 on: March 02, 2013, 12:00:19 pm »
Whooo!
Thank you!
It is the correct speed!

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Audio player!
« Reply #34 on: March 02, 2013, 12:01:35 pm »
Great! BTW: Try it with 32000 nevertheless, it sounds SO MUCH better ;)

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Nspire Audio player!
« Reply #35 on: March 02, 2013, 12:10:39 pm »
What does that new file do? Does it just bypass the titles and such? I haven't yet tried it.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Audio player!
« Reply #36 on: March 02, 2013, 12:11:43 pm »
yes, it jumps over every chunk until it finds "data".

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Nspire Audio player!
« Reply #37 on: March 02, 2013, 03:54:40 pm »
Though just wondering, would it be possible to change the volume coming out? Because I connected a headphone jack and my headphones, and it is way to loud
« Last Edit: March 03, 2013, 02:34:29 pm by Rhombicuboctahedron »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Audio player!
« Reply #38 on: March 02, 2013, 03:58:52 pm »
Quote
Though just wonderinjg, would it be possible to change the volume coming out? Because I connected a headphone jack and my headphones, and it is way to loud
Yes, by making the pwm off period longer. I'll try it and upload when ready :)

Edit: Nope, pwm gets too slow if too quiet.. You can hear it as a high-pitch squarewave then (annoying as hell)
« Last Edit: March 02, 2013, 04:10:12 pm by Vogtinator »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire Audio player!
« Reply #39 on: March 03, 2013, 11:21:10 pm »
This seems very cool. :) What would be great in the future is an USB mode (for those who got USB speakers with a mini-USB adapter) since it would be easier to do the connections and might prevent some calculator horror stories.
« Last Edit: March 04, 2013, 03:04:08 am by DJ_O »

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Nspire Audio player!
« Reply #40 on: March 05, 2013, 02:01:22 am »
How did you discover this? (How do things like this even get discovered in the first place.) I've alwasy wanted to mess around with my nspire to do stuff like this, but never had (and still have) no clue how or where to start.

Some people need a high five in the face... with a chair.
~EC

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Nspire Audio player!
« Reply #41 on: March 05, 2013, 02:03:25 am »
Quote
How did you discover this?

From the first post:
Quote
Some days ago I found out (with diags) there are some GPIOs connected to the dock connector.
Running, and then disassembling, diags software :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Audio player!
« Reply #42 on: March 05, 2013, 09:11:27 am »
Quote
Running, and then disassembling, diags software :)
Only running :)
I curiously explored the menus and tried to touch the ports on the back and noticed it recognized my fingers. There is MOSI, MISO, too (SPI).
Somewhere there's even SD-Cart support (D0, D1, D2, GND?)

Offline christop

  • LV3 Member (Next: 100)
  • ***
  • Posts: 87
  • Rating: +20/-0
    • View Profile
Re: Nspire Audio player!
« Reply #43 on: March 06, 2013, 09:16:50 pm »
How do you generate the PWM signal? Do you just set the output high or low at each clock interrupt, and what is the clock rate of that interrupt?

I'm just wondering if you could alternate the output signal (pulses) more frequently, as in multiple times per WAV sample, in order to push the pulses into the inaudible frequency range, or at least into a range that can be filtered out with a low-pass filter. I would think that this can be done fairly easily with delta-sigma modulation.
Christopher Williams

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: Nspire Audio player!
« Reply #44 on: March 07, 2013, 12:09:28 am »
Wait, to what extent is the SD support useful?
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)