A 3D printing system and method for a music box cylinder
Through 3D printing technology, the personalized model of music box rollers is constructed, which solves the problems of cumbersome production of traditional rollers and fixed tracks, and realizes low-cost and fast roller production and music selection.
Patent Information
- Application Number
- CN202410645488.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2044-05-23
AI Technical Summary
The manufacturing process of traditional music box rollers is cumbersome and expensive, and the music tracks are fixed, so users cannot change the rollers and change the music, which is limited in practicality.
Using 3D printing technology, by collecting roller information and note information, building a printing model, personalized production of music box rollers and replacing the tracks, using decision trees and neural networks for feature extraction and model construction, combining input modules and conversion modules to realize the conversion and 3D printing of music to spectral diagrams.
It realizes the diversified selection of personalized roller design and musical repertoire, reducing production costs and simplifying the production process.
Smart Images

Figure CN118386553B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of 3D printing, and particularly to a 3D printing system and method for a music box drum. Background Art
[0002] Traditional music box drums are usually manufactured by mechanical processing methods. The manufacturing process is cumbersome and costly. Moreover, traditional drums are fixed with specific music pieces, and users cannot replace the drums to change the music, making the application scope of music boxes very narrow. Except for music boxes specifically for collection purposes, their practicality has also greatly decreased with the development of technology. Summary of the Invention
[0003] To solve the technical problems in the above background, the present invention uses 3D printing technology to realize the real-time printing of music box drums by converting the input melody into a staff image and then into a 3D printing model image, making the music pieces of the same music box more abundant.
[0004] To achieve the above object, the present invention provides a 3D printing system for a music box drum, including: a collection module, a programming module, and a printing module;
[0005] The collection module is used to collect drum information and corresponding note information;
[0006] The programming module is used to construct a printing model based on the drum information and the note information;
[0007] The printing module is used to realize the 3D printing of different music box drums based on the printing model.
[0008] Preferably, the collection module includes: a drum information collection unit and a note collection unit;
[0009] The drum information collection unit is used to collect the drum information;
[0010] The note collection unit is used to collect the note information.
[0011] Preferably, the process of constructing the printing model includes:
[0012] Constructing a data set based on the drum information and the note information;
[0013] Training the data set to construct the printing model.
[0014] Preferably, the process of constructing the data set includes: integrating and processing the bump layout image and the corresponding staff image data and performing feature extraction to form the training set.
[0015] Preferably, it further includes an input module and a conversion module;
[0016] The input module is used to input the melody of the music;
[0017] The conversion module is used to convert the melody of the music into the note information.
[0018] The present invention also provides a 3D printing method for a music box cylinder, which is applied to the system, and the steps include:
[0019] Collect the cylinder information and the corresponding note information;
[0020] Based on the cylinder information and the note information, construct a printing model;
[0021] Based on the printing model, realize the 3D printing of different music box cylinders.
[0022] Preferably, the method for constructing the printing model includes:
[0023] Based on the cylinder information and the note information, construct a data set;
[0024] Train the data set to construct the printing model.
[0025] Preferably, the method for constructing the data set includes: integrating and processing the bump layout image and the corresponding staff image data and performing feature extraction to form the training set.
[0026] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0027] The present invention can design the appearance and groove layout of the cylinder according to different needs and preferences, realizing the production of personalized music box cylinders; at the same time, different cylinders can be replaced as needed to change the music repertoire of the music box, increasing the music selection of users. Compared with the traditional method of machining the cylinder, the 3D printing system of the present invention has a lower cost and a simpler and faster production process. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0029] Figure 1 It is a schematic structural diagram of the system of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0030] Next, in combination with the accompanying drawings in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0031] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0032] Embodiment 1
[0033] As Figure 1 shown, it is a schematic diagram of the system structure of this embodiment, including: a collection module, a programming module, and a printing module; the collection module is used to collect drum information and corresponding note information; the programming module is used to construct a printing model based on the drum information and note information; the printing module is used to realize 3D printing of different music box drums based on the printing model.
[0034] Next, in combination with this embodiment, it will be described in detail how the present invention solves technical problems in real life.
[0035] First, collect drum information using drum information; the drum information is mainly the bump layout image on the drum, in the form of a 3D model or design drawing. At the same time, use the note collection unit to collect the note information corresponding to the drum, and this note information is specific staff image data. This information can come from a music box manufacturing factory or some open-source data platforms.
[0036] After that, the programming module constructs a printing model based on the drum information and note information.
[0037] First, integrate and process the bump layout image and the corresponding staff image data and perform feature extraction to form a training set: in this embodiment, the decision tree algorithm is selected for use:
[0038] (1) Feature selection: Use the correspondence between the bump layout image and the staff image data as the basis for constructing the decision tree, and select the features that can best reflect the correspondence as the nodes of the decision tree.
[0039] (2) Constructing the decision tree: When classifying, the decision tree recursively divides the data set according to the order of feature selection until all samples belong to the same category or reach the preset stop condition.
[0040] (3) Decision tree evaluation: Evaluating the classification accuracy of a decision tree is a very important step. Methods such as cross-validation and confusion matrix are used to evaluate the classification effect of the decision tree, and a decision tree with higher accuracy is selected for subsequent analysis.
[0041] (4) Applying the decision tree for classification: When performing classification, the extraction results are classified through the decision tree to obtain the classification results. Generally speaking, the goal of decision tree classification is to group samples of the same category together and separate samples of different categories as much as possible.
[0042] Then, a printing model is constructed using a neural network:
[0043] 1) Input layer: At the input layer of the neural network, the extracted features are transformed into a form that can be processed by the neural network, and the deformation parameters are propagated forward into the neural network;
[0044] 2) Convolutional layer, pooling layer, and fully connected layer: In the convolutional layer and pooling layer, feature extraction and dimensionality reduction are performed on the training set; multiple convolutional networks are used to extract features at different scales; 6 convolutional kernels of 64x64, 32x32, 16x16, 8x8, 4x4, and 4x4 are used to extract features respectively, and the extracted features are converted into a fixed-length feature vector through the fully connected layer, and the selected and retained one-dimensional vector with a length of 128 is used as the output image;
[0045] 3) Output layer: The 1x128 image is output as a vector.
[0046] In addition, the system of this embodiment further includes: an input module and a conversion module. Users can use the input module to input the downloaded music into the printing system; then the conversion module converts the downloaded music in MP3 (or other) format into MIDI format, and then converts the MIDI format file into a staff diagram and inputs it into the programming module to generate a 3D model. Finally, the printing module prints the drum through a 3D printer based on the 3D model. During the printing process, users can manually input parameters to control the drum size, thereby controlling the drum size; to adapt to the specifications of different music boxes.
[0047] Embodiment 2
[0048] This embodiment provides a 3D printing method for a music box drum.
[0049] First, drum information is collected; the drum information is mainly the image of the bump layout on the drum, in the form of a 3D model or design drawing, and the corresponding note information of the drum is collected, and this note information is the specific staff image data. This information can come from a music box manufacturing factory or some open-source data platforms.
[0050] After that, a printing model is constructed based on the drum information and the note information.
[0051] First, integrate and process the convex point layout image and the corresponding staff image data and perform feature extraction to form a training set: In this embodiment, the decision tree algorithm is selected for use:
[0052] (1) Feature selection: Use the correspondence between the convex point layout image and the staff image data as the basis for constructing the decision tree, and select the features that can best reflect the correspondence as the nodes of the decision tree.
[0053] (2) Construct the decision tree: When classifying, the decision tree recursively divides the data set according to the order of feature selection until all samples belong to the same category or reach the preset stop condition.
[0054] (3) Decision tree evaluation: Evaluating the classification accuracy of the decision tree is a very important step. Evaluate the classification effect of the decision tree through methods such as cross-validation and confusion matrix, and select the decision tree with higher accuracy for subsequent analysis.
[0055] (4) Apply the decision tree for classification: When classifying, classify the extraction results through the decision tree to obtain the classification results. Generally speaking, the goal of decision tree classification is to group samples of the same category together and separate samples of different categories as much as possible.
[0056] Then, use a neural network to construct a printing model:
[0057] 1) Input layer: In the input layer of the neural network, convert the extracted features into a form that can be processed by the neural network, and perform forward propagation of the deformation parameters into the neural network;
[0058] 2) Convolutional layer, pooling layer and fully connected layer: In the convolutional layer and the pooling layer, perform feature extraction and dimensionality reduction on the training set; use multiple convolutional networks to extract features of different scales; use 6 convolutional kernels of 64x64, 32x32, 16x16, 8x8, 4x4, and 4x4 respectively to extract features, and the extracted features are converted into a fixed-length feature vector through the fully connected layer, and the selected and retained one-dimensional vector with a length of 128 is used as the output image;
[0059] 3) Output layer: Output the 1x128 image as a vector.
[0060] Finally, convert the downloaded MP3 (or other) format music into MIDI format, and then convert the MIDI format file into a staff diagram and input it into the programming module to generate a 3D model. Finally, based on the 3D model, print the drum through a 3D printer. During the printing, parameters can be manually input to control the drum size, and thus control the drum size; to adapt to the specifications of different music boxes.
[0061] The embodiments described above are only descriptions of the preferred embodiments of the present invention, and do not limit the scope of the present invention. Without departing from the design spirit of the present invention, various deformations and improvements made by those of ordinary skill in the art to the technical solutions of the present invention shall fall within the protection scope determined by the claims of the present invention.
Claims
1. A 3D printing system for a music box drum, characterized in that, Including: A collection module, a programming module, and a printing module; The collection module is used to collect drum information and corresponding note information; The programming module is used to construct a printing model based on the drum information and the note information; The process of constructing the printing model includes: Based on the drum information and the note information, construct a data set; the process includes: integrating and processing the bump layout image and the corresponding staff image data and performing feature extraction to form a training set, and using the decision tree algorithm: Feature selection: Use the correspondence between the bump layout image and the staff image data as the basis for constructing the decision tree, and select the features that can best reflect the correspondence as the nodes of the decision tree; Construct the decision tree: When classifying, the decision tree recursively divides the data set according to the order of feature selection until all samples belong to the same category or reach the preset stop condition; Decision tree evaluation: Evaluate the classification effect of the decision tree through cross-validation and confusion matrix, and select the decision tree with high accuracy for subsequent analysis; Apply the decision tree for classification: When classifying, classify the extraction results through the decision tree to obtain the classification results; Train the data set to construct the printing model; the printing model includes: Input layer: At the input layer of the neural network, convert the extracted features into a form that can be processed by the neural network, and the deformation parameters are propagated forward into the neural network; Convolution layer, pooling layer, and fully connected layer: In the convolution layer and the pooling layer, perform feature extraction and dimensionality reduction on the training set; Use multiple convolutional networks to extract features of different scales; Respectively use 6 convolutional kernels of 64×64, 32×32, 16×16, 8×8, 4×4, 4×4 to extract features, and the extracted features are converted into a fixed-length feature vector through the fully connected layer, and the selected and retained one-dimensional vector with a length of 128 is used as the output image; Output layer: Output the 1×128 image as a vector; The printing module is used to realize 3D printing of different music box drums based on the printing model; The collection module includes: a drum information collection unit and a note collection unit; the drum information collection unit is used to collect the drum information; the note collection unit is used to collect the note information.
2. The 3D printing system of the music box drum according to claim 1, characterized in that, It also includes an input module and a conversion module; The input module is used to input the melody of the music; The conversion module is used to convert the melody of the music into the note information.
3. A 3D printing method for a music box cylinder, the method being applied to the system according to any one of claims 1-2, characterized in that the steps Including: Collect drum information and corresponding note information; Based on the drum information and the note information, construct a printing model; Based on the printing model, realize 3D printing of different music box drums.
4. The 3D printing method of the music box drum according to claim 3, characterized in that, The method for constructing the printing model includes: Based on the drum information and the note information, construct a data set; Train the data set to construct the printing model.
5. The 3D printing method of the music box drum according to claim 4, characterized in that The method for constructing the data set includes: integrating and processing the bump layout image and the corresponding staff image data and performing feature extraction to form the training set.
Citation Information
Patent Citations
Customization method and device of pronunciation component
CN109360543A