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: Batman or Superman
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):
Comment...
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?
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.
Comment...
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?
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.
Comment...
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?
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
Comment...
Question: Windows - Lenovo Thinkpad laptop... standard laptop basically
Asked by Shaggy Mike (125.14.185.x) on September 22 2016, 4:07am
Reply on September 29 2016, 12:07pm:
    Unsure about this...
Comment...
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?
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?
Comment...
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?
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).
Comment...
Question: How do i disable the physical volume keys from user programmatically?
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?
Comment...
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?
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...
Comment...
Question: Fred, Daphne, Velma, Shaggy or Scooby?
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.
Comment...
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.
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!
Comment...
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? :)
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.
Comment...
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?
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
Comment...
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
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.
Comment...
Question: do you think virtual reality will have a effect on how we interact with music
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...
Comment...
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? :-)
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?
Comment...
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?
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!
Comment...
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.
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.
Comment...
Question: Well, would you expect a prudent person to classify this as a "regular apartment"? Google knows all Justin.
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...
Comment...
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
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!
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2024 Justin Frankel. | RSS