Author Topic: modinfo  (Read 41022 times)

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
HVL now supported
« Reply #30 on: April 13, 2013, 23:21:23 »
I've patched slightly AHX to support HVL musics now.
Just so you know :)

Offline Axxy

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: HVL now supported
« Reply #31 on: April 14, 2013, 13:01:12 »
I've patched slightly AHX to support HVL musics now.
Just so you know :)

Any progress on adding Fasttracker modinfo yet?

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #32 on: April 14, 2013, 14:01:13 »
afraid not. Maybe I can quickly hack something up, concentrating on instruments first.
I'll try something later today, if possible.

Offline Axxy

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: modinfo
« Reply #33 on: April 14, 2013, 14:45:51 »
Would be nice for the 2nd most popular format after protracker ;)...

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #34 on: April 14, 2013, 22:54:21 »
OK, well, first shot is not working as expected, so, not online.
I'm done for the day. I'm generating too many stupid PHP bugs, so, it's time to stop :)
I'll look at it tomorrow, with fresh eyes.

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #35 on: April 16, 2013, 11:09:12 »
It's online for XM now. Instruments names are displayed and size calculation is also done. However, if the XM is missing some data, it could lead to wrong calculation.
Please, report problems, if any.

Sylvain

Offline Axxy

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: modinfo
« Reply #36 on: April 16, 2013, 13:01:47 »
Quote
It's online for XM now. Instruments names are displayed and size calculation is also done. However, if the XM is missing some data, it could lead to wrong calculation.

Very nice and well done!  8)

But....  ;D

Quote
Please, report problems, if any.

It seems to show the Instrument text correctly, but it shows the Instrument details incorrectly, as it uses the sample column headings and no data. If that is the intention, then its no problem.

Must be pretty difficult to show all the Instrument/Sample texts/data etc. for all slots in XM files. Must be very problematic.

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #37 on: April 16, 2013, 14:00:47 »
Instrument details are .. well, not what I wish. In XM, information like volume, size, rate (etc.) are stored at the sample level. As such, retrieving them up would make sense only if there was _one_ sample in a given instrument.
I chose, for the moment, to display nothing in there.
Maybe I could patch complete data if there's only one sample and tag the others as 'more than one sample'.

I still think displaying differently is necessary, for that kind of format. For now, it's the usual mask to display information.

Sylvain

Offline Axxy

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: modinfo
« Reply #38 on: April 16, 2013, 15:08:05 »
Instrument details are .. well, not what I wish. In XM, information like volume, size, rate (etc.) are stored at the sample level. As such, retrieving them up would make sense only if there was _one_ sample in a given instrument.
I chose, for the moment, to display nothing in there.
Maybe I could patch complete data if there's only one sample and tag the others as 'more than one sample'.

I still think displaying differently is necessary, for that kind of format. For now, it's the usual mask to display information.

Sylvain

I see the problem. Do any other module format do anything similar internally?

Otherwise, you'd have to show everything for both sample and instruments, both could potentially be 128 rows deep or more?  I've not really paid attention to how many rows .xm mods can contain info.

I was looking at how you do .it modules and wondered if splitting the data could be a possibility somehow?


Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #39 on: April 16, 2013, 16:00:16 »
IT and DBM have instruments as well. I don't remember, off hand, how it works for IT. DBM was no problem.

Regarding XM, I'm not sure I understand your comment. 128 rows could be a reference to pattern data ?
Nevertheless, there can be 128 instruments in a XM, and each instruments can store 16 samples. The concept is the following : for this instrument, which sample should be played when a given note is played. As such, you have a map of notes where you assign sample numbers (in the current instrument). Hence the specific information related to each sample. Instruments, here, are some kind of envelope only.

Now, yes, I believe the display mask must be changed. The more I think about it, the more I leaning toward something like that:
instrument 1 -
----sample 1 (sample data)
----sample 2 (sample data)
instrument 2 -
etc.

could take some time to write, though.

Offline Axxy

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: modinfo
« Reply #40 on: April 16, 2013, 17:38:53 »
Quote
Regarding XM, I'm not sure I understand your comment. 128 rows could be a reference to pattern data ?

Sorry, I meant only how many slots/rows of data to show in the Info details when I click the Info button. 128 Instruments or 128 Samples slots/rows if the author filled all the details in the module.  Obviously, when I clicked Info, I was expecting to see possibly up to 128 slots/rows displayed for Instruments and then 128 slots/rows for Samples.

When I started looking through a few xm's, I realised it was not practical to show instruments and samples or the page would need to be scrolled down considerably.  Looking at Awesome' For a New World II.xm, it would have to display 128 instrument slots/rows and 328 sample slots/rows...  I just didn't know that each instrument could store 16 samples...

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #41 on: April 16, 2013, 23:21:30 »
All right, I misunderstood indeed !
Well, the display can be huge. That's for sure. The very max would be 128*16 lines for every sample and 128 more for instruments. That's a grand total of 2176 lines to display :).
Besides, the text in sample is rarely meaningful.

Offline Axxy

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: modinfo
« Reply #42 on: April 16, 2013, 23:33:59 »
Quote
Besides, the text in sample is rarely meaningful.

Yeah, was just noticing that.  At least its showing that text in the Instruments which is a damn sight better than nothing at all..  ;)

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #43 on: May 06, 2013, 19:47:26 »
And there was a bug in the XM modinfo related to the 256 stored patterns possibility. Sorry.

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 075
    • View Profile
    • Amiga Music Preservation
Re: modinfo
« Reply #44 on: June 28, 2013, 22:47:59 »
Now, XM format version 0102 is handled ("standard" one is 0104).
thanks for an AMP fan for pointing a case via email :)
Shelter by Zodiak.