WikiPatents - Community Patent Review
Create Free Account  |  License or Sell Your Patent  |  WikiPatents Marketplace  |  WikiPatents Blog
Username:  Password:  
    
Advanced Search
Electronic musical instrument having secondary storage of files with common constituent portions identified by entry name    

Get related patents on CD
United States Patent5513352   
Link to this pagehttp://www.wikipatents.com/5513352.html
Inventor(s)Tozuka; Akira (Hamamatsu, JP)
AbstractDisclosed is an electronic appliance, for example such as an electronic musical instrument, having a secondary storage device for storing data to be recorded which can be easily divided into divisional elements under a plurality of predetermined items. With respect to information to be stored in the secondary storage device, a portion the same as the already stored information is not newly stored to thereby effectively use the storage capacity of the secondary storage device. In the electronic appliance, specifically, data to be stored as one file in the secondary storage device is divided into a plurality of constituent portions under predetermined items, file names are affixed respectively to files, and entry names are affixed respectively to the itemized constituent portions. A file to be newly stored is divided into a plurality of constituent portions under the predetermined items and a judgment is made as to whether any of the constituent portions of the new file is the same as any of the already stored constituent portions of the other file with respect to one and the same item, so that the same entry name is affixed to the same constituent portion without storing the contents of the constituent component in duplication so that the same data is used in common to a plurality of files.
   














 Title Information Submit all comments and votes
 
Patent Text Patent PDF Print Page Summary File History
Plain text PDF images Print Summary File History Custom Search
Inventor     Tozuka; Akira (Hamamatsu, JP)
Owner/Assignee     Yamaha Corporation (Shizuoka, JP)
Patent assignment
All assignments
Company News
Publication Date     April 30, 1996
Application Number     08/324,154
PAIR File History     Application Data   Transaction History
Image File Wrapper   Patent Term   Fees
Litigation
Filing Date     October 14, 1994
US Classification     707/203 84/601 84/609 707/104.1 711/4 711/129 711/173
Int'l Classification     G06F 012/00 G06F 013/00
Examiner     Black; Thomas G.
Assistant Examiner     Homere; Jean R.
Attorney/Law Firm     Loeb & Loeb
Address
Parent Case     This is a continuation of application Ser. No. 07/821,363 filed Jan. 16, 1992, now abandoned.
Priority Data     Jan 17, 1991[JP]3-017009
USPTO Field of Search     364/DIG. 1 364/DIG. 2 395/600 395/456 395/404 395/497.04 84/609 84/601
Patent Tags     electronic musical instrument secondary storage files with common constituent portions identified entry name
   
Enter a comma (,) or semicolon (;) between multiple tag words/phrases.
Describe this patent:
 Amusing   
 Clever   
 Complex   
 Efficient   
 Historic   
 Important   
 Innovative   
 Interesting   
 Practical   
 Simple   
[no votes]
Patent WIKI

Share information and news about this patent, including information and news about the technology, inventors, company, ligation and licensing.

 References Submit all comments and votes
 
*references marked with an asterisk below are user-added references
 U.S. References
 
Add a new US reference:  
ReferenceRelevancyCommentsReferenceRelevancyComments
5369216
Miyamoto
84/609
Nov,1994

[0 after 0 votes]
5280438
Kanemaru
377/50
Jan,1994

[0 after 0 votes]
5270476
Rokkaku
84/609
Dec,1993

[0 after 0 votes]
5220119
Shimada
84/609
Jun,1993

[0 after 0 votes]
5056021
Ausborn
704/9
Oct,1991

[0 after 0 votes]
4960030
Fujimori
84/609
Oct,1990

[0 after 0 votes]
4912637
Sheedy
707/203
Mar,1990

[0 after 0 votes]
4807182
Queen
715/511
Feb,1989

[0 after 0 votes]
4788672
Toyooka
369/30.09
Nov,1988

[0 after 0 votes]
4730252
Bradshaw
707/4
Mar,1988

