 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
conchfeld
Joined: 21 Sep 2008 Posts: 16
|
Posted: Mon Nov 24, 2008 1:13 pm Post subject: XBox 360 controller --> midi controller with AHK |
|
|
http://www.joshuaevensen.com/apps/XMid.zip
| Code: | ; XBOX 360 CONTROLLER --> MIDI CONTROLLER (Chordal Focus)
;=========================================================
;=========================================================
; if you enjoyed this, thought it useful, etc, please take a second to check out my website and musical endeavours.
; if you need a composer for a film, hire me. I'm your man.
;
; http://www.joshuaevensen.com (my main website-- contains links to all others as well as links to my film scoring portfolio.)
;
; http://www.myspace.com/swansaw (shoegaze/post rock)
; http://www.myspace.com/emfrik ( electronica/ambient/glitch/hip hop)
; http://www.myspace.com/whereismyspaceship (folk)
;=========================================================
;=========================================================
; also a big huge thanks to Tom Boughner over at AutoHotkey cause without his midi output functions,
; well, this would have been POSSIBLE, but waaay more difficult!
;
;and also to Laszlo over there for the work he did improving said midi functions
;and the help he gave me with getting pitch bends working
;=========================================================
;=========================================================
;
; WELCOME to the chordally focused edition of the xbox 360 midi controller.
;
; A,B,Y,X buttons play different tones of the chord.
; Left thumbstick selects different chords.
; Chords available are based off the tetrachords.
; Each thumbstick position gives you access to two triads in root position.
; Push in left thumbstick for sixth set.
;
; Back button selects major/minor tonality.
; Start button cycles through four inversion (first, second, third, and seventh)
;
; L Button temporarily shifts you down an octave.
; R button temporarily shifts you up an octave.
;
; D pad left/right control "permanent" home octave selection.
; D pad up/down control "permanent" transposition
;
; Left trigger has two modes. Velocity and root-doubling. Press L, then R to toggle between them.
; Press R, then Back to lower the root-double by one octave.
; Press R, then Start to raise the root-double by one octave.
;
; Left trigger controls velocity (do not use both triggers together, they cancel eachother out.
;
; Chords available from the left thumbstick positions are as follows:
;
; MAJOR:
; center= I, iii. Up = ii, IV. Right = iii, V. Down= IV, vi. Left= V, vii o. Press left thumbstick in for vi and IIX (I one octave up).
;
; MINOR:
; center= i, III. up = ii o, iv. right = III, v. Down= iv, VI. Left= v, VII. Press left thumbstick in for VI and iix (i one octave up).
;
; Press ctrl alt u to set up your midi output port. If you only have one joystick on your computer
;
; Enjoy. Please send all comments/questions/etc to josh@joshuaevensen.com .
; |
I've been meaning to rework this, but haven't had time. Give me your thoughts though!
<edit>OH yeah and it needs a program like midiyoke to be run proper. some kind of virtual midi cabling app.</edit>
youtube videos
http://www.youtube.com/watch?v=tHjdY-HIqYg
http://www.youtube.com/watch?v=u5a3cuaPR_k _________________ Composer
http://www.joshuaevensen.com |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Mon Nov 24, 2008 5:59 pm Post subject: |
|
|
Nothing seems to happen when I start the exe, only an AHK icon appears in the tray, where I can exit the program. MIDI-OX does not show midi activity when I press the gamepad buttons. I use the controller as a USB joystick.
Do you plan to post the source code? |
|
| Back to top |
|
 |
conchfeld
Joined: 21 Sep 2008 Posts: 16
|
Posted: Sat Jan 17, 2009 6:08 pm Post subject: |
|
|
Sorry for not responding. This was my first "programming" project, such as it is, and while I think my actual system is musically sound, the code could really use a lot of optimization. SO I'm going to rewrite the entire thing from scratch without referencing the old code or repurposing it and post again. _________________ Composer
http://www.joshuaevensen.com |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|