Headless Mode in Rack v2

@computerscare Thanks that worked perfectly!

1 Like

Keep in mind that modules used during the headless mode have to have been coded so that they can be run without the GUI. I noticed that for example the Audible Instruments Macro Oscillator 1 (Braids) caused a crash for me in the headless mode. (Tested on Mac Os.)

When will VCV Recorder be available for Rack 2?

2 Likes

Most will probably “just work”? It’s a rare module that goes out and talks directly to the UI.

Probably. I didn’t yet check why exactly the Macro Oscillator 1 module crashed…

I didn’t remember about this discussion, can a moderator move my 2 posts from here? tnx

https://community.vcvrack.com/t/vcv-rack-2/14027/306

I tried to run the headless mode on manjaro and it works perfectly!

on my desktop pc it takes ~50% less memory and ~60% less cpu!

I also tried to perform live something via midi and there’s no problem at all :sunglasses:

@Vortico is it possible to create an executable file (pizza.exe or pizza.sh or something else) that saves everything in it? let’s say that I don’t care about the size of the file and the audio goes to the default audio device…

my goal is to run a patch on a server (with no Rack installed) and listen to that patch like a web radio, just knowing the address

5 Likes

me, insomnia, 3 terrifying autogenerative drones playing in 3 rack headless processes…and mixing live (via midi) at 6am

the question is: why did I end up this way? :rofl:

[edit]

next level…then you quit

5 Likes

those percentages sound promising for my sonaremin project … i’ll wait a bit until v2 has settled before making it work on arm linux again and i’m looking forward to this real headless mode then :slight_smile:

2 Likes

I didn’t try on the win10 laptop. I’m busy next days, I’ll give it a try (I hope) in one week, just to have a comparison, with the same patch

1 Like

Still very much interested in trying out Sonaremin. Are there currently any limits for the audio interface you connect? Sonaremin + Expert Sleepers es9 would be an incredible addition to any physical eurorack.

i have no idea if it works with es9 or not as i do not have the hardware - it should work more or less with usb audio compliant interfaces … but you never know :slight_smile:

Cool. I guess the costs of a sonaremin install aren’t the big drawback…

compared to an es9 most probably not :slight_smile: - just avoid the 8gb model for now (2/4gb is fine) … for more on this maybe lets move to the sonaremin topic to not hijack this one here too much …

:+1:

I made a quick test patch with only core modules. When opened with a full rack window I get sound. when trying to run headless, it seemingly does nothing.

Log:

