Poll

How Important is MIDI support in ARC? (Please read below before voting))

1
2
3
4
5
6
7
8
9
10

Author Topic: MIDI support in ARC  (Read 9786 times)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: Differences between RGSS and Zer0 RGSS
« Reply #20 on: May 16, 2012, 06:51:04 AM »
If you are interested in converting the RTP audio from MIDI to OGG, I have already and can upload them. I just used a program to run a them as a batch, so I didn't experiment with any sound fonts or anything to get the best sound. I used a mid-level quality of 160 kbps, so the files are a little bigger than need be, but don't sound bad either.

BGM
ME
 
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19933
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Differences between RGSS and Zer0 RGSS
« Reply #21 on: May 16, 2012, 08:08:48 AM »
Did you use this site? http://www.hamienet.com/midi2mp3
I found that it converts the MIDIs great with the settings:

16 bit
Stereo
Set 3 - Freepats
On
75%
No Change
No Change

They sound good, the volume is about the same as the original MIDIs and there is basically no clipping.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline winkio

  • Epiq
  • Administrator
  • Guardian of Chaos
  • *****
  • Posts: 4506
  • LV: 199
  • Gender: Male
  • I am lying.
    • View Profile
Re: MIDI support in ARC
« Reply #22 on: May 16, 2012, 10:01:42 AM »
I hate to be 'that guy', but did you ever look at this library?

https://github.com/jdkoftinoff/jdksmidi

Under their readme, it says:

Quote
Supported Operating Systems
          win32,
          win64,
          Mac OS X,
          Linux,
          UcLinux,
          other Unix style systems,
          other embedded systems, 16 bit, 32 bit, 64 bit.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19933
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: MIDI support in ARC
« Reply #23 on: May 16, 2012, 10:21:20 AM »
I took a look at it. The lack of any kind of documentation makes it really hard to understand what this library is actually for. :/ Browsing through the source, I came to conclusion that this is basically a library to work with MIDI files, it's not a synthesizer. Even though it does mention something about I/O:

Quote
MIDI Driver implementation for Win32 for I/O and sequencing

But I couldn't find any code that plays a MIDI file.
Any pointers on that?

EDIT: After going through more code, I found some stuff that seems to be actually playing MIDI files. I'll take a more detailed look at this library. This might just be what we needed. Funny how this library never turned up during my Google searches. :/
« Last Edit: May 16, 2012, 10:54:38 AM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: MIDI support in ARC
« Reply #24 on: May 16, 2012, 06:46:46 PM »
Or mine for that matter...
the main purpose of this library seems to be working with midi objects and events not a synthesizer for midi instruments. ie it allows for the building of interfaces to hardware midi controllers
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline winkio

  • Epiq
  • Administrator
  • Guardian of Chaos
  • *****
  • Posts: 4506
  • LV: 199
  • Gender: Male
  • I am lying.
    • View Profile
Re: MIDI support in ARC
« Reply #25 on: May 16, 2012, 07:02:04 PM »
Under the examples folder, there seems to be a synthesizer example:

https://github.com/jdkoftinoff/jdksmidi/tree/master/examples

synthesizer readme:

https://github.com/jdkoftinoff/jdksmidi/blob/master/examples/vrm_music_gen_readme.txt

unless I misunderstood, it seems to be able to play back MIDI commands with the full set of parameters.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19933
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: MIDI support in ARC
« Reply #26 on: May 16, 2012, 08:10:57 PM »
I don't think that one's a synthesizer. It seems to me it's a MIDI input example which writes the data into a MIDI file. This one is an example that actually plays the MIDI file:

https://github.com/jdkoftinoff/jdksmidi/blob/master/examples/win32/jdksmidi_test_drvwin32.cpp

It uses the MIDIDriverWin32 class for the interface to the OS, reads the file, then queues the sequencer and finally plays the file through the manager. It's still a bit complicated, but this is far simpler than any other system I have seen. The others were just horrible to work with.

And this example seems to have some generic driver usage.

https://github.com/jdkoftinoff/jdksmidi/blob/master/examples/jdksmidi_test_drv.cpp
« Last Edit: May 16, 2012, 08:12:13 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: MIDI support in ARC
« Reply #27 on: June 18, 2012, 05:47:05 AM »
The reason I feel midi is needed is simple. I have a folder with 30 midis in it, all being used at one point or another. At the moment it is at 2.1mb. If I was to convert it to ogg,wav, or even mp3, the folder would increase to anywhere from 10mb-50mb depending on which format I use.
It may not seem to be a problem, but getting people to download your game will be hard. I've seen great games that I "want" to try, but due to the file being 60-180mb I just NEVER do. I have downloaded maybe 3 games because they were decent sizes. The simple fact is nobody wants to play a non-professional 180mb game (unless of course they have a good connection).

What I'm planning on doing is releasing it with midis and then another one with mp3s that way people can choose what they want, but no midi support is just :O idk. I'd still use it because it has TONS of shit that would make life easier for me, but idk. Lol.

Edit: By the way I haven't read the rest of it lol. So yeah..
« Last Edit: June 18, 2012, 05:49:13 AM by Zexion »

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: MIDI support in ARC
« Reply #28 on: June 18, 2012, 07:07:23 AM »
A library with cross-platform MIDI support is a very difficult thing to create/find.
Although MIDI is a rather nice format for creating audio with small file size, it is an absolute nightmare to work with on any one platform, let alone trying implement something that works on multiple platforms. The synthesizers that actually produce the sound are on the operating system themselves, therefore any sort of "universal" code is not really possible without an extensive library.

Hopefully a solution presents itself, even the above mentioned library, but no promises are being made. We do not want to omit MIDI support any more than anybody else, we realize its importance. As of the moment, we have only a few options:

  • Drop MIDI support
  • Drop cross-platform support
  • Find/create a cross-platform library, which may be project that rivals the size of ARC itself.

Everything that can be done to have MIDI support will be made, but if it comes down to it, dropping it may be the only viable option. Cross-platform support is hardly worth dropping over a single audio format.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19933
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: MIDI support in ARC
« Reply #29 on: June 24, 2012, 04:18:33 PM »
Well, if this library works out, I don't think we have to drop anything. As winkio already posted:

Supported Operating Systems
          win32,
          win64,
          Mac OS X,
          Linux,
          UcLinux,
          other Unix style systems,
          other embedded systems, 16 bit, 32 bit, 64 bit.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19933
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: MIDI support in ARC
« Reply #30 on: October 08, 2013, 07:46:29 AM »
I have some news regarding this. Since MIDI isn't supported properly on any other platform than Windows, it is highly likely that we are going to drop support for it. It doesn't work on Linux, Mac, Android and iOS so there isn't really a point for it. But the MOD format is self-contained (and technically one can convert MIDIs into MODs) so we might add MOD support later on.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.