mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Add Lua bindings for AudioRegion RMS+Peak calc
This commit is contained in:
parent
5860911eb2
commit
a02aeb025b
1 changed files with 5 additions and 0 deletions
|
|
@ -659,6 +659,9 @@ LuaBindings::common (lua_State* L)
|
|||
.addData ("progress", const_cast<float InterThreadInfo::*>(&InterThreadInfo::progress))
|
||||
.endClass ()
|
||||
|
||||
.beginClass <Progress> ("Progress")
|
||||
.endClass ()
|
||||
|
||||
.beginClass <AudioRange> ("AudioRange")
|
||||
.addConstructor <void (*) (framepos_t, framepos_t, uint32_t)> ()
|
||||
.addFunction ("length", &AudioRange::length)
|
||||
|
|
@ -1104,6 +1107,8 @@ LuaBindings::common (lua_State* L)
|
|||
.addFunction ("audio_source", &AudioRegion::audio_source)
|
||||
.addFunction ("set_scale_amplitude", &AudioRegion::set_scale_amplitude)
|
||||
.addFunction ("scale_amplitude", &AudioRegion::scale_amplitude)
|
||||
.addFunction ("maximum_amplitude", &AudioRegion::maximum_amplitude)
|
||||
.addFunction ("rms", &AudioRegion::rms)
|
||||
.endClass ()
|
||||
|
||||
.deriveWSPtrClass <Source, SessionObject> ("Source")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue