New vst plugin: drunxt

My first vst plugin is ready, it is a bit of a inside joke.

You put it on your vocal track, and it’ll tell you how drunk you sound. It is fairly complex, while a random number generator probably would have work just as well.

Anyway, here it is:

http://rabien.com/vst/drunxt.zip
http://rabien.com/vst/drunxt_src.zip

do you need to do anything special to add a menu to a vst? I added a popup menu and I call show(), it opens, but it snaps shut right away. Any ideas?

Sounds interesting!..

Menus should be fine, unless the host does anything funny with windowing that would close it. What host are you running in?

Tracktion. I’ll look into it more when I have some time.

I use a pop-up menu in ppmulator and that works fine in tracktion (on the PC, anyway… I’ve not tried the mac version recently)

if (anyFocused && Component::getCurrentlyFocusedComponent() == 0) { anyFocused = false;

sets anyFocuesed to false

and then

if (! anyFocused) { if (now > lastFocused + 10) { wasHiddenBecauseOfAppChange = true; dismissMenu (0);

hides the menu, this is in the first call to the timer callback

Right - I guess that’s because you’ve not used setWantsKeyboardFocus to let your component get focus, whereas in ppmulator I do.

You can probably fix it for now by making it focusable, and I’ll see if I can do a more elegant workaround in the menu code to deal with situations where no windows ever get focused.

that fixed it, thanks

I wrote another plugin, this one is a tuner.

http://rabien.com/vst/fbTuner.zip
http://rabien.com/vst/fbTuner_src.zip