Skip to content

Commit

Permalink
Remove unused ; downgrade to P3 for export
Browse files Browse the repository at this point in the history
  • Loading branch information
vlcoo committed Mar 22, 2023
1 parent 095f335 commit d682871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
4 changes: 2 additions & 2 deletions Channel.pde
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ public class ChannelOsc {
current_notes = new HashMap<Integer, RTSoundObject>();
curr_holding = new ArrayList();
curr_sostenuting = new ArrayList();
last_note = new LinkedMap<>();
last_note = new LinkedMap<Integer, Float>();
}


ChannelOsc(int osc_type) {
current_notes = new HashMap<Integer, RTSoundObject>();
curr_holding = new ArrayList();
curr_sostenuting = new ArrayList();
last_note = new LinkedMap<>();
last_note = new LinkedMap<Integer, Float>();
set_osc_type(osc_type);
}

Expand Down
2 changes: 1 addition & 1 deletion Configurator.pde
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int snap_pos_mult = 0;
int knob_sensitivity = 40;
boolean remaining_instead_of_elapsed = false;
ChannelDisplayTypes channel_disp_type;
HashMap<String, Integer> media_keys = new HashMap<>();
HashMap<String, Integer> media_keys = new HashMap<String, Integer>();
String mk_setup = "";


Expand Down
22 changes: 0 additions & 22 deletions Player.pde
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ class Player {


String play_file(String filename, boolean keep_paused) {
if (filename.toLowerCase().endsWith("wav")) {
play_wav(filename);
return "";
}

File file = new File(filename);
if (system_synth && prefs.getBoolean("autoload sf", true)) try_match_soundfont(filename);

Expand Down Expand Up @@ -197,23 +192,6 @@ class Player {
}


void play_wav(String filename) {
// no
set_playing_state(-1);
File file = new File(filename);
load_soundfont(file);
//prep_javax_midi();
try {
event_listener.send(new ShortMessage(128, 0, 48, 127), 0);
event_listener.send(new ShortMessage(192, 0, 0, 0), 0);
event_listener.send(new ShortMessage(144, 0, 48, 127), 0);
}
catch (InvalidMidiDataException imde) {
println("imde on wav");
}
}


boolean is_song_long() {
return seq.getMicrosecondLength() > LENGTH_THRESHOLD;
}
Expand Down

0 comments on commit d682871

Please sign in to comment.