[0 after 0 votes]
 Foreign References
 Other References
 Market Review Submit all comments and votes
   
Market Size
Estimate the gross annual revenues of the relevant market sector:
> $10B
$5B - $10B
$2B - $5B
$500M - $2B
$100M - $500M
$10M - $100M
$1M - $10M
$500K - $1M
$100K - $500K
< $100K
[No votes]
$0
 
$0   $2.5B   $5B   $7.5B   $10B

[0 market size comments]
Market Share
Estimate the percentage of the relevant market sector this invention will capture:
75% - 100%
50% - 74.99%
25% - 49.99%
10 - 24.99%
5 - 9.99%
2 - 4.99%
1 - 1.99%
< 1%
[No votes]
0.0%
 
0%   25%   50%   75%   100%

[0 market share comments]
Reasonable Royalty
What percentage of gross sales should the inventor or assignee be paid?
75% - 100%
50% - 74.99%
25% - 49.99%
10 - 24.99%
5 - 9.99%
2 - 4.99%
1 - 1.99%
< 1%
[No votes]
0.0%
 
0%   25%   50%   75%   100%

[0 reasonable royalty comments]
Public's "Guesstimation" of Royalty Value
Market SizeN/A[No votes]
xMarket ShareN/A[No votes]
xReasonable RoyaltyN/A[No votes]

N/A

[0 Guesstimation of Royalty Value Comments]
License Availablity
If you are NOT the owner or assignee, answer here:
Yes, license is available for purchase

No, license is not currently available



[No votes]
[0 license availability comments]
License Availablity
If you ARE the owner or assignee, answer here:
Yes, license is available for purchase

No, license is not currently available



[No votes]
[0 owner/assignee comments]
Competitive Advantage
Does this invention have a significant competitive advantage over similar technologies?
Yes

No



[No votes]
Most helpful competitive advantage comment
[No comments]

[0 competitive advantage comments]
Commercial Alternatives
Are there viable commercial alternatives for this invention?
Yes

No



[No votes]
Most helpful commercial alternative comment
[No comments]

[0 commercial alternatives comments]
 Technical Review Submit all comments and votes
 Claims Submit all comments and votes
 


What is claimed is:

1. An electronic musical instrument comprising:

a primary storage device for storing a data file for the electronic musical instrument, the data file being divided into constituent data portions representing various functions or types of control data used by the electronic musical instrument;

a secondary storage device for storing a plurality of data files each containing a group of data used or produced by the electronic musical instrument, the secondary storage device including:

a file data storage section for storing the constituent data portions that are formed by dividing the group of data in each of the plurality of data files, each of the constituent data portions being identified by entry names,

a file entry storage section for storing, for each data file, a plurality of entry names identifying the constituent data portions constituting the group of data that forms each data file of the plurality of data files, and

an entry management storage section for storing, for each entry name, a number of times that each constituent data portion is used by the plurality of data files, the number of times being used to determine if particular constituent data portions should be written or stored in the file data storage section or deleted when none of the plurality of data files uses the particular constituent data portions, such that only constituent data portions used by at least one of the plurality of data files are stored in the file data storage section of the secondary storage device to thereby minimize the amount of storage space used in the secondary storage device; and

a write control means for making a determination, upon storage of the group of data forming the data file in the secondary storage device, whether any of the constituent data portions are the same as any of the already stored constituent data portions in the secondary storage device, so that when a particular constituent data portion of the constituent data portions is the same as another already stored constituent data portion in the secondary storage device, the write control means uses the same entry name as that of the another already stored constituent data portion for the particular constituent data portion of the data file without causing the secondary storage device to store the particular constituent data portion of the data file, while when the particular constituent data portion of the data file is different from any of the already stored constituent data portions in the secondary storage device, the write control means causes the secondary storage device to store the particular constituent data portion of the data file, and at the same time the write control means uses a new entry name that is different from any of the other entry names of the already stored constituent data portions for the particular constituent data portion of the data file and causes the entry storage section to store an entry name structure with respect to each new entry name.

