Welcome, Guest. Please login or register.

Author Topic: BlitzBasic 2 & MIDI interface ?  (Read 3027 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mahenTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 245
    • Show only replies by mahen
    • http://mahen.free.fr
BlitzBasic 2 & MIDI interface ?
« on: December 14, 2011, 10:43:42 PM »
Hi everyone !

I plan to write a piece of software which makes use of a MIDI interface on an A1200.

Is it possible to access such a device (RS232 port then) from a Blitz Basic program in BLITZ mode ?

Cheers !
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: BlitzBasic 2 & MIDI interface ?
« Reply #1 on: December 15, 2011, 12:08:17 AM »
Yeah, a quick look at the Hardware Reference Manual will tell you the address of the Serial Port registers, then hook up some code on the serial interrupts and send your MIDI commands! Simple... There is also probably library that can do all the hard work for you :)

Offline mahenTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 245
    • Show only replies by mahen
    • http://mahen.free.fr
Re: BlitzBasic 2 & MIDI interface ?
« Reply #2 on: December 15, 2011, 03:35:14 AM »
Cool, thanks for the prompt reply ;) Not installed / used / read the manuals yet, I just had a doubt as I heard the BLITZ mode (and not the AMIGA mode) had restrictions regarding I/Os. But indeed, I guess I can have access to the registers directly !
« Last Edit: December 15, 2011, 03:42:31 AM by mahen »
 

Offline XDelusion

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: BlitzBasic 2 & MIDI interface ?
« Reply #3 on: December 15, 2011, 03:41:40 AM »
Whatcha makin?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline mahenTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 245
    • Show only replies by mahen
    • http://mahen.free.fr
Re: BlitzBasic 2 & MIDI interface ?
« Reply #4 on: December 15, 2011, 07:20:11 AM »
I have some crazy ideas, but I'll let you know once I have some kind of "working proof of concept" ;-)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: BlitzBasic 2 & MIDI interface ?
« Reply #5 on: December 15, 2011, 08:29:28 AM »
Blitz allows full access to the hardware, and once you are in Blitz Mode you have the machine to yourself! You can do anything you like.

Midi is super simple and the Amiga Serial port only needs a simple adaptor to interface with it :)

Offline Daedalus

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 893
    • Show only replies by Daedalus
    • http://www.robthenerd.com
Re: BlitzBasic 2 & MIDI interface ?
« Reply #6 on: December 15, 2011, 08:44:34 AM »
Do you have to be in Blitz mode? Accessing the serial port in a system-legal way in Amiga mode is very easy, and AFAIR there's even a specific MIDI .include file to take care of the MIDI stuff for you.

But, as bloodline says, in Blitz mode you have full access to all the hardware, simply peek and poke the CIAs to your heart's content :) The Blitz manual even includes a table of all the registers and their functions...
Engineers do it with precision
--
http://www.robthenerd.com
 

Offline mahenTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 245
    • Show only replies by mahen
    • http://mahen.free.fr
Re: BlitzBasic 2 & MIDI interface ?
« Reply #7 on: December 15, 2011, 04:49:54 PM »
Thanks again for the answers. Yeah, I would like to make to best possible use of the Amiga hardware, so I'll stick to BLITZ mode if possible ! I wonder how far one can go without switching to ASM...

Is there some kind of website / mailing list / NG still active nowadays about Amiga development or even Blitz in particular ?
 

Offline mahenTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 245
    • Show only replies by mahen
    • http://mahen.free.fr
Re: BlitzBasic 2 & MIDI interface ?
« Reply #8 on: April 08, 2014, 08:41:39 AM »
Bump ! :)

Completely put this project aside for a couple of... years apparently :-)

I'll give it another go soon.

Just one question : I have no A1200 anymore but I would like to develop directly from my MiST instead (Minimig core), in order to be fully focus(s)ed on a single task ! ; did any of you guys figure out how to use a MIDI interface on this piece of hardware ?

Meanwhile I wish I could use FS-UAE on my Linux box but apparently it doesn't support MIDI yet... So in the end I might end up using WinUAE through WINE on my Linux box. Sigh ;)
« Last Edit: April 08, 2014, 09:00:52 AM by mahen »