Skip to content

Commit

Permalink
Fix for User Enrichment
Browse files Browse the repository at this point in the history
(Not saved on disk yet)
  • Loading branch information
Murivan committed Sep 2, 2024
1 parent 20aab34 commit be829c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/arpeggiatorum/Arpeggiatorum.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import arpeggiatorum.gui.LogGUIController;
import arpeggiatorum.microphoneControl.*;
import arpeggiatorum.supplementary.EventMaker;
import arpeggiatorum.supplementary.TonalEnrichmentChooserItem;
import arpeggiatorum.supplementary.Tools;
import com.jsyn.JSyn;
import com.jsyn.Synthesizer;
Expand All @@ -24,6 +25,7 @@
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
import java.util.Properties;
import java.util.logging.Level;
Expand Down Expand Up @@ -74,6 +76,7 @@ public class Arpeggiatorum implements Receiver {
public static Stage stagePerformance;
private static int instancePerformance = 0;


public Arpeggiatorum() {
super();
synchronized (Arpeggiatorum.class) {
Expand Down Expand Up @@ -275,7 +278,7 @@ public static void SaveNClose(ArpeggiatorumGUI arpeggiatorumGUI) {
prop.setProperty("MIDI Input", String.valueOf(ArpeggiatorumGUI.controllerHandle.comboMIDIIn.getValue().toString()));
prop.setProperty("MIDI Output", String.valueOf(ArpeggiatorumGUI.controllerHandle.comboMIDIOut.getValue().toString()));
prop.setProperty("Audio Input", ArpeggiatorumGUI.controllerHandle.comboAudioIn.getValue());

// Save properties to project root folder
prop.store(output, null);

Expand Down Expand Up @@ -652,6 +655,8 @@ public void Upload() {
Integer.parseInt(ArpeggiatorumGUI.controllerHandle.e15.getText()),
Integer.parseInt(ArpeggiatorumGUI.controllerHandle.e16.getText()),
};

ArpeggiatorumGUI.controllerHandle.comboEnrichment.getItems().getLast().setValue(intervals);
this.arpeggiator.setTonalEnrichment(intervals);
}

Expand Down

0 comments on commit be829c8

Please sign in to comment.