2. An electronic musical instrument comprising:

a secondary storage device for storing a plurality of files each containing a group of data used or produced by the electronic musical instrument, the secondary storage device including:

a file data storage section for storing constituent data portions that are formed by dividing the group of data in each of the plurality of files, the constituent data portions representing various functions or types of control data that are used by the electronic musical instrument, and each of the constituent data portions being identified by entry names,

a file entry storage section for storing, for each file, a plurality of entry names identifying the constituent data portions constituting the group of data that forms each file of the plurality of files, and

an entry management storage section for storing, for each entry name, a number of times that each constituent data portion is used by the plurality of files, the number of times being used to determine if particular constituent data portions should be written or stored in the file data storage section or deleted when none of the plurality of files uses the particular constituent data portions, such that only constituent data portions included in at least one of the plurality of files are stored in the file data storage section to thereby minimize the amount of storage space used in the secondary storage device; and

file reading instruction generating means for generating a reading instruction to read a designated file; and

a read control means for reading the entry names of the designated file from the entry storage section in response to the reading instruction, and for reading the constituent data portions corresponding to the respective entry names from the secondary storage device.

3. An electronic musical instrument comprising:

a secondary storage device for storing a plurality of files each containing a group of data used or produced by the electronic musical instrument, the secondary storage device including:

a file data storage section for storing constituent data portions that are formed by dividing the group of data in each of the plurality of files, the constituent data portions representing various functions or types of control data that are used by the electronic musical instrument, and each of the constituent data portions being identified by entry names,

a file entry storage section for storing, for each file, a plurality of entry names identifying the constituent data portions constituting the group of data that forms each file of the plurality of files, and

an entry management storage section for storing, for each entry name, a number of times that each constituent data portion is used by the plurality of files, the number of times being used to determine if particular constituent data portions should be written or stored in the file data storage section or deleted when none of the plurality of files uses the particular constituent data portions, such that only constituent data portions included in at least one of the plurality of files are stored in the file data storage section to thereby minimize the amount of storage space used in the secondary storage device; and

a delete control means which operates, upon receipt of an instruction to delete a given file, to read the entry names of the given file from the entry storage section of the secondary storage device to decrease the corresponding number of times stored in the entry management section, and to delete a constituent data portion from the secondary storage device when the number of times for that constituent data portion becomes zero.

4. A secondary storage device for storing a plurality of files each containing a group of data used or produced by an electronic musical instrument, the secondary storage device comprising:

a file data storage section for storing constituent data portions that are formed by dividing the group of data in each of the plurality of files, the constituent data portions representing various functions or types of control data that are used by the electronic musical instrument, and each of the constituent data portions being identified by entry names;

a file entry storage section for storing, for each file, a plurality of entry names identifying the constituent data portions constituting the group of data that forms each file of the plurality of files; and

an entry management storage section for storing, for each entry name, a number of times that each constituent data portion is used by the plurality of files, the number of times being used to determine if particular constituent data portions should be written or stored in the file data storage section or deleted when none of the plurality of files uses the particular constituent data portions, such that only constituent data portions included in at least one of the plurality of files are stored in the file data storage section to thereby minimize the amount of storage space used in the secondary storage device.

5. A secondary storage device according to claim 4, wherein the group of data in the files is automatic performance data, each group of data in the file being divided into the constituent data portions representing various categories of performance data, and in which a different one of a plurality of entry names is used for each of the constituent data portions, and wherein the entry management section of the secondary storage device includes a management table for storing the number of times each of the plurality of entry names is repeatedly used throughout all of the plurality of files in which the performance data is stored.

6. A secondary storage device according to claim 4, wherein the secondary device further includes a floppy disk for storing the data files, the constituent data portions, and the entry names.

7. A secondary storage device according to claim 4, wherein the entry names also designate directories and subdirectories containing the constituent data portions.

