justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]

Question: Did you write any Windows desktop programs with C# and .NET? Would you recommend it instead of C++ in any particular situation?
Asked by Rodrigo (161.148.171.x) on February 10 2012, 4:22pm
Reply on February 11 2012, 1:19am:
    I haven't had any real experience using C# or .NET, so it would be hard for me to recommend. I'd imagine it is easier to get started with, though, as win32/C++ is a complete roll-your-entire-environment mess.
Comment...
Question: do you think your skill/technology would be out of date if you had to find a job like the rest of us?
Asked by poop (68.28.147.x) on February 9 2012, 2:33pm
Reply on February 9 2012, 4:15pm:
    Depends on the job, I'd think!
Comment...
Question: UpdateLayeredWindow: should i multiply each pixel rgb values with its alpha? how? value
Asked by ruchira (175.157.19.x) on February 8 2012, 3:44am
Reply on February 8 2012, 5:04am (edited at February 8 2012, 5:05am):
    Ah yeah, it wants premultiplied alpha, I forgot about that:
    
    void pf(LICE_pixel *p, void *parm)
    {
      int a = LICE_GETA(*p) + 1;
    
      // not technically correct, removing the +1/-1 and changing /256 to /255
      // would be more correct (and also quite a bit slower).
      *p  = LICE_RGBA(
               (LICE_GETR(*p)*a)/256,
               (LICE_GETG(*p)*a)/256,
               (LICE_GETB(*p)*a)/256,
               a-1);
    }
    
    LICE_ProcessRect(&a,0,0,a.getWidth(),a.getHeight(),pf,NULL);
    
    
    (This would also mangle the buffer, so you'd want to do it in a temporary buffer if you don't redraw every frame completely)
Comment...
Question: I'm sure the answer is some deep math, but why does the frequency response of graphical equalizers bubble up all the time?
Asked by John (69.15.110.x) on February 7 2012, 5:01pm
Reply on February 7 2012, 5:03pm:
    Bubble up?
Comment...
Question: Playing 2 identical waveforms at the exact same time will not yield a natural mix. How does that work in nature? Implausible?
Asked by McThib (131.107.0.x) on February 6 2012, 7:41pm
Reply on February 6 2012, 11:05pm:
    What does "natural mix" mean? And in nature, do you mean having two trumpets playing identically infinitely close to each other, or with two analog signals being combined on a copper wire?
Comment...
Question: Do you hate when people ask for features from other DAWs? Is it really hard to do proper area selection (PT-style) for Reaper?
Asked by EvilDragon (88.207.58.x) on February 4 2012, 8:11am
Reply on February 6 2012, 4:55am:
    You have to make it make sense within the context of REAPER, vs. making it be-like-some-other-app, yeah.
Comment...
Question: how to use UpdateLayeredWindow function with LICE?
Asked by ruchira (61.245.172.x) on February 3 2012, 3:44pm
Reply on February 6 2012, 4:59am (edited at February 6 2012, 5:01am):
    Probably something like:
    
      LICE_SysBitmap a; // draw there
      int alpha=255;
    
      HDC dc = a.getDC();
      RECT r;
      GetWindowRect(hwnd, &r);
      SIZE rs = {r.right-r.left, r.bottom-r.top};
      BLENDFUNCTION blendPixelFunction= { AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA };
      POINT psrc ={0,0};
      UpdateLayeredWindow(hwnd, GetDC(NULL), (LPPOINT)&r, &rs, dc, &psrc, 0, &blendPixelFunction, ULW_ALPHA);
    
    
    (this assumes you have a window with no titlebar etc, like our splash screen...)
Comment...
Question: Do you install and run competing software to get ideas for Reaper?
Asked by John (184.36.236.x) on February 2 2012, 11:05pm
Reply on February 2 2012, 11:12pm:
    Before I starting working on REAPER I did use other software, but since then no, I've only installed competing software for purposes of compatibility testing etc (mostly via ReWire -- I think I still have the Live 7.x demo installed for this purpose, but also for ReaPlugs).

    The thought of using other software enough to glean any kind of idea from them is a horrid one, honestly. REAPER works just so very well for me.
