Correctly set default translation scale

pull/50/head v1.18.3
James Ball 2022-03-05 14:39:14 +00:00
rodzic dca3383b63
commit b880c165a3
3 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
<groupId>sh.ball</groupId>
<artifactId>osci-render</artifactId>
<version>1.18.2</version>
<version>1.18.3</version>
<name>osci-render</name>

Wyświetl plik

@ -8,7 +8,7 @@ public class TranslateEffect extends PhaseEffect {
private Vector2 translation;
private boolean ellipse = false;
private double scale;
private double scale = 1;
public TranslateEffect(int sampleRate, double speed, Vector2 translation) {
super(sampleRate, speed);

Wyświetl plik

@ -470,9 +470,11 @@ public class MainController implements Initializable, FrequencyListener, MidiLis
// If there is a slider associated with the MIDI channel, update the value
// of it
if (cc <= MidiNote.MAX_CC && CCMap.containsKey(cc)) {
Slider slider = midiButtonMap.get(CCMap.get(cc));
double sliderValue = getValueInSliderRange(slider, value / MidiNote.MAX_VELOCITY);
slider.setValue(sliderValue);
Platform.runLater(() -> {
Slider slider = midiButtonMap.get(CCMap.get(cc));
double sliderValue = getValueInSliderRange(slider, value / MidiNote.MAX_VELOCITY);
slider.setValue(sliderValue);
});
} else if (cc == MidiNote.ALL_NOTES_OFF) {
audioPlayer.stopMidiNotes();
}