[0.003 info adapters/standalone.cpp:137 main] VCV Rack Free v2.0.0
[0.003 info adapters/standalone.cpp:138 main] Windows 10.0
[0.003 info adapters/standalone.cpp:144 main] Args: rack c:\Users\PeterS\Music\test.vcv 
[0.003 info adapters/standalone.cpp:147 main] System directory: C:\Program Files\VCV\Rack2Free
[0.003 info adapters/standalone.cpp:148 main] User directory: C:/Users/PeterS/Documents/Rack2
[0.003 info adapters/standalone.cpp:152 main] System time: 
[0.003 info src/settings.cpp:455 load] Loading settings C:/Users/PeterS/Documents/Rack2/settings.json
[0.005 info adapters/standalone.cpp:175 main] Initializing environment
[0.008 info src/rtaudio.cpp:254 RtAudioDriver] Creating RtAudio WASAPI driver
[0.025 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio WASAPI device 0: Speakers (Steam Streaming Microphone) (0 in, 2 out)
[0.032 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio WASAPI device 1: Speakers (Steam Streaming Speakers) (0 in, 2 out)
[0.038 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio WASAPI device 2: Speakers (High Definition Audio Device) (0 in, 2 out)
[0.044 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio WASAPI device 3: Microphone (Steam Streaming Microphone) (1 in, 0 out)
[0.050 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio WASAPI device 4: Microphone (HD Webcam C310) (1 in, 0 out)
[0.050 info src/rtaudio.cpp:254 RtAudioDriver] Creating RtAudio ASIO driver
[0.054 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio ASIO device 0: Soundcraft USB Audio ASIO (0 in, 0 out)
[0.054 info src/rtaudio.cpp:254 RtAudioDriver] Creating RtAudio DirectSound driver
[0.150 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio DirectSound device 0: Default Device (2 in, 2 out)
[0.156 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio DirectSound device 1: Speakers (High Definition Audio Device) (0 in, 2 out)
[0.163 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio DirectSound device 2: Speakers (Steam Streaming Microphone) (0 in, 2 out)
[0.169 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio DirectSound device 3: Speakers (Steam Streaming Speakers) (0 in, 2 out)
[0.170 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio DirectSound device 4: Microphone (HD Webcam C310) (2 in, 0 out)
[0.170 info src/rtaudio.cpp:269 RtAudioDriver] Found RtAudio DirectSound device 5: Microphone (Steam Streaming Microphone) (2 in, 0 out)
[0.170 info src/plugin.cpp:118 loadPlugin] Loading Core plugin
[0.170 info src/plugin.cpp:178 loadPlugin] Loaded Core v2.0.0
[0.171 info src/plugin.cpp:120 loadPlugin] Loading plugin from C:/Users/PeterS/Documents/Rack2/plugins/Fundamental
[0.172 info src/plugin.cpp:178 loadPlugin] Loaded Fundamental v2.0.0
[0.173 info src/network.cpp:147 requestJson] Requesting JSON GET https://api.vcvrack.com/version?edition=Free
[0.210 info adapters/standalone.cpp:193 main] Initializing context
[0.211 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/Rail.svg
[0.855 info src/window/Window.cpp:269 Window] Window content scale: 1.000000
[0.879 info src/window/Window.cpp:319 Window] Renderer: NVIDIA Corporation Quadro 600/PCIe/SSE2
[0.879 info src/window/Window.cpp:320 Window] OpenGL: 4.5.0 NVIDIA 353.62
[0.882 info src/window/Window.cpp:43 loadFile] Loaded font C:/Program Files/VCV/Rack2Free/res/fonts/DejaVuSans.ttf
[0.882 info src/patch.cpp:249 load] Loading patch c:\Users\PeterS\Music\test.vcv
[0.889 info src/patch.cpp:263 load] Unarchived patch in 0.002021 seconds
[0.889 info src/patch.cpp:316 loadAutosave] Loading autosave C:/Users/PeterS/Documents/Rack2/autosave/patch.json
[0.898 info src/rtaudio.cpp:54 RtAudioDevice] Creating RtAudio DirectSound context
[0.933 info src/rtaudio.cpp:122 openStream] Opening RtAudio DirectSound device 0: Default Device (2 in, 2 out, 48000 sample rate, 512 block size)
[1.004 info src/rtaudio.cpp:134 openStream] Starting RtAudio DirectSound device 0
[1.058 info src/rtaudio.cpp:144 openStream] Opened RtAudio DirectSound device 0
[1.060 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Users/PeterS/Documents/Rack2/plugins/Fundamental/res/VCF.svg
[1.060 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/ScrewSilver.svg
[1.060 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/RoundHugeBlackKnob.svg
[1.061 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/RoundHugeBlackKnob_bg.svg
[1.061 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/RoundLargeBlackKnob.svg
[1.061 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/RoundLargeBlackKnob_bg.svg
[1.061 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/Trimpot.svg
[1.061 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/Trimpot_bg.svg
[1.062 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/PJ301M.svg
[1.063 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Users/PeterS/Documents/Rack2/plugins/Fundamental/res/VCO.svg
[1.063 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/VCVButton_0.svg
[1.063 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/VCVButton_1.svg
[1.064 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/SmallLight.svg
[1.065 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Users/PeterS/Documents/Rack2/plugins/Fundamental/res/LFO.svg
[1.066 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/Core/Audio2.svg
[1.067 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/Plug.svg
[1.067 info src/window/Svg.cpp:28 loadFile] Loaded SVG C:/Program Files/VCV/Rack2Free/res/ComponentLibrary/PlugPort.svg
[1.068 info adapters/standalone.cpp:236 main] Running window
[1.085 info src/window/Window.cpp:43 loadFile] Loaded font C:/Program Files/VCV/Rack2Free/res/fonts/Nunito-Bold.ttf
[1.085 info src/window/Window.cpp:43 loadFile] Loaded font C:/Program Files/VCV/Rack2Free/res/fonts/ShareTechMono-Regular.ttf
[4.460 info adapters/standalone.cpp:238 main] Stopped window
[4.460 info adapters/standalone.cpp:249 main] Destroying context
[4.549 info src/patch.cpp:192 saveAutosave] Saving autosave C:/Users/PeterS/Documents/Rack2/autosave/patch.json
[4.554 info src/rtaudio.cpp:149 closeStream] Stopping RtAudio DirectSound device 0
[4.590 info src/rtaudio.cpp:158 closeStream] Closing RtAudio DirectSound device 0
[4.778 info src/rtaudio.cpp:167 closeStream] Closed RtAudio DirectSound device 0
[4.793 info src/settings.cpp:437 save] Saving settings C:/Users/PeterS/Documents/Rack2/settings.json
[4.794 info adapters/standalone.cpp:257 main] Destroying environment
[4.799 info adapters/standalone.cpp:268 main] Destroying logger
END

Command line and path: C:\Program Files\VCV\Rack2Free>rack -h “c:\Users\PeterS\Music\test.vcv”

If I do the same command line without the “-h” the patch loads up and sounds correct.

Is this idea dead? Or am I doing something wrong?

Headless mode works fine, but how to exit?

Ctrl-C :grin:

Ctrl-C doesn’t work on Windows.