8. A method of storing information in a secondary storage device for an electronic musical instrument, the method comprising the steps of:

dividing the information into a plurality of constituent data portions, the constituent data portions representing various functions or types of control data that are used by the electronic musical instrument;

identifying each constituent data portion with an entry name;

storing the information in the secondary storage device as a file among a plurality of files, the file being formed as a list of entry names identifying the corresponding constituent data portions that make up the information;

storing a number of times each constituent data portion is used in the plurality of files that are stored in the secondary storage device; and

deleting all constituent data portions from the secondary storage device that are not contained in any of the plurality of files stored in the secondary storage device.
 Description Submit all comments and votes
 


BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an electronic appliance having a secondary storage device and particularly to an electronic appliance, for example, such as an electronic musical instrument, having a secondary storage device for storing data which can be easily divided into pieces under a plurality of predetermined items.

2. Description of the Related Art

Secondary storage devices such as magnetic tapes, floppy disks, hard disks, optical disks, and the like are widely used in electronic appliances such as computers, electronic musical instruments, and the like. Such a secondary storage device has a predetermined storage capacity. When the quantity of data storage has reached this storage capacity, the storage device becomes impossible to store data any more.

When generated or edited data are to be stored into such a secondary storage device through an input-output device of an electronic appliance or the like, all generated data are stored together with affix data such as file names for identifying the data.

In most cases, the portion to be subjected to alteration is partial in the same group of data, such as a program for controlling a certain electronic appliance, so that portions of the same data overlap each other in a plurality of data. In such cases, the constituent portions of the same data have had to be stored wastefully when different file names are affixed to the data are used.

As described above, a document or a file which is an unit of information treated in such a secondary storage device has been heretofore handled as one unit as a whole, so that portions of the document or file have been not noticed when the portions are written in or read out. Accordingly, information which is different only a portion thereof From other information has been stored as a file which is different from another file of the other information, so that the storage capacity of the secondary storage device has been consumed wastefully.

SUMMARY OF THE INVENTION

An object of the present invention is to provide an electronic appliance having a secondary storage device in which in storing information, the same portion as that of already stored information is not newly stored to thereby make it possible to effectively use the storage capacity of the secondary storage device.

Another object of the present invention is to provide an electronic musical instrument in which the storage capacity of a secondary storage can be used effectively.

According to one aspect of the present invention, provided is a method for controlling information for a secondary storage device, in which data to be stored as one file in the secondary storage device is divided into a plurality of constituent portions under predetermined items, file names are affixed respectively to files, and entry names are affixed respectively to the itemized constituent portions. A file to be newly stored is divided into a plurality of constituent portions under the predetermined items and a judgment is made as to whether any of the constituent portions of the new file is the same as any of the already stored constituent portions of the other file with respect to one and the same item, so that the same entry name is affixed to the same constituent portion without storing the contents of the constituent component in duplication so that the same data is used common to a plurality of files.

BRIEF DESCRIPTION OF THE DRAWINGS

Other features and advantages of the present invention will be apparent from the following description taken in connection with the accompanying drawings, wherein:

FIGS. 1A, 1B and 1C are schematic diagrams showing the basic structure of the present invention, in which FIG. 1A shows the case where writing is made, FIG. 1B shows the ease where reading is made, and FIG. 1C shows the ease where deleting is made;

FIGS. 2A through 2D show an embodiment of the present invention, in which FIG. 2A is a block diagram showing the structure of the system, FIG. 2B is a schematic view showing the structure of the data memory, FIG. 2C is a schematic view showing the structure of the management table, and FIG. 2D is a schematic view showing the structure of the file memory;

FIG. 3 is a flow chart showing the main routine;

FIG. 4 is a flow chart showing the disk format switch routine;

FIG. 5 is a schematic view showing the internal structure of a disk;

FIGS. 6A through 6D are schematic views showing the structure of the data management file, in which FIG. 6A shows the whole structure of the same, and FIGS. 6B through 6D show the partial structures of the same;

FIG. 7 is a schematic view showing the structure of a user file.

FIG. 8 is a schematic view showing the structure of a system RAM.

FIGS. 9A and 9B are flow charts showing a disk operating procedure, in which FIG. 9A shows the disk removal interrupt routine, and FIG. 9B shows the disk insertion interrupt routine.

FIG. 10 is a flow chart showing the play-screen switch-on event routine;

FIG. 11 is a flow chart showing the disk-write-screen switch-on event routine;

FIGS. 12A and 12B are flow charts showing the on event routine on a WD screen, in which FIG. 12A shows the F1/F2-on event routine in the case where the cursor is on a numeric character set, and FIG. 12B shows the F1/F2-on event routine in the case where the cursor is on a name character set;

FIG. 13 is a flow chart showing another form of the on event routine on a WD screen;

FIG. 14 is a flow chart showing the panel data change routine;

FIG. 15 is a flow chart showing the custom tone color write routine;

FIG. 16 is a flow chart showing the setup write routine;

FIG. 17 is a flow chart showing the external style write routine;

FIGS. 18A and 18B are flow charts showing the event routine on an RD screen, in which FIG. 18A shows the F1/F2-on event routine, and FIG. 18B shows the F3-and-F4 simultaneous touch event routine;

FIG. 19 is a flow chart showing the F3/F4-on event routine on an IRD screen;

FIG. 20 is a flow chart showing the F3-and-F4 simultaneous touch event routine on an IRDG screen;

FIGS. 21A and 21B are flow charts showing the processing routine on a DEL screen, in which FIG. 21A shows the F3-and-F4 simultaneous touch event routine and FIG. 21B shows the setup delete routine in the flow chart of FIG. 21A.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

An electronic appliance having a secondary storage device according to a basic embodiment of the present invention will be described hereunder with reference to FIG. 1A. The electronic appliance has: a primary storage device 1 for storing new data divided into constituent portions under a plurality of items; a secondary storage device 2 for storing files each constituted by data divided into constituent portions under a plurality of items; an entry storage device 3 for storing the entry name structure of each file through entry names affixed to the respective itemized constituent portions stored in the secondary storage device 2; and a write control means 4 which operates in a manner so that when new data stored in the primary storage device 1 are to be stored as a file into the secondary storage device 2, the write control means judges whether or not a constituent portion of the new data is the same as that of any of the predetermined items already stored in the secondary storage device 2, so that when the constituent portion of the new data is the same as the constituent portion already stored in the secondary storage device 2, the write control means affixes the same entry name as that of the latter to the former without storing the former into the secondary storage device 2, while when the constituent portion of the new data is not the same as the constituent portion already stored in the secondary storage device 2, the write control means causes the secondary storage device 2 to store the former therein, affixes a new entry name to the former, and causes the entry storage device 3 to store an entry name structure therein.

Further, the electronic appliance having a secondary storage device will be described hereunder with reference to FIG. 1B. The electronic appliance has: a secondary storage device 2 for storing data divided into constituent portions under a plurality of predetermined items, the constituent portions being respectively identified by entry names; an entry storage device 3 for storing a predetermined combination of the itemized data stored in the secondary storage device 2 as a file in the form of a structure of entry names; a primary storage device 1 for newly storing the contents of a file; and a read control means 5 for reading the entry name structure of a file from the entry storage device 3 in response to a file reading instruction and then reading data corresponding to the respective entry names of the entry name structure from the secondary storage device 2 to supply the data to the primary storage device 1.

Further, the electronic appliance having a secondary storage device will be described hereunder with reference to FIG. 1C. The electronic appliance has: a secondary storage device 2 for storing data divided into constituent portions under a plurality of predetermined items, the constituent portions being respectively identified by entry names; an entry storage device 3 for storing a predetermined combination of the itemized data stored in the secondary storage device 2 as a file in the form of a structure of entry names; a management table 7 for storing the number of times by which each data constituent portion stored in the secondary storage device is repeatedly used throughout all files; and a delete control means 6 for reading the entry name structure of a file from the entry storage device 3 in response to a file deleting instruction and then not only deleting the entry name structure of the file in the entry storage device 3 while decreasing the number of times stored in the management table but deleting data from the secondary storage device 2 when the number of times reaches zero.

