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: 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

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

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

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.

Question: Totally agree with whitespace vs tab issue! There is, however, a silent agreement in the Python community to never use tabs and always use 4 spaces. I think I only once stumbled upon code that did not follow this convention. But technically you are right of course. Concerning % in vi, did you know that you can do this in Vim: [[ ]] [m and ]m? [permalink]
Asked by fladd (137.120.135.x) on September 7 2016, 3:44pm
Reply on September 8 2016, 11:13pm:
    I knew [[ and ]], but didn't know [m, that's nice

Question: I always tought that Rewire is limited to single processor core. This is my experience using Cubase/Nuendo and Reason combo - CPU performance in Rewire mode is pretty bad, comparing to running Reason in standalone mode. But now i've just discovered that Reaper is spreading Reason processing over several cores. How in the world is this possible ??? Am i miss [permalink]
Asked by zabukowski (89.142.75.x) on September 7 2016, 11:45am
Reply on September 8 2016, 11:13pm:
    Hmm it can only use one core at a time, but can be passed from core to core, I think.

Question: do you think virtual reality will have a effect on how we interact with music [permalink]
Asked by Harmony (198.60.121.x) on September 6 2016, 6:52pm
Reply on September 8 2016, 11:14pm:
    Not sure how it would, but maybe for live performances? uber-concert-experience...

Question: Yes, whitespace is for programmers. And then you need to use something else in addition, just for the compiler. Wouldn't it be great if the compiler just understood what you are using anyway? :-) [permalink]
Asked by fladd (137.120.236.x) on September 6 2016, 11:28am
Reply on September 6 2016, 1:14pm:
    I'd prefer it be explicit (also % in vi is great).

    Also there becomes ambiguity when spaces and tabs are mixed, and what about with ambiguous whitespace changes?

Question: You mentioned your discomfort of the importance of whitespace in Python multiple times. Seeing you using indention etensively in your non-Python code (where it is not needed at all), it seems quite important to you, too. What am I missing? [permalink]
Asked by fladd (92.110.128.x) on September 5 2016, 8:37pm
Reply on September 5 2016, 9:49pm:
    Whitespace is for programmers, not compilers!

Question: I'm interested in learning computer programming and user interface design for apps useful to the medical field. Are there any books you can recommend to a novice. [permalink]
Asked by Kev Davis (72.132.234.x) on September 4 2016, 9:50pm
Reply on September 5 2016, 9:49pm:
    I wish I had a good answer here, but most of what I learned was 15-20 years ago, and it was a different world then, documentation was hard to come by... so maybe look at various open source projects? Sorry to be of so little help.

Question: Well, would you expect a prudent person to classify this as a "regular apartment"? Google knows all Justin. [permalink]
Asked by Will (107.203.156.x) on September 3 2016, 3:40pm
Reply on September 3 2016, 9:00pm:
    You left out a link, but I don't live where I did a couple years ago. Also you can't believe everything you read on the internet. Anyway...

Question: I think I found this song here a few years ago [link to philip selway - dont look down] I think I finally get it, thanks Justin! And love your little web site here, it's like you get a constant influx of koans to solve :D [permalink]
Asked by Jesus Constansa (192.42.116.x) on September 3 2016, 12:19pm
Reply on September 3 2016, 9:01pm:
    Was the question here "is this song awesome?" If so, yes!

Question: If your wealth suddenly went away and you had to go back to regular apartment living with your wife on a 70k/yr income, do you think your happiness would significantly change, or have you learned money doesn't move the needle as most people expect? [permalink]
Asked by Will (172.58.107.x) on September 2 2016, 2:49pm
Reply on September 2 2016, 10:52pm:
    How do you know I don't live in a "regular" apartment anyway? I don't think money makes much of a difference, once you get above a certain point. I'm not sure where that point is, and it varies a lot with geography, but yeah I'm sure I'd complain. Having said that, if I had to work a job that I didn't find interesting (vs getting to write music software), I would think that that would have a big effect (though maybe not what I think, since perhaps it would make the hobby time writing code that much more enjoyable).

Question: Why the japan [permalink]
Asked by David allard (207.253.195.x) on September 1 2016, 5:33pm
Reply on September 1 2016, 5:39pm:
    Does not parse
[unreplied] | [replied] | [all]
[older questions]
Copyright 2016 Justin Frankel. | RSS