public class SongResampler
extends java.lang.Object
| Constructor and Description |
|---|
SongResampler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
changeTickSpeed(Song song,
float newTempo)
Changes the tick speed (sample rate) of a song, without changing the musical speed or length.
|
static java.util.Map<java.lang.Double,java.util.List<Note>> |
getNotesByTime(Song song)
Gets a map of notes grouped by their time in milliseconds, taking into account tempo changes.
|
static void |
precomputeTempoEvents(Song song)
Converts a song with dynamic tempo changes into one with a static tempo.
|
public static void precomputeTempoEvents(Song song)
song - The songpublic static void changeTickSpeed(Song song, float newTempo)
song - The songnewTempo - The new tick speed (Ticks per second)