kopia lustrzana https://github.com/jameshball/osci-render
rodzic
dca3383b63
commit
b880c165a3
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue