CN110930970A - Music chord generating device and method based on signal triggering - Google Patents

Music chord generating device and method based on signal triggering Download PDF

Info

Publication number
CN110930970A
CN110930970A CN201911222223.1A CN201911222223A CN110930970A CN 110930970 A CN110930970 A CN 110930970A CN 201911222223 A CN201911222223 A CN 201911222223A CN 110930970 A CN110930970 A CN 110930970A
Authority
CN
China
Prior art keywords
chord
module
time
generating device
music
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911222223.1A
Other languages
Chinese (zh)
Other versions
CN110930970B (en
Inventor
艾瑞克
张雪芹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Guan Chi Cultural Spreading Co Ltd
Original Assignee
Shanghai Guan Chi Cultural Spreading Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Guan Chi Cultural Spreading Co Ltd filed Critical Shanghai Guan Chi Cultural Spreading Co Ltd
Priority to CN201911222223.1A priority Critical patent/CN110930970B/en
Publication of CN110930970A publication Critical patent/CN110930970A/en
Application granted granted Critical
Publication of CN110930970B publication Critical patent/CN110930970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • G10H1/0025Automatic or semi-automatic music composition, e.g. producing random music, applying rules from music theory or modifying a musical piece
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/32Constructional details
    • G10H1/34Switch arrangements, e.g. keyboards or mechanical switches specially adapted for electrophonic musical instruments
    • G10H1/342Switch arrangements, e.g. keyboards or mechanical switches specially adapted for electrophonic musical instruments for guitar-like instruments with or without strings and with a neck on which switches or string-fret contacts are used to detect the notes being played
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/36Accompaniment arrangements
    • G10H1/38Chord

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention provides a device and a method for generating music chord based on signal triggering, which relate to the technical field of music chord generation and comprise the following steps: the sensing modules are connected with the strings, detect the real-time state data of the strings and generate trigger signals; the trigger signal comprises a first number of the sensing module and a second number of the strings; the sub-controller is used for retrieving according to the first number and the second number and outputting a third number of the sub-controller and the total number of the strings; the master controller starts timing when starting to work and outputs a timing result when receiving a retrieval result; calculating a chord corresponding to the timing result and a note corresponding to the chord; matching the virtual musical instrument according to the total serial number of the strings; generating a control instruction according to the musical note and the virtual musical instrument; and the playing module plays the musical notes corresponding to the virtual musical instrument according to the control instruction. The invention can play by simply shifting the strings, and the played music can keep chord effect at any time without professional playing technology and skill.

Description

Music chord generating device and method based on signal triggering
Technical Field
The invention relates to the technical field of music chord generation, in particular to a music chord generation device and method based on signal triggering.
Background
Chord, a concept of music theory, refers to a group of sounds in a certain interval relationship. Three or more tones are combined in the longitudinal direction in a three-degree overlapping relationship to form a chord. There are usually concepts of three chords (three-note chords), seven chords (four-note chords), nine chords, etc., among which the common chords are, for example, C, Dm, Am, F, G, etc. The chord formed according to the relation of three-degree interval is widely adopted because the tone keeps a certain tension, the sound is harmonious and full, and conforms to the natural law of overtones.
In the prior art, when people play with musical instruments, for example, a guitar is taken, a long time is usually needed to master the pressing method of more chords and the switching between chords, and the arrangement of the chords of each song usually needs a long time to be mastered, so that certain music theory knowledge storage and musical instrument using capacity are needed, and people who are not trained by professional musical instruments and lack in the aspects of tone accuracy, rhythm and musical feeling cannot play corresponding musical chords, so that the existing musical instruments cannot meet the requirements of most people.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a music and chord generating device based on signal triggering, wherein a plurality of strings are arranged in the music and chord generating device, and the music and chord generating device also comprises:
the sensing modules are respectively and correspondingly connected with the strings and used for detecting real-time state data of the connected strings, generating and outputting corresponding trigger signals when the real-time state data indicate that the strings are touched, and the strings connected with the same sensing module form a string group;
each sensing module is provided with a first number, each string is provided with a second number used for representing the sequence of the string in the string group, and the trigger signal comprises the first number and the second number;
each of said strings also having a total number for indicating the ordering of said string within all strings;
each sub-controller is correspondingly connected with the plurality of sensing modules respectively and is provided with a corresponding third serial number;
each sub-controller specifically comprises:
a data storage unit, configured to generate a correspondence library in advance, where a mutual correspondence between the first number, the second number, the third number, and the total number is stored in the correspondence library;
the data retrieval unit is connected with the data storage unit and used for receiving the trigger signal, retrieving the corresponding third number and the total number according to the trigger signal and outputting the third number and the total number included in a retrieval result;
the master controller is connected with at least one of the sub-controllers and comprises:
the data receiving module is used for receiving the retrieval result, generating a corresponding receiving signal according to the retrieval result and outputting the corresponding receiving signal;
the timing module is connected with the data receiving module and used for starting timing when the music chord generating device starts to work and outputting a corresponding timing result when the receiving signal is received;
a storage module, the storage module specifically comprising:
the first storage unit is used for storing a plurality of music pieces with a preset storage sequence and chords corresponding to the music pieces arranged according to the music piece editing sequence;
the second storage unit is used for storing the one-to-one corresponding relation between the total number of each string and a plurality of preset virtual musical instruments;
the first processing module is respectively connected with the timing module and the storage module and used for calculating and obtaining the chord corresponding to the currently touched string according to the timing result and the preset duration of each music piece;
the second processing module is connected with the first processing module and used for carrying out corresponding processing on the chord to obtain the note corresponding to the currently touched string;
the third processing module is connected with the storage module and used for matching in the storage module according to the total number corresponding to the currently touched string in the retrieval result to obtain and output the corresponding virtual musical instrument;
the control module is respectively connected with the second processing module and the third processing module and used for generating and outputting corresponding control instructions according to the musical notes and the virtual musical instrument;
the playing module is connected with the master controller, and the master controller outputs the control instruction to the playing module so as to control the playing module to play the musical notes corresponding to the virtual musical instrument;
the playing module continuously plays the musical notes so as to play the preset music in the continuous operation process of the user on the music chord generating device.
Preferably, the master controller further includes a heartbeat sound control module, connected to the data receiving module, where the heartbeat sound control module specifically includes:
the first timing unit is used for starting timing when receiving the receiving signal every time and continuously outputting a first real-time timing result;
the first comparison unit is connected with the first timing unit and used for continuously receiving the first timing result, comparing the first real-time timing result with a preset first time threshold, outputting a corresponding first comparison result when the first real-time timing result is greater than the first time threshold, and outputting a corresponding second comparison result when the first real-time timing result is not greater than the first time threshold;
the first control unit is connected with the first comparison unit and used for generating a corresponding first control instruction according to the first comparison result so as to control the playing module to play the heartbeat sound and gradually increase the playing interval time of the heartbeat sound;
the second control unit is connected with the first comparison unit and used for generating a corresponding second control instruction according to the second comparison result so as to control the playing module to play the heartbeat sound and gradually shorten the playing interval time of the heartbeat sound;
the first detection unit is connected with the first control unit and used for detecting the playing interval time in real time and outputting a corresponding first detection result when the playing interval time is detected to be not less than a preset interval time threshold value;
and the third control unit is connected with the first detection unit and used for generating a corresponding third control instruction according to the first detection result so as to control the playing module to stop playing the heartbeat sound.
Preferably, the first control unit gradually increases the playing interval time of the heartbeat sound by 2 milliseconds every 100 milliseconds.
Preferably, the second control unit shortens the playing interval time of the heartbeat sound by 0.5% each time the reception signal is received, thereby gradually shortening the playing interval time of the heartbeat sound.
Preferably, the master controller further comprises a heartbeat lamp control module connected to the data receiving module, and the heartbeat lamp control module specifically comprises:
the second timing unit is used for starting timing when receiving the receiving signal every time and continuously outputting a third real-time timing result;
the second comparison unit is connected with the second timing unit and used for continuously receiving the third real-time timing result, comparing the third real-time timing result with a preset second time threshold, outputting a corresponding third comparison result when the third real-time timing result is greater than the second time threshold, and outputting a corresponding fourth comparison result when the first real-time timing result is not greater than the second time threshold;
the fourth control unit is connected with the second comparison unit and used for generating a corresponding fourth control instruction according to the third comparison result so as to control the heartbeat lamp of a light module connected with the master controller to flicker and gradually increase the flicker interval time of the heartbeat lamp;
the fifth control unit is connected with the second comparison unit and used for generating a corresponding fifth control instruction according to the fourth comparison result so as to control the heartbeat lamp of the light module to flicker and gradually shorten the flicker interval time of the heartbeat lamp;
the second detection unit is connected with the fourth control unit and used for detecting the flicker interval time in real time and outputting a corresponding second detection result when the flicker interval time is not smaller than a preset flicker interval time threshold value;
and the sixth control unit is connected with the second detection unit and used for generating a corresponding sixth control instruction according to the second detection result and controlling the heartbeat lamp of the light module to flicker so as to present the effect of the breathing lamp.
Preferably, the fourth control unit gradually increases the blinking interval time of the heartbeat lamp by 2 msec every 100 msec increase.
Preferably, the fifth control unit shortens the blinking interval time of the heartbeat lamp by 0.5% each time the reception signal is received, thereby gradually shortening the playing interval time of the heartbeat sound.
Preferably, the master controller further includes an initialization module connected to the heartbeat lamp control module, and the initialization module specifically includes:
the starting detection unit is used for generating and outputting a corresponding starting signal when detecting that a main switch of the music chord generation device is started;
the calibration control unit is connected with the starting detection unit and used for generating corresponding sensing calibration instructions according to the starting signals and sending the sensing calibration instructions to the sub-controllers so as to calibrate the sensing modules connected with the sub-controllers;
the sleep display unit is connected with the opening detection unit and used for generating a corresponding sleep display instruction according to the opening signal and sending the sleep display instruction to the heartbeat lamp control module to control the heartbeat lamp of the light module to flash so as to present the effect of the breathing lamp.
Preferably, the string is capacitively touch triggered.
A signal-triggering-based music chord generating method, applied to any one of the above signal-triggering-based music chord generating apparatuses, the music chord generating method specifically includes:
step S1, detecting real-time state data of each string correspondingly connected by each sensing module of the music and chord generating device in real time, generating corresponding trigger signals when the real-time state data indicate that the strings are touched, and sending the trigger signals to a sub-controller correspondingly connected with the sensing modules;
step S2, the sub-controller of the music chord generating device searches the pre-generated corresponding relation library according to the triggering signal to obtain a third number and the total number and includes the third number and the total number in the search result, and sends the search result to the connected total controller;
step S3, the general controller of the music chord generating device receives the search result and generates corresponding receiving signal according to the search result;
step S4, the overall controller of the musical chord generating device starts timing when the musical chord generating device starts working, and outputs the corresponding timing result when receiving the receiving signal;
step S5, the master controller of the music chord generating device calculates the chord corresponding to the currently touched string according to the timing result and the preset duration of each music piece, a plurality of music pieces which are stored in advance and have preset storage sequence, and the chord corresponding to each music piece arranged in the song compiling sequence;
step S6, the master controller of the music chord generating device correspondingly processes the chord to obtain the corresponding note of the currently touched string;
step S7, the master controller of the music and chord generating device matches the pre-stored total number with the one-to-one correspondence of a plurality of preset virtual musical instruments according to the total number of the currently touched string included in the search result to obtain the corresponding virtual musical instrument;
step S8, the master controller of the music chord generating device generates corresponding control instructions according to the musical notes and the virtual musical instruments, and sends the control instructions to a playing module connected with the master controller;
step S9, the playing module of the music chord generating device plays the musical note corresponding to the virtual musical instrument according to the control instruction.
Preferably, before executing the step S1, the method further includes:
step A1, when the master controller of the music chord generating device detects that a master switch of the music chord generating device is turned on, generating and outputting a corresponding turn-on signal;
step A2, the master controller of the musical chord generating device generates a corresponding sensing calibration instruction according to the opening signal and sends the instruction to the sub-controllers, so as to calibrate the sensing modules connected with the sub-controllers;
step A3, the master controller of the music chord generating device generates a corresponding sleep display instruction according to the opening signal and sends the sleep display instruction to the heartbeat lamp control module, and the heartbeat lamp of the light module is controlled to flash to present the effect of the breathing lamp.
Preferably, after the step S3 is executed, the method further includes:
step B1, the master controller of the music chord generating device starts timing when receiving the receiving signal each time, and continuously outputs a first real-time timing result;
step B2, the general controller of the musical chord generating device continuously receives the first real-time timing result, and compares the first real-time timing result with a preset first time threshold:
if the first real-time timing result is greater than the first time threshold, outputting a corresponding first comparison result, and then turning to step B3,
if the first real-time timing result is not greater than the first time threshold, outputting a corresponding second comparison result, and then turning to step B4;
step B3, the master controller of the music chord generating device generates a corresponding first control instruction according to the first comparison result to control the playing module to play the heartbeat sound and gradually increase the playing interval time of the heartbeat sound, and then goes to step B5;
step B4, the master controller of the music chord generating device generates a corresponding second control instruction according to the second comparison result to control the playing module to play the heartbeat sound, gradually shorten the playing interval time of the heartbeat sound, and then quit;
step B5, the master controller of the music chord generating device detects the playing interval time in real time, and compares the playing interval time with a preset interval time threshold:
if the playing interval time is smaller than the interval time threshold, returning to the step A3;
if the playing interval time is not less than the interval time threshold, outputting a corresponding first detection result, and then turning to step B6;
and step B6, the master controller of the music chord generating device generates a corresponding third control instruction according to the first detection result, so as to control the playing module to stop playing the heartbeat sound.
Preferably, after the step S3 is executed, the method further includes:
step C1, the master controller of the music chord generating device starts timing when receiving the receiving signal every time, and continuously outputs a third real-time timing result;
step C2, the general controller of the musical chord generating device continuously receives the third real-time timing result, and compares the third real-time timing result with a preset second time threshold:
if the third real-time timing result is greater than the second time threshold, outputting a corresponding third comparison result, and then turning to step C3;
if the first real-time timing result is not greater than the second time threshold, outputting a corresponding fourth comparison result, and then turning to step C4;
step C3, the master controller of the music chord generating device generates a corresponding fourth control instruction according to the third comparison result to control the heartbeat lamp of a light module connected with the master controller to flash and gradually increase the flash interval time of the heartbeat lamp;
step C4, the master controller of the music chord generating device generates a corresponding fifth control instruction according to the fourth comparison result to control the heartbeat lamp of the light module to flash and gradually shorten the flash interval time of the heartbeat lamp;
step C5, the master controller of the music chord generating device detects the blinking interval time in real time, and compares the blinking interval time with a preset blinking interval time threshold:
if the flicker interval time is smaller than the flicker interval time threshold, returning to the step C3;
if the flicker interval time is not less than the flicker interval time threshold, outputting a corresponding second detection result, and then turning to step C6;
and step C6, the master controller of the music chord generating device generates a corresponding sixth control instruction according to the second detection result, and controls the light module to flash to present the effect of the breathing lamp.
The technical scheme has the following advantages or beneficial effects: the string can be played through simple stirring, and the music played can keep the chord effect at any time, need not professional playing technique and skill, for not having experienced professional musical instrument training and providing the performance platform at the operator that intonation, rhythm and musicality lacked.
Drawings
FIG. 1 is a schematic diagram of a signal-based musical chord generation apparatus according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for generating musical chords based on signal triggering according to a preferred embodiment of the invention;
FIG. 3 is a flow chart illustrating a method for device initialization according to a preferred embodiment of the present invention;
FIG. 4 is a flow chart illustrating a method for controlling heartbeat sounds according to a preferred embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for controlling a heartbeat light according to a preferred embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present invention is not limited to the embodiment, and other embodiments may be included in the scope of the present invention as long as the gist of the present invention is satisfied.
In the preferred embodiment of the present invention, based on the above problems in the prior art, there is provided a musical chord generating device triggered based on signals, as shown in fig. 1, where a plurality of strings 2 are provided, further comprising:
each sensing module 1 is correspondingly connected with a plurality of strings 2 and used for detecting real-time state data of each string 2, generating and outputting corresponding trigger signals when the real-time state data indicate that the strings 2 are touched, and the strings 2 connected with the same sensing module 1 form a string group;
each sensing module 1 is provided with a first number, each string 2 is provided with a second number used for representing the sequencing of the string 2 in the string group, and the trigger signal comprises the first number and the second number;
each string 2 also has a total number for representing the ordering of the string 2 within all strings;
each sub-controller 3 is correspondingly connected with the plurality of sensing modules 1, and each sub-controller 3 is provided with a corresponding third serial number;
each sub-controller 3 specifically includes:
a data storage unit 31, configured to generate a correspondence library in advance, where a mutual correspondence between the first number, the second number, the third number, and the total number is stored in the correspondence library;
the data retrieval unit 32 is connected with the data storage unit 31 and used for receiving the trigger signal, retrieving the corresponding third number and the total number according to the trigger signal and outputting the third number and the total number included in the retrieval result;
total controller 4 connects at least one sub-controller 3, and total controller 4 includes:
the data receiving module 40 is used for receiving the retrieval result, generating a corresponding receiving signal according to the retrieval result and outputting the signal;
a timing module 41 connected to the data receiving module 40 for starting timing when the musical chord generating device starts to work and outputting a corresponding timing result when receiving the received signal;
the storage module 42, the storage module 42 specifically includes:
the first storage unit 421 is used for storing a plurality of music pieces with a preset storage sequence and chords corresponding to the music pieces arranged according to the musical composition sequence;
the second storage unit 422 is used for storing the one-to-one corresponding relation between the total number of each string and a plurality of preset virtual musical instruments;
the first processing module 43 is respectively connected to the timing module 41 and the storage module 42, and is configured to calculate and obtain a chord corresponding to the currently touched string 2 according to the timing result and the preset duration of each music;
the second processing module 44 is connected to the first processing module 43, and is configured to perform corresponding processing on the chord to obtain a note corresponding to the currently touched string;
the third processing module 45 is connected with the storage module 42 and is used for matching the total number corresponding to the currently touched string in the retrieval result to obtain and output a corresponding virtual musical instrument;
the control module 46 is respectively connected with the second processing module 44 and the third processing module 45, and is used for generating and outputting corresponding control instructions according to the musical notes and the virtual musical instrument;
the playing module 5 is connected with the master controller 4, and the master controller 4 outputs a control instruction to the playing module 5 so as to control the playing module 5 to play the musical notes corresponding to the virtual musical instrument;
the playing module 5 continuously plays the musical notes to play the preset music in the continuous operation process of the user on the music chord generating device.
Specifically, in this embodiment, the music chord generating device of the present invention has a main switch, when the main switch is turned on, the main controller 4 generates a corresponding sensing calibration instruction to calibrate each sensing module 1, and when no string 2 is touched, the music chord generating device enters a sleep state, at this time, the main controller 4 generates a corresponding sleep display instruction and sends the sleep display instruction to the heartbeat lamp control module, and the heartbeat lamp of the light control module 6 flashes correspondingly to present the breathing lamp effect.
When any string 2 is touched, the music chord generating device is awakened, the string 2 is preferably triggered by capacitive touch, an operator touches any string 2 by fingers, the sensing module 1 connected with the string 2 senses touch and also senses stop touch, the sensing module 1 detects real-time state data of each string 2 connected with the sensing module 1 in real time, namely whether the string is currently touched or not, the real-time state data is transmitted to the sub-controller 3 through an I2C bus, and the sub-controller 3 is preferably a single chip microcomputer. In this embodiment, 8 sensing module 1 are preferred to be connected to a singlechip, and 12 strings 2 are preferred to be connected to every sensing module 1, consequently, can monitor 96 strings under a singlechip full-match state, if more strings of needs, can expand the quantity of singlechip as required.
The sub-controller 3 prestores a first serial number corresponding to the sensing module 1, a second serial number of each string 2 connected with the sensing module 1, and a corresponding relation library between the total serial number of all strings, each first serial number and each second serial number corresponding to the first serial number. The first number is preferably 0 to 7, the second number is preferably 0 to 11, and the total number is preferably 0 to 95.
Each sub-controller 3 has a third serial number, and after receiving the second serial number of the touched string 2 and the first serial number of the sensing module 1 corresponding to the string 2, the sub-controllers 3 correspond the first serial number and the second serial number to the total serial number, and transmit the third serial number corresponding to the sub-controllers and the total serial number of the strings to the total controller 4 connected with the serial ports of the sub-controllers, wherein the total controller 4 can be a computer.
The total controller 4 stores a plurality of music pieces having a preset storage sequence and chords corresponding to the music pieces arranged according to the musical composition sequence. And starting timing when the music chord generating device starts to work, namely starting timing when a main switch of the music chord generating device is started, and calculating to obtain the chord corresponding to the timing result according to the timing result and the preset duration of each music piece. For example, song 1, song 2, and song 3 are sequentially stored in the music chord generating device, the duration of song 1 is 100 seconds, the duration of song 2 is 110 seconds, the duration of song 3 is 120 seconds, and if the timing result is 90 seconds, that is, only after the music chord generating device is turned on for 90 seconds, there is string 2 touched, the calculated chord is the chord corresponding to the 90 th second of song 1; if the timing result is 220 seconds, the calculated chord is the chord corresponding to the 10 th second of song 3; if the timing result is 340 seconds, the calculated chord is the chord corresponding to the 10 th chord of song 1, and so on.
After the chord to be output by the string 2 is obtained, the master controller 4 correspondingly processes the chord to obtain the note corresponding to the string 2. Because there are 7 local tones and 5 downnotes in each octave of the music, it is possible to select how much the note needs to be tuned according to any note in a range if the note is to be tuned to a certain chord. For example n is the total number of strings touched and n ranges from 0 to 95. When the general controller 4 receives the n strings touched, it can calculate what note should be actually output from the value of n by only judging the current chord. The specific treatment process is as follows:
1) if the current chord is C, only three notes of C, E and G can be output, so the processing method of the C chord is as follows:
k is equal to 0 inside n × 4+0 "+ 0" because the C chord is the most basic reference chord position and other chords are added with positive numbers;
if ((k + 4)% 12 ═ 0) k ═ k-1k is used for representing the notes that need to be played by the string, finding out those notes whose k is the 5 th note of this octave, and adapting them to be the falling notes;
2) if the current chord is D, only three notes of D, F #, and A can be output, so the processing method of the D chord is as follows:
the "2" inside k ═ n × 4+2 "+ 2" is because the D chord is two notes higher than the C chord, so 2 needs to be added;
if ((k + 2)% 12 ═ 0) k ═ k-1k is used for representing the notes that need to be played by the string, finding out those notes whose k is the 5 th note of this octave, and adapting them to be the falling notes;
3) if the current chord is a minor chord, such as Dm, only three notes, D, F, and A, can be output, so the Dm chord is processed by:
k is "2" inside n × 4+2 "+ 2" because Dm chord is two notes higher than C chord, so 2 needs to be added;
if ((k + 2)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and those 5 th note with k being only the octave are found and are adapted to be the downnote;
if ((k-6)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and 3 rd position notes with k being only the octave are found and are adapted to be the downnote;
4) if the current chord is E, only three notes D, F #, and A can be output, so the processing method of the D chord is as follows:
k is "4" inside n × 4+4 "+ 4" because the E chord is four notes higher than the C chord, so 4 needs to be added;
if ((k + 2)% 12 ═ 0) k ═ k-1k is used for representing the notes that need to be played by the string, finding out those notes whose k is the 5 th note of this octave, and adapting them to be the falling notes;
5) if the current chord is Em, only three notes of E, G and B can be output, so the processing method of the Em chord is as follows:
k is "4" inside n × 4+4 "+ 4" because Em chord is four notes higher than C chord, so 4 needs to be added;
if ((k + 4)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and those 5 th note with k being only the octave are found and are adapted to be the downnote;
if (k% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and 3 rd note with k being only the octave is found and is adapted to be a downnote;
6) if the current chord is F, only three notes of F, a, and C can be output, so the F chord is processed by:
k is "5" inside n × 4+5 "+ 5" because F chord is five notes higher than C chord, so 5 needs to be added;
if ((k-1)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, finding out the 5 th note with k being only the octave, and adapting to the descending note;
7) if the current chord is F #, only three notes of F #, A #, and C # can be output, so the processing method of the F # chord is as follows:
the "6" inside k ═ n × 4+6 "+ 6" is because F # chord is six notes higher than C chord, so 6 needs to be added;
if ((k-2)% 12 ═ 0) k ═ k-1k is used for representing the notes that need to be played by the string, finding out those notes whose k is the 5 th note of this octave, and adapting them to be the falling notes;
8) if the current chord is G, only three notes of G, B and D can be output, so the processing method of the G chord is as follows:
k is "5" inside n × 4+7 "+ 7" because the G chord is seven notes higher than the C chord, so 7 needs to be added;
if ((k-3)% 12 ═ 0) k ═ k-1k is used for representing the notes that need to be played by the string, finding out those notes whose k is the 5 th note of this octave, and adapting them to be the falling notes;
9) if the current chord is A, only three notes of A, C #, and E can be output, so the processing method of the chord A is as follows:
the "9" inside k ═ n × 4+9 "+ 9" is because the a chord is nine notes higher than the C chord, so 9 needs to be added;
if ((k-5)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and those 5 th notes with k being only the octave are found and are adapted to be descending notes;
10) if the current chord is Am, only three notes of A, C and E can be output, so the processing method of the Am chord is as follows:
the reason why k is "9" inside n × 4+9 "+ 9" is that Am chord is nine notes higher than C chord, so 9 needs to be added;
if ((k-1)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and those 5 th note with k being only the octave are found and are adapted to be the downnote;
if ((k-5)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and 3 rd position notes with k being only the octave are found and are adapted to be the downnote;
11) if the current chord is Bm, only three notes of B, D and F # can be output, so the processing method of Am chord is as follows:
the reason why k is "9" inside n × 4+11 "+ 11" is that since Bm chord is eleven notes higher than C chord, 11 needs to be added;
if ((k-3)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and those 5 th note with k being only the octave are found and are adapted to be the downnote;
if ((k + 5)% 12 ═ 0) k ═ k-1k is used for representing the notes to be played by the string, and 3 rd home notes with k being only the octave are found and are adapted to be the downnote;
the general controller 4 needs to further determine through which virtual instrument the note is played when calculating the note output by the current chord. The master controller 4 stores the corresponding relation between the total number of all the strings and a plurality of preset virtual musical instruments; such as: the virtual musical instruments corresponding to the numbers 0 to 11 are pianos, and the virtual musical instruments corresponding to the numbers 12 to 15 are guitars and the like; therefore, the general controller 4 can determine which kind of virtual instrument plays the note corresponding to the chord according to the total number of the touched string 2, and generate a corresponding control instruction to play the note corresponding to the virtual instrument.
Further, in this embodiment, a communication interface between the master controller 4 and the slave controller 3 is an RS-232 serial port on a physical layer, a bit rate is designed to be 250000bps, a data bit is 8 bits, a check is set to none, and a stop bit is 1 bit. The master controller 4 can control the sub-controller 2 to carry out sensor calibration on the sensing module 1 in a DTR mode through the serial port connection. After the calibration is completed, the sub-controllers 2 need to send a piece of READY-X: Y information to the main controller 4, wherein X is the serial number of the sub-controllers 2, and Y is the serial number of the sensing module 1. The sub-controller 2 needs to send corresponding information to the overall controller when two events occur, which are: 1) when the string is touched 2) when the string stops being touched. When the strings are touched, the sub-controller 2 needs to send a signal of 'TX: Y-Z' to the master controller, wherein X is the number of the sub-controller, Y is the number of the sensing module 1, and Z is the number of the touched strings. When the strings stop being touched, the sub-controllers need to send a DX Y-Z signal to the master controller, wherein X is the serial number of the sub-controllers, Y is the serial number of the sensing module 1, and Z is the serial number of the strings stopping being touched.
In this embodiment, the mutual communication interface between the main controller 4 and the light module 6 is on the physical layer, the interface is an RS-232 serial port, the bit rate is designed to be 2400bps, the data bit is 8 bits, the check is set to be none, and the stop bit is 1 bit. After the Light module 6 is initialized to be connected with the serial port, a piece of Light board ready information needs to be sent to the master controller 4. All communication thereafter is unidirectional, from the general controller 4 to the light module 6. The general controller 4 has two commands, each of which is a binary byte, to the light module 6. The description of the individual commands is as follows:
0x00000010 (decimal 2): a sleep effect is displayed, which is an effect of a feeling of "full breathing".
0x00000001 (decimal 1): a heartbeat effect is displayed which is a fairly rapid but soft flashing effect. This command byte is followed by a 16-ary value, the heartbeat time delay millisecond value.
In a preferred embodiment of the present invention, the master controller 4 further includes a heartbeat sound control module 47 connected to the data receiving module 40, and the heartbeat sound control module 47 specifically includes:
a first timing unit 471, configured to start timing each time a received signal is received, and continuously output a first real-time timing result;
a first comparing unit 472, connected to the first timing unit 471, configured to continuously receive the first real-time timing result, compare the first real-time timing result with a preset first time threshold, output a corresponding first comparison result when the first real-time timing result is greater than the first time threshold, and output a corresponding second comparison result when the first real-time timing result is not greater than the first time threshold;
a first control unit 473, connected to the first comparing unit 472, configured to generate a corresponding first control instruction according to the first comparison result, so as to control the playing module to play the heartbeat sound and gradually increase the playing interval time of the heartbeat sound;
the second control unit 474 is connected to the first comparison unit 472 and configured to generate a corresponding second control instruction according to a second comparison result, so as to control the playing module to play the heartbeat sound and gradually shorten the playing interval time of the heartbeat sound;
a first detecting unit 475, connected to the first control unit 473, for detecting the playing interval in real time, and outputting a corresponding first detection result when detecting that the playing interval is not less than the preset interval threshold;
the third control unit 476 is connected to the first detection unit 475, and is configured to generate a corresponding third control instruction according to the first detection result, so as to control the playing module to stop playing the heartbeat sound.
Specifically, in this embodiment, the music chord generating device of the present invention further correspondingly plays a corresponding heartbeat sound, the heartbeat sound is not played in the sleep state of the music chord generating device, in the wake-up state, the play interval time is adjusted according to the frequency of the string plucking by the operator, and after the string plucking is not performed for a period of time, the play interval time of the heartbeat sound is gradually increased until the play interval time is increased to the preset play interval time threshold, and after the play interval time threshold is reached, the string plucking is still not performed for a period of time, and then the playing of the heartbeat sound is stopped.
In a preferred embodiment of the present invention, the first control unit gradually increases the playing interval time of the heartbeat sound by increasing the playing interval time of the heartbeat sound by 2 milliseconds every 100 milliseconds.
In a preferred embodiment of the present invention, the second control unit shortens the playing interval time of the heartbeat sound by 0.5% each time the receiving signal is received, so as to gradually shorten the playing interval time of the heartbeat sound.
In a preferred embodiment of the present invention, the general controller 4 further includes a heartbeat lamp control module 48 connected to the data receiving module 40, and the heartbeat lamp control module 48 specifically includes:
a second timing unit 481, configured to start timing each time a received signal is received, and continuously output a third real-time timing result;
the second comparing unit 482, connected to the second timing unit 481, is configured to compare the third real-time timing result with a preset second time threshold, and output a corresponding third comparison result when the third real-time timing result is greater than the second time threshold, and output a corresponding fourth comparison result when the first real-time timing result is not greater than the second time threshold;
the fourth control unit 483 is connected to the second comparison unit 482, and configured to generate a corresponding fourth control instruction according to the third comparison result, so as to control the heartbeat lamp of the light module 6 connected to the master controller to flash, and gradually increase the flash interval time of the heartbeat lamp;
the fifth control unit 484, connected to the second comparison unit 482, configured to generate a corresponding fifth control instruction according to the fourth comparison result, so as to control the heartbeat lamp of the light module 6 to flash, and gradually shorten the flash interval time of the heartbeat lamp;
the second detection unit 485 is connected with the fourth control unit 483 and used for detecting the flicker interval time in real time and outputting a corresponding second detection result when detecting that the flicker interval time is not less than a preset flicker interval time threshold;
and the sixth control unit 486 is connected with the second detection unit 485 and used for generating a corresponding sixth control instruction according to the second detection result and controlling the heartbeat lamp of the light module 6 to flash to present the breathing lamp effect.
Specifically, in this embodiment, the music chord generating device of the present invention is further provided with a heartbeat lamp, the heartbeat lamp presents a breathing lamp effect, that is, an effect of gradually lighting and gradually dimming, in a sleep state of the music chord generating device, and the heartbeat lamp adjusts the flashing interval time according to the frequency of the string plucking by the operator in an awake state of the music chord generating device.
In a preferred embodiment of the present invention, the fourth control unit gradually increases the blinking interval time of the heartbeat lamp by 2 milliseconds per every 100 milliseconds.
In a preferred embodiment of the present invention, the fifth control unit shortens the flashing interval time of the heartbeat lamp by 0.5% each time the receiving signal is received, so as to gradually shorten the playing interval time of the heartbeat sound.
In a preferred embodiment of the present invention, the general controller 4 further includes an initialization module 49 connected to the heartbeat lamp control module 48, and the initialization module 49 specifically includes:
a start detection unit 491, for generating and outputting a corresponding start signal when detecting that a main switch of the musical chord generating device is started;
the calibration control unit 492 is connected to the start detection unit 491, and is configured to generate a corresponding sensing calibration instruction according to the start signal and send the sensing calibration instruction to the sub-controllers, so as to calibrate the sensing modules connected to the sub-controllers;
the sleep display unit 493 is connected to the start detection unit 491, and is used for generating corresponding sleep display instruction according to the start signal and sending to the heartbeat lamp control module, and the heartbeat lamp of the control light module 6 flickers in order to present the breathing lamp effect.
In a preferred embodiment of the invention the strings 2 are capacitively touch triggered.
A signal-triggered music chord generation method, which is applied to any one of the above signal-triggered music chord generation apparatuses, as shown in fig. 2, the music chord generation method specifically includes:
step S1, detecting the real-time state data of the strings correspondingly connected by each sensing module of the music and chord generating device in real time, generating corresponding trigger signals when the real-time state data indicate that the strings are touched, and sending the trigger signals to a sub-controller correspondingly connected with the sensing modules;
step S2, the sub-controller of the music chord generating device searches the pre-generated corresponding relation library according to the triggering signal to obtain the third number and the total number, and the third number and the total number are included in the searching result, and the searching result is sent to the connected main controller;
step S3, the master controller of the music chord generating device receives the search result and generates corresponding receiving signal according to the search result;
step S4, the master controller of the music chord generating device starts timing when the music chord generating device starts working, and outputs the corresponding timing result when receiving the receiving signal;
step S5, the master controller of the music chord generating device calculates the chord corresponding to the currently touched string according to the timing result and the preset duration of each music piece, a plurality of music pieces with preset storage sequence saved in advance and the chord corresponding to each music piece arranged according to the music piece editing sequence;
step S6, the general controller of the music chord generating device processes the chord correspondingly to obtain the corresponding note of the touched string;
step S7, the master controller of the music and chord generating device matches the pre-stored total number with the one-to-one corresponding relation of a plurality of preset virtual musical instruments according to the total number of the currently touched strings included in the search result to obtain the corresponding virtual musical instruments;
step S8, the master controller of the music chord generating device generates corresponding control instructions according to the musical notes and the virtual musical instruments, and sends the control instructions to the playing module connected with the master controller;
in step S9, the playing module of the musical chord generating device plays the corresponding note of the virtual musical instrument according to the control command.
In a preferred embodiment of the present invention, as shown in fig. 3, before executing step S1, the method further includes:
step A1, when detecting that a main switch of the music chord generating device is turned on, a master controller of the music chord generating device generates and outputs a corresponding turn-on signal;
step A2, the master controller of the music chord generating device generates corresponding sensing calibration instructions according to the opening signals and sends the instructions to the sub-controllers so as to calibrate the sensing modules connected with the sub-controllers;
step A3, the master controller of the music chord generating device generates a corresponding sleep display instruction according to the opening signal and sends the sleep display instruction to the heartbeat lamp control module, and the heartbeat lamp of the light control module flickers to show the effect of the breathing lamp.
In a preferred embodiment of the present invention, as shown in fig. 4, after the step S3 is executed, the method further includes:
step B1, the master controller of the music chord generating device starts timing when receiving the receiving signal each time, and continuously outputs the first real-time timing result;
step B2, the master controller of the musical chord generating device continuously receives the first real-time timing result, and compares the first real-time timing result with a preset first time threshold:
if the first real-time timing result is greater than the first time threshold, outputting a corresponding first comparison result, and then turning to step B3,
if the first real-time timing result is not greater than the first time threshold, outputting a corresponding second comparison result, and then turning to step B4;
step B3, the master controller of the music chord generating device generates a corresponding first control instruction according to the first comparison result to control the playing module to play the heartbeat sound and gradually increase the playing interval time of the heartbeat sound, and then turns to step B5;
step B4, the master controller of the music chord generating device generates a corresponding second control instruction according to the second comparison result to control the playing module to play the heartbeat, gradually shorten the playing interval time of the heartbeat, and then quit;
step B5, the master controller of the music chord generating device detects the playing interval time in real time and compares the playing interval time with the preset interval time threshold value:
if the playing interval time is less than the interval time threshold, returning to the step A3;
if the playing interval time is not less than the interval time threshold, outputting a corresponding first detection result, and then turning to step B6;
and step B6, the master controller of the music chord generating device generates a corresponding third control instruction according to the first detection result to control the playing module to stop playing the heartbeat sound.
In a preferred embodiment of the present invention, as shown in fig. 5, after the step S3 is executed, the method further includes:
step C1, the master controller of the music chord generating device starts timing when receiving the received signal each time, and continuously outputs the third real-time timing result;
step C2, the master controller of the musical chord generating device continuously receives the third real-time timing result, and compares the third real-time timing result with the preset second time threshold:
if the third real-time timing result is greater than the second time threshold, outputting a corresponding third comparison result, and then turning to step C3;
if the first real-time timing result is not greater than the second time threshold, outputting a corresponding fourth comparison result, and then turning to step C4;
step C3, the master controller of the music chord generating device generates a corresponding fourth control instruction according to the third comparison result to control the heartbeat lamp of a light module connected with the master controller to flash and gradually increase the flash interval time of the heartbeat lamp;
step C4, the master controller of the music chord generating device generates a corresponding fifth control instruction according to the fourth comparison result to control the heartbeat lamp of the light module to flash and gradually shorten the flash interval time of the heartbeat lamp;
step C5, the master controller of the music chord generating device detects the flicker interval time in real time and compares the flicker interval time with the preset flicker interval time threshold value:
if the flicker interval time is less than the flicker interval time threshold, returning to the step C3;
if the flicker interval time is not less than the flicker interval time threshold, outputting a corresponding second detection result, and then turning to step C6;
and step C6, the master controller of the music and chord generating device generates a corresponding sixth control instruction according to the second detection result, and controls the light module to flash to present the effect of the breathing lamp.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (13)

