Interface ITimeline
- Namespace
- SunSharp
- Assembly
- SunSharp.dll
Project timeline, containing all the existing patterns.
public interface ITimeline
Properties
Slot
Gets the slot this timeline belongs to.
ISlot Slot { get; }
Property Value
Methods
ClonePattern(IPatternHandle, int, int)
Clones a pattern and returns a handle to the new pattern.
IPatternHandle ClonePattern(IPatternHandle original, int x, int y)
Parameters
originalIPatternHandlexintyint
Returns
ClonePattern(int, int, int)
Clone a pattern.
int ClonePattern(int patternId, int x, int y)
Parameters
patternIdintxintLine number on which the pattern starts (horizontal).
yintVertical position on the timeline.
Returns
- int
The number of the newly created pattern.
Remarks
Requires LockSlot(int) / UnlockSlot(int).
Calls sv_new_pattern(int, int, int, int, int, int, int, IntPtr).Exceptions
- SunVoxException
Thrown when the operation fails.
CreatePattern(int, int, int, int, int, string?)
Create a new pattern.
IPatternHandle CreatePattern(int lines, int tracks, int x, int y, int iconSeed = 0, string? name = null)
Parameters
linesintNumber of lines.
tracksintNumber of tracks.
xintLine number on which the pattern starts.
yintY coordinate on timeline.
iconSeedintIcon seed for pattern appearance.
namestringPattern name.
Returns
- IPatternHandle
The number of the newly created pattern.
Remarks
Requires LockSlot(int) / UnlockSlot(int).
Calls sv_new_pattern(int, int, int, int, int, int, int, IntPtr).Exceptions
- SunVoxException
Thrown when the operation fails.
GetPattern(int)
IPatternHandle GetPattern(int patternId)
Parameters
patternIdint
Returns
GetPatternExists(int)
Check if a pattern exists.
bool GetPatternExists(int patternId)
Parameters
patternIdintPattern number.
Returns
Remarks
GetUpperPatternCount()
Get the upper limit of pattern count (one more than the highest pattern number).
int GetUpperPatternCount()
Returns
- int
Upper limit of pattern count.
Remarks
Exceptions
- SunVoxException
Thrown when the operation fails.
TryGetPattern(int, out IPatternHandle?)
Tries to get a pattern by ID.
bool TryGetPattern(int patternId, out IPatternHandle? pattern)
Parameters
patternIdintpatternIPatternHandle
Returns
- bool
TryGetPattern(string, out IPatternHandle?)
Tries to get a pattern by name.
bool TryGetPattern(string name, out IPatternHandle? pattern)
Parameters
namestringpatternIPatternHandle
Returns
- bool