|
06-11-2017, 10:37 AM
|
#1
|
Human being with feelings
Join Date: Apr 2017
Posts: 36
|
LICE graphics guidance
Is there any vaguely comprehensive source, tutorial, API, anything for learning about drawing graphics with LICE for WDL audio plugins? I've looked up and down and it's just really hard to get off the ground with it.
I just want to draw audio-reactive graphs on my plugins. I looked at the FFT analyser example in the -mw fork of WDL but couldn't get it to compile. None the -ol examples seem to have anything like that in them. Any guidance would be great because I'm really keen to get on with this framework
.
Last edited by mibes; 06-11-2017 at 11:44 AM.
|
|
|
06-11-2017, 10:56 AM
|
#2
|
Human being with feelings
Join Date: May 2012
Location: PA, USA
Posts: 356
|
What were the error when you tried to compile it? I haven't updated the code in a long time, so there might be some conflict with some of the newer updates to WDL-OL.
|
|
|
06-11-2017, 11:39 AM
|
#3
|
Human being with feelings
Join Date: Apr 2017
Posts: 36
|
Quote:
Originally Posted by random_id
What were the error when you tried to compile it? I haven't updated the code in a long time, so there might be some conflict with some of the newer updates to WDL-OL.
|
Undefined symbols for architecture x86_64:
"_WDL_fft", referenced from:
Spect_FFT::Permute(int) in IPlugSpectFFT.o
"_WDL_fft_init", referenced from:
Spect_FFT::Spect_FFT(IPlugBase*, int, int) in IPlugSpectFFT.o
"_WDL_fft_permute", referenced from:
Spect_FFT::Permute(int) in IPlugSpectFFT.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
also it doesn't like how pi is declared - "Static declaration of 'pi' follows non-static declaration "
Last edited by mibes; 06-11-2017 at 11:55 AM.
|
|
|
06-11-2017, 01:22 PM
|
#4
|
Human being with feelings
Join Date: May 2012
Location: PA, USA
Posts: 356
|
The errors are probably caused by the fft.c/.h files not being included. If you add them to the project, it should work. I don't have the Mac on now, but I think you can just drag the files from the Finder window into the project. The files are in the WDL directory.
As for the pi, you can probably comment it out if it is already defined.
|
|
|
06-11-2017, 01:55 PM
|
#5
|
Human being with feelings
Join Date: Apr 2017
Posts: 36
|
Thanks, that makes it run - nice example script, i'll be picking it apart to learn from it.
Do you have any directions to learn more specifically about the LICE stuff in WDL?
|
|
|
06-11-2017, 02:57 PM
|
#6
|
Human being with feelings
Join Date: May 2012
Location: PA, USA
Posts: 356
|
I would focus on what is in IGraphic.cpp for drawing instead of dealing with LICE directly. There are methods for drawing lines, filled/outlined rectangles, filled/outlined circles, etc. I do most everything with these functions. There are other things too, like curves, etc. I am pretty basic, and haven't messed with much of that.
|
|
|
07-14-2017, 05:02 AM
|
#7
|
Human being with feelings
Join Date: Apr 2012
Posts: 279
|
Lack of LICE documentation really is one of the big downsides of WDL.
But maybe someone has any hints on how to accomplish my task...
My actual plug uses lots of colour variations of the same basic grayscale bitmap. I'd like to load only that one bitmap and calc/store all the variations in my plug.
My first approach was to do it with Intel ipp lib (i use it already for audio), which provides pretty easy to use functions for that. Unfortunately i fail with the simple task to get/set the image data from IBitmap to anything i can handle with ippi.
Next try was to find anything related to that in IGraphics. But no avail.
Last idea is to deal with LICE directly. But i'm a bit overwhelmed with all the functions since i'm not very familiar with image processing at all. Maybe i can do what i need with blending options. But i've no clue how to get started.
So, if anyone feels encouraged to help me out... your welcome
|
|
|
07-14-2017, 07:45 AM
|
#8
|
Human being with feelings
Join Date: May 2015
Location: Serbia
Posts: 654
|
Quote:
Originally Posted by stw
Lack of LICE documentation really is one of the big downsides of WDL.
But maybe someone has any hints on how to accomplish my task...
My actual plug uses lots of colour variations of the same basic grayscale bitmap. I'd like to load only that one bitmap and calc/store all the variations in my plug.
My first approach was to do it with Intel ipp lib (i use it already for audio), which provides pretty easy to use functions for that. Unfortunately i fail with the simple task to get/set the image data from IBitmap to anything i can handle with ippi.
Next try was to find anything related to that in IGraphics. But no avail.
Last idea is to deal with LICE directly. But i'm a bit overwhelmed with all the functions since i'm not very familiar with image processing at all. Maybe i can do what i need with blending options. But i've no clue how to get started.
So, if anyone feels encouraged to help me out... your welcome
|
Use LICE_FillRect, set color you want, set mode to LICE_BLIT_MODE_MUL and paint over your bitmap. You can experiment with other blit functions too. NOTE: I have not tested this.
|
|
|
07-14-2017, 09:07 AM
|
#9
|
Human being with feelings
Join Date: Apr 2012
Posts: 279
|
Quote:
Originally Posted by Youlean
Use LICE_FillRect, set color you want, set mode to LICE_BLIT_MODE_MUL and paint over your bitmap. You can experiment with other blit functions too. NOTE: I have not tested this.
|
Hey...BINGO
Thanks Youlean!! Though i had to fiddle a bit with the proper settings it finally does exactly what i need!
In case someone wants to do the same, here the line that i inserted for the LICE_FillRect (where LICE_RGBA is the color of choice)
Code:
LICE_FillRect(pGraphics->GetDrawBitmap(), mRECT.L, mRECT.T, mRECT.W(), mRECT.H(), LICE_RGBA(241,177,131,0), 1, LICE_BLIT_MODE_MUL);
|
|
|
07-14-2017, 10:37 AM
|
#10
|
Human being with feelings
Join Date: May 2015
Location: Serbia
Posts: 654
|
Quote:
Originally Posted by stw
Hey...BINGO
Thanks Youlean!! Though i had to fiddle a bit with the proper settings it finally does exactly what i need!
In case someone wants to do the same, here the line that i inserted for the LICE_FillRect (where LICE_RGBA is the color of choice)
Code:
LICE_FillRect(pGraphics->GetDrawBitmap(), mRECT.L, mRECT.T, mRECT.W(), mRECT.H(), LICE_RGBA(241,177,131,0), 1, LICE_BLIT_MODE_MUL);
|
No problem.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:52 PM.
|