Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Med music files  (Read 7821 times)

0 Members and 1 Guest are viewing this topic.

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Med music files
« on: March 12, 2017, 07:40:43 PM »


Ok folks,

I am nearing the end of development of a game and have tried to use a MED file that I created almost 10 years ago (summer 2007). I can load it in without any issues but when I try to play the music it doesn't work.
I know this because all 4 Vumeters stay at 0 (I only include this information because right now the sound card on my laptop is broken and I have no other way to verify whether the music is playing or not).

I tried the file in both MMD0 and MMD1 formats, neither work. The original file is on Aminet http://aminet.net/search?query=ADBs_junglebeat

The code I am using to is essentially:

Code: [Select]
Med Load "ram:ADBs_JungleBeat",3
Med Play 3
Do
   For CH=0 TO 3
   Print "Channel";CH;" =";Vumeter(CH);"   "
   Next CH
Loop

Does anyone know what's going on? Am I missing something?
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Med music files
« Reply #1 on: March 13, 2017, 06:39:18 PM »

 8) yeh it plays, the sound works but the vu's are zero.
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Med music files
« Reply #2 on: March 13, 2017, 07:33:32 PM »

8) yeh it plays, the sound works but the vu's are zero.

Thanks, Mia.

So either I'm missing something when testing with Vumeters or they only work with .abk files. I need to check to see if my music autoloops once finished or not. I suppose the easiest way is to open it in Octamed and get it to loop infinitely (assuming Octamed has that function somewhere).
Alternatively, since Vumeters don't work I will have to check all 4 AUDxDAT registers (assuming they can be read from), or maybe INTREQR to check when all 4 channels are not used and increment a counter. Once the counter hits a certain mark, it will play the music again.
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Med music files
« Reply #3 on: March 14, 2017, 02:52:01 AM »

Are you using the latest MedPlayer.library?
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Med music files
« Reply #4 on: March 15, 2017, 08:14:21 PM »

Are you using the latest MedPlayer.library?

Good question...

Code: [Select]
medplayer.Library - 2.1  (AMOS Libs directory)
medplayer.Library - 5.2  (System Libs directory)

It seems that I do have a more recent version in the 'system:libs' directory and that AMOS has an older version. However, running SnoopDOS before loading AMOS and then running the Med Play  command seems to indicate that AMOS doesn't use the library!
EME (Enhanced Music Extension) DOES use the library, but as I have the demo version I get the annoying message on starting AMOS and the Med Play command can only be used once.
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Med music files
« Reply #5 on: March 16, 2017, 05:12:55 PM »

From what I can tell the vumeters are hardcoded and the medplayer.library has no access...

in the source for AMOS 1.24a there is a note on line 181 of MUSIC.s

******* Now follow a tricky thing to allow AMAL to grab the address
*   of the vumeters. AMAL will get the address of the music extension
*   BkCheck routine, look 4 bytes before, and get the address of the
*   voices volume level


but the code is slightly different in AMOS 2.0 but I would still assume the medplayer.library couldn't access it, like the Tempo command, it affects AMOS music banks. but the medplayer.library is doing it's thing out-side of AMOS.

is there a MEDtoAMOS program?


edit:
oh, your MED uses a multi octave sample...that's why Fx-Box didn't import the instrument, they are not coded yet lol, anyway...

I was going to suggest changing the fileformat to MOD, but MOD doesn't support the multi-octave sample.

And I'd love to suggest that I write the MEDtoAMOS as I have the sample import part working in already, but I won't get the time for a while so that won't help you either.

Have you got a screen grab of the game yet? maybe there is some other music that could suite it?
« Last Edit: March 16, 2017, 05:24:55 PM by Mia »
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Med music files
« Reply #6 on: March 16, 2017, 05:34:18 PM »

Actually dude I had a little think and - here you go, attached MOD. and .Abk

Hopefully we get a preview of the game as well?  :)
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Med music files
« Reply #7 on: March 17, 2017, 06:47:04 PM »

However, running SnoopDOS before loading AMOS and then running the Med Play  command seems to indicate that AMOS doesn't use the library!

I got this wrong.

