Interface SongContextFactory
public interface SongContextFactory
Create SongContext instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SongContextFactoryof(SongContext sgContext, IntRange newBarRange) Create a copy using a part of the song.Create a SongContext for the whole song.Create a SongPartContext for one SongPart.Create a SongPartContext for a part of the SongPart.Create a SongContext for a whole or part of the song.Create a SongContext for a whole or part of the song, with the specified loop restart bar.
-
Method Details
-
getDefault
-
of
Create a SongContext for the whole song.Loop restart bar is set to 0.
- Parameters:
song-midiMix-- Returns:
-
of
Create a SongContext for a whole or part of the song.Loop restart bar is set to barRange.from.
- Parameters:
s-mm-barRange- If null uses the whole song bar range. Must be within Song bar range.- Returns:
-
of
Create a SongContext for a whole or part of the song, with the specified loop restart bar.- Parameters:
s-mm-barRange- If null uses the whole song bar range. Must be within Song bar range.loopRestartBar- Must be within barRange- Returns:
-
of
Create a copy using a part of the song.If sgContext.getLoopRestartBar() is outside of newBarRange, returned value will use newBarRange.from as LoopRestartBar.
- Parameters:
sgContext-newBarRange-- Returns:
-
of
Create a SongPartContext for one SongPart.Loop restart bar is set to spt.getBarRange().from.
- Parameters:
s-mm-spt-- Returns:
-
of
Create a SongPartContext for a part of the SongPart. Loop restart bar is set to barRange.from.- Parameters:
s-mix-spt-barRange- Must be within spt barRange- Returns:
-