The repetition of storage of the same constituent portion can be avoided by: diving data stored as a file in the secondary storage device into constituent portions under predetermined items; identifying the respective constituent portions by entry names; and storing each file in the form of an entry name structure.

When data divided under items are stored so that the each data can be used through designating the entry name thereof, a combination of the divided data already stored can be identified easily by the entry name structure.

When data writing is made, the quantity of information to be stored can be reduced by: dividing data to be written under predetermined items; judging whether a divided data is the same as the already stored data with respect to the same item; and using the data in common to the same data.

Each file is constituted by a structure of entry names, so that by reading the entry name structure, reading of data used in common to a plurality of files can be preformed properly.

With respect to file deleting, a management system for storing the number of times by which a data constituent portion is repeatedly used throughout all files is used to prevent the deletion of constituent portions used in common to other files. When the number of times reaches zero the data constituent portions can be deleted because the data constituent portions become unnecessary any more.

As described above, the capacity of the secondary storage device can be used effectively for storing information. This invention is particularly effective in the case where information having a formatted pattern is partially changed and then stored.

Referring to FIG. 2A, there is shown the system structure of the electronic appliance according to an embodiment of the present invention. An electronic musical instrument taken as an example of the electronic appliance will be described hereunder.

A keyboard 11 having a plurality of keys, a CPU 22 for carrying out an arithmetic operation, an ROM 23 for storing programs and the like, an RAM 24 having work memories such as flags, registers, buffers and the like, an operation panel 14 including a display 12 such as a liquid crystal display and panel switches 13 for controlling performance, tone color and the like, a tone generator 26 for generating tone signals, and so on are connected to a bus 21. When a performance is made through the keyboard 11 after a performance environment is set through the operation panel 14, tone signals are formed by the CPU 22, the ROM 23 and the RAM 24 to thereby generate musical tones from a sound system 27 through the tone generator 26.

In this embodiment, further, a disk drive device 15 is connected to the bus 21 through a disk interface 16. The disk drive device 15 is used with a floppy disk 17 inserted therein.

When performance environment control data or the like edited by using the operation panel 14 including a display 12 and panel switches 13 are stored in the floppy disk 17, a wide variety of performances can be made.

However, having a predetermined storage capacity, the floppy disk 17 cannot store a larger quantity of information exceeding its capacity. In most cases, a performance style program or the like requires predetermined kinds of information, so that there is a limitation in novel points on the whole of data when a new performance style is recorded.

Therefore, each file is stored after divided under a plurality of items, in order to avoid the repetition of storage of the same constituent portion.

FIG. 2B schematically shows the structure of a data memory. A file to be stored is divided under a plurality of predetermined items A, B, C, D and E. A new data under one item is stored so that the new data can be identified by another entry name. The entry names may be replaced by directories. For example, under the item B, the entry names or directories B1, B2 and B3 respectively represent different data. Each of these constituent portions can be used in common to a plurality of files.

FIG. 2C schematically shows a management table for managing the situation of use of the respective constituent portions. In this management table, N(A1) represents the number of times by which the data constituent portion A1 is repeatedly used. As described above, the number of times by which each of the data constituent portions stored in the data memory is repeatedly used throughout all files is stored in the management table.

FIG. 2D shows the structure of a file memory. The first file (File 1) is constituted by data A1 under the item A, data B1 under the item B, . . . . Similarly to this, the i-th file (File i) is constituted by data A1 under the item A, data B2 under the item B, . . . . The file memory is constituted simply by entry names, so that the contents of the respective entries can be known by reading from the data memory.

