The black and white keys are numbered consecutively.
(6 marks) (d) Turn off the note played in action Q1(c). The lowest key on the piano is MIDI note number 21. As MIDI numbers < 12 are almost unheard of in actual music, there is unlikely to be confusion between a pitchClass instantiation and a MIDI number instantiation, but if one must be clear, use midi in the constructor: > lowE pitch.Pitch(midi3) > lowE.name, lowE.(4 marks) (c) Play the C4 note using floudness on Channel 8. (6 marks) (b) Change the instrument on Channel 8 to Chorused Piano. usr/bin/env python from midiutil import MIDIFile degrees 60, 62, 64, 65, 67. In this example we’ll create a one track MIDI File, assign a tempo to the track, and write a C-Major scale. (a) Pan the stereo of Channel 8 to absolute right. Detailed documentation is provided what follows is a simple example to get you going quickly. The absolute octave number designations shown here are based. The MIDI Note Number table: C5 13 BEGIES B4 A4 G4 F4 E4 D4 C4 70 68 66 72 71 69 67 65 64 62 60 63 61 Determine the MIDI message (in both binary and hexadecimal) for each of the below actions. The MIDI specification only defines note number 60 as Middle C, and all other notes are relative.
Transcribed image text: Question 1 (24 Marks): Given the MIDI message format (in binary) as follows: Message Status Byte Data Byte 1 Data Byte 2 Note Off 1000 CCCC ONNN NNNN OWW Program 1 Acoustic Grand 5 Rhodes Piano 2 Bright Acoustic 6 Chorused Piano 3 Electric Grand 7 Harpsichord Clavinet 4 Honky-Tonk 8 The MIDI velocity and dynamic mapping table: Velocity (in dec) Dynamic Velocity (in dec) Dynamic 8 pppp 64 mf 20 ppp 80 f 31 pp 96 ff 42 p 112 fff 53 mp 127 ffff