English Amiga Board Amiga Lore


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 18 September 2017, 22:55   #1
motosega
Registered User

motosega's Avatar
 
Join Date: Aug 2017
Location: torino italia
Posts: 31
midi asm examples?

does anybody have an asm example of using the serial port to send and receive midi? preferably without using the os.

i'm fairly new to 68k asm and amiga, but i've done lots of midi and Dmx(lighting control) stuff with microchip pic16f84 and arduino. i've been following the tutorials by photon/scoopex to get started. it looks like the amiga is perfect for getting down and dirty with the hardware.

i'd like to build some simple midi tools that will do things like sending midi sync. so before going about it the wrong way i thought i'd ask here first.

also if anybody has any hints about setting up a serial/midi loopback device that i can use for development on a mac using fs-uae that'd be really useful too...
motosega is offline  
AdSense AdSense  
Old 18 September 2017, 23:04   #2
motosega
Registered User

motosega's Avatar
 
Join Date: Aug 2017
Location: torino italia
Posts: 31
probably worth mentioning that i'm developing for A500 with ks3.1
motosega is offline  
Old 18 September 2017, 23:47   #3
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,777
there are some tools with source code on the NSM website
on the file listing page - "Filter Results" lha
you can find midirecord.lha for example.
i think all the tools using camd.library.

#1) *argh* you are looking for asm, those I suggest are made in C (not all archives tested),
a driver for camd, uaemidi, was written in asm - src included.

#2) source code of Miditracker was released some moons ago.

Last edited by emufan; 19 September 2017 at 00:02.
emufan is offline  
Old 19 September 2017, 00:50   #4
motosega
Registered User

motosega's Avatar
 
Join Date: Aug 2017
Location: torino italia
Posts: 31
thanks!

i might be able to do something with uaemidi.

it has nice functions to do everything i need!
motosega is offline  
Old 19 September 2017, 01:41   #5
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 17,959
Protracker has MIDI code in it that doesn't work. Sources are available around.
http://www.pouet.net/prod.php?which=13419
http://eab.abime.net/showthread.php?t=54208

If you can ever fix it, let me know
Akira is offline  
Old 19 September 2017, 15:38   #6
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,777
Quote:
Originally Posted by motosega View Post
it has nice functions to do everything i need!
good news.

Another camd driver , MMP - Multi Midi Port,
it does also have some asm source code included.

#1) btw. if you 're about using camd.library, use the older v37 version.
those 40.x version do not really work.

#2) there is the midi.library - no asm examples, but midi.i and midibase.i included.

#3) fish 101 comes with the lib src of midi.lib, written in asm: fish-0101.lha/Midi/dev/libsrc

Last edited by emufan; 19 September 2017 at 16:27.
emufan is offline  
Old 20 September 2017, 03:22   #7
motosega
Registered User

motosega's Avatar
 
Join Date: Aug 2017
Location: torino italia
Posts: 31
Quote:
Originally Posted by Akira View Post
Protracker has MIDI code in it that doesn't work. Sources are available around.
http://www.pouet.net/prod.php?which=13419
http://eab.abime.net/showthread.php?t=54208

If you can ever fix it, let me know
That'd be amazing. I think i'll have to start out with something simple first. Maybe if i can come up with a bit of asm that sends midi sync, you could try to shoehorn it into protracker?
motosega is offline  
Old 20 September 2017, 03:23   #8
motosega
Registered User

motosega's Avatar
 
Join Date: Aug 2017
Location: torino italia
Posts: 31
Quote:
Originally Posted by emufan View Post
good news.

Another camd driver , MMP - Multi Midi Port,
it does also have some asm source code included.

#1) btw. if you 're about using camd.library, use the older v37 version.
those 40.x version do not really work.

#2) there is the midi.library - no asm examples, but midi.i and midibase.i included.

#3) fish 101 comes with the lib src of midi.lib, written in asm: fish-0101.lha/Midi/dev/libsrc
Thats me sorted for reading material for a while! Thanks!
motosega is offline  
Old 20 September 2017, 15:45   #9
lantus360
Registered User
 
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 150
not asm but i use CAMD.library (in C) in my port of Heretic.

source code is here:

https://github.com/lantus/chocolate-.../i_camdmusic.c
lantus360 is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outputting MIDI songs in the Amiga without MIDI hardware Starglider 2 support.Apps 18 06 March 2017 22:34
Tool to convert asm to gnu asm (gas) Asman Coders. Asm / Hardware 6 12 October 2013 12:45
Boot block examples? h0ffman Coders. General 3 04 March 2011 16:44
wanted: midi interface for A500 (midi out) lost_lemming MarketPlace 1 19 February 2010 14:24
Plasma examples anyone? jobro Coders. General 5 27 November 2005 17:25

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


All times are GMT +2. The time now is 08:48.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.15001 seconds with 13 queries