Search found 86 matches

by pongasoft
Fri Oct 04, 2019 6:39 pm
Forum: VSTGUI
Topic: Type inconsistency
Replies: 2
Views: 50

Re: Type inconsistency

I actually did. It is not a showstopper problem since I was able to work around it but yet it is a problem: I ended up writing some generic code to create some parameters (in my framework), with APIs like those: template<typename T> GUIParam<T> registerParam(ParamID iParamID); // ParamID == uint32 t...
by pongasoft
Thu Oct 03, 2019 3:11 pm
Forum: VSTGUI
Topic: Type inconsistency
Replies: 2
Views: 50

Type inconsistency

In the VST SDK, ParamID is defined to be uint32 typedef uint32 ParamID; ///< parameter identifier uint32 is then defined this way #if SMTG_OS_WINDOWS && !defined(__GNUC__) typedef long int32; typedef unsigned long uint32; #else typedef int int32; typedef unsigned int uint32; #endif In VSTGUI, ccontr...
by pongasoft
Sun Sep 15, 2019 4:31 pm
Forum: VSTGUI
Topic: Bitmap with 2 frames issue
Replies: 2
Views: 77

Re: Bitmap with 2 frames issue

I have not checked the code for my theory but this is what I think is happening: * because I am on macOS with HiDPI screen and I don't provide a 2x version of the image, the original image (which contains 2 frames) is scaled up. * the process of scaling the image up introduces artifacts which ends u...
by pongasoft
Sat Sep 14, 2019 6:01 pm
Forum: VSTGUI
Topic: Bitmap with 2 frames issue
Replies: 2
Views: 77

Bitmap with 2 frames issue

Hello I have the following bitmap with 2 frames: button_2frames.png The bitmap has a size of 26x52 (2 frames each 26x26). If I use this bitmap with an OnOff button and set the "size" to 26, 26, I end up with the following rendered button 1x.png As you can see there is a thin line at the very bottom ...
by pongasoft
Mon Sep 09, 2019 4:10 pm
Forum: VST 3 SDK
Topic: What DAWs use to differentiate plugins?
Replies: 2
Views: 163

Re: What DAWs use to differentiate plugins?

Yes I do confirm that it works... here is what I ended up doing: #ifndef NDEBUG static const ::Steinberg::FUID JambaTestPluginProcessorUID(0x1a410f8a, 0xbfb94a04, 0x9cf832e0, 0xd3f0e2ee); static const ::Steinberg::FUID JambaTestPluginControllerUID(0xf831107a, 0x489b4284, 0xbe16d9db, 0xe12bb012); #de...
by pongasoft
Sun Sep 08, 2019 3:35 pm
Forum: VST 3 SDK
Topic: What DAWs use to differentiate plugins?
Replies: 2
Views: 163

What DAWs use to differentiate plugins?

I have the following use case: On macOS, I build my plugin with all debug symbols and I generate a "~/Library/Audio/Plug-ins/VST3/VAC-6V_Debug.vst3" folder. I also build for "release" without debug symbols and I generate a "~/Library/Audio/Plug-ins/VST3/VAC-6V.vst3" folder. When I use the VST3 Plugi...
by pongasoft
Mon Sep 02, 2019 3:00 pm
Forum: VSTGUI
Topic: String128 -> UTF8String conversion
Replies: 1
Views: 112

Re: String128 -> UTF8String conversion

I think I found an answer in the code: https://github.com/steinbergmedia/vstgui/blob/bb93128afc4509e74d8556891b1f03647a1a9660/vstgui/plugin-bindings/vst3editor.cpp#L213 bool convertValueToString (float value, char utf8String[256]) { if (parameter) { Steinberg::Vst::String128 utf16Str; if (parameter ...
by pongasoft
Mon Sep 02, 2019 1:11 pm
Forum: VSTGUI
Topic: String128 -> UTF8String conversion
Replies: 1
Views: 112

String128 -> UTF8String conversion

The VST SDK api deal with char16 (through TChar), for example IEditController::getParamStringByValue (ParamID id, ParamValue valueNormalized /*in*/, String128 string /*out*/) where String128 is a TChar[128] array. VSTGUI defines the UTF8String and uses it in throughout (like CTextLabel). Is there a ...
by pongasoft
Wed Aug 28, 2019 1:34 pm
Forum: VST 3 SDK
Topic: Clarification of parameter handling in VST 3
Replies: 4
Views: 248

Re: Clarification of parameter handling in VST 3

I don't have authoritative answers since I did not write the VST SDK, but as the dev for jamba (https://jamba.dev) I do have some hands on experience. For #1, you can do beginEdit(paramID); performEdit(paramID, <value1>); performEdit(paramID, <value2>); performEdit(paramID, <value3>); performEdit(pa...
by pongasoft
Wed Aug 14, 2019 3:02 pm
Forum: VSTGUI
Topic: How to apply a transformation?
Replies: 1
Views: 132

How to apply a transformation?

I am implementing a custom view and I would like to have a "rotation" attribute that would rotate the drawing. So I would like to implement something like this: void MyCustomView::Draw(CDrawContext *ctx) { if(fRotation != 0) { // save state // apply rotation } ctx->draw... ctx->draw... ctx->draw... ...