+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Coding an emulator to respond to MIDI
Pages: [1]
Author Topic: Coding an emulator to respond to MIDI  (Read 1 times)
ialexandermusic
Guest
« on: October 08, 2010, 01:43:06 pm »

Hey guys,

I'm super new to all the programming stuff, I'm actually a musician by trade and I compose music for games. For my final year at Uni, one of my modules requires me to undertake a music technology based project and I came up with the following idea:

I want to convert an electric guitar into a controller for a video game; so, when I play an F, it'll jump, a G, it'll punch or whatever blah blah blah

Now, I know how I'm going to convert the guitar sounds into MIDI so it can communicate with the computer; I am just completely in the dark about how to go about programming the emulator to respond to those MIDI signals.

I would really appreciate it if somebody could help me out regarding firstly getting into the emulator's coding so I can edit the sort of signals it responds to and once I'm in there, what exactly I'm looking to change?

Hope someone can help me out,

Thanks guys!

Alex
Jorpho
Guest
« Reply #1 on: October 08, 2010, 02:30:36 pm »

That sounds rather viciously difficult.

A bit of Googling suggests it is however quite trivial to translate MIDI sequences to keystrokes (which emulators are well-equipped to respond to). Why not go that way instead?
http://blancer.com/tutorials/75797/quick-tip-midi-translation-%E2%80%93-midi-to-keystrokes/
ialexandermusic
Guest
« Reply #2 on: October 08, 2010, 03:11:50 pm »

This is great, man, thank you. I'll look into this!
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC