Skip to content

Commit

Permalink
changed hand movements to look more "alive"
Browse files Browse the repository at this point in the history
  • Loading branch information
marios8543 committed Oct 9, 2018
1 parent 8b29389 commit 9dcca1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Binary file modified out/artifacts/BongoMidi_jar/BongoMidi.jar
Binary file not shown.
2 changes: 0 additions & 2 deletions src/com/bongo/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public static void main(String[] args) throws Exception {
@Override
public void run() {
while (true){
window.invalidate();
window.validate();
window.repaint();
}
}
Expand Down
24 changes: 13 additions & 11 deletions src/com/bongo/Renderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ public static class Bongo {
public Boolean r_hand=false;

public Bongo(Note note) {
Random rand = new Random();
if(Main.bongos[note.channel]!=null){
this.x = Main.bongos[note.channel].x;
this.y = Main.bongos[note.channel].y;
}
else {
Integer[] c = coords.get(15-note.channel);
this.x = c[0];
this.y = c[1];
}
this.note = note;
if(note.status){
if(note.cpatch==Instr_Categ.Percussion || note.cpatch==Instr_Categ.CPerc){
if(note.midi_number<=36){
Expand All @@ -66,6 +55,19 @@ public Bongo(Note note) {
}
}
}
if(Main.bongos[note.channel]!=null){
this.x = Main.bongos[note.channel].x;
this.y = Main.bongos[note.channel].y;
this.l_hand = !Main.bongos[note.channel].l_hand;
this.r_hand = !Main.bongos[note.channel].r_hand;
}
else {
Integer[] c = coords.get(15-note.channel);
this.x = c[0];
this.y = c[1];
}
this.note = note;

}
@Override
public String toString(){
Expand Down

0 comments on commit 9dcca1f

Please sign in to comment.