13
0

Add Lua bindings to access region-fades

This commit is contained in:
Robin Gareus 2020-03-10 22:43:21 +01:00
parent a254ce22a8
commit 6569653a3d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1290,6 +1290,14 @@ LuaBindings::common (lua_State* L)
.addFunction ("scale_amplitude", &AudioRegion::scale_amplitude)
.addFunction ("maximum_amplitude", &AudioRegion::maximum_amplitude)
.addFunction ("rms", &AudioRegion::rms)
.addFunction ("fade_in_active", &AudioRegion::fade_in_active)
.addFunction ("fade_out_active", &AudioRegion::fade_out_active)
.addFunction ("set_fade_in_active", &AudioRegion::set_fade_in_active)
.addFunction ("set_fade_in_shape", &AudioRegion::set_fade_in_shape)
.addFunction ("set_fade_in_length", &AudioRegion::set_fade_in_length)
.addFunction ("set_fade_out_active", &AudioRegion::set_fade_out_active)
.addFunction ("set_fade_out_shape", &AudioRegion::set_fade_out_shape)
.addFunction ("set_fade_out_length", &AudioRegion::set_fade_out_length)
.addRefFunction ("separate_by_channel", &AudioRegion::separate_by_channel)
.endClass ()