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: I'm drawing my tooltip over arrange and it can appear just before REAPER tooltip so the difference is obvious an I want to nail it. This is what I got: bit.ly/1lOrwHT Using this code: bit.ly/1rdTrWM. Could you share your win font settings? :) OSX too would be nice
Asked by Martin (93.141.110.x) on June 20 2014, 5:24am
Reply on June 21 2014, 4:26pm:
    Use:
    HWND ttw = GetTooltipWindow();
    HFONT font = (HFONT) SendMessage(ttw,WM_GETFONT,0,0);
    if (font) { /* use font for LICE_CachedFont */ }
    
    
Comment...
Question: Hi. I've made an extension for Reaper and I'm also a noob. If you have a sec, could you respond to this post? forum.cockos.com/showthread.php?t=141714
Asked by Wyatt (70.41.143.x) on June 19 2014, 5:03pm
Reply on June 19 2014, 11:16pm:
    Yes, yes I can.
Comment...
Question: There's a pretty dark undertone to the main character that is appealing. Some pretty dark stuff occurs, which is what makes the show interesting to me, not the tech stuff. I'll report back at the end of S1 on if it turns out to be any good or not. :)
Asked by Will (24.234.85.x) on June 16 2014, 9:33pm
Reply on June 19 2014, 1:52am:
    OK.
Comment...
Question: You do know "Halt & Catch Fire" is total fiction and not a documentary, right? Why did the "I don't work for IBM" line turn you off? The lead chick is pretty hot. ;-)
Asked by Will (24.234.85.x) on June 16 2014, 6:37pm
Reply on June 16 2014, 8:41pm (edited at June 16 2014, 8:42pm):
    Yeah obviously. The writing just didn't do it for me. Which isn't to say it wasn't realistic, just that I wanted the characters to all die. Which isn't a good sign after 3 minutes.
Comment...
Question: Which programming project are you absolutely most proud of from a technical achievement standpoint
Asked by John (68.104.121.x) on June 14 2014, 10:45pm
Reply on June 15 2014, 2:46am:
    I'd have to say REAPER...
Comment...
Question: How much coffee have you ever drank in 1 sitting?
Asked by Andro (31.172.30.x) on June 13 2014, 10:05pm
Reply on June 15 2014, 2:47am:
    Maybe 3 or 4 cups? Nothing too crazy, but in general I avoid having more than 3 coffees a day (usually just 2).
Comment...
Question: You should chime in on this one: www.reddit.com/r/cscareerquestions/comments/282o73/company_is_us...
Asked by Will (24.234.85.x) on June 13 2014, 10:00pm
Reply on June 15 2014, 2:47am (edited at June 15 2014, 3:54am):
Comment...
Question: Are you cognizant of "design patterns" or apply unit testing / TDD to Reaper's code base, or is that all a big hunk of b.s. for a 1-2 man show?
Asked by Will (24.234.85.x) on June 10 2014, 9:39pm
Reply on June 15 2014, 2:47am:
    Nah, it's more just an attempt craftsmanship. That and, we try to test our code. Some more than others...
Comment...
Question: What's the car you are driving for normal days? and how about its price?
Asked by David (113.200.157.x) on June 9 2014, 5:20am
Reply on June 9 2014, 1:40pm:
    I don't drive normally, but I have a Salsa Casseroll SS that I ride around which is quite nice (I bought it from a friend for $300, but have since upgraded it with a $40 fender set).
Comment...
Question: Who's you favorite redhead? Mine: Allie in Curious George, Helen in Matha Speaks, D.W. in Aurthur, Pickles in Oblongs, Velma in Scooby Doo, Jessie in Toy Story, Lous in Family Guy, Jean Grey in X-Men, Mermaids' Ponyo and Ariel, Jestine in World of Warcraft, Natalya Rudakova in Transporter 3, Peggy in Married with Children, Lelu in 5th Element, Seth Green an
Asked by Nickels (173.19.15.x) on June 8 2014, 11:19am
Reply on June 9 2014, 1:39pm:
    Louis CK?
Comment...
Question: Was there a period of time in the early winamp days where you had to struggle a bit financially, or was the shareware dues coming in steady the whole time?
Asked by Will (68.104.121.x) on June 8 2014, 4:44am
Reply on June 9 2014, 1:39pm:
    There was very little need for revenue in general so there wasn't much struggling, thanks to having the luxury of living with my parents. Then eventually shareware was very steady and healthy, and also we had a nice $1 CPM ad deal for a while which added up to a lot.
