Relfos / TERRA-Engine

Cross platform game engine written in Object Pascal.
http://www.pascalgameengine.com
Apache License 2.0
103 stars 41 forks source link

MIDI support for Android seems to be missing #15

Open Micrologus opened 5 years ago

Micrologus commented 5 years ago

I'm trying to use Terra to play MIDI notes in an Android application.

The main MIDI unit (TERRA_MIDI.pas) uses TERRA_MIDI_IO.pas to send the notes, but TERRA_MIDI_IO.pas only seems to exist for Windows and Mac.

Is there any chance to get MIDI support for Android too?

Thanks!!

Relfos commented 5 years ago

Hi, this engine is already 7 years old, back then Android did not have a standard way to process MIDI messages so that's why there was no Android support. Now the situation might have changed, however I no longer work on this engine. I recommend that you first search around if there is an alternative to use MIDI + Pascal + Android somehow.

If you don't find anything useful, you could look at porting this library from C to Pascal: https://github.com/schellingb/TinySoundFont

It implements a full sounfont synth plus MIDI playback in just 2 files. If you want to go this route and can't do the port yourself, I could do it myself but that would be a paid job that would have to be negotiated. I've done several similar works for this engine, like porting the TTF loader and OGG decoders from C to Pascal.

Micrologus commented 5 years ago

Dear Sergio,

Thank you very much for your fast reply. I will take a look at this material and I'll let you know if that seems a promising way to proceed/

All the best :)

Marco

On Wed, Jan 30, 2019 at 3:25 PM Sérgio Flores notifications@github.com wrote:

Hi, this engine is already 7 years old, back then Android did not have a standard way to process MIDI messages. I no longer work on this engine, I recommend that you first search around if there is an alternative to use MIDI + Pascal + Android somehow.

If you don't find anything useful, you could look at porting this library from C to Pascal: https://github.com/schellingb/TinySoundFont

It implements a full sounfont synth plus MIDI playback in just 2 files. If you want to go this route and can't do the port yourself, I could do it myself but that would be a paid job that would have to be negotiated. I've done several similar works for this engine, like porting the TTF loader and OGG decoders from C to Pascal.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Relfos/TERRA-Engine/issues/15#issuecomment-458962339, or mute the thread https://github.com/notifications/unsubscribe-auth/ALthredkC2UKsaru29rQMRWyIeYclryrks5vIatvgaJpZM4aZ8iK .

turric4n commented 5 years ago

As alternative you can use http://www.un4seen.com/ libbass for non comercial projects.

Micrologus commented 5 years ago

Thank you for the tip! I'm looking into it right now. Best regards.

On Thu, Jan 31, 2019 at 10:16 AM Turrican notifications@github.com wrote:

As alternative you can use http://www.un4seen.com/ libbass for non comercial projects.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Relfos/TERRA-Engine/issues/15#issuecomment-459272232, or mute the thread https://github.com/notifications/unsubscribe-auth/ALthrU4zHNMbmyTH8QJG8B_C833Gwy6Bks5vIrRbgaJpZM4aZ8iK .