Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Jun 1, 2024
1 parent 8a0ddad commit d0a55df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
22 changes: 0 additions & 22 deletions app/src/main/assets/voice.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@
"name": "Drive",
"symbol": "Drive"
},
"7": {
"InputPort": true,
"ControlPort": true,
"default": "10.0",
"index": 7,
"maximum": "20.0",
"minimum": "1.0",
"name": "Cabinet",
"symbol": "Cabinet"
},
"8": {
"InputPort": true,
"ControlPort": true,
Expand Down Expand Up @@ -121,18 +111,6 @@
"portProperty": "http://lv2plug.in/ns/lv2core#enumeration",
"scalePoint": "_:n9b565a7eacba47e48628b74fdc44504bb57",
"symbol": "t_model"
},
"11": {
"InputPort": true,
"ControlPort": true,
"default": 0,
"index": 11,
"maximum": 18,
"minimum": 0,
"name": "Cab Model",
"portProperty": "http://lv2plug.in/ns/lv2core#enumeration",
"scalePoint": "_:n9b565a7eacba47e48628b74fdc44504bb77",
"symbol": "c_model"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.json.JSONObject;

import java.io.IOException;
import java.io.PipedOutputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Objects;
Expand Down Expand Up @@ -270,6 +271,9 @@ public void onClick(View v) {
spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
for (int control = 0; control < index.size(); control++)
AudioEngine.setPluginControlByIndex(holder.getAdapterPosition(), index.get(control), position);

slider.setValue(position);
}

Expand Down

0 comments on commit d0a55df

Please sign in to comment.