When a new data to be stored, the new data is divided under items and then a judgment is made as to whether the data is the same as an old data already stored with respect to the same item. When the data is the same as the old data, information can be stored, without new storage, by using the entry name already used with respect to the constituent portion. When the data is new, the data is newly stored in the data memory to constitute a file by utilizing the entry name thereof.

The embodiment of the present invention will be described hereunder more in detail with reference to the flow charts.

FIG. 3 shows the main routine of an electronic musical instrument.

When the routine starts, initialization is made in a step S11. This initialization includes initialization in the item of memory management of the Floppy disk.

Then, in a step S12, the ordinary key processing routine (or the like) is carried out in response to the depression of a key in the keyboard 11. At the time of playing, tone signals are generated on the basis of the key processing. In an editing mode, the ordinary key processing routine is not carried out. Here, the keys in the keyboard can be used as information input means.

When a mode is selected from modes such as an editing mode, a writing mode and a reading mode through operating the panel switches 13 (or the like) of the system shown in FIG. 2A, a screen number corresponding to the selected mode is designated and, at the same time, a corresponding indication is made on the display 12. A step S13 shows these procedures.

In a step S14, the situation of the routine is separated according to the screen number GN to start a routine corresponding to the selected mode. In FIG. 3, the screen number GN=0 shows a playing mode in which a play screen process is carried out in a step S15. The screen number GN=1 shows a tone color editing mode in which a voice editing process is carried out in a step S16. Otherwise, a process in the general electronic musical instrument is carried out correspondingly to the value of the screen number GN.

In this embodiment, a process for collectively writing data in the floppy disk is carried out when the screen number GN=i (in a step 17). Further, a collectively reading process is carried out when the screen number GN=i+1 (an a step S18).

The screen number GN=i+2 shows an individually reading mode in which a process for reading individual data is carried out in a step S19. This mode is a mode for making preparation for reading, so that reading is not executed in this mode.

The screen number GN=i+3 shows an execution mode in which reading of individual data is executed in a step S20.

The screen number GN=i+4 shows a deleting mode in which a data deleting process is carried out in a step S21.

Among these processes, processes concerned with storage in the floppy disk are those indicated by the screen numbers GN=i to i+4.

Use of the floppy disk is made by the following method.

FIG. 4 shows a routine in the case where a disk format switch provided on the electronic musical instrument panel is operated. When the disk format switch is operated after a new floppy disk 17 is inserted in the disk drive device 15 in FIG. 2A, the floppy disk is formatted by using a command of MS-DOS in a step S31. After the format is generated according to MS-DOS, in the next step S32, a data management file is generated and, at the same time, initial data are written in the file.

In this embodiment, the data management file is named "MAYONE.EMI". Then, subdirectories are generated to store data under predetermined items (in a step S33). That is, the names of the respective subdirectories are registered in the route directory. The thus generated internal structure of the disk is shown in FIG. 5.

Subdirectories for data management File MAYONE.EMI, user file DESIGN.U##, instrument setup data SETUP, external style data EXTSTL, custom tone color data CUSVCE, custom accompaniment data CUSACMP, voice registration data VCEREG, panel registration data PNLREG, pad assign data PADASS. sequencer song data SONG, etc., are generated in the route directory.

The internal structures of the respective subdirectories will be considered hereunder more specifically.

FIGS. 6A to 6D show the structure of data management file MAYONE.EMI. FIG. 6A shows the total structure thereof. A data management file 39 contains a header (HD) 30, a setup management file (MNG1) 31, an external style management file (MNG2) 32, a custom tone color management file (MNG3) 33, a custom accompaniment management file (MNG4) 34, a voice registration management file (MNG5) 35, a panel registration management file (MNG6) 36, a pad assign management File (MNG7) 37, and a song management file (MNG8) 38.

The header file 30 has such contents as shown in FIG. 6B. That is, the header file 30 contains a file name, a minimum user file number NMIN, a maximum user file number NMAX, a finally written user file number LFILE, and a sample disk flag SDISK.

