CN101916576B - Method for automatically playing background music - Google Patents
Method for automatically playing background music Download PDFInfo
- Publication number
- CN101916576B CN101916576B CN201010258120.3A CN201010258120A CN101916576B CN 101916576 B CN101916576 B CN 101916576B CN 201010258120 A CN201010258120 A CN 201010258120A CN 101916576 B CN101916576 B CN 101916576B
- Authority
- CN
- China
- Prior art keywords
- background music
- music
- file
- prospect
- electronic product
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention is applied to an electronic product, and provides a method for automatically playing background music. The method comprises the following steps of: a, establishing an association relationship between a read object and the background music, and storing the association relationship between the read object and the background music in the electronic product; and b, searching the background music associated with the current read object, and calling the related background music for playing. Through the technical scheme, a user can read a file through the electronic product, and the electronic product automatically plays the specified background music without manual switch of different music files; and aiming at different chapters, paragraphs or positions of the same file, the electronic product can automatically play different music, play excited music in a climactic circumstance, and play profound music in a calm circumstance so as to really combine the background music with the read content and achieve better reading effect.
Description
Technical field
The invention belongs to electronic technology field, relate in particular to a kind of method of automatically playing background music.
Background technology
For meeting the demand of user's audiovisual aspect, increasing electronic product has possessed read function, user can read as e-book, news reading, picture browsing etc. by read function, and music player functionality, as mobile phone, MP4 etc., user also can pass through these electronic product music appreciatings, or in reading file music appreciating.
But in the time using reading and music player functionality, there is more inconvenience in existing electronic equipment, if listened to the music in mobile phone e-book as user's hope, can only be first to open music program, then start electronic reading program; If user wants to change the melody of playing in the process of reading electronic book, must be manually switched to music player program from current electronic reading program, and then search, select new melody, complex operation inconvenience.
And how electronic product is for different objects being read, the music that Automatically invoked is different, is still open question of prior art.
Summary of the invention
The object of the present invention is to provide a kind of method of automatically playing background music, be intended to solve the problem of the electronic product background music that broadcasting user specifies automatically in the time reading.
The present invention is achieved in that a kind of method of automatically playing background music, and described method comprises:
A, set up the incidence relation between object being read and background music, the incidence relation between this object being read and this background music is stored in this electronic product;
B, search the background music associated with current object being read, call this associated background music and play.
More specifically, wherein step a specifically comprises:
A1, call background music according to user instruction interface is set, form prospect listed files according to the supported all objects being read of this electronic product electronic reading program and show, receive user and choose the steering order of a certain file from this prospect listed files;
A2, form background music list according to the supported all music files of this electronic product music program and show, receive user and from this background music list, choose a certain music file steering order of music as a setting, set up the incidence relation between this background music and this prospect file, the incidence relation between this background music and this prospect file is stored in this electronic product.
More specifically, wherein step a specifically comprises:
A1, call background music according to user instruction interface is set, forming prospect listed files according to the supported all objects being read of this electronic product electronic reading program shows, receive the steering order that user chooses a certain file from this prospect listed files, show this prospect file content;
A02, reception user choose the steering order of chapters and sections, paragraph or position from this prospect file content, forming background music list according to the supported all music files of this electronic product music program shows, receive user and from this background music list, choose a certain music file steering order of music as a setting, set up the incidence relation between this background music and chapters and sections, paragraph or the position of this prospect file, the incidence relation between this background music and chapters and sections, paragraph or the position of this prospect file is stored in this electronic product.
More specifically, the described incidence relation by between this background music and chapters and sections, paragraph or the position of this prospect file stores in this electronic product and specifically comprises:
The chapters and sections of this prospect file, paragraph or position are recorded as to the offset word joint number of this prospect file reference position relatively, record store path and the filename of this background music, by this offset word joint number and this store path and a structure of filename composition.
More specifically, described chapters and sections, paragraph or position are two or more, by two or more chapters and sections of this prospect file, paragraph or position are recorded as respectively the offset word joint number of this prospect file reference position relatively, record respectively this two or more chapters and sections, store path and the filename of background music corresponding to paragraph or position, respectively by two or more chapters and sections, offset word joint number corresponding to paragraph or position forms a structure with corresponding store path and filename, be aligned in an array by the ascending order of offset word joint number.
More specifically, wherein step b specifically comprises:
B1, check that this is current by the current reading position of reading file, calculate that it is current by the offset word joint number of reading file reference position with respect to this, search associated background music according to this offset word joint number, call this associated background music and play.
More specifically, described electronic product is mobile phone.
The present invention overcomes the deficiencies in the prior art, provide a kind of method of automatically playing background music: set in advance different objects being read and the incidence relation of music, in the time that user reads object being read by the read function of electronic product, electronic product is according to the process of reading, the music music as a setting that Automatically invoked is associated with current object being read.By technical scheme provided by the invention, user can be when by electronic product reading file, and electronic product will be play the background music of appointment automatically, does not need the different music file of manual switchover; For different chapters and sections, paragraph or the position of identical file, electronic product can also be play different music automatically, and plot climax place is equipped with impassioned melody, and plot locates to be equipped with exquisite poems melody low time, thereby background music is combined with the content of reading veritably, reach better reading effect.
Accompanying drawing explanation
Fig. 1 is the prospect that arranges file and the background music incidence relation process flow diagram of the embodiment of the present invention;
Fig. 2 is that associated context music process flow diagram is called in the electronic reading program broadcasting of the embodiment of the present invention.
Embodiment
Technical scheme provided by the invention is: set in advance different objects being read and the incidence relation of music, in the time that user reads object being read by the read function of electronic product, electronic product is according to the process of reading, the music music as a setting that Automatically invoked is associated with current object being read.
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In the embodiment of the present invention, object being read comprises the object that can read by electronic product, as e-book, and news and picture etc.; Different objects being read comprises dissimilar reading object, as e-book and picture, also comprise the reading object of same type, as the e-book of different names, also comprise the different reading positions of same reading object, as the different chapters and sections of same novel or different paragraph.
In the embodiment of the present invention, electronic product describes as an example of mobile phone example, other electronic products to realize principle identical, those of ordinary skills are without implementing through creative work, this does not repeat.
When specific implementation technical solution of the present invention, first need to set up the incidence relation of different reading objects and music, specific implementation process as shown in Figure 1:
1, the steering order that receives user's input, enters background music interface is set;
2, form prospect listed files according to the supported all objects being read of this mobile phone electronic read routine and show, select for user;
3, reception user chooses the steering order of a certain file from prospect listed files, shows this prospect file content;
4, form background music list according to the supported all music files of this mobile phone music playing program and show, select for user;
5, receive user and from background music list, choose a certain music file steering order of music as a setting, set up the incidence relation between this background music and this prospect file, by the incidence relation storage between this background music and this prospect file;
Does is 6, this prospect file last file in this prospect listed files, or receives user and exit background music and arrange the steering order at interface? if so, process ends; Otherwise go to step 7;
7, display foreground listed files again, goes to step 3;
In step 3, when the prospect file displaying contents of choosing as user is presented at mobile phone display screen, user can also browse the content of this prospect file, from this prospect file content, choose specific chapters and sections, paragraph or position, then perform step 4, like this, mobile phone is by the incidence relation of setting up between the background music that the specific chapters and sections of this prospect file, paragraph or position and user choose, user can repeat above-mentioned step, for choosing different background musics in different chapters and sections, paragraph or the position of same prospect file.
If user has only selected a background music for same prospect file, namely set up the incidence relation between prospect file and background music according to the mode shown in Fig. 1, the mode of storing the incidence relation between prospect file and its background music of choosing can be: record the corresponding relation between the store path of prospect file and the store path of background music.In incidence relation between prospect file and background music, same prospect file can only a corresponding background music, and different prospect files can corresponding same background music.
If background music has been chosen respectively in different chapters and sections, paragraph or position that user is same prospect file, the mode of the incidence relation between chapters and sections, paragraph or the position of storage prospect file and the background music of choosing has multiple, one of them is that the chapters and sections of prospect file, paragraph or position are recorded as to the offset word joint number of this prospect file reference position relatively, background music records its store path and filename, both form a structure, are aligned in an array by the ascending order of offset word joint number.Each prospect file that was set up background music can produce such array, is saved in a configuration file of but different suffix of the same name from prospect file.In different chapters and sections, paragraph or the position of same prospect file and the incidence relation of background music, specific chapters and sections, paragraph or the position of same prospect file can only a corresponding background music, and different chapters and sections, paragraph or the position of same prospect file can corresponding same background music.
After completing above-mentioned setting, in the time that user opens a certain prospect file by electronic reading program, if user has only selected a background music for this prospect file, the music program of mobile phone will be searched the background music that this prospect file is corresponding by the incidence relation of storage, calls the background music of storage and plays.
If user has selected respectively background music for different chapters and sections, paragraph or the positions of this prospect file, the music program of mobile phone is carried out step as shown in Figure 2:
1, there is there the background music configuration file of the same name with the prospect file of working as front opening? if have, go to step 2, otherwise process ends;
2, open this background music configuration file, current reading position P=0 is set, inspected item number N=0;
3, check current reading position P, calculate its offset word joint number X with respect to this prospect file reference position;
Will 4, in X and above-mentioned configuration file, shine upon the offset word joint number Y comparison of N item of array, X >=Y? if so, go to step 5, otherwise go to step 6;
5, play background music filename background music pointed in N item, N+1, goes to step 6;
Are 6, user's page turning or mobile cursor still closed prospect file? if user's page turning or mobile cursor, change current reading position (being P+1), go to step 3, if user closes prospect file, this secondary program is carried out and is finished.
As mentioned above, by technical scheme provided by the invention, user can pass through electronic product reading file, and electronic product will be play the background music of appointment automatically, does not need the different music file of manual switchover; For different chapters and sections, paragraph or the position of identical file, electronic product can also be play different music automatically, and plot climax place is equipped with impassioned melody, and plot locates to be equipped with exquisite poems melody low time, thereby background music is combined with the content of reading veritably, reach better reading effect.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (5)
1. a method for automatically playing background music, described method comprises:
A, set up the incidence relation between object being read and background music, the incidence relation between this object being read and this background music is stored in electronic product;
B, search the background music associated with current object being read, call this associated background music and play;
Wherein step a specifically comprises:
A1, call background music according to user instruction interface is set, form prospect listed files according to the supported all objects being read of this electronic product electronic reading program and show, receive user and choose the steering order of a certain file from this prospect listed files;
A2, form background music list according to the supported all music files of this electronic product music program and show; receive user and from this background music list, choose a certain music file steering order of music as a setting; set up the incidence relation between this background music and this prospect file, the incidence relation between this background music and this prospect file is stored in this electronic product;
Described step a also comprises:
A01, call background music according to user instruction interface is set, forming prospect listed files according to the supported all objects being read of this electronic product electronic reading program shows, receive the steering order that user chooses a certain file from this prospect listed files, show this prospect file content;
A02, reception user choose the steering order of chapters and sections, paragraph or position from this prospect file content, forming background music list according to the supported all music files of this electronic product music program shows, receive user and from this background music list, choose a certain music file steering order of music as a setting, set up the incidence relation between this background music and chapters and sections, paragraph or the position of this prospect file, the incidence relation between this background music and chapters and sections, paragraph or the position of this prospect file is stored in this electronic product.
2. method according to claim 1, is characterized in that, the described incidence relation by between this background music and chapters and sections, paragraph or the position of this prospect file stores in this electronic product and specifically comprises:
The chapters and sections of this prospect file, paragraph or position are recorded as to the offset word joint number of this prospect file reference position relatively, record store path and the filename of this background music, by this offset word joint number and this store path and a structure of filename composition.
3. method according to claim 2, it is characterized in that, described chapters and sections, paragraph or position are two or more, by two or more chapters and sections of this prospect file, paragraph or position are recorded as respectively the offset word joint number of this prospect file reference position relatively, record respectively this two or more chapters and sections, store path and the filename of background music corresponding to paragraph or position, respectively by two or more chapters and sections, offset word joint number corresponding to paragraph or position forms a structure with corresponding store path and filename, be aligned in an array by the ascending order of offset word joint number.
4. according to the method described in claim 2 or 3, it is characterized in that, wherein step b specifically comprises:
B1, check that this is current by the current reading position of reading file, calculate that it is current by the offset word joint number of reading file reference position with respect to this, search associated background music according to this offset word joint number, call this associated background music and play.
5. method according to claim 1, is characterized in that, described electronic product is mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010258120.3A CN101916576B (en) | 2010-08-19 | 2010-08-19 | Method for automatically playing background music |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010258120.3A CN101916576B (en) | 2010-08-19 | 2010-08-19 | Method for automatically playing background music |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101916576A CN101916576A (en) | 2010-12-15 |
CN101916576B true CN101916576B (en) | 2014-06-25 |
Family
ID=43324065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010258120.3A Expired - Fee Related CN101916576B (en) | 2010-08-19 | 2010-08-19 | Method for automatically playing background music |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101916576B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853537B (en) * | 2012-12-03 | 2017-07-21 | 华为技术有限公司 | Play method, the device of background music |
CN104866186B (en) * | 2014-02-20 | 2018-08-10 | 联想(北京)有限公司 | A kind of word playback method and electronic equipment |
CN104166689B (en) * | 2014-07-28 | 2018-04-06 | 小米科技有限责任公司 | The rendering method and device of e-book |
CN104598612B (en) * | 2015-01-30 | 2017-11-07 | 广东欧珀移动通信有限公司 | Synchronous method and device that playback of songs is shown with big envelope picture |
CN105045772A (en) * | 2015-06-29 | 2015-11-11 | 盛玉伟 | Method for adding music in electronic books and reading device |
CN104991708B (en) * | 2015-07-22 | 2018-04-10 | 北京奇虎科技有限公司 | Electronic reading device and its reading scene adaptive collocation method |
CN106708894B (en) * | 2015-11-17 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Method and device for configuring background music for electronic book |
CN106940636A (en) * | 2017-02-23 | 2017-07-11 | 咪咕音乐有限公司 | A kind of audio frequency playing method and device |
CN106897435A (en) * | 2017-02-28 | 2017-06-27 | 深圳天珑无线科技有限公司 | Terminal control method and device |
WO2018218659A1 (en) * | 2017-06-02 | 2018-12-06 | 深圳市华阅文化传媒有限公司 | Method and device for page being read to play back background sound |
CN112044053B (en) * | 2020-09-03 | 2022-05-17 | 腾讯科技(深圳)有限公司 | Information processing method, device, equipment and storage medium in virtual scene |
CN113517010A (en) * | 2021-08-03 | 2021-10-19 | 广州酷狗计算机科技有限公司 | Calling method and device of music playing function, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1412687A (en) * | 2001-10-17 | 2003-04-23 | 英业达集团(南京)电子技术有限公司 | Device capable of playing background music and reading electronic book aloud and its method |
CN101719058A (en) * | 2009-11-27 | 2010-06-02 | 上海理工大学 | Text reading method with music background |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001093261A1 (en) * | 2000-06-01 | 2001-12-06 | Hanseulsoft Co., Ltd. | Apparatus and method for providing song accompanying/music playing service using wireless terminal |
-
2010
- 2010-08-19 CN CN201010258120.3A patent/CN101916576B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1412687A (en) * | 2001-10-17 | 2003-04-23 | 英业达集团(南京)电子技术有限公司 | Device capable of playing background music and reading electronic book aloud and its method |
CN101719058A (en) * | 2009-11-27 | 2010-06-02 | 上海理工大学 | Text reading method with music background |
Also Published As
Publication number | Publication date |
---|---|
CN101916576A (en) | 2010-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101916576B (en) | Method for automatically playing background music | |
US20100225809A1 (en) | Electronic book with enhanced features | |
US8732611B2 (en) | Graphical user interface for mobile electronic device | |
CA2628946C (en) | Methods for characterizing content item groups | |
US20090063542A1 (en) | Cluster Presentation of Digital Assets for Electronic Devices | |
US20130007617A1 (en) | Media Player Navigation | |
CN101609707B (en) | Information processing apparatus and information processing method | |
CN101689206A (en) | System and method for generating a thumbnail image for an audiovisual file | |
CN102981873A (en) | Displaying method and device for waiting interface | |
RU2008150843A (en) | GRAPHIC DISPLAY | |
CN101853120A (en) | Method and system for presenting control menu of application program and mobile terminal | |
CN103051807A (en) | Method and device for displaying contact information and mobile terminal | |
CN102045439A (en) | Method and device for browsing album with mobile terminal | |
CN103442299B (en) | A kind of display methods for playing record and electronic equipment | |
CN103902184A (en) | Electronic equipment, and method and device for controlling electronic equipment | |
CN101799994A (en) | Voice note recording method of e-book reader | |
CN103577230A (en) | Display method of intelligent dynamic tabletop, and intelligent terminal | |
CN101465146B (en) | Method and equipment for playing media file | |
CN102905185B (en) | The method of full voice control HTML5 video playback | |
CN103500234B (en) | A kind of multimedia file downloading method and electronic equipment | |
CN102819577B (en) | The function control method associated with file attribute and device | |
CN102404643A (en) | Television web browser navigation method, device and television | |
WO2012040847A2 (en) | Actionable media items | |
CN101600024B (en) | Mobile terminal and method for displaying play list in player | |
CN101807137B (en) | Display method and device of electronic book in mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140625 |
|
CF01 | Termination of patent right due to non-payment of annual fee |