1. The utility model provides a music chord generating device based on signal trigger which characterized in that is provided with a plurality of strings among the music chord generating device, still includes:
the sensing modules are respectively and correspondingly connected with the strings and used for detecting real-time state data of the connected strings, generating and outputting corresponding trigger signals when the real-time state data indicate that the strings are touched, and the strings connected with the same sensing module form a string group;
each sensing module is provided with a first number, each string is provided with a second number used for representing the sequence of the string in the string group, and the trigger signal comprises the first number and the second number;
each of said strings also having a total number for indicating the ordering of said string within all strings;
each sub-controller is correspondingly connected with the plurality of sensing modules respectively and is provided with a corresponding third serial number;
each sub-controller specifically comprises:
a data storage unit, configured to generate a correspondence library in advance, where a mutual correspondence between the first number, the second number, the third number, and the total number is stored in the correspondence library;
the data retrieval unit is connected with the data storage unit and used for receiving the trigger signal, retrieving the corresponding third number and the total number according to the trigger signal and outputting the third number and the total number included in a retrieval result;
the master controller is connected with at least one of the sub-controllers and comprises:
the data receiving module is used for receiving the retrieval result, generating a corresponding receiving signal according to the retrieval result and outputting the corresponding receiving signal;
the timing module is connected with the data receiving module and used for starting timing when the music chord generating device starts to work and outputting a corresponding timing result when the receiving signal is received;
a storage module, the storage module specifically comprising:
the first storage unit is used for storing a plurality of music pieces with a preset storage sequence and chords corresponding to the music pieces arranged according to the music piece editing sequence;
the second storage unit is used for storing the one-to-one corresponding relation between the total number of each string and a plurality of preset virtual musical instruments;
the first processing module is respectively connected with the timing module and the storage module and used for calculating and obtaining the chord corresponding to the currently touched string according to the timing result and the preset duration of each music piece;
the second processing module is connected with the first processing module and used for carrying out corresponding processing on the chord to obtain the note corresponding to the currently touched string;
the third processing module is connected with the storage module and used for matching in the storage module according to the total number corresponding to the currently touched string in the retrieval result to obtain and output the corresponding virtual musical instrument;
the control module is respectively connected with the second processing module and the third processing module and used for generating and outputting corresponding control instructions according to the musical notes and the virtual musical instrument;
the playing module is connected with the master controller, and the master controller outputs the control instruction to the playing module so as to control the playing module to play the musical notes corresponding to the virtual musical instrument;
the playing module continuously plays the musical notes so as to play the preset music in the continuous operation process of the user on the music chord generating device.
2. The signal-triggered music chord generation device according to claim 1, wherein the general controller further comprises a heartbeat sound control module connected to the data receiving module, the heartbeat sound control module specifically comprises:
the first timing unit is used for starting timing when receiving the receiving signal every time and continuously outputting a first real-time timing result;
the first comparison unit is connected with the first timing unit and used for continuously receiving the first timing result, comparing the first real-time timing result with a preset first time threshold, outputting a corresponding first comparison result when the first real-time timing result is greater than the first time threshold, and outputting a corresponding second comparison result when the first real-time timing result is not greater than the first time threshold;
the first control unit is connected with the first comparison unit and used for generating a corresponding first control instruction according to the first comparison result so as to control the playing module to play the heartbeat sound and gradually increase the playing interval time of the heartbeat sound;
the second control unit is connected with the first comparison unit and used for generating a corresponding second control instruction according to the second comparison result so as to control the playing module to play the heartbeat sound and gradually shorten the playing interval time of the heartbeat sound;
the first detection unit is connected with the first control unit and used for detecting the playing interval time in real time and outputting a corresponding first detection result when the playing interval time is detected to be not less than a preset interval time threshold value;
and the third control unit is connected with the first detection unit and used for generating a corresponding third control instruction according to the first detection result so as to control the playing module to stop playing the heartbeat sound.
3. The signal-based triggering musical chord generating device according to claim 2, wherein said first control unit gradually increases said playing interval time of said heartbeat sound by 2 msec every 100 msec.
4. The signal-based triggering musical chord generating device according to claim 2, wherein said second control unit shortens said playing interval time of said heartbeat sound by 0.5% each time said received signal is received, thereby gradually shortening said playing interval time of said heartbeat sound.
5. The signal-triggered music and chord generation device according to claim 1, wherein said general controller further comprises a heartbeat lamp control module connected to said data receiving module, said heartbeat lamp control module specifically comprising:
the second timing unit is used for starting timing when receiving the receiving signal every time and continuously outputting a third real-time timing result;
the second comparison unit is connected with the second timing unit and used for continuously receiving the third real-time timing result, comparing the third real-time timing result with a preset second time threshold, outputting a corresponding third comparison result when the third real-time timing result is greater than the second time threshold, and outputting a corresponding fourth comparison result when the first real-time timing result is not greater than the second time threshold;
the fourth control unit is connected with the second comparison unit and used for generating a corresponding fourth control instruction according to the third comparison result so as to control the heartbeat lamp of a light module connected with the master controller to flicker and gradually increase the flicker interval time of the heartbeat lamp;
the fifth control unit is connected with the second comparison unit and used for generating a corresponding fifth control instruction according to the fourth comparison result so as to control the heartbeat lamp of the light module to flicker and gradually shorten the flicker interval time of the heartbeat lamp;
the second detection unit is connected with the fourth control unit and used for detecting the flicker interval time in real time and outputting a corresponding second detection result when the flicker interval time is not smaller than a preset flicker interval time threshold value;
and the sixth control unit is connected with the second detection unit and used for generating a corresponding sixth control instruction according to the second detection result and controlling the heartbeat lamp of the light module to flicker so as to present the effect of the breathing lamp.
6. The signal-based triggering musical chord generating device according to claim 5, wherein said fourth control unit gradually increases the blinking interval time of said heartbeat lights by 2 milliseconds per every 100 milliseconds.
7. The signal-based triggering musical chord generating device according to claim 5, wherein said fifth control unit shortens said blinking interval time of said heartbeat lamp by 0.5% each time said received signal is received, thereby gradually shortening said playing interval time of said heartbeat sound.
8. The signal-based musical chord generating device according to claim 5, wherein said general controller further comprises an initialization module connected to said heartbeat lamp control module, said initialization module specifically comprising:
the starting detection unit is used for generating and outputting a corresponding starting signal when detecting that a main switch of the music chord generation device is started;
the calibration control unit is connected with the starting detection unit and used for generating corresponding sensing calibration instructions according to the starting signals and sending the sensing calibration instructions to the sub-controllers so as to calibrate the sensing modules connected with the sub-controllers;
the sleep display unit is connected with the opening detection unit and used for generating a corresponding sleep display instruction according to the opening signal and sending the sleep display instruction to the heartbeat lamp control module to control the heartbeat lamp of the light module to flash so as to present the effect of the breathing lamp.
9. The signal-trigger based musical chord generating device as claimed in claim 1, wherein said strings are capacitively touch-triggered.
10. A signal-triggered musical chord generation method applied to the signal-triggered musical chord generation apparatus according to any one of claims 1 to 9, the method comprising:
step S1, detecting real-time state data of each string correspondingly connected by each sensing module of the music and chord generating device in real time, generating corresponding trigger signals when the real-time state data indicate that the strings are touched, and sending the trigger signals to a sub-controller correspondingly connected with the sensing modules;
step S2, the sub-controller of the music chord generating device searches the pre-generated corresponding relation library according to the triggering signal to obtain a third number and the total number and includes the third number and the total number in the search result, and sends the search result to the connected total controller;
step S3, the general controller of the music chord generating device receives the search result and generates corresponding receiving signal according to the search result;
step S4, the overall controller of the musical chord generating device starts timing when the musical chord generating device starts working, and outputs the corresponding timing result when receiving the receiving signal;
step S5, the master controller of the music chord generating device calculates the chord corresponding to the currently touched string according to the timing result and the preset duration of each music piece, a plurality of music pieces which are stored in advance and have preset storage sequence, and the chord corresponding to each music piece arranged in the song compiling sequence;
step S6, the master controller of the music chord generating device correspondingly processes the chord to obtain the corresponding note of the currently touched string;
step S7, the master controller of the music and chord generating device matches the pre-stored total number with the one-to-one correspondence of a plurality of preset virtual musical instruments according to the total number of the currently touched string included in the search result to obtain the corresponding virtual musical instrument;
step S8, the master controller of the music chord generating device generates corresponding control instructions according to the musical notes and the virtual musical instruments, and sends the control instructions to a playing module connected with the master controller;
step S9, the playing module of the music chord generating device plays the musical note corresponding to the virtual musical instrument according to the control instruction.
11. The signal-based triggering musical chord generation method according to claim 10, wherein executing said step S1 further comprises:
step A1, when the master controller of the music chord generating device detects that a master switch of the music chord generating device is turned on, generating and outputting a corresponding turn-on signal;
step A2, the master controller of the musical chord generating device generates a corresponding sensing calibration instruction according to the opening signal and sends the instruction to the sub-controllers, so as to calibrate the sensing modules connected with the sub-controllers;
step A3, the master controller of the music chord generating device generates a corresponding sleep display instruction according to the opening signal and sends the sleep display instruction to the heartbeat lamp control module, and the heartbeat lamp of the light module is controlled to flash to present the effect of the breathing lamp.
12. The signal-based triggering musical chord generation method according to claim 10, further comprising, after performing said step S3:
step B1, the master controller of the music chord generating device starts timing when receiving the receiving signal each time, and continuously outputs a first real-time timing result;
step B2, the general controller of the musical chord generating device continuously receives the first real-time timing result, and compares the first real-time timing result with a preset first time threshold:
if the first real-time timing result is greater than the first time threshold, outputting a corresponding first comparison result, and then turning to step B3,
if the first real-time timing result is not greater than the first time threshold, outputting a corresponding second comparison result, and then turning to step B4;
step B3, the master controller of the music chord generating device generates a corresponding first control instruction according to the first comparison result to control the playing module to play the heartbeat sound and gradually increase the playing interval time of the heartbeat sound, and then goes to step B5;
step B4, the master controller of the music chord generating device generates a corresponding second control instruction according to the second comparison result to control the playing module to play the heartbeat sound, gradually shorten the playing interval time of the heartbeat sound, and then quit;
step B5, the master controller of the music chord generating device detects the playing interval time in real time, and compares the playing interval time with a preset interval time threshold:
if the playing interval time is smaller than the interval time threshold, returning to the step A3;
if the playing interval time is not less than the interval time threshold, outputting a corresponding first detection result, and then turning to step B6;
and step B6, the master controller of the music chord generating device generates a corresponding third control instruction according to the first detection result, so as to control the playing module to stop playing the heartbeat sound.
13. The signal-based triggering musical chord generation method according to claim 10, further comprising, after performing said step S3:
step C1, the master controller of the music chord generating device starts timing when receiving the receiving signal every time, and continuously outputs a third real-time timing result;
step C2, the general controller of the musical chord generating device continuously receives the third real-time timing result, and compares the third real-time timing result with a preset second time threshold:
if the third real-time timing result is greater than the second time threshold, outputting a corresponding third comparison result, and then turning to step C3;
if the first real-time timing result is not greater than the second time threshold, outputting a corresponding fourth comparison result, and then turning to step C4;
step C3, the master controller of the music chord generating device generates a corresponding fourth control instruction according to the third comparison result to control the heartbeat lamp of a light module connected with the master controller to flash and gradually increase the flash interval time of the heartbeat lamp;
step C4, the master controller of the music chord generating device generates a corresponding fifth control instruction according to the fourth comparison result to control the heartbeat lamp of the light module to flash and gradually shorten the flash interval time of the heartbeat lamp;
step C5, the master controller of the music chord generating device detects the blinking interval time in real time, and compares the blinking interval time with a preset blinking interval time threshold:
if the flicker interval time is smaller than the flicker interval time threshold, returning to the step C3;
if the flicker interval time is not less than the flicker interval time threshold, outputting a corresponding second detection result, and then turning to step C6;
and step C6, the master controller of the music chord generating device generates a corresponding sixth control instruction according to the second detection result, and controls the light module to flash to present the effect of the breathing lamp.
CN201911222223.1A 2019-12-03 2019-12-03 Music chord generating device and method based on signal triggering Active CN110930970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911222223.1A CN110930970B (en) 2019-12-03 2019-12-03 Music chord generating device and method based on signal triggering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911222223.1A CN110930970B (en) 2019-12-03 2019-12-03 Music chord generating device and method based on signal triggering

