PDA

View Full Version : cc's iplug additions


cc_
02-27-2010, 07:40 AM
I posted a previous version of my additions on some other thread earlier, I thought I'd start a new thread so I can keep it updated...

New in 2010_04_20:
- based on wdl 2010.04.19
- prompt for user input working in non-composited carbon windows
- IFaderMultiControl
- GetChunk/SetChunk VST presets working

Main additions:
New functionality:
- ISwitch2Control : A switch that has extra states in between the normal ones
which are used when the mouse is down.
- ISpinnerControl : a text control you can change by dragging like a knob
- IEditableTextControl : a text control you can click and edit the text
- IFaderMultiControl : a fader control that uses a multiframe bitmap
- ISubject.h : an interface so you can get your code to run when a control
is changes (eg for making text readouts of a control's value, or
making nudge buttons etc)
- New IPlug GetTime() function that returns all the info I needed to
create notes that are synced to the host position
and handle looping properly (the AU one hasn't been tested very well)
- GetChunk / SetChunk with VST presets working.
There is a function MakePresetState() you must overide when you
have added your own data to the preset chunk - see Example/IPlugExample.cpp
for an example of how to do this.

Things that weren't yet implemented on OSX (I have only tested these on 10.5):
- Alt click to edit the value of a control
- Prompt for file save / open
- set the value of EXPORT correctly in IPlug_include_in_plug_hdr.h
this means you can now enable "Symbols Hidden By Default" and strip the binary
(before it was relying on _all_ the symbols being in the binary to find the
one symbol it needs: the plugin's entry point)
- AU MIDIOut - but I haven't yet found a host that supports this, so it's pretty useless.

Licence is the same as WDL...

Soundbytes
02-27-2010, 12:06 PM
Thanks for making these available.
For my Synthedit based plugins I have created a control that works like your ISpinnerControl. So this comes just very handy for the transition to the new framework.

Andreas

olilarkin
02-28-2010, 07:16 AM
thanks cc!

stahlwerk
03-02-2010, 02:07 PM
Thanks!

Just saw this, and it is perfect timing for me, I just about to start thinking about how to do the user prompting in OSX, now I do not have to do that.

Tank you, thank you, thank you!!! :)

Astralp
03-05-2010, 01:32 PM
Thanks CC, great to see file handling and text entry, they were both on my todo list. I also have some additions here, mainly Popup Menu, though not implemented for Mac yet. I've had a couple of frustrating sessions trying but haven't achieved it yet. Works great on windows though.

Also there is a setDefault and also set value by it's int/enum value which others may find useful.

for the popup I have made a basic control to demonstrate.

Andy

cc_
04-20-2010, 10:12 AM
New version 2010_04_20:
- based on wdl 2010.04.19
- prompt for user input working in non-composited carbon windows
- IFaderMultiControl
- GetChunk/SetChunk VST presets working

see attachment in first post of thread.