BBC BASIC
« Cross-platform MIDI library? »

Welcome Guest. Please Login or Register.
Sep 24th, 2017, 01:33am


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Cross-platform MIDI library?  (Read 133 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 587
xx Cross-platform MIDI library?
« Thread started on: Aug 13th, 2017, 09:00am »

Member hitsware has been experimenting with MIDI output from BBCSDL - something that has no built-in support - but his efforts have been directed at a specific platform: the Raspberry Pi. It seems to me that what we ideally need is a MIDI library which provides a common interface that users' programs can call, and automatically converts the commands to the appropriate native MIDI API for the current platform (Windows, Linux, Mac OS, Raspberry Pi or Android).

I suspect this would not be very easy - from what I have found with a quick Google search the MIDI APIs for Mac OS and Android seem particularly tricky to use - but if it could be achieved it would add a whole new level of cross-platform functionality to BBC BASIC.

Do people think this is a good idea and, more importantly, does anybody feel they have the knowledge/interest to help contribute to such an endeavour? Perhaps the implementations for different platforms could be farmed out to different people.

Richard.
« Last Edit: Aug 13th, 2017, 09:05am by Richard Russell » User IP Logged

michael
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 94
xx Re: Cross-platform MIDI library?
« Reply #1 on: Aug 13th, 2017, 8:20pm »


There may be some way to figure out how the sound system works and then access it in BBCSDL. I could do some research, but I don't plan to learn another language.


The pi is quite capable of sound and video on YouTube and performs quite well. There may be a simple way to play the midi files. One is Windows 10 install for the PI 3.

I have seen it on YouTube and perhaps that may be the key.

Here is the Windows 10 for Raspberry Pi 3 link... Just for curious people:
https://www.windowscentral.com/how-install-windows-10-iot-raspberry-pi-3


« Last Edit: Aug 13th, 2017, 10:08pm by michael » User IP Logged

I like reinventing the wheel, but for now I will work on tools for D3D
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 587
xx Re: Cross-platform MIDI library?
« Reply #2 on: Aug 13th, 2017, 8:46pm »

on Aug 13th, 2017, 8:20pm, michael wrote:
There may be some way to figure out how the sound system works and then access it in BBCSDL.

User 'hitsware' has already done it for the Raspberry Pi, with my help (did you miss his recent thread?) so there's nothing to "figure out"! Windows is of course also easy, and anyway BB4W already has built-in support for playing MIDI files.

Linux (86) can probably use the same method as the RPi - which is running Linux itself of course - so, as I said before, the problematical platforms are Mac OS and Android, on which the MIDI API looks potentially difficult to access (not least because on Mac OS it appears to be an Object Oriented API and on Android a Java API, of course).

So if you are wanting to help, it's those two platforms that need the most effort.

Quote:
Here is the Windows 10 for Raspberry Pi 3 link... Just for curious people

This is a BBC BASIC support forum and there is no version of BBC BASIC that can run on Windows 10 IoT. sad

Richard.
« Last Edit: Aug 13th, 2017, 9:03pm by Richard Russell » User IP Logged

michael
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 94
xx Re: Cross-platform MIDI library?
« Reply #3 on: Aug 13th, 2017, 10:05pm »

I do have a MacBook Pro and BBCSDL works well on it. I have made a few programs that do run quite well on it.

I will be working on more utilities for the Pi3 and Mac.


I didn't see the solution you worked out. It wasn't in my line of sight ..

As for the other mention I removed it, since it strays off forum focus content.
« Last Edit: Aug 13th, 2017, 10:09pm by michael » User IP Logged

I like reinventing the wheel, but for now I will work on tools for D3D
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 587
xx Re: Cross-platform MIDI library?
« Reply #4 on: Aug 14th, 2017, 2:56pm »

on Aug 13th, 2017, 10:05pm, michael wrote:
I do have a MacBook Pro and BBCSDL works well on it.

What version of Mac OS are you running (and what's the newest version your Mac can run)? The latest I can run here is OS X 10.7 ('Lion') which is now quite old so the testing of BBCSDL that I am able to do is rather limited.

Quote:
As for the other mention I removed it, since it strays off forum focus content.

Windows 10 IoT (which is an ARM variant of Windows 10 UWP) can only run 'Windows Store' apps, not desktop apps like BB4W or BBCSDL.

Richard.
User IP Logged

michael
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 94
xx Re: Cross-platform MIDI library?
« Reply #5 on: Aug 14th, 2017, 7:10pm »

Mac OS X
10.6.8
processor 2.4 GHZ intel Core 2 Duo

I have the latest BBCSDL for mac
« Last Edit: Aug 14th, 2017, 7:12pm by michael » User IP Logged

I like reinventing the wheel, but for now I will work on tools for D3D
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 587
xx Re: Cross-platform MIDI library?
« Reply #6 on: Aug 14th, 2017, 8:47pm »

on Aug 14th, 2017, 7:10pm, michael wrote:
Mac OS X 10.6.8

Oh well, I was hoping you could do some testing on a newer version than I have, but obviously not. sad

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls