Search found 23 matches

by Khorus
Wed Mar 11, 2015 3:23 pm
Forum: Coding Questions
Topic: MIDI. How to get midiInUnprepareHeader work correctly ?
Replies: 7
Views: 3852

Re: MIDI. How to get midiInUnprepareHeader work correctly ?

Hello guys!

I have a friend who's working at Ubisoft/Hercules/Guillemot. He used to write drivers for the many audio interfaces they manufactured back in the day. He sent me his code which handles all of the MIDI messages. It is in C (or C++, I can't recall) but if I remember correctly, you have to ...
by Khorus
Wed Nov 27, 2013 7:07 pm
Forum: Coding Questions
Topic: OpenWindowedScreen and Task Manager (Ctrl+Alt+Del) woes?
Replies: 1
Views: 1091

OpenWindowedScreen and Task Manager (Ctrl+Alt+Del) woes?

Hello all,

I'm writing some mixing app that uses OpenGL/DirectX for GUI (for speed, vs CanvasGadget/ImageGadget).

Everything is works great except that when I do the three finger salute (Control + Alt + Delete) and bring up the Task Manager in Windows 8, my screen stops refreshing.

I've searched ...
by Khorus
Mon Jan 14, 2013 5:23 am
Forum: Coding Questions
Topic: Real time MIDI in PureBasic using external Lib (PortMIDI)
Replies: 14
Views: 7270

Re: Real time MIDI in PureBasic using external Lib (PortMIDI

Hello Infratec,

Finally got the time to fiddle around our thing. (Well, your thing really!)

I just downloaded Mixxx for Mac, used their dylib file instead of some random one I found on the net... I've got no result. It doesn't crash or anything but it's producing no debug output... Is there a ...
by Khorus
Sun Dec 30, 2012 4:37 pm
Forum: Coding Questions
Topic: Real time MIDI in PureBasic using external Lib (PortMIDI)
Replies: 14
Views: 7270

Re: Real time MIDI in PureBasic using external Lib (PortMIDI

Thanks Infratec for all the work! It's greatly appreciated!!

Now, I tried your test programs. The one that lists the MIDI ports available is working good, the other one does nothing, I'll have to investigate more on it.

Next step: Try to get the libPortMIDI running on OSX. So far, no so good ...
by Khorus
Sat Dec 29, 2012 8:03 am
Forum: Mac OSX
Topic: Midi handling in OSX
Replies: 19
Views: 13995

Re: Midi handling in OSX

Hello Wilbert,

I'm doing real time MIDI messages mostly, some sort of a MIDI translator. I need to read/write directly into the MIDI ports. Do you think you can give me a simple example on how to do this with your PB definitions? Thanks a bunch!
by Khorus
Sat Dec 29, 2012 7:45 am
Forum: Coding Questions
Topic: Real time MIDI in PureBasic using external Lib (PortMIDI)
Replies: 14
Views: 7270

Real time MIDI in PureBasic using external Lib (PortMIDI)

Hello all,

I've been writing software in PureBasic for a while, I just love the platform! It's working awesome for me. Now, I wrote some piece of software that deals with real time MIDI messages. I learnt how to do MIDI the hard way, using Windows system calls (WinMM) and succeeded in writing a ...
by Khorus
Sun May 27, 2012 4:19 am
Forum: Mac OSX
Topic: Midi handling in OSX
Replies: 19
Views: 13995

Re: Midi handling in OSX

Sorry to revive an old thread, just wanted to know if you guys succeeded in sending and receiving MIDI messages?

I'm using Wilbert's Include file and it works for me so far for listing ports and such but I can't get my MIDI IN/OUT to work.

Any help greatly appreciated! Cheers!

-Khorus
by Khorus
Wed Apr 04, 2012 2:40 pm
Forum: Coding Questions
Topic: Receiving UDP multicast packets?
Replies: 5
Views: 3859

Re: Receiving UDP multicast packets?

Thanks Jassing for checking my code! I slept on it yesterday and woke up this morning thinking that the problem might be in the UDP Multicasts. They are *NOT* addressed to my IP. The MIDI device sends it on "225.0.0.37" (some sort of a broadcast address I believe). Wireshark receives them OK, I ...
by Khorus
Wed Apr 04, 2012 5:51 am
Forum: Coding Questions
Topic: Receiving UDP multicast packets?
Replies: 5
Views: 3859

Receiving UDP multicast packets?

Hello all,

I'm writing a small program that communicates with MIDI over LAN devices. I can send UDP packets no problems... But it's the receiving part that is not working. The packets are "connection-less" and are broadcasted for everyone to "capture" or receive if you will...

Here's my code ...
by Khorus
Sat Mar 31, 2012 8:11 pm
Forum: Mac OSX
Topic: Serial Port (USB) on OS X?
Replies: 4
Views: 2814

Re: Serial Port (USB) on OS X?

Yes, I installed the latest Prolific drivers, the /dev/tty.usbserial doesn't appear if it's not installed.
by Khorus
Sat Mar 31, 2012 2:51 pm
Forum: Mac OSX
Topic: Serial Port (USB) on OS X?
Replies: 4
Views: 2814

Re: Serial Port (USB) on OS X?

Hello again all,

I just recently made a test just to make sure it wasn't my configuration causing troubles. I tested my serial line with "screen" (in the Terminal) using 115200 bauds and my tests worked out fine. So, is there a bug in PureBasic that keeps us from using a serial USB adapter in MacOS ...
by Khorus
Wed Mar 21, 2012 4:04 am
Forum: Mac OSX
Topic: Serial Port (USB) on OS X?
Replies: 4
Views: 2814

Serial Port (USB) on OS X?

Hello all,

Lately, I've been porting an application from Windows to Mac OS X. I use a USB/Serial cable (Prolific chip) for the serial port. Looks like it's working fine at the OS level. I've got a "/dev/tty.usbserial" that works (did a quick test).

Now, if I try in PureBasic, it doesn't seem to ...
by Khorus
Fri Jan 06, 2012 8:41 pm
Forum: Mac OSX
Topic: Midi handling in OSX
Replies: 19
Views: 13995

Re: Midi handling in OSX

Yes sir, the names are being reported good! :) Thanks again for the include, looks like it is working great, I'll try to do a dummy Midi IN/OUT loop with the IAC Driver... See if I can talk to a DAW host directly. That's the goal of my project. Thank you!
by Khorus
Fri Jan 06, 2012 6:16 am
Forum: Mac OSX
Topic: Midi handling in OSX
Replies: 19
Views: 13995

Re: Midi handling in OSX

Hello Wilbert,

I tried to run your source code on PureBasic 4.60. I'm running it on an old Leopard system (10.5). It should work, CoreMIDI has been around since 10.0.

The source code compiles and runs OK. I'm getting values for "midiClient" and "midiOutPort" but "MIDIGetNumberOfDestinations ...
by Khorus
Thu Jan 05, 2012 2:08 pm
Forum: Mac OSX
Topic: Midi handling in OSX
Replies: 19
Views: 13995

Re: Midi handling in OSX

Awesome! THANKS a bunch for the source code! That's gold! Happy New Year! :D