联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2026-01-16 06:32

NFE2140 MIDI Scale Player

Requirement

A fully working console application should be written in C++ which presents a main menu to a user asking if they would like to:

1. Enter new data and play scale

2. Load data from file and play scale

3. Quit the application

For options 1 and 2, the scale should be played by outputting a series of appropriate MIDI messages.

Your program should be able to play scales with the following options:

1. Scale type (chromatic, major or minor).

2. Starting note of the scale (any valid)

3. Whether the scale ascends or descends

4. Length of each note (100 to 2000 milliseconds)

5. Instrument used to play the scale (either piano, trumpet, guitar or violin)

6. How many times the scale should be played (1 to 5)

For main menu option 1 – the user should enter the data required above and then the scale should play. After playing the scale, the user should be given the option to save their input choices to a file for later playback. Filename should be input by the user. They will then be returned to the main menu.

For main menu option 2 – the user should type the name of the file they wish to play. After loading and playing, they will be returned to the main menu.

Main menu option 3 should exit the program.

Note: All files can be read from/written to the current working direction. You do

not need to handle full file paths.

Higher marks will be awarded for:

Efficient code

Use of functions

Loops

Arrays/Vectors

Classes

Error checking for appropriate values on all user input

Adhering to the house style.




版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp