Homebrew midi keyboard interface part 3

Homebrew midi keyboard interface part 3

in Community Creations

Posted by: lioka qiao.8734

lioka qiao.8734

I didn’t see this forum Maybe it’s a better place to put this.

https://github.com/liokaqiao/midiKeyboardergw2

That link goes to a github where i uploaded a midi interface program I made for playing instruments in Guildwars 2. I made this after wanting to play music in GW2 more naturally and over the past two weeks it has “married” my hobby of music to my hobby of Guildwars!

The app allows you to take a midi equipped keyboard or controller and use it to simulate a virtual computer keyboard. The app lets you play the music instruments found in the game more naturally. It handles shifting octaves, making chords possible. The keyboard’s output can be piped back out to a midi interface so you hear the music you play without the GW2 client lag. I’ve been screwed up by that lag keeping time in some pieces.

Github can be a little strange but the source code there is so you can see how it’s made. If you can’t build it you can grab the zip file and buried in there is a “release” folder that has the app built already.

There are some limitations to it though:

  • Since Guildwars instruments don’t have the half tones (black keys) the playing key is limited to A minor or C. Using a midi keyboard with a transpose function can get around this to a degree. There is also a built in transpose function if your keyboard doesn’t have one.
  • The lack of half tones in GW2 also means there are no key changes or accidentals. Lots of songs key change. You can fake F or G key by playing the Bb and F# as A or G to a degree.
  • While I tuned the keypress speed to be as fast as possible without the game and the midi interface coming out of sync in terms of current octave there is still a chance that the octave comes unsynced. You’ll hear this in game where the pitch of what you played is an octave off from what you should hear. Keep your main pc keyboard around to fix this.
Little red Lioka

Homebrew midi keyboard interface part 3

in Community Creations

Posted by: Knudow.1683

Knudow.1683

This is great!

Although if I don’t check “Connect ouput” it crashes after 1 note. Doesn’t matter, can mute the app with Windows’ volume control thingy.

Homebrew midi keyboard interface part 3

in Community Creations

Posted by: lioka qiao.8734

lioka qiao.8734

I didn’t really check all of the crash scenarios in it, especially with the multi-box update. My antivirus flagged it too (guess hackers use port 1337) when i used it sunday. Seems opening a server port on 1337 is suspicious activity.

Try updating it for the connect output part. I did fix that one.

Edit: I seem to have not committed the multibox changes. I’ll add those this afternoon. I improved the octave shift handling in it as well for fewer broken octave shifts (watch out while playing chords tho)

The multibox support is for 2 characters ideally setup so that one plays the harp while the other plays the bass. For multibox you’ll need 2 computers, 2 accounts, bass on one, harp on the other.
Load up both accounts into GW2. Start the midi app on both computers. Have the treble computer (harp) connect to the bass computer with its ip address. (put in the ip, then check the connect box).
Set the bass player’s app to be the bass (check the bass box). You’ll have to connect a midi input on the bass player for now as well.

When bass is checked the midi keys will map to C1 through B2 for Bass while the harp will be C3 through C6. The bass keys will be transmitted to the bass player while the harp keys stay on the harp player. Gather your two accounts in one spot and enjoy the full range of your keyboard (note your keyboard must support the described key range to play bass)

Little red Lioka

(edited by lioka qiao.8734)

Homebrew midi keyboard interface part 3

in Community Creations

Posted by: lioka qiao.8734

lioka qiao.8734

So I’ve been working on a complete re-overhaul of the app to make it more professional. Here’s what the UI looks like now

http://i.imgur.com/lvN8U8S.png

My dream for this app is for it to be a full blown digital audio workstation. Im so close to completing that I’ll give you guys a crack at it:

https://github.com/michaelhester07/gw2musician/releases/tag/first

The github release tells you all you need to know to get started.
Enjoy the music!

Little red Lioka