Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

MIDI keyboard. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Musician

Comments on the article Comments on the article

A characteristic feature of the keyboard described here is that its output is not sound, as in conventional EMI, but the output of a digital music interface MIDI. Various musical instruments can be connected to such a keyboard, of course, if they have an input of this interface. Many industrial synthesizers, such as Yamaha's PSS series, have smaller keyboards that are not always comfortable to play, and a MIDI keyboard with full-size keys allows you to significantly expand their performance capabilities. In this case, of course, there is no need to make any alterations or design improvements in the instrument - you just need to connect the keyboard with the MIDI IN cable to the synthesizer's "MIDI IN" input and program it to receive MIDI signals.

The proposed device can also become part of your home MIDI studio or be used in conjunction with sound modules and samplers in a keyboardless "Rack" version.

MIDI keyboard. MIDI keyboard layout
(click to enlarge)

The MIDI digital music interface, which appeared in 1982, made it possible to separate the performing (master) and sound generating (performing) parts of musical instruments [1-3]. The information transmitted between them has the form of simple commands, common for keyboards, fretboards, wind and other EMPs. Commands reflect the influence of the performer on the instrument, for example, "TURN ON A NOTE", "CHANGE THE POSITION OF THE REGULATOR". Despite the fact that the methods and techniques of playing the instruments differ, MIDI commands are universal, which allows you to connect different types of EMP and get unprecedented combinations of performance and sound possibilities.

The task of performing devices is to perceive and convey the most subtle shades of musical performance as fully and correctly as possible. Modern EMP keyboards are called dynamic, because they record not only the fact of pressing a key, but also the force or speed of its pressing [5], which can affect both the volume of the sound and its timbre - depending on how it is programmed AMY. What's more, velocity can control the activation of sound effects and even switching tones. For example, with "soft" playing, the instrument sounds with one timbre, and with a more "hard" one, with another. This technique is often used in sampler instruments. Let's say they record the sound of a piano with strong and weak strikes on a key in a sampler, and then the sounds are mixed in a proportion depending on the velocity of pressing. This allows you to simulate the dynamic and timbre range of a natural piano and flexibly control it while playing.

However, many acoustic instruments have at least one more degree of timbre control. Fretboard, wind instruments allow you to vary the sound to a large extent after taking a note. Playing bowed instruments, the electric guitar consists in the art of braces, vibrato and other performance effects throughout the sound of a note. And how tempting it is for a keyboardist to use not automatic, but finger, natural and lively, “vibrato” or revive a chord by entering modulation without lifting his fingers from the keys) A touch-sensitive keyboard allows you to do all this, because it measures the force the pressure of the musician's fingers throughout the sound of the note. Perhaps in the future there will be keyboards that measure the pressure on the keys in all three directions - musicians will certainly want to use all this.

Of course, all measured parameters must be transmitted over the interface and control all connected EMR. To do this, the MIDI standard provides the means, the essence of which is shown in the table below. 1. The command "ON NOTE" carries information about the force or speed of pressing each key of the keyboard. All dynamic keyboards measure and transmit this parameter in the range of 0 (no sound) to 127 (fortissimo). Similarly, the command "TURN OFF NOTE" tells the speed of the release of the note. Few keyboards measure this parameter, so the "ON NOTE" command at zero speed is often used instead, which is not forbidden by the MIDI standard. The command "PRESSURE ON THE KEY" is transmitted only by some dynamic keyboards - those that perceive the pressure of the musician's fingers on the key after the note is struck. The "WHEEL POSITION" command is transmitted when the tone change wheel is rotated, if, of course, there is one.

Table 1
Command (in hex code) Status byte (n - channel number) First data byte (0...7Fh) Second data byte (0...7Fh)
ENABLE NOTE 9n Note number Velocity (1...7Fh)
TURN OFF NOTE 8n
9n
Note number
Note number
Release speed
Speed=0
KEY PRESSURE 0An Note number Force of pressure
WHEEL POSITION 0in Lower 7 bits High 7 bits
CHANGE OF MANAGEMENT 0bn 0 - regulator 0
1 - regulator 1
(mod wheel)
*
*
*
1Fh - regulator 31
20h - controller 0
21h - controller 1
(mod wheel)
*
*
*
3Fh - regulator 31
40h - switch 0
41h - switch 1
*
*
*
5Fh - switch 31
High 7 bits
High 7 bits ---- High 7 bits
Lower 7 bits
Lower 7 bits
----Lower 7 bits
0-off, 7Fh-on
0-off, 7Fh-on
---0-off, 7Fh-on

