Homework Solution: hi, can i get help with this two methods in java…

    hi, can i get help with this two methods in java this are the class variables public class Note { /** Static Constants */ public static final int DEFAULT_INTENSITY = 50; public static final int REST_PITCH = 128; // First illegal pitch, used for rests. private static final int PITCHES_PER_OCTAVE = 12; private static final String[] NOTE_LETTERS = {"c","c#","d","d#","e","f","f#","g","g#","a","a#","b"}; private static final double MIN_DURATION = 1.0/64, // One sixty-fourth MAX_DURATION = 8.0; // Eight whole notes /** Fields (Immutable) */ private final String pitch="f6"; private final int midiValue=42; private final double duration=0.02; /** * Returns a (new) note with the same duration, but transposed by the given interval. * * @param interval the interval to transpose by * @throws IllegalArgumentException if note is transposed beyond valid bounds [c0, g10] * @return the transposed note */ public Note transpose(int interval) { // TODO return null; } /** * Returns a string representation of this Note. * It should follow the format found in songs/InMyLife.song, namely: * For a Note with pitch "g#4" and duration 1.0625 -> "g#4 x 1.0625" * NB1: Identical spacing and format are important! * NB2: For a "rest" note, the same format must be used (including duration). * * @return the string representation */ @Override public String toString() { // TODO return null; }

    Expert Answer

     
    package com; public class Note {

    hi, can i gain succor with this couple methods in java

    this are the adjust variables

    public adjust Voicelessness {

    /** Static Constants */

    public static decisive int DEFAULT_INTENSITY = 50;

    public static decisive int REST_PITCH = 128; // First illicit roll, used coercion rests.

    private static decisive int PITCHES_PER_OCTAVE = 12;

    private static decisive String[] NOTE_LETTERS = {“c”,”c#”,”d”,”d#”,”e”,”f”,”f#”,”g”,”g#”,”a”,”a#”,”b”};

    private static decisive inclose MIN_DURATION = 1.0/64, // One sixty-fourth

    MAX_DURATION = 8.0; // Eight all voicelessnesss

    /** Fields (Immutable) */

    private decisive String roll=”f6″;

    private decisive int midiValue=42;

    private decisive inclose term=0.02;

    /**

    * Returns a (new) voicelessness with the similar term, notwithstanding interchanged by the absorbed space-between.

    *

    * @param space-between the space-between to interchange by

    * @throws IllicitArgumentException if voicelessness is interchanged further weighty boundary [c0, g10]

    * @return the interchanged voicelessness

    */

    public Voicelessness interchange(int space-between) {

    // TODO

    return null;

    }

    /**

    * Returns a string fidelity of this Voicelessness.

    * It should ensue the coercionmat plant in strains/InMyLife.song, namely:

    * Coercion a Voicelessness with roll “g#4” and term 1.0625 -> “g#4 x 1.0625”

    * NB1: Identical spacing and coercionmat are important!

    * NB2: Coercion a “rest” voicelessness, the similar coercionmat must be used (including term).

    *

    * @return the string fidelity

    */

    @Override

    public String toString() {

    // TODO

    return null;

    }

    Expert Counter-argument

     

    package com;

    public adjust Voicelessness {

    /** Static Constants */

    public static decisive int DEFAULT_INTENSITY = 50;

    public static decisive int REST_PITCH = 128; // First illicit roll, used coercion rests.

    private static decisive int PITCHES_PER_OCTAVE = 12;

    private static decisive String[] NOTE_LETTERS = {“c”,”c#”,”d”,”d#”,”e”,”f”,”f#”,”g”,”g#”,”a”,”a#”,”b”};

    private static decisive inclose MIN_DURATION = 1.0/64, // One sixty-fourth

    MAX_DURATION = 8.0; // Eight all voicelessnesss

    /** Fields (Immutable) */

    private decisive String roll=”f6″;

    private decisive int midiValue=42;

    private decisive inclose term=0.02;

    /**

    * Returns a (new) voicelessness with the similar term, notwithstanding interchanged by the absorbed space-between.

    *

    * @param space-between the space-between to interchange by

    * @throws IllicitArgumentException if voicelessness is interchanged further weighty boundary [c0, g10]

    * @return the interchanged voicelessness

    */

    public Voicelessness interchange(int space-between) {

    // TODO

    return null;

    }

    /**

    * Returns a string fidelity of this Voicelessness.

    * It should ensue the coercionmat plant in strains/InMyLife.song, namely:

    * Coercion a Voicelessness with roll “g#4” and term 1.0625 -> “g#4 x 1.0625”

    * NB1: Identical spacing and coercionmat are important!

    * NB2: Coercion a “rest” voicelessness, the similar coercionmat must be used (including term).

    *

    * @return the string fidelity

    */

    @Override

    public String toString() {

    // TODO

    return null;

    }

    }