Jump to content

Photo

Include "The Soundmachine" - obj file in ASM

The Soundmachine ASM MADS Sound

9 replies to this topic

#1 skr OFFLINE  

skr

    Dragonstomper

  • 637 posts
  • Ready
  • Location:Hamburg

Posted Sun Aug 12, 2018 3:56 AM

I am a bloody beginner with ASM, using WUDSN IDE and MADS to code a little demo. I have an obj-soundfile which was created with "The Soundmachine" from J. Piscol, but have no idea, how to include that in my project and play it back. There is a BASIC-Demo on the Soundmachine disk, but that doesn´t help me due to my limited knowledge.
Can´t find any documentation.

Any help appreciated.

#2 Rybags ONLINE  

Rybags

    Quadrunner

  • 15,759 posts
  • Location:Australia

Posted Sun Aug 12, 2018 4:26 AM

With MADs I believe you use INS 'filename'

 

English manual for MADS here http://mads.atari8.info/mads_eng.html

Not sure if there's a PDF version.



#3 skr OFFLINE  

skr

    Dragonstomper

  • Topic Starter
  • 637 posts
  • Ready
  • Location:Hamburg

Posted Sun Aug 12, 2018 5:53 AM

Thanks, I got that part already. But now that I have it included, how do I play it? That´s the part I don´t know.

For rmt-files there is a sample-file to do it, I could need something like that for this.

#4 Rybags ONLINE  

Rybags

    Quadrunner

  • 15,759 posts
  • Location:Australia

Posted Sun Aug 12, 2018 5:59 AM

It might be the case that the Soundmachine executable is intended for standalone use only.  RMT is oriented towards inclusion in other programs where you do the init call then call the player every frame.

Likely with some playing around the SM file should be able to be used in that sort of fashion.



#5 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • 1,370 posts
  • Location:Germany

Posted Sun Aug 12, 2018 9:28 AM

Thanks, I got that part already. But now that I have it included, how do I play it? That´s the part I don´t know.

 

AFAIK the loading/start address of  the output files are static and begin with $1F00.

 

Could you please try the following to start the music:

 

lda #0

sta $1F1E

 

?

 

(To stop the playback you have to write a '1' to the same location and clear the sound output registers.)

 

Edit: You have to init the player by calling "jsr $1f09" beforehand.


Edited by Irgendwer, Sun Aug 12, 2018 9:36 AM.


#6 skr OFFLINE  

skr

    Dragonstomper

  • Topic Starter
  • 637 posts
  • Ready
  • Location:Hamburg

Posted Sun Aug 12, 2018 9:50 AM

Thanks irgendwer, that is one step forward. Now I got a constant beep, but not a song. At least, the code didn´t crash. :)

#7 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • 1,370 posts
  • Location:Germany

Posted Sun Aug 12, 2018 10:02 AM

Hard to say what's missing or interfering. Did you try to use the sound .obj-file exclusively so that any violation of memory or VBI handler can be excluded?

If nothing helps you could send me the obj via PM, but don't expect wonders - at least not soon... ;)



#8 CharlieChaplin OFFLINE  

CharlieChaplin

    River Patroller

  • 2,910 posts

Posted Sun Aug 12, 2018 10:24 AM

Well,

 

the Soundmachine was distributed/sold by Peter Finzel Productions. Afair, Peter Finzel wrote a player routine in one of his assembler corners ("Peter's Assemblerecke"), but I do not remember if it was in Atari Magazin or Computer Kontakt. Think the Compyshop magazine also had an article and some software for the Soundmachine...



#9 CharlieChaplin OFFLINE  

CharlieChaplin

    River Patroller

  • 2,910 posts

Posted Sun Aug 12, 2018 5:12 PM

Searched through Computer Kontakt and Atari Magazin and could not find any player-software for The Soundmachine music, so this must have been in another german magazine. Armin Stuermer used Soundmachine music in several of his AMC games, e.g. Herbert, Jinks, etc. maybe you can find something there. Attached are two demo disks with Soundmachine music and player software in Basic.

 

My search continues...

 

 

EDIT: Maybe this helps a bit further:  http://atariage.com/...ne#entry3905786

 

or this direct link (use Google translate!):  http://atariki.krap....hp/SoundMachine

Attached Files


Edited by CharlieChaplin, Sun Aug 12, 2018 5:30 PM.


#10 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • 1,370 posts
  • Location:Germany

Posted Sun Aug 19, 2018 7:28 AM

Just to "tag" this thread as "solved": I managed to replay skr's sound file. The output file is a quite unhandy compound file (and "init" executes already $1f09), where the run address points to code jumping to DOSVEC.

 

Patching the run address to execute code which does the already mentioned

    lda #0
    sta $1f1e

replays the music.

 

 







Also tagged with one or more of these keywords: The Soundmachine, ASM, MADS, Sound

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users