Jump to content

Midiudf


czardas
 Share

Recommended Posts

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
Link to comment
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.
Link to comment
Share on other sites

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
Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...