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>
|
<groupId>sh.ball</groupId>
|
||||||
<artifactId>osci-render</artifactId>
|
<artifactId>osci-render</artifactId>
|
||||||
<version>1.18.2</version>
|
<version>1.18.3</version>
|
||||||
|
|
||||||
<name>osci-render</name>
|
<name>osci-render</name>
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ public class TranslateEffect extends PhaseEffect {
|
||||||
|
|
||||||
private Vector2 translation;
|
private Vector2 translation;
|
||||||
private boolean ellipse = false;
|
private boolean ellipse = false;
|
||||||
private double scale;
|
private double scale = 1;
|
||||||
|
|
||||||
public TranslateEffect(int sampleRate, double speed, Vector2 translation) {
|
public TranslateEffect(int sampleRate, double speed, Vector2 translation) {
|
||||||
super(sampleRate, speed);
|
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
|
// If there is a slider associated with the MIDI channel, update the value
|
||||||
// of it
|
// of it
|
||||||
if (cc <= MidiNote.MAX_CC && CCMap.containsKey(cc)) {
|
if (cc <= MidiNote.MAX_CC && CCMap.containsKey(cc)) {
|
||||||
Slider slider = midiButtonMap.get(CCMap.get(cc));
|
Platform.runLater(() -> {
|
||||||
double sliderValue = getValueInSliderRange(slider, value / MidiNote.MAX_VELOCITY);
|
Slider slider = midiButtonMap.get(CCMap.get(cc));
|
||||||
slider.setValue(sliderValue);
|
double sliderValue = getValueInSliderRange(slider, value / MidiNote.MAX_VELOCITY);
|
||||||
|
slider.setValue(sliderValue);
|
||||||
|
});
|
||||||
} else if (cc == MidiNote.ALL_NOTES_OFF) {
|
} else if (cc == MidiNote.ALL_NOTES_OFF) {
|
||||||
audioPlayer.stopMidiNotes();
|
audioPlayer.stopMidiNotes();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue