fix SNAFU in track-properties script
authorRobin Gareus <robin@gareus.org>
Thu, 18 Aug 2016 17:49:16 +0000 (19:49 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 18 Aug 2016 17:49:16 +0000 (19:49 +0200)
scripts/s_track_props.lua

index 4dec5ad0c5e9838e9ec1c90d598afd1a52d7d244..ace268e920ccadd3924ba397cfd3323b7312813e 100644 (file)
@@ -32,7 +32,7 @@ function factory () return function ()
                        t:set_comment ("This is a Drum Track", nil)
 
                        -- and set the fader to -7dB  == 10 ^ (0.05 * -7)
-                       t:amp():gain_control():set_value (10 ^ (0.05 * -7), PBD.GroupControlDisposition.NoGroup)
+                       t:gain_control():set_value (10 ^ (0.05 * -7), PBD.GroupControlDisposition.NoGroup)
                end
        end
 end end