Publications (2)

Publication Number Publication Date
CN110930970A true CN110930970A (en) 2020-03-27
CN110930970B CN110930970B (en) 2023-12-05

Family

ID=69848524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911222223.1A Active CN110930970B (en) 2019-12-03 2019-12-03 Music chord generating device and method based on signal triggering

Country Status (1)

Country Link
CN (1) CN110930970B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112331165A (en) * 2020-11-09 2021-02-05 崔繁 Intelligent guitar chord auxiliary device self-defined chord system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4012979A (en) * 1975-03-03 1977-03-22 Computeacher Limited Music teaching apparatus
US5425297A (en) * 1992-06-10 1995-06-20 Conchord Expert Technologies, Inc. Electronic musical instrument with direct translation between symbols, fingers and sensor areas
JP2000330554A (en) * 1999-05-24 2000-11-30 Dainippon Printing Co Ltd Expressing method/displaying method/display medium of acoustic information using midi data and reproducing method of midi data
CN1346485A (en) * 1999-02-02 2002-04-24 吉创公司 Electronic strianged music instrument
US6448486B1 (en) * 1995-08-28 2002-09-10 Jeff K. Shinsky Electronic musical instrument with a reduced number of input controllers and method of operation
CN201498198U (en) * 2009-05-11 2010-06-02 曾平蔚 Electronic plucked string instrument
US20110011246A1 (en) * 2009-07-20 2011-01-20 Apple Inc. System and method to generate and manipulate string-instrument chord grids in a digital audio workstation
US20140238220A1 (en) * 2013-02-27 2014-08-28 Yamaha Corporation Apparatus and method for detecting chord
JP2015049302A (en) * 2013-08-30 2015-03-16 ブラザー工業株式会社 Music retrieval device, music retrieval system and music retrieval program
CN105161087A (en) * 2015-09-18 2015-12-16 努比亚技术有限公司 Automatic harmony method, device, and terminal automatic harmony operation method
JP2015230501A (en) * 2014-06-03 2015-12-21 矢崎総業株式会社 Control device
CN105761713A (en) * 2016-01-29 2016-07-13 北京精奇互动科技有限公司 Chord changing processing method and device
US20180357991A1 (en) * 2017-06-09 2018-12-13 Jabriffs Limited Musical chord identification, selection and playing method and means for physical and virtual musical instruments
CN110335578A (en) * 2019-07-11 2019-10-15 中北大学 Music input unit and method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4012979A (en) * 1975-03-03 1977-03-22 Computeacher Limited Music teaching apparatus
US5425297A (en) * 1992-06-10 1995-06-20 Conchord Expert Technologies, Inc. Electronic musical instrument with direct translation between symbols, fingers and sensor areas
US6448486B1 (en) * 1995-08-28 2002-09-10 Jeff K. Shinsky Electronic musical instrument with a reduced number of input controllers and method of operation
CN1346485A (en) * 1999-02-02 2002-04-24 吉创公司 Electronic strianged music instrument
JP2000330554A (en) * 1999-05-24 2000-11-30 Dainippon Printing Co Ltd Expressing method/displaying method/display medium of acoustic information using midi data and reproducing method of midi data
CN201498198U (en) * 2009-05-11 2010-06-02 曾平蔚 Electronic plucked string instrument
US20110011246A1 (en) * 2009-07-20 2011-01-20 Apple Inc. System and method to generate and manipulate string-instrument chord grids in a digital audio workstation
US20140238220A1 (en) * 2013-02-27 2014-08-28 Yamaha Corporation Apparatus and method for detecting chord
JP2015049302A (en) * 2013-08-30 2015-03-16 ブラザー工業株式会社 Music retrieval device, music retrieval system and music retrieval program
JP2015230501A (en) * 2014-06-03 2015-12-21 矢崎総業株式会社 Control device
CN105161087A (en) * 2015-09-18 2015-12-16 努比亚技术有限公司 Automatic harmony method, device, and terminal automatic harmony operation method
CN105761713A (en) * 2016-01-29 2016-07-13 北京精奇互动科技有限公司 Chord changing processing method and device
US20180357991A1 (en) * 2017-06-09 2018-12-13 Jabriffs Limited Musical chord identification, selection and playing method and means for physical and virtual musical instruments
CN110335578A (en) * 2019-07-11 2019-10-15 中北大学 Music input unit and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112331165A (en) * 2020-11-09 2021-02-05 崔繁 Intelligent guitar chord auxiliary device self-defined chord system
CN112331165B (en) * 2020-11-09 2024-03-22 崔繁 Custom chord system of intelligent guitar chord auxiliary device

