Author Topic: ASM Sound Routine  (Read 5721 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
ASM Sound Routine
« on: April 29, 2010, 11:17:53 pm »
I'll let the question speak for itself...is there a routine to play sound in ASM programs?

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: ASM Sound Routine
« Reply #1 on: April 29, 2010, 11:35:18 pm »
Mhmm I think there aren't any publicly available for the 83+, but Quibigo and Calc84 might be able to help you on this, since they both made games and apps with sound.

Otherwise, I think Anthony Loven had one for the 86. Not sure how easy it would be to port on the 83+, though. His routine must either be on ticalc.org or in the 2005 newsletter that was posted as attachment in the old Omni screenshots thread under Misc section

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: ASM Sound Routine
« Reply #2 on: April 29, 2010, 11:40:45 pm »
If you just want beeps and bloops to play a melody during a game, the Pyoro source code had a note reader and player that you can use and also kind of has some macros to simplify editing music.

On the other hand, if you want high quality sound or music that doesn't need to be rendered at the same time as the game, try Real Sound.

And on the third hand, if you want some medium quality music to play while the game is going, you'll have to ask calc83 becasue he's the only one I've seen actually pull it off well, or at least I trust he has, I haven't actually used it.  I think it requires 15MHz mode for this option.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: ASM Sound Routine
« Reply #3 on: April 29, 2010, 11:47:49 pm »
Jusy bleeps and bloops.  Thanks, I'll look at Pyoro!

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: ASM Sound Routine
« Reply #4 on: April 29, 2010, 11:49:22 pm »
calc83
Poor Calc84god...er...maniac, you downgraded him and now he can no longer test Project M sound on real hardware :(

I wouldn't be surprised if he could pull off 1 channel sound on 6 MHz tho, even during gameplay, considering ATM he uses 3 or 4 channels

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: ASM Sound Routine
« Reply #5 on: April 29, 2010, 11:54:53 pm »
calc83
Poor Calc84god...er...maniac, you downgraded him and now he can no longer test Project M sound on real hardware :(

I wouldn't be surprised if he could pull off 1 channel sound on 6 MHz tho, even during gameplay, considering ATM he uses 3 or 4 channels
Not really, because I need the crystal timers from the SE/84+ models. And since I was using those models anyway, 15MHz was useful. :)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: ASM Sound Routine
« Reply #6 on: April 29, 2010, 11:59:48 pm »
Wouldnt there be a way to make sound not play consistently, though? Like not a long beep, but several millisecond beeps to leave some CPU time for other stuff? IIRC, CalcMOD allowed doing some actions in the middle of a two chan song and it was on a regular 83+. It was just stopping/exiting, but still actions.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: ASM Sound Routine
« Reply #7 on: April 30, 2010, 12:15:25 am »
That would be the Pyoro method, then
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman