justin = { main feed , music , code , askjf , social , 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):
[unreplied] | [replied] | [all]
[older questions]

Question: You and schwa seem very dedicaed to Reapers development. It reminds me of the open source groups. [permalink]
Asked by mdiman007 (71.167.114.x) on October 21 2016, 6:58pm

Question: In that case, what does schwa suck at most? (looks like askschwa.com is available heh) Alternately, what are you best at, or what idioms do you tend to favor? What's the biggest pain in the ass that still trips you up? [permalink]
Asked by fmap (142.162.253.x) on October 16 2016, 12:25am
Reply on October 17 2016, 2:07pm:
    That (the former) seems like it would be awfully impolite!

    Anyway, I thought this little class what somewhat elegant, for detecting when "this" (or potentially any object of your choosing which you can add a member to) gets deleted out from under you in UI code.

Question: What's the story behind all the music you have posted? Loving it!!! [permalink]
Asked by Sean (68.37.160.x) on October 13 2016, 2:59pm
Reply on October 13 2016, 4:24pm:
    Thanks! It's stuff I'm making for fun (mostly while testing/developing REAPER).

Question: What kind of glue is Donald Trump sniffing? [permalink]
Asked by PunkyBrewster (99.103.119.x) on October 13 2016, 2:47am
Reply on October 13 2016, 4:25pm:
Question: Yes, the Reaper project note field is a text field. But how do I set this to show the text in a monospace font? The font it uses on my machine messes up alignment of lines, because of different sizes for different characters... [permalink]
Asked by fladd (84.26.42.x) on October 12 2016, 9:56pm
Reply on October 12 2016, 10:43pm:
    You don't for now, unfortunately...

Question: In terms of actual coding skills, what do you suck at the most? [permalink]
Asked by Will (107.203.156.x) on October 12 2016, 2:29am
Reply on October 12 2016, 10:43pm:
    Hell if I know, that'd be better asked on askschwa.com probably

Question: Why is the font in the projects notes in Reaper not a monospace font? Wouldn't it be great to format the project notes a bit ASCII style? [permalink]
Asked by fladd (92.110.128.x) on October 10 2016, 9:14pm
Reply on October 11 2016, 12:53pm:
    It's a regular text edit field...