Comment...
Question: IPA, Wheat or Amber
Asked by stumpy1 (63.192.169.x) on February 2 2012, 11:47am
Reply on February 2 2012, 8:32pm:
    I prefer a nice mild lager, or a stout, personally... Also, Newcastle, mmm. Having said that, they all mess with my stomach so I generally avoid them.
Comment...
Question: Don't you need to clip post sum?
Asked by will (70.173.150.x) on February 1 2012, 5:58am
Reply on February 1 2012, 3:13pm:
    Only if you're going to convert back to fixed range PCM... you definitely wouldn't want to clip until you absolutely must...
Comment...
Question: Re: Mixing WAV files: I meant code, but I've got it now. What are your favorite (most used) effects for guitar/voice processing?
Asked by asafonov (79.104.2.x) on January 31 2012, 5:24am
Reply on January 31 2012, 9:29pm (edited at January 31 2012, 9:30pm):
    Ah yeah, simply summing is the way to go. I like using the JS delays, auto panners, phaser, and autopeakfilter too.. all fun stuff. Also I use ReaComp and ReaEQ a lot but for more technical purposes rather than purely creative...
Comment...
Question: How to mix 2 wav files into one (drum section and guitar). Could you please give some explanation or the starting point?
Asked by asafonov (79.104.2.x) on January 30 2012, 10:01am
Reply on January 30 2012, 4:29pm:
    In REAPER, or in code? :)
Comment...
Question: very active the music section in 2012, are you preparing a new album soon?
Asked by gio (62.103.65.x) on January 30 2012, 9:02am
Reply on January 30 2012, 4:28pm:
    No, but I plan to record more this year than last.
Comment...
Question: Old school guy here, big producer, engineer back in the day...thanks for Reaper, just want to record real music and now can do.
Asked by Eric (67.53.222.x) on January 28 2012, 7:23am
Reply on January 30 2012, 2:04am:
    Awesome! Glad we can make a nice modern tape deck :)
Comment...
Question: Have you tried Winamp for Android yet? I'm reading about it in February's PC World (available at a torrent site near you)
Asked by Will (24.234.206.x) on January 27 2012, 11:24pm
Reply on January 30 2012, 2:04am:
    I haven't, I am iPhone scum.
Comment...
Question: What's your naming convention on C++ private/protected/public variables & methods?
Asked by Rodrigo (187.112.89.x) on January 27 2012, 10:25pm
Reply on January 30 2012, 2:05am:
    Methods can be named whatever, but we always make member variables prefixed with m_, unless it is a trivial class/struct with not more than a few tiny methods. Global variables tend to be g_*, or s_* if they are local to a particular file (i.e. static).
Comment...
Question: What do you think of embarcadero.com/products/cbuilder ?
Asked by Will (24.234.206.x) on January 27 2012, 6:27pm
Reply on January 30 2012, 2:05am:
    No experience with it, probably will never try it.
Comment...
Question: Does the corporate angst go away when you quit working for a big company and start working for yourself?
Asked by McThib (131.107.0.x) on January 25 2012, 1:00am
Reply on January 27 2012, 6:07pm:
    Yeah, once you have new things to obsess over, anyway.
Comment...
Question: should my prototyped functions have variable names associated with the types?
Asked by gio (62.103.65.x) on January 24 2012, 9:30pm
Reply on January 27 2012, 6:07pm:
    Usually a good idea, and an even better idea to have them be labelled somewhat accurately.
Comment...
Question: How in the hell does the USA have the rights to Police the INTERNETS!? bit.ly/xEzktQ - is this just the beginning?
Asked by AnalSeducer (76.103.105.x) on January 24 2012, 7:45pm
Reply on January 27 2012, 6:07pm:
    We gave birth to you, so we can destroy you.
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS