English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. Asm / Hardware (https://eab.abime.net/forumdisplay.php?f=112)
-   -   midi asm examples? (https://eab.abime.net/showthread.php?t=88678)

motosega 18 September 2017 22:55

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 18 September 2017 23:04

probably worth mentioning that i'm developing for A500 with ks3.1

emufan 18 September 2017 23:47

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.

motosega 19 September 2017 00:50

thanks!

i might be able to do something with uaemidi.

it has nice functions to do everything i need!

Amiga1992 19 September 2017 01:41

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 ;)

emufan 19 September 2017 15:38

Quote:

Originally Posted by motosega (Post 1185807)
it has nice functions to do everything i need!

good news. :spin

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

motosega 20 September 2017 03:22

Quote:

Originally Posted by Akira (Post 1185814)
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 20 September 2017 03:23

Quote:

Originally Posted by emufan (Post 1185877)
good news. :spin

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!

lantus360 20 September 2017 15:45

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


All times are GMT +2. The time now is 01:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.07994 seconds with 11 queries