Sign in to follow this  
Followers 0
czardas

Midiudf

10 posts in this topic

#1 ·  Posted (edited)

I have never been able to get the to work, although my first attempt was a few years ago. This year I made a resolution to focus on my long term music projects and hopefully have something completed by 2012. Please could someone find a working example which uses Midiudf and compile it, so that I can test it. That way I will know if it is a configuration problem at my end, or something else I'm not doing right. For example: does this play back the recording for you? It doesn't seem to work for me.

Alternatively does anyone know any other way to access Microsoft GS Wavetable SW Synth and work with the sounds on my system?

Edited by czardas

Share this post


Link to post
Share on other sites



"For example: does this Midi Keyboard play back the recording for you?"

Nope, not a sound. Win 7 32 bit.

Thanks for looking. It's not obvious how that keyboard works at first glance. It does have an excellent GUI though. I will have to come back to this later today, due to commitments. Please if anyone has any suggestions I would be most grateful for any advice. Thanks.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Apparently there used to be some kind of settings under win 98, but for some strange reason microsoft hid them. I might have got that slightly wrong - it was something I read recently. I ran one of the functions from the UDF to test midi volume, and it is apparently set to maximum.

Edited by czardas

Share this post


Link to post
Share on other sites

"For example: does this Midi Keyboard play back the recording for you?"

Doesn't work here either. Windows XP SP 3


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

with Ascendants updated midiUDF, this example works.

#include <midiudf.au3>

$open = _MidiOutOpen()
_midiOutShortMsg($open,256 * 10 + 192) ; 10 plays Music box
_midioutshortmsg($open,$A0_ON)
sleep(2000) ; Play and hold for 2 second
_midioutshortmsg($open,$A0_OFF);Release, otherwise it will stay held
_midiOutclose($open)

some distorted sustained 'mary had a little lamb' action.

*I am not quite understanding the math behind the different instruments - or rather how they are related to the higher numbered instruments in the comments as they match exactly with the first set.

#include <midiudf.au3>

$open = _MidiOutOpen()
_midiOutShortMsg($open,256 * 86 + 192) ; 86 some distorted synth action
_midioutshortmsg($open,$E2_ON)
sleep(500) 
_midioutshortmsg($open,$D2_ON)
sleep(500) 
_midioutshortmsg($open,$C2_ON)
sleep(500)
_midioutshortmsg($open,$D2_ON)
sleep(500) 
_midioutshortmsg($open,$E2_ON)
sleep (500)
_midioutshortmsg($open,$E2_ON)
sleep (500)
_midioutshortmsg($open,$E2_ON)
sleep (1000)
_midioutshortmsg($open,$D2_ON)
sleep(500) 
_midioutshortmsg($open,$D2_ON)
sleep(500) 
_midioutshortmsg($open,$D2_ON)
sleep(1000) 
_midioutshortmsg($open,$E2_ON)
sleep (500)
_midioutshortmsg($open,$G2_ON)
sleep (500)
_midioutshortmsg($open,$G2_ON)
sleep (1000)
_midiOutclose($open)
Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I can confirm that iamtheky's example works on x64 Win7 with Au3 in both x86 and x64.

Edit: And the midi keyboard plays with the updated udf.

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Hey, that's made a difference. Thanks. :) Mary Had a Little Lamb sounds quite comical. Now I have now solved most of my problems - in theory. The last obstacle is designing a graphical music score control (Perhaps I'll just make it read only). I guess it won't be so easy, but I think I can probably solve it. Again, much obliged to everyone!

Edited by czardas

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0