Initial commit

This commit is contained in:
2025-11-14 15:07:01 +01:00
commit 8c7f3ea7f9
35 changed files with 3225 additions and 0 deletions
@@ -0,0 +1,17 @@
package net.fretux.mindmotion.player;
public class TempoCapability implements ITempo {
private int tempo = 0;
private final int maxTempo = 120;
@Override
public int getTempo() { return tempo; }
@Override
public void setTempo(int tempo) { this.tempo = Math.max(0, Math.min(maxTempo, tempo)); }
@Override
public int getMaxTempo() { return maxTempo; }
@Override
public void addTempo(int amount) { setTempo(this.tempo + amount); }
@Override
public void reduceTempo(int amount) { setTempo(this.tempo - amount); }
}