Question

In: Advanced Math

i need to do piano in matlab . its keys number should ve 88 and i...

i need to do piano in matlab . its keys number should ve 88 and i need a source . Can u help ne ?

Solutions

Expert Solution

From the existing piano, we have determined frequencies of each and every key. We have assigned those
frequencies to virtual keyboard. And we also studied that, how to simulate the graph of each frequency tone by using graphical user interface (GUI).
A graphical user interface (GUI) is a user interface erected with graphical objects, such as push buttons,
radio buttons, axes, text fields, sliders, and menus. In general, these objects already have significance to most
computer users. For example, when you move a slider on the layout editor of GUI, a value changes; when you
press an OK button, your settings are enforced and the dialog box is ousted. Of course, to influence this built-in
intimacy, you must be persistent in how you use the distinct GUI-building components. Applications that support
GUIs are generally simple to learn and use since the person using the application does not need to perceive what
commands are feasible or how they work. The action that results from a specific user action can be made clear by
the design of the interface. The sections that follow illustrate how to create MATLAB GUIs. This consists of
laying out the components, programming them to do specific things in response to user actions, and saving and
launching the GUIs.
The process of implementing a GUI involves two basic tasks:

  • Laying out the GUI components
  • Programming the GUI components GUIDE chiefly is intent of layout tools. However, GUIDE also produces

An M-file that includes code to handle the initialization and launching of the GUI. This M-file supports a
framework for the implementation of the callbacks (the functions that execute when users activate components
in the GUI). The application of a GUI, While it is possible to write an M-file that includes all the commands
to lay out a GUI, it is simple to use GUIDE to layout the components commonly and to produce two files that
save and launch the GUI:

M-file: includes the functions that dispatch and control the GUI and also the callbacks which are defined as sub
functions. This M-file is referred to as the application M-file in this documentation.

  • Piano key frequencies:

This is a list of the complete frequencies in hertz (cycles per second) of the keys of a modern 88-keys standard
or 102-keys piano in 12 -tone equal temperament, with the 49th key as the center and fixed with 440 Hz (referred
to as A440). Each subsequent pitch is derived by multiplying (ascending) to the left or dividing (descending) to
the right previous by the twelfth root of two (approximately 1.0594631...). This deviation from equal temperament
is called the Railsback curve.
The following equation gives the frequency f of the n
th key, as shown in the table:
f (n) = (12√2)n-49x 440Hz
(a' = A4 = A440 is the 49th key on the idealized piano)
Alternatively, this can be written as:
f(n) = 2n-49/12 x 440Hz
Conversely, starting from a frequency on the idealized piano tuned to A440, one obtains the key number by:
n = 12log2 (f/440Hz) + 49


Related Solutions

the question should be done on Matlab. There is a vector defined as H = [-88,...
the question should be done on Matlab. There is a vector defined as H = [-88, 45, 75, 24, 14, 19, -11, 9, -5, -3, 12, 19 ,56, -4, 5, 17, -6, -8, -9, 6, 15] Write a program as a script file that triples the elements that are positive and a divisible by 3 or 5, and, raises to the power of 2 the elements that are negative but greater than -11.
Hi, I need a Matlab code satisfies the following question. Output should be a graph similar...
Hi, I need a Matlab code satisfies the following question. Output should be a graph similar to a sine or cosine graph or similar to electrocardiograms (EKG/ECG) graph. Please I'd appreciate it. All love. Thanks :) In elementary quantum mechanics, the square well is used to model the behavior of a bound particle, in which one or more forces (external potentials, interaction with other particles, etc) prevent or restrict its ability to move about. We have seen in class that...
I need a matlab code for my presentation. Code should include Single Sideband Amplitude Modulation and...
I need a matlab code for my presentation. Code should include Single Sideband Amplitude Modulation and Demodulation. It should figure 3 things: -time domain of given message signal in Amplitude Modulation and Single Sideband Amplitude Modulation -frequency domain of given signal in Amplitude Modulation and Single Sideband Amplitude Modulation -And it should demodulate and show message signal.
pls, I need Matlab code for, OFDM modulation (Matlab demo by at least 4 carriers)
pls, I need Matlab code for, OFDM modulation (Matlab demo by at least 4 carriers)
Hello, I need the Matlab code of the Fourier Transform without using the Matlab functions fft...
Hello, I need the Matlab code of the Fourier Transform without using the Matlab functions fft and dft. Applied to discrete signals. If you can with an example.Thank you!!
i need matlab code of heat equation in 1D with convection ?
i need matlab code of heat equation in 1D with convection ?
I am trying to plot a difficult function in MATLAB, however I need to understand the...
I am trying to plot a difficult function in MATLAB, however I need to understand the basics first. I am trying to plot n=0 for x=0:0.01:2pi n=n+1 y(n)=sin(x) end I beleive what this says, is that I want to plot sin(x) over a full period hence from o to 2pi, and I beleive the 0.01 is the incremenation along the x-axis. I am not sure what my n is doing Could smeone please graph this for me with the MATLAB...
I need to write a response to how I should I should plan to build financial...
I need to write a response to how I should I should plan to build financial security starting with a job right out of college. I need to include everything seen below. If you can answer in bullet points for each question or a paragraph answering the short parts. Below is the guide Include – Why, What, When, and How a. Financial Goals: Near-term: 1 to 2 yrs; Intermediate-term: 3 – 5 yrs; Long-term: 6 – 15 yrs b. Savings...
i need a phone number with 9 digits but those digits should use only one time...
i need a phone number with 9 digits but those digits should use only one time and be dividable by 3-5-7-11-13-17 numbers.the phone number must not contain 0. Write a code with c sharp. note: answer is 869143275. i need to find this phone number
I need an original matlab code and gui for a simple double pendulum. This needs to...
I need an original matlab code and gui for a simple double pendulum. This needs to be original and not too complicated. Please provide basic instructions. Thank you!
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT