Mac ardour6-lua Audio/MIDI Engine

Hi,

I’ve just downloaded Ardour today for Mac, am trying to use the lua interface and experience the following error

$ ./ardour6-lua

s = load_session ("/Users/ardour/Can-Can-1/",“Can-Can-1”)
Cannot create Audio/MIDI engine

The session “Can-Can-1” exists already, can play through the speakers and uses “CoreAudio” as the audio backend. Note that

AudioEngine:set_backend(“CoreAudio”,"","")

Doesn’t seem to help.

I did get this same procedure working in Linux, so I think I know basically what I’m doing. But if anybody can help that would be great.

Running Mac 10.14.6 / Ardour 6.5.0 (demo version)

Thanks!!
-Patrick

Solved. There’s a typo in the script. I fixed one but not all of them. The path definitions are wrong. (I still think some of them are bad; there’s no /share or /etc in the mac release). Anyway, for anyone else concerned, I’ll paste it below. And if the devs are reading, please raise this issue on git

vi ardour6-lua
#!/bin/sh
BIN_DIR=$(dirname “$0”)
BUNDLE_DIR=$(dirname “$BIN_DIR”)

export ARDOUR_DATA_PATH="$BUNDLE_DIR/…/share"
export ARDOUR_CONFIG_PATH="$BUNDLE_DIR/…/etc"
export ARDOUR_DLL_PATH="$BUNDLE_DIR/…/lib"
export VAMP_PATH="$BUNDLE_DIR/…/lib"${VAMP_PATH:+:$VAMP_PATH}

SELF=$(basename “$0”)
echo $BUNDLE_DIR
exec “$BUNDLE_DIR/…/lib/$SELF” “$@”

That’s only the first step.

I’m away from the mac, but you do need to specify settings for the device (except for the sample-rate which is taken from the session). On GNU/Linux it would be as follows:

backend = AudioEngine:set_backend("ALSA", "", "")
backend:set_buffer_size(256)
backend:set_peridod_size(3)
backend:set_device_name("AudioBox 1818 VSL")

To list devices, you can use:

for i,_ in backend:enumerate_devices():iter() do print (i.name) end

see https://manual.ardour.org/lua-scripting/#Commandline%20Session

Thanks for the quick response! Between my edits and your help it’s working now

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.