public void basenotetoLeft(Piano piano) {  //base note is move when user pres key left

        if (this.isCurrentKeyTreble()) {
            if ((this.nbnotesupper == 7 & this.basetreble < 50) //15notes
                    | (this.nbnotesupper == 4 & this.basetreble < 65) // 9 notes
                    | (this.nbnotesupper == 3 & this.basetreble < 70) // 9 notes
                    | (this.nbnotesupper == 2 & this.basetreble < 75) // 5 notes
                    | (this.nbnotesupper == 1 & this.basetreble < 80)) { // 3notes
                this.basetreble = this.basetreble + 5;
                //  piano.Setpositionbase1(piano.Getpositionbase1() - 1);
            }

        }
        //jusqu'� do
        else if (this.isCurrentKeyBass()) {
            if (piano.is73keys() & ((this.nbnotesupper == 7 & basebass < 50) | (this.nbnotesupper == 4 & basebass < 65) | (this.nbnotesupper == 3 & basebass < 60) | (
                    this.nbnotesupper == 2 & basebass < 75) | (this.nbnotesupper == 1 & basebass < 80))) {
                basebass = basebass + 5; //fa = 17kw

            }

            if (piano.is61keys() & ((this.nbnotesupper == 7 & basebass < 15) | (this.nbnotesupper == 4 & basebass < 30) | (this.nbnotesupper == 3 & basebass < 35) | (
                    this.nbnotesupper == 2 & basebass < 40) | (this.nbnotesupper == 1 & basebass < 45))) {
                basebass = basebass + 5; //fa = 17kw

            }

        } else if (this.isCurrentKeyBoth()) {
            if (piano.is73keys() & ((this.nbnotesupper == 7 & this.basetreble < 15) | (this.nbnotesupper == 4 & this.basetreble < 30) | (this.nbnotesupper == 3
                    & this.basetreble < 35) | (this.nbnotesupper == 2 & this.basetreble < 40) | (this.nbnotesupper == 1 & this.basetreble < 45))) {
                basebass = basebass + 5;
                this.basetreble = this.basetreble + 5;

            }

            if (piano.is61keys() & ((this.nbnotesupper == 7 & this.basetreble < 5) | (this.nbnotesupper == 4 & this.basetreble < 20) | (this.nbnotesupper == 3
                    & this.basetreble < 25) | (this.nbnotesupper == 2 & this.basetreble < 30) | (this.nbnotesupper == 1 & this.basetreble < 35))) {
                basebass = basebass + 5;
                this.basetreble = this.basetreble + 5;

            }

        }
    }