justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
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):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
In a DAW, how do you manage the audio graph based on inputs read from the main thread? I read somewhere that editing the audio graph should only be done by the audio thread. And chatGPT said to implement it by having a set of commands, I.e. AddTrack, SwitchInstrument, etc. And then send those from main thread to audio thread using a lock free queue. That seems like a lot of work though. Is there a more elegant way? How do you do it in reaper?
Asked by Edward (198.58.185.x) on December 19 2025, 10:43am
Reply on December 19 2025, 1:36pm:
You can use locks, you just need to make sure when taking them from the main thread that you don't hold them for very long!
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2025 Justin Frankel
.
|
RSS