A large group of commands "CHANGE CONTROL" is reserved for any, both discrete and continuously operating controls. The binding of specific switches and controls to the codes of transmitted and received commands is individual for each instrument. They also include the modulation wheel, with which you can control the vibrato effect during the game.

The proposed MIDI keyboard is the simplest. It transmits only two commands - "ON-OFF NOTE" in any of the sixteen MIDI channels. Since the keyboard is not dynamic, the press-release speed is always transmitted at the same speed of 63. In addition, an "ACTIVE TEST" command (OFEh byte) is transmitted every 300 ms, sometimes used to test the MIDI electrical connection.

The single-chip microcomputer K1816BE35 (DD6) made it possible to greatly simplify the circuitry of the device. ROM K537RF5 (DS1) contains the codes of the program executed by the microcomputer (Table 2). Gaps in the table can be filled with any code. Register K580IR82 (DD7) is used to store the lower part of the ROM address [4]. The signal at the "MIDI OUT" output is generated by software, so the transmission rate directly depends on the frequency of the ZQ1 quartz resonator. Its frequency can be in the range of 8820 ... 8990 kHz - it is quite suitable, for example, for a resonator used in PAL decoders at a frequency of 8,86 MHz.

       Table 2 Address 0 1 2 3 4 5 6 7 8 9 abcdef K.S. 0000 23 ff 3a 00 00 00 00 00 00 00 00 00 00 00 00 00 5d5c 0010 b00 00 ba 00 bb 00 f00 00c 00 00c 00 00 00 00 bc34e 80 f64 b74 7с еb 0020 a00 8 ea 20 ef 08 b08 fe 0 2 39 2f97c 36 50e ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 67e1f 0030 a6 ​​0 e1 29 0 18 26 ff ff ff ff ff ff ff ff ff ff aca20 9 34d b00 04f f9 9 0040 a1 1 0 fc 0050 7 a67 6 80 b04 32b0f 0080 2f 9 3 1d 03 90 ff ff ff ff ff ff ff ff ff ff d9cc 34b00 03d b24 9f f34 00 9 a8 3 0090 fc 3 34 a00 2 04 b32 6b00f 0c2 9f 3 1 03d 80 9 ff ff ff ff ff ff ff ff ff d34cc 00 03 24 9a f34 e00 e9 e7 e2 b00 0 3 34 00 2 04 32 b6b0100 23 00 3 9 7 7a 7 7 9 08 00 00 00 00 00 00 8 b3b0110 00 00 b00 00 3 e77 00 bb 00 fb 00a00f 00 00 00 00 00 eb 00f 1 b1 0120f a00 00 00a 00 ff ff ff f9f14

The SB1 "Reset" button of the microcomputer is used to program the MIDI channel number. Keyboard contacts S1-S64, connected to multiplexers K155KP1 (DD1-DD4), are interrogated sequentially to detect pressed keys. The outputs of these microcircuits are switched by the K555KP2 (DD5) multiplexer. The status of the polled contact is fixed at the test input TO (pin 1) of the micro-computer DD6. The keyboard is powered by a 5 V DC source and the current consumption is not more than 0,5 A.

The printed circuit board for the device was not developed. To reduce the length of the harness multiplexers DD1-DD4 are located directly under the keyboard. Instead of mechanical contacts S1-S64, reed switches with magnets attached to the keys can be used. Contact S1 corresponds to the bottom key (note C to the big octave), S64 - to the top one. Connector X1, through which a MIDI cable is connected to a MIDI keyboard, is a standard five-pin socket СШ5 (DIN-5) with unused pins 1 and 3.

The K1816BE35 chip can be replaced with K1816BE39, K573RF5 with K573RF2, and K555KP2 with K555KP12. Multiplexers DD1-DD5 can be any similar series K133, K555, K533, K1533.

With known good parts and error-free installation, the keyboard starts working immediately after turning on the power. If, however, this does not happen, first of all check the presence of supply voltage on all microcircuits. Using an oscilloscope, observe the clock pulses at pin 11 of the DD6 chip. The absence of oscillations is a sign of the malfunction of this microcircuit or the ZQ1 resonator.

