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: me again. How do you increase line thickness in Lice? i.e. highlighted envelope in reaper
Asked by olilarkin (144.32.204.x) on July 3 2012, 2:39pm
Reply on July 3 2012, 3:13pm:
    Heh, doesn't really support that -- what the highlighted envelope drawing does is:
      LICE_Line(licebm, xstart, ystart, xend, yend, color, alpha, LICE_BLIT_MODE_COPY, aa);
      if (envselected)
      {
        if (abs(xend-xstart) > abs(yend-ystart))
        {
          ++ystart;
          ++yend;
        }
        else
        {
          ++xstart;
          ++xend;
        }
        LICE_Line(licebm, xstart, ystart, xend, yend, color, alpha, LICE_BLIT_MODE_COPY, aa);
      }
    
    
Comment...
Question: thanks. worked a treat. Sorry if it's a basic Q, but could you explain the Lice blit modes or point to a site that does?
Asked by olilarkin (144.32.156.x) on July 2 2012, 10:25am
Reply on July 2 2012, 2:25pm:
    Sure, I guess this should be in lice.h but isn't (note if alpha is non-1.0, it changes things too). The actual logic for these is in lice_combine.h.
    • LICE_BLIT_MODE_COPY: copies input to output -- if alpha is not 1.0, mixes accordingly
    • LICE_BLIT_MODE_ADD: sums input and output -- if alpha is not 1.0, output + alpha*input is used, so for subtraction you can use ADD with alpha of -1.0.
    • LICE_BLIT_MODE_DODGE: output = output/(1.0-input), more or less
    • LICE_BLIT_MODE_MUL: output = output*input
    • LICE_BLIT_MODE_OVERLAY and LICE_BLIT_MODE_HSVADJ: ok I need to go get coffee now. fail.
Comment...
Question: Have you used a Lumia 900, what doya think?
Asked by BobJones (196.210.237.x) on July 1 2012, 12:26pm
Reply on July 2 2012, 2:58am:
    I haven't, I'd like to though, I hear the hardware is quite nice.
Comment...
Question: Is there anyway to draw a filled round rect in LICE?
Asked by olilarkin (86.13.97.x) on July 1 2012, 10:14am
Reply on July 2 2012, 3:05am:
    Assuming that you are OK with mode==LICE_BLIT_MODE_COPY and alpha==1.0, x1,y1,w,h,r and color passed to:
            LICE_FillRect(framebuffer,x1+r,y1,w-2*r,h,color,alpha,mode);
            LICE_FillRect(framebuffer,x1,y1+r,r,h-2*r,color,alpha,mode);
            LICE_FillRect(framebuffer,x1+w-r,y1+r,r,h-2*r,color,alpha,mode);
            LICE_FillCircle(framebuffer,x1+r,y1+r,r,color,alpha,mode,aa);
            LICE_FillCircle(framebuffer,x1+w-r-1,y1+h-r-1,r,color,alpha,mode,aa);
            LICE_FillCircle(framebuffer,x1+w-r-1,y1+r,r,color,alpha,mode,aa);
            LICE_FillCircle(framebuffer,x1+r,y1+h-r-1,r,color,alpha,mode,aa);
    
    ...would do the trick.
Comment...
Question: Did the leap second crash your Linux servers? Greetings
Asked by gio (94.66.70.x) on July 1 2012, 7:41am
Reply on July 2 2012, 3:05am:
    It (or at least AWS) spared us, afaict.
Comment...
Question: do youhave to code seperately for OSX and Windows or do they cross over, I'm obviously not to up on programming
Asked by stumpy1 (63.192.169.x) on July 1 2012, 6:52am
Reply on July 2 2012, 3:06am:
    We target a subset of Win32, which using our SWELL code, lets most things apply to both.
Comment...
Question: u still have iphone 4s? not changing?
Asked by Desert Rain (122.176.159.x) on June 30 2012, 3:27pm
Reply on July 2 2012, 3:06am:
    Yep, and yep, despite not being happy with the battery life.
Comment...
Question: Do you feel like a dinosaur programmer? If you started today, would you really do win32/C programming??
Asked by Will (70.173.150.x) on June 30 2012, 3:20am
Reply on July 2 2012, 3:06am:
    It would be tough to start with win32 today, I'd probably just do ajax stuff. Did you see my blog page is now (almost) never ending?
Comment...
Question: Do you refactor/rewrite/review your own code often?
Asked by Rodrigo (200.146.127.x) on June 29 2012, 11:06pm
Reply on July 2 2012, 3:07am:
    Some code does get a lot of attention, other gets left alone for years.
Comment...
Question: If you had to pit the current version of Shoutcast against Icecast... which would you say is better.
Asked by DocNasty (38.114.206.x) on June 28 2012, 9:18pm
Reply on June 29 2012, 10:26pm:
    I have no data for this. I now serve my streams via some crappy PHP I wrote. :)
Comment...
Question: how would you describe your beard policy?
Asked by rtqp (146.115.74.x) on June 28 2012, 5:47pm
Reply on June 29 2012, 10:27pm:
    I permit beards in my presence.
Comment...
Question: compelling? blogs.oracle.com/talkingjavadeploy...
Asked by Will (70.173.150.x) on June 28 2012, 5:34am
Reply on June 28 2012, 2:57pm:
    Nice! They should have done that ages ago...
Comment...
Question: It would be great to get Winamp 0.71 for Intel OS X. Is it possible?
Asked by Giovanni (93.56.49.x) on June 27 2012, 9:25am
Reply on June 28 2012, 2:57pm:
    Not unless someone at AOL has the code.
Comment...
Question: JSFX_to_VST after further consideration would sound better as just "JS Grail". You know many of us want this very badly.
Asked by Dean (67.174.194.x) on June 26 2012, 4:55am
Reply on June 28 2012, 2:57pm:
    Haha someday maybe.
Comment...
Question: Just in case I go there someday, what's the best season to be in NYC?
Asked by schmoe (50.98.73.x) on June 26 2012, 3:34am
Reply on June 28 2012, 2:58pm:
    Depends on what weather you like, but Spring or Fall are usually regarded as the best time.
Comment...
Question: whats the best way to get in touch with you?
Asked by leonid (76.198.131.x) on June 26 2012, 2:38am
Reply on June 28 2012, 2:58pm:
    email my first name at the company-I-work-for dot com.
Comment...
Question: Can you show us some pics of the Cockos office?
Asked by Rajj (184.91.3.x) on June 26 2012, 2:04am
Reply on June 28 2012, 2:58pm:
    I'll see what I can do...
Comment...
Question: Winamp is 15 years old now, more without you than with. How do you feel about your child nowadays?
Asked by Rodrigo (177.132.100.x) on June 26 2012, 1:37am
Reply on June 28 2012, 2:58pm:
    Hah I had to let go of it a long time ago...
Comment...
Question: yeah :) I saw it after I submitted sorry
Asked by goky (109.60.43.x) on June 25 2012, 8:57pm
Reply on June 28 2012, 2:58pm:
    OK
Comment...
Question: will there be track layer functionality in reaper?
Asked by goky (109.60.43.x) on June 25 2012, 5:01pm
Reply on June 25 2012, 6:30pm:
    See above "Note:" :)
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS