Jump to content

Recommended Posts

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
Posted

"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.
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
Posted

"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 2024-07-28 - Version 1.6.3.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 (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

 

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

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

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

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
×
×
  • Create New...