TERRA-Engine icon indicating copy to clipboard operation
TERRA-Engine copied to clipboard

MIDI support for Android seems to be missing

Open Micrologus opened this issue 7 years ago • 4 comments

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!!

Micrologus avatar Jan 30 '19 10:01 Micrologus

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.

Relfos avatar Jan 30 '19 14:01 Relfos

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 [email protected] 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 .

Micrologus avatar Jan 30 '19 15:01 Micrologus

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

turric4n avatar Jan 31 '19 09:01 turric4n

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

On Thu, Jan 31, 2019 at 10:16 AM Turrican [email protected] 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 .

Micrologus avatar Jan 31 '19 11:01 Micrologus