From df94e0e0e197742437ba342d4b5e771964ccd239 Mon Sep 17 00:00:00 2001 From: Kristoffer Ekstrand Date: Sat, 8 Mar 2025 17:23:01 +0100 Subject: [PATCH] Edison Sample AddRegion --- src/edison_scripting/enveditor/__sample.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/edison_scripting/enveditor/__sample.py b/src/edison_scripting/enveditor/__sample.py index 6e01a37..84aad1d 100644 --- a/src/edison_scripting/enveditor/__sample.py +++ b/src/edison_scripting/enveditor/__sample.py @@ -147,6 +147,19 @@ def SilenceFromTo( * `end` (`int`): the ending position """ + def AddRegion(self, name: str, start: int, end: int = -1) -> None: + """ + Add a region or marker to this sample. + + ## Args: + * `name` (`str`): the name of the region + + * `start` (`int`): the starting position of the region + + * `end` (`int`, optional): the ending position of the region. If this + is less than `0`, then the region is a marker. Defaults to `-1` + """ + def SineFromTo( self, start: int,