CN109994093B - Convenient staff manufacturing method and system based on compiling technology - Google Patents

Convenient staff manufacturing method and system based on compiling technology Download PDF

Info

Publication number
CN109994093B
CN109994093B CN201910188895.9A CN201910188895A CN109994093B CN 109994093 B CN109994093 B CN 109994093B CN 201910188895 A CN201910188895 A CN 201910188895A CN 109994093 B CN109994093 B CN 109994093B
Authority
CN
China
Prior art keywords
intermediate language
user
language
compiling
staff
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.)
Active
Application number
CN201910188895.9A
Other languages
Chinese (zh)
Other versions
CN109994093A (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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN201910188895.9A priority Critical patent/CN109994093B/en
Publication of CN109994093A publication Critical patent/CN109994093A/en
Application granted granted Critical
Publication of CN109994093B publication Critical patent/CN109994093B/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
    • G10H2220/00Input/output interfacing specifically adapted for electrophonic musical tools or instruments
    • G10H2220/005Non-interactive screen display of musical or status data
    • G10H2220/015Musical staff, tablature or score displays, e.g. for score reading during a performance.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Auxiliary Devices For Music (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a staff convenient manufacturing method and a staff convenient manufacturing system based on a compiling technology. The invention realizes the personalized manufacture of the staff and midi format audio files from a brand new angle, greatly reduces the manufacture difficulty and the knowledge threshold, breaks through the service bottleneck in the digital music manufacture field, and explores a new direction of compiling technology and application development.

Description

Method and system for conveniently making staff based on compiling technology
Technical Field
The invention belongs to the technical field of computers, multimedia and digital music, and relates to a convenient staff manufacturing method and system, in particular to a convenient staff manufacturing method and system based on a compiling technology.
Background
The compiling technology is a core technology for realizing a compiler program, and is a technology for translating a program code written in a high-level computer language into a binary machine language code which can be run by a computer. Compilers allow one to write programs in programming languages that are closer to natural languages without using machine languages that are arcane, difficult to debug, and poorly portable. In the composition of a compiler, lexical analysis, syntactic analysis and semantic analysis are three most important components, and the analysis processes of the three most important components actually imitate the processing of natural language by human beings, which provides the possibility for wide application of compiling technology, such as designing special language and the like.
Multimedia Technology (Multimedia Technology) is a Technology for comprehensively processing various information such as text, graphics, images, sound, animation, video, etc., establishing logical relationships and human-computer interaction by using a computer, and is also called computer Multimedia Technology. The real multimedia technology relates to objects which are products of computer technology, and other simple objects such as movies, televisions, audios and the like do not belong to the category of multimedia technology. The multimedia technology utilizes a computer to digitize media information such as characters, graphs, images, animations, sounds and videos and the like, and integrates the media information on a certain interactive interface, so that the computer has the capability of interactively displaying different media forms. The method greatly changes the traditional method for obtaining information by people and accords with the reading mode of people in the information era.
Digital music, which is music stored in a digital format and can be transmitted over a network. No matter how many times the data is downloaded, copied and played, the quality of the data is not changed. Therefore, the digital music has the advantages of being technical, instantaneity, accuracy, expansibility, convenience and the like. At present, the digital music industry has established its important position in the digital content industry of China, a batch of representative enterprises with certain scale and respective competitive advantages emerge successively, and a great deal of exploration and attempt are made to develop the digital music industry under the condition of the Chinese market.
In recent years, with the red trend of a plurality of music comprehensive art programs and the continuous popularization of music knowledge, more and more people have interest in music production, and the threshold of the digital music field is gradually reduced. At present, several fields are tried to be combined with multimedia technology, and thus a series of practical applications in the field of digital music are derived.
The traditional staff making system usually adopts a graphical interface, a user places notes by clicking a target position of a blank staff, the expected effect is achieved by automatically combining the notes with different values of time, the notes are marked by placing a fade-in mark or a fade-out mark, and finally, a mid/. Ove/. Pdf file is generated for further processing or use.
However, there are still various problems in the current staff making application. First, they all require the user to have sufficient knowledge of the music theory that music enthusiasts who do not have the music foundation are daunting and unavailable. Secondly, they are relatively single in function. At present, no mature system application combining compiling technology and staff making exists.
Disclosure of Invention
In order to solve the technical problems, the invention fully utilizes the inherent advantages of the compiling technology in the aspect of natural language processing, explores the application mode of the compiling technology in the field of digital music, and provides a staff convenient manufacturing method and a staff convenient manufacturing system based on the compiling technology.
The method adopts the technical scheme that: a convenient staff manufacturing method based on a compiling technology is characterized by comprising the following steps:
step 1: collecting a user instruction;
collecting instructions input by a user, wherein the instructions comprise pitch, notes, duration, volume, tone, time number and speed; step 2: generating an intermediate language;
the obtained instructions are arranged to obtain a required data form;
and 3, step 3: compiling the intermediate language into a midi file;
and 4, step 4: and outputting a staff.
The technical scheme adopted by the system of the invention is as follows: a staff convenient manufacturing system based on compiling technology is characterized in that: the system comprises a user instruction acquisition module, an intermediate language generation module, an intermediate language compiling module and a staff output module;
the user instruction acquisition module is used for acquiring a user instruction; collecting instructions input by a user, wherein the instructions comprise pitch, notes, duration, volume, tone, time number and speed;
the intermediate language generating module is used for generating an intermediate language; the obtained instructions are arranged to obtain a required data form;
the intermediate language compiling module is used for compiling the intermediate language into the midi file;
and the staff output module is used for outputting staff.
The invention has high flexibility, portability and expansibility in the remaking process. Because the back end of the compiling module adopts the current universal digital music format, various realizations of the front end of the compiling module can be directly applied to the staff making system based on the text. Therefore, the user or the user group can customize the spectral language, thereby realizing more personalized and confidential creation. In addition, the existing system related to the staff can also directly utilize the compiling module to complete the existing functions, such as a spectrum system conversion function, a digital audio conversion function with different formats and the like.
The invention has the following innovative characteristics:
(1) The compiling technology is fused, so that the difficulty of making a staff by a user is reduced, and more interesting entrance-level creation experience is provided;
(2) The user or the user group can design the own spectral language in the system, and then the system compiling module converts the input file made by the user in the custom language form into the standard midi file, thereby improving the personalized degree and confidentiality of creation;
(3) The system is easier to use, more detailed, more flexible and more expandable than the existing spectrum making application due to the fusion of a plurality of technologies, and a user can obtain more convenient, interesting and vivid experiences when using the system.
In conclusion, the invention realizes the personalized manufacture of the staff and midi format audio files from a brand-new angle, greatly reduces the manufacture difficulty and the knowledge threshold, breaks through the service bottleneck in the digital music manufacture field, and explores a new direction of compiling technology and application development.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the present invention.
Detailed Description
In order to facilitate understanding and implementation of the present invention for persons of ordinary skill in the art, the present invention is further described in detail with reference to the drawings and examples, it is to be understood that the implementation examples described herein are only for illustration and explanation of the present invention and are not to be construed as limiting the present invention.
The staff convenient manufacturing system based on the compiling technology has two major key points. Firstly, emphasizing that the user experience is improved by constructing a system front end with a convenient interaction function, and converting a user instruction into an intermediate language; second, it is important to highlight the translation of the intermediate language into midi format output by the compilation technique. The system for generating the midi-format file by the user instruction is finally obtained through the collection of the instruction, the generation of the intermediate language and the lexical analysis, the syntactic analysis and the semantic analysis in the compiling process. The collection of the instructions refers to collecting the instructions input by the user by the graphical interface, such as requirements on pitch, volume, duration and the like. The generation of the intermediate language means that the obtained commands are arranged to obtain a required data form. The compiling module comprises three parts of lexical analysis, syntactic analysis and semantic analysis, and translates the intermediate language into a midi format file as output.
The technical scheme of the invention can adopt a computer software technology to realize modular design. The technical scheme of the invention is explained in detail in the following by combining the drawings and the embodiment.
Referring to fig. 1, the method for conveniently manufacturing a staff based on a compiling technology provided by the invention comprises the following steps:
step 1: collecting a user instruction;
collecting instructions input by a user, wherein the instructions comprise pitch, notes, duration, volume, tone, beat number and speed;
the instruction acquisition of this embodiment is the main function realization of system front end, mainly based on following two main points: (1) The manufacturing logic of the traditional staff is used for reference, all the constituent elements of the traditional staff are covered, innovation is emphasized, and the traditional staff is presented to a user in a popular and understandable mode for the user to select; (2) The collected related data should be easy to convert into the data required by the system, namely, the data is easy to convert into the intermediate language specified by the system.
Step 2: the obtained instructions are sorted to generate an intermediate language;
in this embodiment, the intermediate language includes a system default language or a user-defined language;
default intermediate language, each note is expressed by the combination form of < tone tempo, duration and pitch volume >;
the format of the user-defined language is determined by the user, and the user can independently design the language for expressing each note and send the language into the compiling module to translate the language into the hexadecimal format of the midi file.
For example, if the user sets the melody to be C major, the beat number to be 4/4 beats, the beats per minute to be 120, selects C in small word groups, selects the quarter note, and sets the volume to 50, the system will generate an intermediate language of < Cmajor r4/4 speed 120 time 120 C4 power 50> as the compiler module input.
And step 3: compiling the intermediate language into a midi file;
the specific implementation comprises the following substeps:
step 3.1: performing lexical analysis on the intermediate language in the step 2 to obtain words;
step 3.2: carrying out syntactic analysis on the intermediate language in the step 2, and combining the words obtained in the step 3.1 to form syntactic components;
step 3.3: performing semantic analysis on the intermediate language in the step 2, and finally obtaining a midi format file generated by a user instruction by combining the syntactic components in the step 3.2;
the parsing function of the present embodiment is to combine the divided words into a grammar component, for example, speed 120 in the above example is a grammar component for setting music tempo. The function of the semantic analysis is to generate the corresponding midi file content, for example, after recognizing the grammar component of the above set tempo, the semantic analysis section outputs 00 ff 51 07 al 20, which is the hexadecimal information in the midi file that controls the tempo of the music piece to 120.
And 4, step 4: and outputting a staff.
The invention also provides a staff convenient manufacturing system based on the compiling technology, which comprises a user instruction acquisition module, an intermediate language generation module, an intermediate language compiling module and a staff output module;
the user instruction acquisition module is used for acquiring a user instruction; collecting instructions input by a user, wherein the instructions comprise pitch, notes, duration, volume, tone, beat number and speed; the intermediate language generating module is used for generating an intermediate language; the obtained instructions are arranged to obtain a required data form; the intermediate language compiling module is used for compiling the intermediate language into the midi file; and the staff output module is used for outputting staff.
According to the method and the system for conveniently manufacturing the staff based on the compiling technology, when a user uses the system, the user only needs to select information such as pitch, volume, duration and the like in a user interface. The system converts the user instruction into the intermediate language set by the system by collecting the user operation, fully utilizes the advantages of the compiling technology in the aspects of lexical analysis, grammar analysis and semantic analysis, converts the intermediate language into midi file codes, finally outputs the midi format digital audio file, and utilizes the spectrum reading software to open the midi file to obtain the complete staff. Compared with the traditional staff making system, the staff making system adopting the invention has the innovative characteristics that:
(1) By combining the compiling technology, the difficulty of making the staff by the user is reduced, and interesting entrance-level creation experience is provided.
(2) The personalization and the confidentiality of creation are improved, a user or a user group can design own spectral making language in the system, and then the system compiling module converts an input file made by the user in a custom language form into a standard midi file.
(3) The flexibility and expansibility of the music system are improved, and the compiling module of the system can be transplanted to other related applications due to the adoption of the coding format of the universal digital music file, so that the existing functions are improved.
(4) The invention applies the compiling technology to the staff making, and reduces the making threshold of midi digital music files. In addition, through a simple and friendly user interaction interface, a user without music theory basis can easily generate the staff and make midi digital music files.
The system realizes the personalized manufacture of the staff and midi format audio files from a brand new angle, greatly reduces the manufacture difficulty and the knowledge threshold, breaks through the service bottleneck in the digital music manufacture field, and explores a new direction of compiling technology and application development.
It should be understood that parts of the specification not set forth in detail are well within the prior art.
It should be understood that the above description of the preferred embodiments is given for clarity and not for any purpose of limitation, and that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. A convenient staff manufacturing method based on a compiling technology is characterized by comprising the following steps:
step 1: collecting a user instruction;
collecting instructions input by a user, wherein the instructions comprise pitch, notes, duration, volume, tone, time number and speed;
step 2: generating an intermediate language;
the obtained instructions are arranged to obtain a required data form;
the intermediate language comprises a system default language or a user-defined language;
the system defaults to an intermediate language, each note is represented in a combined form of < timbre volume at key tempo >;
the format of the user-defined language is determined by the user, the user designs the language expressing each note independently, and the language is sent to a compiling module to be translated into the hexadecimal format of the midi file;
and step 3: compiling the intermediate language into a midi file;
the specific implementation of the step 3 comprises the following substeps:
step 3.1: performing lexical analysis on the intermediate language in the step 2 to obtain words;
step 3.2: carrying out syntactic analysis on the intermediate language in the step 2, and combining the words obtained in the step 3.1 to form syntactic components;
step 3.3: performing semantic analysis on the intermediate language in the step 2, and finally obtaining a midi format file generated by a user instruction by combining the syntactic component in the step 3.2;
and 4, step 4: and outputting a staff.
2. The method for conveniently making staff based on compiling technology according to claim 1, wherein: in the step 1, the manufacturing logic of the traditional staff is used for reference, all the constituent elements of the traditional staff are covered, and the elements are presented to the user in a popular and easy-to-understand way for the user to select.
3. The method for conveniently making staff based on compiling technology according to claim 1, wherein: in step 2, the obtained commands are arranged to form data in a combined form of < timbre and pitch volume in the key tempo >.
4. A convenient manufacturing system of staff based on compiling technique which characterized in that: the system comprises a user instruction acquisition module, an intermediate language generation module, an intermediate language compiling module and a staff output module;
the user instruction acquisition module is used for acquiring a user instruction; collecting instructions input by a user, wherein the instructions comprise pitch, notes, duration, volume, tone, time number and speed;
the intermediate language generating module is used for generating an intermediate language; the obtained instructions are arranged to obtain a required data form;
the intermediate language comprises a system default language or a user-defined language;
the system defaults to an intermediate language, each note is represented in a combined form of < timbre volume at key tempo >;
the format of the user-defined language is determined by the user, the user designs the language expressing each note independently, and the language is sent to a compiling module to be translated into the hexadecimal format of the midi file;
the intermediate language compiling module is used for compiling the intermediate language into the midi file;
the intermediate language compiling module specifically comprises the following sub-modules:
the submodule 1 is used for carrying out lexical analysis on the intermediate language in the intermediate language generating module to obtain words;
the submodule 2 is used for carrying out syntactic analysis on the intermediate language in the intermediate language generating module and combining words obtained in the submodule 1 to form syntactic components;
the submodule 3 is used for performing semantic analysis on the intermediate language in the intermediate language generating module, and finally obtaining a midi format file generated by a user instruction by combining grammar components in the submodule 2;
and the staff output module is used for outputting staff.
CN201910188895.9A 2019-03-13 2019-03-13 Convenient staff manufacturing method and system based on compiling technology Active CN109994093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910188895.9A CN109994093B (en) 2019-03-13 2019-03-13 Convenient staff manufacturing method and system based on compiling technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910188895.9A CN109994093B (en) 2019-03-13 2019-03-13 Convenient staff manufacturing method and system based on compiling technology

Publications (2)

Publication Number Publication Date
CN109994093A CN109994093A (en) 2019-07-09
CN109994093B true CN109994093B (en) 2023-03-17

Family

ID=67130601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910188895.9A Active CN109994093B (en) 2019-03-13 2019-03-13 Convenient staff manufacturing method and system based on compiling technology

Country Status (1)

Country Link
CN (1) CN109994093B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101203904A (en) * 2005-04-18 2008-06-18 Lg电子株式会社 Operating method of a music composing device
CN102930861A (en) * 2012-11-03 2013-02-13 徐国元 System and device of digital music
CN106652984A (en) * 2016-10-11 2017-05-10 张文铂 Automatic song creation method via computer
CN106875929A (en) * 2015-12-14 2017-06-20 中国科学院深圳先进技术研究院 A kind of music rhythm method for transformation and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005530192A (en) * 2002-06-11 2005-10-06 ジャレット,ジャック・マリウス Music notation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101203904A (en) * 2005-04-18 2008-06-18 Lg电子株式会社 Operating method of a music composing device
CN102930861A (en) * 2012-11-03 2013-02-13 徐国元 System and device of digital music
CN106875929A (en) * 2015-12-14 2017-06-20 中国科学院深圳先进技术研究院 A kind of music rhythm method for transformation and system
CN106652984A (en) * 2016-10-11 2017-05-10 张文铂 Automatic song creation method via computer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于WAV文件的独奏乐曲信号中的乐谱识别;曹西征等;《计算机应用》;20090301(第03期);第768-770+788页 *

Also Published As

Publication number Publication date
CN109994093A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
US11430419B2 (en) Automatically managing the musical tastes and preferences of a population of users requesting digital pieces of music automatically composed and generated by an automated music composition and generation system
US20190237051A1 (en) Method of and system for controlling the qualities of musical energy embodied in and expressed by digital music to be automatically composed and generated by an automated music composition and generation engine
JP2021157193A (en) Speech synthesis method and method for training corresponding model, device, electronic apparatus, storage medium, and computer program
CN101504643A (en) Speech processing system, speech processing method, and speech processing program
CN102193992A (en) System and method for generating custom songs
CN111554255A (en) MIDI playing style automatic conversion system based on recurrent neural network
CN102880599A (en) Sentence exploring method for analyzing sentences and supporting learning of analysis
JP2014109988A (en) Motion video generation device and motion video generation program
CN109994093B (en) Convenient staff manufacturing method and system based on compiling technology
Wang et al. A review of intelligent music generation systems
Coffy et al. Ascograph: A user interface for sequencing and score following for interactive music
Zhu et al. A Survey of AI Music Generation Tools and Models
Schumacher et al. Integrating gesture data in computer-aided composition: A framework for representation, processing and mapping
Chafe et al. What would a Webchuck Chuck?
Shimizu et al. Genny: Designing and exploring a live coding interface for generative models
KR101468411B1 (en) Apparatus for playing and editing MIDI music and Method for the same with user orientation
CN116612781B (en) Visual processing method, device and equipment for audio data and storage medium
CN113920971A (en) Music color visualization method based on music semantics
Hollowell et al. JAMMIN-GPT: Text-Based Improvisation Using LLMs in Ableton Live
Zadel A software system for laptop performance and improvisation
Toka in Media Arts & Technology
Wentzel Exploring multi-touch instruments with MPE and MIDI 2.0
Nilson Dvd program notes
Taylor Augmenting live musical performance through music visualization
Lan Exploring Collaboration in Computer Music Systems for Live Coding

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