After further experiments and monitoring with SnoopDOS, AMOS does use the medplayer.library! However, it is only accessed (opened) when the Med Load command is used (which is probably why Med banks aren't saved along with other bank files when saving the program).
Also, monitoring the AUDxDAT registers indicates almost no use with
version 5.2 of medplayer.Library, but alot of activity with version 2.1 of medplayer.Library

is there a MEDtoAMOS program?
Have you got a screen grab of the game yet? maybe there is some other music that could suite it?

I think I recall a mod2abk and abk2mod programs from Aminet. In this case they wouldn't be much help as you point out, but I had problems using the programs a year or so back which is why I didn't keep them.

No in-game images published yet, but I do have 2 promo images - one is available to view here:

http://www.aliensrcooluk.com/public/Images/EternalT3_Promo1.png

I know the music kinda doesn't suite the game, is a bit short and will likely get on peoples nerves quickly, but I don't want to use any of the abk music files I have stored as they have been used atleast once in other AMOS games. Unlike previous releases (including my all assembler demo - All Square by Digital Dalmatian) I really wanted a peice of music not already used by someone else.

Actually dude I had a little think and - here you go, attached MOD. and .Abk

Thanks. Will try them out.

No preview of the game, as it was planned for release last month!
All that is left to do is compress the code, create an icon for it, stick it all on an .adf disk, compress that (.lha format probably) and upload to Aminet.
Then I can relax for a few weeks before returning to an all assembler platform game I started a few years back, released a demo of in Oct 2015 and got a small mention in the news section of the Jan/Feb 2016 issue of Amiga Future!
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Med music files
« Reply #8 on: March 18, 2017, 01:43:41 PM »

I could never get Amos to 'fade' my MED files with a Volume control (despite OctaMED being my favourite tracker by miles, and the route to my degree!)   

I mostly liked the idea of loading a single MED file with multiple songs, and using that route to give different music (with the same samples admittedly) for different parts of a game.

In the end, i ended up converting my files to ProTracker (not fun when you used 128 line blocks and have to convert to 64!) and then changing the starting block and adding the right 'loop points' so that each section became self-contained.

I seem to remember someone maybe doing a wrapper for Med library also? No help with the Vumeter issue, but just a point of discussion... :)
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Med music files
« Reply #9 on: March 22, 2017, 09:52:49 PM »

Well, after working out how to convert I tried a couple of my MED files, they don't convert, some do some don't, the AMOS music bank doesn't have enough going on in it, it can't do it. the BPM is off, loads of missing commands, the only advantage you get is the VuMeter, but it's not the actual sound amplitude - it's the tracker value and you only get it at the start of the sound, it doesn't continue while it plays, the vumeter will report 0 all the time, and only have a value if you read it at the exact moment that the note got played.

I did a little test and setup an interrupt to catch the Vu values and do some rhythmical changes on the screen - It works, but it's pants and not following it up.

the AMOS music banks aren't even in-time, they jitter - I remembered back in the day on my A1000 experiencing out of time music and I thought that maybe running in UAE it would be cool - but it's pants still - I found that if I play with the Tempo/TPL before export from octamed I can get it a bit better, load it into SoundTracker and tweak a but - but not all the commands are there, it 's not perfect and the only advantage of having an Abk is the VuMeters, but they are pants as well, so...
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Med music files
« Reply #10 on: March 28, 2017, 09:33:37 PM »

Try converting to pro tracker rather than Amos and using Pt Play etc from ... (probably) Amcaf extension?
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Med music files
« Reply #11 on: April 04, 2017, 09:33:21 PM »

I don't use the AMCAF extension, TURBO is better lol - anyway...

thing is, I was looking deeper into the Music.s extension as I have a few ideas for a realtime sequencer, so it was good to experiment with how it works, but I have decided the best thing to do with it is remove the music interrupts and create a Sound.s extension instead - I didn't really do any 4 channel mods since SoundStudio came along - my project with amos has the benefit of not being a game so I can take liberties with the cpu and ram - it would be so cool to work out how to render out the mod - fxbox does all the resampling and mixing routines already, so it could qbase your mods - but not quite yet lol
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022