The seven items of management files MNG1 and MNG3 to MNG8 except the external style management file 32 respectively have such a structure as shown in FIG. 6C. The number of user files using the zero-order data stored in the disk, the number of user files using the first-order data, etc., are stored in the register 41. That is, the number of times by which a data constituent portion stored in the floppy disk is repeatedly used through files is successively stored for each item. The external style management file 32 (MNG2) has such a structure as shown in FIG. 6D. That is, the data ID of the data as well as the number of user files using the data are stored.

The external style data is set up in the factory of the maker, so that the ID is already affixed thereto. The contents of the data can be identified by this ID. Therefore, the ID is contributed to identification of the contents of the data by storing the ID.

The number of user files shown in FIGS. 6C and 6D is managed so that the number of user files is decreased whenever a file using the data is deleted.

If there is no user file using the data, the number, 0, of user files is detected and then the data itself is deleted.

FIG. 7 shows the structure of a user file. The structure of a user file to be stored will be described hereunder in the case where the file has eight items. With respect to the eight items, entries of data used are designated. In FIG. 7, the user file 59 has a setup entry (ENT1) 51, an external style entry (ENT2) 52, a custom tone color entry (ENT3) 53, a custom accompaniment entry (ENT4) 54, a voice registration entry (ENT5) 55, a panel registration entry (ENT6) 56, a pad assign entry (ENT7) 57, and a song entry (ENT8) 58. Entry numbers and data quantities are stored in the positions 51 to 58. Accordingly, both the position from where information is read and the quantity of information to be read can be found in a reading mode.

One item can have one entry data or can have a plurality of entry data. For example, a data of large data size such as an external style data or a custom accompaniment data may have a plurality of entries because it may be impossible to put the data in one entry.

A buffer memory for storing information of the same contents is provided also in the system side of the electronic musical instrument. That is, such a buffer memory structure as shown in FIG. 8 is provided in the RAM of the system. The buffer memory 72 has a first RAM area 61 for storing a setup data, a second RAM area 62 for storing an external style data, a third RAM area 63 for storing a custom tone color data, a fourth RAM area 64 for storing a custom accompaniment data, a fifth RAM area 65 for storing a voice registration data, a sixth RAM area 66 for storing a panel registration data, a seventh RAM area 67 for storing a pad assign data, and an eighth RAM area 68 for storing a song data. The buffer memory 72 further has a disk management work memory area 69, a DOS work memory area 70, and another work memory area 71.

The disk operating routine will be described hereunder in the case where a floppy disk is inserted into the disk drive 15 of the electronic musical instrument or removed from the disk drive 15.

FIG. 9A shows the interrupt routine in the case where a disk is removed. When the floppy disk is removed, in a step S81, zero is set to the flag DISK to indicate that there is no disk in the disk drive.

FIG. 9B shows the interrupt routine in the case where a disk is inserted. When the floppy disk is inserted, in a step S82, 1 set to the flag DISK to indicate that there is a disk in the disk drive.

Then, in a step S83, data of "1" are respectively written in the change flags CF1 to CF8 indicating the changes of the contents in eight RAM areas corresponding to the eight data in the floppy disk. That is, in a state where a floppy disk is inserted, data in the floppy disk are considered to be perfectly different from data in the RAM.

In a step S84, the management file MAYONE.EMI in the floppy disk is read into the body of the electronic musical instrument and stored in the buffer memory MFBUF.

In a step S85, zero is set to the register UFN indicating the user file number.

If information is read from the floppy disk and written in the RAM in the body, corresponding flags CF are changed to "0". When the contents thereof are then rewritten, the flags CF are changed to "1" again. A judgment can be made by the flags CF as to whether information in the floppy disk is the same as the information in the RAM. That is, this judgment can be made easily by discriminating the flags CF between "0" and "1" without actually comparing data.

Then, a judgment is made as to whether the same information exists when information is written in the RAM. A routine will be described hereunder with reference to FIG. 10 in the case where a play screen switch