amiga.org
     
iconAll times are GMT -6. The time now is 01:14 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » General chat about Amiga topics » BlitzBasic 2 & MIDI interface ?

General chat about Amiga topics This forum is for conversations which are specifically "Amiga" related, but don't fit into other categories. Contents of this forum do appear on the main page, unlike Talk About. If a subject appears to be non-related, it will be moved to Talk About.

Reply
 
Thread Tools Display Modes
Old 12-14-2011, 03:43 PM   #1
mahen
Technoid
Points: 7,991, Level: 60 Points: 7,991, Level: 60 Points: 7,991, Level: 60
Activity: 2% Activity: 2% Activity: 2%
 
mahen's Avatar
 
Join Date: Mar 2002
Location: Rennes, France
Posts: 207
Default BlitzBasic 2 & MIDI interface ?

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 !
mahen is offline   Reply With Quote
Old 12-14-2011, 05:08 PM   #2
bloodline
Master Sock Abuser
Points: 37,161, Level: 100 Points: 37,161, Level: 100 Points: 37,161, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,657
Blog Entries: 3
Default Re: BlitzBasic 2 & MIDI interface ?

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
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 12-14-2011, 08:35 PM   #3
mahen
Technoid
Points: 7,991, Level: 60 Points: 7,991, Level: 60 Points: 7,991, Level: 60
Activity: 2% Activity: 2% Activity: 2%
 
mahen's Avatar
 
Join Date: Mar 2002
Location: Rennes, France
Posts: 207
Default Re: BlitzBasic 2 & MIDI interface ?

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 edited by mahen; 12-14-2011 at 08:42 PM..
mahen is offline   Reply With Quote
Old 12-14-2011, 08:41 PM   #4
XDelusion
Alien Breeder
Points: 33,365, Level: 100 Points: 33,365, Level: 100 Points: 33,365, Level: 100
Activity: 13% Activity: 13% Activity: 13%
 
XDelusion's Avatar
 
Join Date: Mar 2002
Location: Yet another Huxleyan Dystopia
Posts: 4,277
Default Re: BlitzBasic 2 & MIDI interface ?

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
XDelusion is offline   Reply With Quote
Old 12-15-2011, 12:20 AM   #5
mahen
Technoid
Points: 7,991, Level: 60 Points: 7,991, Level: 60 Points: 7,991, Level: 60
Activity: 2% Activity: 2% Activity: 2%
 
mahen's Avatar
 
Join Date: Mar 2002
Location: Rennes, France
Posts: 207
Default Re: BlitzBasic 2 & MIDI interface ?

I have some crazy ideas, but I'll let you know once I have some kind of "working proof of concept" ;-)
mahen is offline   Reply With Quote
Old 12-15-2011, 01:29 AM   #6
bloodline
Master Sock Abuser
Points: 37,161, Level: 100 Points: 37,161, Level: 100 Points: 37,161, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,657
Blog Entries: 3
Default Re: BlitzBasic 2 & MIDI interface ?

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
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 12-15-2011, 01:44 AM   #7
Daedalus
Cult Member
Points: 9,252, Level: 64 Points: 9,252, Level: 64 Points: 9,252, Level: 64
Activity: 22% Activity: 22% Activity: 22%
 
Daedalus's Avatar
 
Join Date: Feb 2002
Location: Dublin, Ireland
Posts: 880
Send a message via ICQ to Daedalus Send a message via MSN to Daedalus
Default Re: BlitzBasic 2 & MIDI interface ?

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
Daedalus is offline   Reply With Quote
Old 12-15-2011, 09:49 AM   #8
mahen
Technoid
Points: 7,991, Level: 60 Points: 7,991, Level: 60 Points: 7,991, Level: 60
Activity: 2% Activity: 2% Activity: 2%
 
mahen's Avatar
 
Join Date: Mar 2002
Location: Rennes, France
Posts: 207
Default Re: BlitzBasic 2 & MIDI interface ?

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 ?
mahen is offline   Reply With Quote
Reply

Bookmarks

Tags
blitzbasic , interface , midi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump