ofxThreadedMidiPlayer icon indicating copy to clipboard operation
ofxThreadedMidiPlayer copied to clipboard

should work on 0.9.x?

Open moebiussurfing opened this issue 9 years ago • 9 comments

Hey @jvcleave , do you think this addon should work?

I tried to move the example to 'myApps' and also updated with ProjectGenerator without success. I am getting some errors on 'ofParameter.h' screen shot 2016-04-06 at 00 57 18

I tried also to make a clean project. I duplicated the 'ofxRuiThread' addon from your folder (not found anywhere on the web), to the '/addons' folder and I tried to link the static lib 'jdksmidi' but it's not detected when compiling.

screen shot 2016-04-06 at 00 45 27

I tried this dragging by hand on Xcode Addons group, but also editing the Project.xcconfig too... screen shot 2016-04-06 at 01 02 15

I dont know how to do it or if it's possible to work in 0.9...

moebiussurfing avatar Apr 06 '16 04:04 moebiussurfing

Your best bet is to update it to use just ofThread as opposed to ofxRuiThread

jvcleave avatar Apr 06 '16 04:04 jvcleave

ok. Thanks for the reply! ... this seems hard to me, I never used threads before :) but i'll post here if I try something. so, I can suppose that 'ofxRuiThread' it's the cause of the errors in ofParameter... Also I am doing something bad when adding the 'jdksmidi ' lib, I'll figure out.

moebiussurfing avatar Apr 06 '16 05:04 moebiussurfing

@moebiussurfing it was just updated in master by @roymacdonald for 0.9.3 - might want to give it a try

jvcleave avatar Apr 23 '16 16:04 jvcleave

hey @jvcleave ! sorry for the delay, I forget to check it..., sorry. Just checked the update on OSX and its working fine! Thanks @roymacdonald .

moebiussurfing avatar May 10 '16 03:05 moebiussurfing

Hey, I tried the addon on Windows 10 and it's working, but I am getting some unstable and "jumping" time/clock. Sometimes, when swithing between windows apps or clicking some gui..., the clock timing is out and unstable... Any idea about this?

moebiussurfing avatar Dec 22 '16 20:12 moebiussurfing

Not sure. You may want to try ofSetVerticalSync(false) but that behavior can have different behavior on different platforms so not sure about Windows. This reminds me a bit of

https://github.com/jvcleave/ofxImGui/issues/4

In that thread there are some GLFW focus options that may help

jvcleave avatar Dec 22 '16 20:12 jvcleave

Hi, I don't think that the problem is related to the vertical sync as this is running on its own thread. I recall fiddling a bit with the threadedFunction() where it deals with timing and messages because I had some timing problems, but cant really remember anything more. @moebiussurfing can you provide more details please? maybe code and the test midi file you are using? best

roymacdonald avatar Dec 22 '16 23:12 roymacdonald

Hey, I just used the included example. I had to edit and comment 3 times on the ofxThreadedMidiPlayer.cpp like this: //cout << PRETTY_FUNCTION << endl; to build the example without errors. I don't know if it's important... The midifile is the one included with the example by default.

moebiussurfing avatar Dec 22 '16 23:12 moebiussurfing

PRETTY_FUNCTION is just a logging thing - i guess it's not supported on Windows

jvcleave avatar Dec 23 '16 00:12 jvcleave