Next, the output conductor of the 1-chip DD6 disconnect from the pin 9 of the DD5 chip and connect it to a common wire. Connect headphones to slots 5 and 4 of connector X1 - clicks should be heard in them with a frequency of about 3 Hz - this is the bytes OFEh "Active check" are transmitted. If they are not there, then one of the DD6, DD7 or DS1 microcircuits is faulty. Then reconnect pins 1 and 9 of DD6 and DD5. Now clicks in phones should be audible every time you press and release keys. If this is not the case, the fault is in the DD1-DD5 microcircuit assembly, or there are permanently closed contacts among the keyboard contacts.

Connect the keyboard to the instrument in accordance with the recommendations given in [3]. When the power is turned on, the keyboard is automatically tuned to the first MIDI channel. To change the channel number, press the SB1 "Reset" button and, without releasing it, press the key with the serial number of the desired channel. Release the button first, then the key. After such switching of the device circuits, all commands will be transmitted over the channel with the desired number.

Literature

  1. Subbotkin M. MIDI. - IN/OUT, 1992, N1, p.18.
  2. Kudeev Yu. MIDI-oobsobyaiya. - IN / OUT, 1992, N 2, pp. 66, 67.
  3. Studnev A. What is MIDI? - Radio, 1993, N 1, pp. 32, 33; No. 2, p. 23-25.
  4. Stashin VV, Urusov AV, Mologontseva OF Designing digital devices on single-chip microcontrollers. - M.: Energoatomizdat, 1990.
  5. Kuznetsov L. A. Fundamentals of theory, design, production and repair of electrical musical instruments. - M.: Light and food industry, 1981.

Author: Alexey Studnev, Zhukovsky; Publication: cxem.net

See other articles Section Musician.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Childhood for testosterone 10.07.2018

Testosterone for men is, without exaggeration, one of the key hormones: puberty and the ability to have children depend on it, it also largely determines the behavior and appearance of a man (testosterone, for example, affects the development of bones and muscles, and therefore growth and body weight) .

In different people, its level can differ markedly, although remaining within the normal range. What affects testosterone levels? From genes, from lifestyle, from nutrition and from other factors.

Among these other factors, researchers from Durham University, Northwestern University and the University of Chittagong highlight childhood in particular - testosterone levels in an adult male are very dependent on the conditions in which he grew up.

Kesson Magid and colleagues compared the hormone levels of men with different biographies living in Bangladesh and the UK: some grew up in Bangladesh and stayed there; others moved to the UK as children; still others moved to the UK as adults; the fourth were born in Britain, but their parents were from Bangladesh; finally, in the fifth group there were men living in Britain and whose ancestors were Europeans.

All testosterone levels were within normal limits. However, for example, those who grew up in the UK (regardless of who their parents were and where they were born, here or in Bangladesh), the level of the hormone was about the same. Moreover, these men were about the same height, and they also began puberty at about the same age. And in general, they had more testosterone than those who grew up in Bangladesh. In turn, those who grew up in Bangladesh not only had less testosterone, they were also shorter on average and had a later onset of puberty.

Doctors have long been saying that childhood greatly affects testosterone levels, and this influence lasts almost a lifetime. For example, infertility in men can develop due to problems with testosterone, and infertility has been known to occur due to childhood mumps.

But the speech in this case is not only about childhood diseases - although they, it is worth repeating once again, quite strongly affect the level of testosterone. Obviously, children in different parts of the world eat differently and generally lead different lifestyles, which probably cannot but affect the development of the hormonal system.

Other interesting news:

▪ leprosy gene

▪ LTE radio Motorola TLK110 Wave

▪ Electric car Hyundai IONIQ 6

▪ Anti antibiotic

▪ The effect of coffee on memory

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the Electrician website. PUE. Article selection

▪ Article Foremen of the Spirit. Popular expression

▪ article Why was the English king nicknamed the old brass nose? Detailed answer

▪ article Electrician for signaling, centralization and blocking in railway transport and surface metro lines. Job description

▪ article Bell with remote control. Encyclopedia of radio electronics and electrical engineering

▪ article Microbeetle for FM band. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:




Comments on the article:

a guest
How is the speed of keystrokes detected? because it's just one button per key.


All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024