View Issue Details

IDProjectCategoryView StatusLast Update
0009184ardourbugspublic2022-12-28 12:22
Reportergaryd Assigned Tox42  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformDebian GNUOSLinuxOS Version(any)
Product VersionMixbus 8.x 
Summary0009184: "Temporal" not recognised in Lua session script
DescriptionAttempting to use Temporal.timepos_t() in a session script fails with error: "attempt to index a nil value (field 'Temporal')"

It works fine in action scripts (Mixbus), also in session scripts in Ardour.
Steps To ReproduceDummy session script is attached.
TagsNo tags attached.

Activities

garyd

2022-12-26 02:20

reporter   ~0027145

Note sure if the attachment attached. Couldn't see it so attaching again.
session_script.lua (316 bytes)   
ardour {
	["type"]    = "session",
	name        = "xxx",
	license     = "MIT",
	author      = "xxx",
	description = [[xxx]]
}

function factory ()
	return function (n_samples)
		if (not Session:transport_rolling ()) then
			-- not rolling, nothing to do.
			return
		end

		local x = Temporal.timepos_t(0)

	end
end
session_script.lua (316 bytes)   

x42

2022-12-26 15:52

administrator   ~0027147

Which version of Mixbus is that (Menu > Help > About)

For the new Tempo API to work correctly you need at least 8.1.700 or newer. Upcoming 8.2 should fix this as well.

garyd

2022-12-27 02:36

reporter   ~0027148

v8.1.378
Glad to hear it's already sorted. Thanks.

garyd

2022-12-28 08:37

reporter   ~0027153

Confirmed to be working in Mixbus32C v8.2.66. Thanks.

Issue History

Date Modified Username Field Change
2022-12-26 02:16 garyd New Issue
2022-12-26 02:20 garyd Note Added: 0027145
2022-12-26 02:20 garyd File Added: session_script.lua
2022-12-26 15:52 x42 Note Added: 0027147
2022-12-27 02:36 garyd Note Added: 0027148
2022-12-28 08:37 garyd Note Added: 0027153
2022-12-28 12:22 x42 Assigned To => x42
2022-12-28 12:22 x42 Status new => resolved
2022-12-28 12:22 x42 Resolution open => fixed