
The story goes about a fake startup. Unreal - mainly due to the fact that the creation took 7 years (with interruptions and creative crises). And, before you go into nostalgia, immediately link to the
demo song .
Some more n-years ago, this could have been called a midi editor, but who already remembers that once everyone sat on a dial-up? Midi support in browsers was always there, but in order to determine the current playback time you had to sell your soul to the devil, and if you have Linux, admit how many midi playback is configured?
What happens now every time you press the play button:- Browser slips approximately the address for mp3shki vospoizvedeniya: rockby.net/online_group/play_org/258517_0_0_1_25_119_63_0/258518_0_0_3_33_127_63_0/258519_0_0_5_25_111_63_0/258520_0_0_10_0_95_63_0/258521_0_0_7_66_103_63_0/258522_0_0_9_30_103_63_0/258523_0_0_12_40_127_63_0/258524_0_0_14_73_71_63_0/200621_0_0__---_0.21032168420673802.mp3
- The browser, of course, thinks that this is just an mp3, but the server thinks otherwise.
what does the server doIt runs PHP, which parses the URL, takes the necessary parameters of the tracks (volume, etc.), listens to the song, connects to MySQL, selects all the notes for this song with all the parameters, forms a midi file that, using sound banks and small The amount of magic is converted to an mp3 file.
')
Moreover, mp3 is formed and given away as the song is played. If you form the whole song at once - it will be unpardonably long to wait for the first sound. Yes, and the server will not withstand such bullying. It is not known why this whole chain, including the PHP / MySQL stage, passes instantly, even despite the tables of notes, in which more than 200 million records have already accumulated.
- flash or html5 player monitors the current position of the mp3 playback and proceeds from this the cursor is drawn, simultaneously recalculating the absolute values of seconds into relative values of the midi positions
These are the fights of technology taking place on the project:- Midi vs MP3 - wins MP3 (for a beautiful and, most importantly, the same sound for all platforms, better support in browsers)
- HTML + CSS vs Canvas - wins HTML + CSS (for picture quality, scaling and simplicity)
- gif / jpeg vs CSS3, Canvas, SVG - beats CSS3, Canvas, SVG (for flexibility)
- Canvas vs SVG - beats Canvas (for better support in browsers)
- Pushlet vs Websocket - beats socket.io :)
- TCL vs Node.js - wins node.js (for the syntax familiar from childhood, as well as community support and the number of modules)
- Premature optimization vs OOP - defeats OOP (each note is an object)
- IE6 vs all - everyone wins :)
7 years ago flash dominated, and Javascript was a completely non-standard choice for such functionality. It was decided to do what I understand more. The years have passed, and now Javascript is gaining incredible popularity, which helps to use various pleasant innovations.
When playing the same sound, Flash will download html5, which will work only when flash is disabled. Why? Flash reacts faster, dispenses with Content-Length divination (we don’t know it for sure) and almost never fail.
html5 - does it work everywhere, even on mobiles?This is not true. It turned out that only Firefox on Android behaves like its desktop version. For other browsers you need a good file. It is possible that the situation is improving, but a huge army of devices with version 2.3.6 spoils everything.
What the editor can do after all:- play the notes of 128 instruments
- understand the rules of musical notation, including additional lines, sharps / flat / bekara, alteration keys, duration (standard and random), bands
- correctly draw notes in tact, take into account the tonalities, change dimensions
- write together
- revisions create, play previous versions of songs
- slow down
- work in tablature mode
- import Guitar Pro gtp, gp3, gp4, gp5 files
- transfer, copy, delete groups of notes
- chat, ban and stuff
What's next?While I will raise my daughter and compose children's songs :)
RockBy.Net was created in the time free from the main work, where he managed to reach the coordinator of the department, and even became almost a true service station for an English company, but .... as the saying goes, the soul wants to sing.
So much effort has been expended, hundreds of unique solutions have been thought out and verified, but all of them concern only the field of development, the field of marketing is still a mystery.
So if you have ideas - write!
PS
Here - you can see / listen to the results of folk art