Question: Can you give any advice to one who is going to run his first marathon? [permalink]
Asked by asafonov (77.222.12.x) on October 10 2016, 7:51pm
Reply on October 10 2016, 8:37pm (edited at October 10 2016, 8:38pm):
    I'm no expert, but off of the top of my head:

    As general preparation:
    • Practice eating during the run, figure out what foods work well for you
    • Run a few long (17-20 mile) runs ~5 weeks, ~4 weeks, and ~3 weeks ahead. If you have to make them on the shorter side (17 or even 16 miles) you should be fine too, just don't hurt yourself
    • Taper down for the 3 weeks before, so that the week leading up to the marathon you run a few very short very easy runs only
    • Practice racing in general throughout the process, so you get used to drinking from water cups and so on

    Day of:
    • Get very hydrated before the race. It's hard to keep up with water intake during the race, so giving yourself the most water at the start to start is helpful. If you can stand it, I'd take a 1L (or so) bottle of water that you can drink throughout the first 6 or 7 miles, then toss.
    • Eat and drink (in small quantities) as much as possible throughout the race. You might not *need* to, but it makes things better. Don't overdo it, obviously, but finding a nice routine of intake is good.
    • Go out easy and keep it easy until the last couple of miles!

      Look around, enjoy yourself, listen to yourself and other people and the spectators and/or nature.

      The marathon IMO is a different experience than shorter races because you (well, I anyway) really have to take it easy most of the way. Running a half marathon, I can go out at a slightly uncomfortable pace and more or less keep it there for the first 10 miles (uncomfortable enough that it requires my concentration, but not so uncomfortable I couldn't talk), before getting very uncomfortable on the last 5k. On the marathon, though, you really have to just go chill the whole way (the difficultly comes without speeding up ha ha). I'm sure other people would disagree, they're probably faster than I am ;)

    I'm not running one this year, boo, this makes me all nostalgic.. Hopefully next year!

Question: Batman or Superman [permalink]
Asked by IXix (86.160.199.x) on October 2 2016, 3:11pm
Reply on October 3 2016, 1:30pm (edited at October 3 2016, 2:52pm):
Question: As a kid I was drawn to x86 assembly language for its efficiency. I've recently become interested again, but I'd like to learn a high-level language that I can use to make small, fast binaries with few (or no) dependencies. REAPER and the Sysinternals suite are probably my favourite pieces of software in these regards. I've started learning C++ for the above [continued] reasons. As the creator of REAPER, which ticks all of the above boxes, how did you do that? And do you think I should I continue learning C++, or something else? [permalink]
Asked by dän (155.143.123.x) on September 30 2016, 7:32am
Reply on October 1 2016, 9:53pm (edited at October 1 2016, 9:54pm):
    I think if you know assembly language, and learn C/C++ while keeping in mind what the assembly generated would look like, you'd be in good shape!

    It would seem that a lot of people don't pay attention to size/speed of the code they write, using third party libraries without spending the time to integrate efficiently. "Let's just get this thing done! It'll be good enough!" fail...

    Having said that, there's a lot of ways to use C++. My favorite is in such a way that you know what code is being generated on your behalf. This sort of rules out the C++ standard library, IMO, which is incredibly complex.

Question: is it possible to use wdl to generate x/y voltages in the 0-1v range to control a plotter from the audio jack - if so what API? [permalink]
Asked by tones (67.193.92.x) on September 22 2016, 10:11pm
Reply on September 29 2016, 12:07pm:
    Well, you could generate audio using some code (not WDL specifically) and send it to the audio device using an audio API for the system you are on. But getting it to the 0-1v range, that is completely outside the scope of software really.

Question: According to my sources, Schwa has turned himself into the ARA police department and is awaiting trial. Can you confirm or deny that Schwa has been cooperating with the ARA police and has made several written statements with semicolons at the end? [permalink]
Asked by Mommy (99.173.156.x) on September 22 2016, 5:59pm
Reply on September 29 2016, 12:07pm:
    I'm not sure where things stand

Question: Windows - Lenovo Thinkpad laptop... standard laptop basically [permalink]
Asked by Shaggy Mike (125.14.185.x) on September 22 2016, 4:07am
Reply on September 29 2016, 12:07pm:
    Unsure about this...

Question: I want code something that will disable the physical sound volume control... say i set sound to say 60% I want to disable the hardware control (interrupt) from lower or increasing the volume. How to do it? [permalink]
Asked by Shaggy Mike (126.44.153.x) on September 20 2016, 3:20am
Reply on September 20 2016, 3:21am:
    OK, what hardware are you talking about?

Question: the jsfx function file_string(handle,str) seems to only read the first line of a text file. The description says that the string can include newlines. Would I need to encode or convert a text file made with (for example) notepad in a certain way? or is this a limitation? [permalink]
Asked by James HE (70.199.196.x) on September 20 2016, 2:14am
Reply on September 20 2016, 3:20am:
    It reads one line, call it again to read the second line (etc).

Question: How do i disable the physical volume keys from user programmatically? [permalink]
Asked by Shaggy Mike (175.208.255.x) on September 19 2016, 4:45pm
Reply on September 19 2016, 8:15pm:
    Hmm can you be more specific?

Question: Do I have to do anything special in my WindowsProcs in order to use win32_utf8.h, or just include it and everything works auto-magically? [permalink]
Asked by Gio (94.70.2.x) on September 13 2016, 5:57pm
Reply on September 15 2016, 3:23am:
    Depends on what you want to do, but SetWindowText(mywindow,"my_utf8_string") should work as-is. Some controls require installing a hook for each control (e.g. WDL_UTF8_HookComboBox()), owner data list views are a bit trickier...

Question: Fred, Daphne, Velma, Shaggy or Scooby? [permalink]
Asked by IXix (165.120.69.x) on September 10 2016, 2:40pm
Reply on September 10 2016, 3:21pm (edited at September 13 2016, 12:51pm):
    I have been told that I look like shaggy, usually when I need a haircut.

Question: Hm, a can clearly see how Reaper distributes Reason to 3 cores and Nuendo uses only single core. This is A situation, when it works, but you don't know why, haha. [permalink]
Asked by Zabukowski (86.61.14.x) on September 9 2016, 5:54am
Reply on September 10 2016, 3:21pm:
    Hmm OK if you say so!

Question: Sorry, I know this page is not for REAPER API questions but I don't get replies in the dev forum and this question is very essential for the next version of my Playtime plugin: Is it possible to use a custom PCM_sink (already implemented) for recording MIDI - not audio (so REAPER calls the WriteMIDI method)? If yes, how? :) [permalink]
Asked by helgoboss (92.209.200.x) on September 7 2016, 9:09pm
Reply on September 8 2016, 11:12pm:
    Not possible at the moment, though maybe I'll add such an API at some point.
[unreplied] | [replied] | [all]
[older questions]
Copyright 2016 Justin Frankel. | RSS