Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Multiple samples as command line arguments  (Read 7266 times)

0 Members and 1 Guest are viewing this topic.

storerestore

  • New User
  • Offline Offline
  • Posts: 2
    • View Profile
Multiple samples as command line arguments
« on: June 01, 2011, 22:53:04 »

When you run milkytracker like "milkytracker.exe acieed.wav" the sample gets loaded into the first instrument with some sensible parameters so that it can be played and composed with immediately.

I thought that this could easily be extended to loading multiple samples into different instruments in the same way, so you could load "milkytracker.exe *.wav" or (in windows) just drag and drop a bunch of samples to start composing right away, or to quickly make a pack for an OHC.

It's a feature that might have limited use, but some people on #botb agreed that it's a nice idea!
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Multiple samples as command line arguments
« Reply #1 on: June 01, 2011, 23:26:09 »

I think what Milky might be doing here is rather trying to load your WAV files as a module rather than a sample (I didn't check the source though so I can't tell for sure). So this is probably not the right way to implement multi-sample loading, since that's not what most people would probably expect.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

storerestore

  • New User
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Multiple samples as command line arguments
« Reply #2 on: June 02, 2011, 12:10:47 »

I think what Milky might be doing here is rather trying to load your WAV files as a module rather than a sample (I didn't check the source though so I can't tell for sure).
No, in the case of having one sample as an argument, the behavior is like I described in the first paragraph. The sample is loaded into the first instrument and is instantly playable. I should have made that more clear :)

The request is for being able to do this but with multiple samples as arguments.
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Multiple samples as command line arguments
« Reply #3 on: June 02, 2011, 22:48:33 »

I didn't notice that Milky doesn't put a note in the first pattern, so it probably does indeed try to load the file as a sample. I thought more around the behaviour of ModPlug, which would load the WAV file into the first sample slot and create a pattern as long as that sample and trigger it.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker
Pages: [1]   Go Up