Comment...
Question: Re: not knowing where to start with 3D printing, #reprap on irc.freenode.net and www.3ders.org/pricecompare/3dprinters/. I bet you could write an awesome slicer.
Asked by Jesse (173.54.213.x) on June 7 2014, 11:05pm
Reply on June 9 2014, 1:38pm:
    I'll take a peek, but generally unless I have something I want to print, what am I going to do?
Comment...
Question: Thought's on Tommy's thread profiling technique? youtube.com/watch?v=KUL0BWUeasI
Asked by Will (24.234.85.x) on June 6 2014, 11:12pm
Reply on June 7 2014, 2:18am:
    He didn't seem to say much other than it would add threads as it determined was appropriate, which doesn't mean much.
Comment...
Question: It has been a fair amount of time since you published the bench builds. What's your findings so far?
Asked by gio (94.66.18.x) on June 6 2014, 10:34pm
Reply on June 7 2014, 2:19am:
    Ah it's been a bit, yeah. My general feeling is that any gains we'd get by switching would be inconsistent (depending on CPU), or small enough not to worth bothering, at this point.
Comment...
Question: Can you briefly explain how knowledge of trigonometry helped you with AVS effects, perhaps with 1 example?
Asked by Will (24.234.85.x) on June 6 2014, 9:44pm
Reply on June 6 2014, 10:15pm (edited at June 6 2014, 10:17pm):
    OK, one thing you can make is where you generate a new frame's image based on the previous frame's image, and you often would make a lookup table for each destination pixel, with the value of each entry in the table being the index (y*w + x) of the source pixel.

    In this instance, if you wish to say, rotate the image around its center, you could convert from x,y coordinates to polar (by using atan2() for the angle and pythagorean for radius), then modify, then convert back to x,y using sin() and cos(). I'll leave the specifics of the math as an exercise for you.
Comment...
Question: Could you please share minimal REAPER_Resample_Interface example? I'm trying to wrap it to be used by another C library (like this: pastebin.com/jvP6tamk) and getting strange memory errors. Is it possible that REAPER_Resample_Interface does it's own memory allocations to supplied buffers?
Asked by Martin (78.0.239.x) on June 6 2014, 4:02pm
Reply on June 6 2014, 5:42pm:
    Something like this (pardon the (*). syntax, too lazy to do all of the required HTML entities manually):
    
    const int nch = 2;
    const int out_block_size = 1024;
    
    REAPER_Resample_Interface *resample = Resampler_Create();
    
    ReaSample *out_buf = (ReaSample *)calloc(sizeof(ReaSample), out_block_size * nch);
    
    (*resample).SetRates(44100.0, 96000.0);
    
    while (you feel like it)
    {
    
        ReaSample *in_buf;
    
        int needed_input = (*resample).ResamplePrepare(out_block_size,nch, &in_buf);
        if (needed_input > 0)
        {
            // fill in in_buf with nch * needed_input * sizeof(ReaSample) bytes.
            // if less input is available (EOF), decrease needed_input (this will imply a flush, so only supply less if it is EOF)
        }
        int out_buf_used = (*resample).ReasampleOut(out_buf,needed_input, out_block_size, nch);
    
        // add out_buf_used * nch * sizeof(ReaSample) to output
    }
    
    
    If you want to have your resampler work by having a known input quantity and getting whatever output is available, you can use Extended(RESAMPLE_EXT_SETFEEDMODE,(void*)(INT_PTR)1,0,0), which will allow you specify the input samples available to ResamplePrepare (which will return that same value unless there is an error).
Comment...
Question: Favorite album right now?
Asked by Will (24.234.85.x) on June 5 2014, 10:11pm
Reply on June 5 2014, 10:50pm:
    Probably still finding myself listening to the self titled "Papier Tigre" album, but also Mogwai's "Hardcore will Never Die, But You Will", and the "Les Revenants" soundtrack. I also often end up humming the Earlimart song, "We're So Happy", or various simple Chopin arrangements (étude No. 4 and Nocturns from my beginner piano book).
Comment...
Question: Can you think of any use case to use SVN over GIT?
Asked by John (68.104.121.x) on June 5 2014, 3:51pm
Reply on June 5 2014, 10:45pm:
    I really can't -- I'd rather use git-svn than svn, even.
Comment...
Question: Ever worked with an engineer like Martin? :)
Asked by Will (24.234.85.x) on June 5 2014, 12:53am
Reply on June 5 2014, 4:12am:
    You mean Gilfoyle? I think they tend to be more like Roman.
Comment...
Question: Any thoughts on Apple's new language, "Swift?"
Asked by PunkyBrewster (108.84.201.x) on June 5 2014, 12:06am
Reply on June 5 2014, 4:13am:
    Meh, it isn't speaking to me much.
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2024 Justin Frankel. | RSS