Also Published As

Publication number Publication date
CN110930970B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
US10895914B2 (en) Methods, devices, and methods for creating control signals
US9542920B2 (en) Modular wireless sensor network for musical instruments and user interfaces for use therewith
CN103810992B (en) Voice synthesizing method and voice synthesizing apparatus
WO2017161612A1 (en) Interactive stringed instrument teaching system
EP3428911B1 (en) Device configurations and methods for generating drum patterns
JPS59223492A (en) Electronic musical instrument
CN104766597A (en) Light-emitting control method and device for numeric keyboard instrument
JP4448378B2 (en) Electronic wind instrument
US20020083818A1 (en) Electronic musical instrument with performance assistance function
CN110930970B (en) Music chord generating device and method based on signal triggering
JPH0448234B2 (en)
JPH0934456A (en) Electronic musical instrument and electronic phonation device
JP3430267B2 (en) Electronic musical instrument
JP2008152297A (en) Musical instrument
CN110335578A (en) Music input unit and method
CN101996624B (en) Method for performing chord figure and rhythm figure by monochord of electric guitar
JP3705175B2 (en) Performance control device
KR20090085005A (en) Easy guitar
JPH06301333A (en) Play learning device
JP2000298477A (en) Device and method for assisting practice in playing
JP3714240B2 (en) Electronic musical instrument with performance support function
JPH065455B2 (en) Singing instruction device
JP5145875B2 (en) Performance practice support device and performance practice support processing program
CN108269559B (en) Intelligent accompaniment method and control system
CN105590617A (en) Cucurbit flute auxiliary exercise apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 206, Building 3, No. 48, Lane 1088, Yuyuan Road, Changning District, Shanghai, 200050

Patentee after: SHANGHAI GWANTSI CULTURAL TRANSMISSION CO.,LTD.

Address before: Room J1526, 3rd Floor, Building 8, No. 55 Huiyuan Road, Jiading District, Shanghai, 2018

Patentee before: SHANGHAI GWANTSI CULTURAL TRANSMISSION CO.,LTD.

CP02 Change in the address of a patent holder