Share your repls and programming experiences

← Back to all posts
🎵 📦 Music Box Editor 📦 🎵
Anthony_Tonev (80)

A simple editor for creating music box melodies with an animated music box that "plays" them for you.

Very basic:
Just click on the diamonds to generate a note and press play. There are some featured melodies included.

NEW: Create a BoxHub account and share your boxes:
https://Box-hub--anthony-tonev.repl.co

The note sounds are from https://freesound.org/people/UbikPhonik/

Tech used :

Make sure you tune-up the box when first loading to cache the sounds and make sure they are loaded.

Features:
-edit notes
-play speeds
-save notes and load notes
-generate random notes
-tuning up the music box
-copy notes from sheet and auto-paste on next sheet
-add new block "+" and delete block "-" or press "++" to generate N blocks from input and "clear" to delete all.
-move notes with arrows
-toggle hold notes
-piece fast preview
-two blocks animating preview modes - show one block at a time or all blocks being visible while playing
-listen to the music only (radio icon) - remove all heavy matrix elements and generate a music output
-mixing notes - combine two or more pieces.
-build-in tunes: Ode of Joy, Twinkle Twinkle Little Star, Star Wars Theme, Jurassic Park Theme, Elf Song.

Bonus features:
--save notes to a database https://musicboxdb-2--anthony-tonev.repl.co/

My idea was to write an app that is simple enough to be beginner-friendly so anyone can learn to write simple music pieces without knowing complex note notations and also have an open-source note sharing system where users build melodies on top off or inspired by other users melodies.

Works best on a desktop with chrome in full-screen repl view.

I've added a guide that explains most of the stuff: https://docs.google.com/document/d/1VuNxjiUfA3SQPqONgDC-7V46lHGHZw3rfcvPiS7jNRI/edit?usp=sharing

Here are some gifs that try to explain the rest of the stuff:



Navigate on the block with the arrows or swap between adjacent blocks or cross between adjacent blocks (there were some bugs with these - most are fixed - there is one know bug where notes in perfect vertical line will merge when doing the cross matrix thing - but making holes on them will allow them to cross)

Mix different projects by chaining their notes together - very useful if you want to create a playlist or if you want to work in parts to reduce memory consumption.

Navigate from top to bottom when loading, previewing and editing by pressing the elevator buttons.

Radio player - Press the radio icon to generate the music and DELETE the blocks with their notes and editing panels ( they can be generated again via the load button). If all you want to do is listening to your creation then you don't need all that 15x15 matrix stuff - this mode is the player part of the editor.

The fast preview feature: Preview notes at 2x speed of the current delay value. After that, it will reset back to normal speed. Sometimes you will want to preview faster to find bad notes. In that case, you don't want to switch delay all the time - just included a button for it.

Change note delay type

Issues :

  • Lack of phone support.
  • Not working in Edge.
  • Adding and removing blocks is scrolling off.
  • Too many features - after hackathon deadline ends I will try to trim it a bit.

Huge thanks to ebest and vedprad1 for the amazing content they have created - I will not be able to compose such awesome music even if I'm using professional tools. Also greatly appreciate their and everyone else's issue reports and feedback. ay

Commentshotnewtop
vedprad1 (819)

I now see one more problem (sorry if I am annoying you):
I tried to enter the name of the original composer for a new entry, but the letters "Wang" were replaced with 4 Hearts.

Anthony_Tonev (80)

@vedprad1 No problem - I'm happy for receiving issue reports.
Yes I saw your post in the DB monitor. The issue is that I've added a bad words checkers since I wan't to avoid disqualification if someone wants to add bad words in the DB for people to read hate speech. So I censor them with ❤️.

Yet a lot of names can mean a bad thing in eng. For instance the word "book" in my home language will appear like "k❤️❤️❤️❤️❤️".

For now I will monitor these stuff and will fix them manually. I will add the words for inspection somewhere in the db.

I've fixed the name of the author. Great piece by the way!

vedprad1 (819)

@Anthony_Tonev : Thanks!
That's actually a good idea, to make a bad words checker!

Anthony_Tonev (80)

@vedprad1
I use this open lib https://www.npmjs.com/package/bad-words

A data base can be a great power to have but like all great powers it's also a great responsibility!

vedprad1 (819)

I noticed another problem:
I submitted a song into the database, and once I did, it appeared in the database.
However, it is not appearing now.

Anthony_Tonev (80)

@vedprad1 I will investigate - this is a very new one.

Anthony_Tonev (80)

@vedprad1 Ok I have tested now - added one melody and I will see if it gets erased after the server falls asleep. I'm saving them to a file but maybe there is some update msg or something that the editor promps the app. I have closed all instances of repl editor. Thank you for the bug reports.

Anthony_Tonev (80)

@vedprad1 After some testing - I've noticed data missing.. I have found an article stating that files are not being updated properly on the editor itself

https://repl.it/talk/ask/Files-dont-update-in-editor-after-writing/14540 .
https://repl.it/feedback/p/files-created-from-cli-dont-appear-in-tree

I will figure out some firebase db backup I guess.

UPDATE:

Added a firebase database - now everything is saved on the cloud where no data can be lost. I have removed the clumsy local database and I can even monitor the incoming uploads from the firebase console.
I'm so pissed that I've lost so much time on a data base integration which is not even a part from my submission because it is a separate repl, but what can you do... At least data can be stored.

Thanks again for point this out - I would have never figure out such problem existed since I've updated the app in the editor and thus "semi-manually" saved the file.

vedprad1 (819)

@Anthony_Tonev : Actually, yes problem. I still don't see all the songs in the database.

e.g. The Jurassic Park Theme is missing. So is the London Bridge Song. And Arthur's Theme.

Anthony_Tonev (80)

@vedprad1 there are 3 rules regarding posts -

1 Providing arranger name,
2 piece has to be ending with 'grand' or 'mini' - this is done automatic when played within the editor (tells player what size is the piece) but I've added it as a feature at sunday. Jurassic Park has to have ',grand' at the end,
3The third rule checks if the music has a proper notes format. I have removed the last rule now.

Just added 5 test pieces - seems to be working.

vedprad1 (819)

Wow! This is pretty good!
I probably just have one problem regarding this: The software is very hard to use on an phone or tablet, although you probably designed this for computer only.
If you want, you could add the following music into the collection:

Jurrassic Park Theme
Originally by John Williams
Arranged by @vedprad1
1a-1,1e-1,1i-1,1m-1,1a-3,1e-3,1i-4,1m-4,1a-5,1e-5,1i-6,1m-6,1h-7,1a-8,1g-8,1i-8,1o-8,1m-11,2b-1,2j-1,2n-1,2f-2,2b-3,2j-4,2n-4,2b-5,2f-5,2j-6,2n-6,2a-7,2b-8,2e-9,2f-9,2i-11,2j-11,3a-1,3i-1,3c-2,3k-2,3o-2,3a-3,3i-3,3a-5,3c-5,3g-5,3i-5,3k-5,3o-5,3f-7,3b-8,3j-8,3c-9,3k-9,3a-10,3i-10,4b-1,4d-1,4h-1,4l-2,4b-3,4h-3,4d-4,4b-5,4h-5,4l-5,4d-6,4c-8,4k-9,4l-9,4g-10,4h-10,4d-11,4b-12,5e-1,5i-1,5m-1,5c-2,5e-3,5g-3,5m-3,5n-3,5i-4,5k-4,5c-5,5e-5,5g-5,5m-5,5o-5,5i-6,5k-6,5g-8,5k-9,5i-11,5g-12,5o-12,5d-14,5l-14,5c-15,5e-15,5k-15,5m-15,6f-1,6h-1,6j-3,6l-3,6b-4,6d-4,6n-4,6f-5,6h-5,6j-5,6l-5,6b-6,6d-6,6n-6,6a-8,6d-8,6l-8,6b-11,6n-11,6j-12,6e-14,6f-14,6d-15,6g-15,7g-1,7i-1,7k-1,7o-1,7c-2,7e-2,7m-2,7g-3,7i-3,7o-3,7k-4,7c-5,7e-5,7g-5,7i-5,7m-5,7o-5,7k-6,7i-8,7o-8,7m-9,7k-11,7c-12,7f-14,7e-15,7g-15,8d-1,8h-1,8d-3,8h-3,8d-5,8h-5,8d-8,8h-8,8d-10,8h-10,8d-12,8h-12,8d-15,8h-15,9a-1,9c-1,9i-1,9n-1,9e-2,9g-2,9k-3,9m-4,9o-4,9a-5,9c-5,9j-5,9l-5,9e-6,9g-6,9b-8,9e-9,9c-12,9l-12,9f-13,9m-13,9h-14,9k-14,9i-15,10h-1,10j-1,10l-1,10a-2,10n-2,10d-3,10f-3,10j-3,10l-3,10b-4,10h-4,10d-5,10j-5,10l-5,10n-5,10h-6,10f-7,10k-8,10l-9,10f-10,10g-10,10m-10,10n-10,10e-12,10h-13,10d-14,10c-15,10i-15,11c-1,11g-1,11k-1,11o-1,11a-2,11g-3,11k-3,11o-3,11a-5,11c-5,11g-5,11k-5,11o-5,11c-8,11g-8,11k-8,11o-8,11a-9,11g-10,11k-10,11o-10,11g-12,11k-12,11o-12,11g-15,11k-15,11o-15,

Good job!

AAnonymity (1)

@vedprad1 : Great theme!

@Anthony_Tonev : I have seen another issue. When you try to put in the "sheet music" for previous projects into the load area, it only loads one "thing" at a time (I do not know what it is called). You have to add the correct number of boxes for it to entirely load.

Anthony_Tonev (80)

@AAnonymity Yes I don't keep boxes info - I plan to save the project into a database where I will keep the info for the number of boxes same as I do with the record collection.

For now the only way to load previous projects is with '++' button, on the left there is an input area where you can specify how many blocks you need and it will create that many boxes - then load peace.

I have yet to write documentations about these stuff...

Anthony_Tonev (80)

@vedprad1 Wow thank you - Ofc I will add it. What is the optimal delay for it?

And yes, sadly - I develop it for pc first. For phone the best way to use it for now is by clicking desktop site check in browser burger menu.

Anthony_Tonev (80)

@vedprad1 Just added it - great peace. It is set on 332 delay for now.

vedprad1 (819)

@Anthony_Tonev : 332 is perfect. Glad you liked it!

JideOlatunji (4)

PLEASE ADD THE SONG 'RAN' BY DEJI. HE'S MY SON PLEASE.

Anthony_Tonev (80)

@JideOlatunji Sure thing - just send me the notes data here or post it in the database and I will feature it.

Mendelevium (32)

This is so neat. Wow

Anthony_Tonev (80)

@Mendelevium Thanks, I still enjoy creating simple melodies with it and then spend hours to come up with a name for the piece

Mendelevium (32)

@Anthony_Tonev, like you I am musical as well,
I have not had any time to play with it, but I am looking forward to it.
Where did you learn your HTML/JS skills?

Anthony_Tonev (80)

@Mendelevium I've studied 2d Computer Animation and started learning animating with expressions and scripting for After Effects to further enhance my skills. It was fun so I continued learning more programming by my self. I was hired to do an animation app and I still work on that. Working with js/html and node everyday for one year now.

Mendelevium (32)

Wow, @Anthony_Tonev! That is so cool!
I am a beginner in python, HTML, and Java Script.
Any advice for people trying to learn computer languages?

Anthony_Tonev (80)

@Mendelevium

Pick one main language and => {

Focus on algorithms and solve programming challenges from bunch of free sites online (try solving problems you've solved with two loops but instead with one loop);

Learn both functional and object oriented concepts (both are very useful in different cases - avoid "this way vs that way" opinions;

Learn math;

//The skills above don't build apps on their own but help you to think and find better solutions.

Very important - learn how to use JSON (it is an amazing data format and can get you far ahead);

But most importantly - have personal projects to help you learn. Include ONE technology or concept that you want to try out (like socket.io, or hosting on heroku, using a library, local file system, electron, using machine learning model etc.) Once you FINISH one project - it is finished when it can be used for its purpose and has no known bugs, then start another one but this time include ONE new technology or concept.

//Since 50% of programming is setting up stuff, reading documentations and debugging code that is not written by you - the idea here is that you get used to this.

}

Do this for an year -> archive all finished projects -> repeat the same process for another year -> collect second year projects in a portfolio

Mendelevium (32)

@Anthony_Tonev, Thanks!
my main language is python so this helps a lot.

johnstev111 (5)

Hello. I went to BoxHub, I created a tune, then realised I had inserted the wrong note sequence. Then I went and updated the box, then the page didn't render correctly, as in the the container boxes were all over the place. The tune is one I made up, in the generator. The name of the tune is "A step in". I also found that the note sequence had been updated, just something got messed up. Here is a screenshot:

Anthony_Tonev (80)

@johnstev111 Thanks for the report- I will see what got wrong. This thing is from yesterday - so it might have some bugs but data will never be lost.

I've noticed that you missed to include a keyword -ID I use that so you can give your box projects names and then update and access them via these keywords. They appear in Box menu when you load boxes from the database. Just a lazy way to add selecting projects for now.

See here: "/" are separators of all the box keyword IDs that I have (all of my existing projects). When I type one there and press view it will load the data for the specific one and I should be able to edit it with the update button.

I've added a keyword for your one - it is just the word 'steps'.

But if you wish I can change it.

Anthony_Tonev (80)

@johnstev111 I think I've fixed the style issue. They should look good now. I used the keywords as part of their IDs but now I've generated hashes for DOM elements IDs.
Also just checked it - Nice melody, thanks for the submission :)

Anthony_Tonev (80)

@ebest I have added your idea for the different hold notes. Kept the old one too, but it is has a star icon now.

johnstev111 (5)

@Anthony_Tonev I find that the star icon can sometimes glitch out, like making the tune repeat over and over, and not playing at all. I find that 🔶1.0 works instead.

Anthony_Tonev (80)

@johnstev111 Yes - ⭐s are the only notes that use simple html audio and thus fail to load on a first run. This might cause it to fail and break. the editor. Not sure.
I can't erase the star notes because there are other pieces that use them- was the old way to add a hold note and now it is like a magical pitch sound effect. You can add normal notes 🔹 which are same as 🔶1.0 . From 🔔 slider you can change 🔶 delay type. Like 🔶 0.5 which will make the note extend and sound more "slow". 🔶1.5 will make it fast and etc.

But ⭐will remain broken for now since changing its behaviour will screw so many pieces. It

Anthony_Tonev (80)

UPDATE:
Added Howler.js. I will add more note delay types next.
I have reversed the ordering of the database - newer pieces will show up first.

When I find the time I will add a search method and accounts.

AkhilGupta (16)

This is so awesome!!!

Anthony_Tonev (80)

@AkhilGupta ♪♫♬ Thank you ♪♫♬

[deleted]

This is definitely one of the best so far. I think you've done a great job creating it and updating!!! Thanks for posting early and allowing us to follow your development.

Anthony_Tonev (80)

@Skalwol

Thanks.

As soon as I had something working I posted it. Not only to share development history (open source love) but also to gain free crowd sourcing.

That way people can point out issues and the ones that can do music can learn how to use it and add content.

It's not a generally good idea to post early - usually you would like to work on something private and keep an eye on the competition uploads. That way you know the height of the bar and you can surprise everyone with something amazing and they will never know what hit them. Also you keep your idea a secret.

However in my case - content is 50% of the whole thing. The early I post the better. And the issue feedback I get is pretty good - I would have called it done on day One if I never heard any complains.

ebest (590)

Could you delete the accidental repetitions on the db?

Anthony_Tonev (80)

@ebest
Sure - I will also have to add some features for automated cleanup.

ericjlein (2)

Very cool. I think the number of rows should always be a multiple of 4, since most of the music we listen to subdivides into four.

Anthony_Tonev (80)

@ericjlein Thank you - I had no idea about this - I was thinking it will be kinda nice to represent each block like a "box" to fit the theme... - I will see if I can manage fixing that without screwing the build-in pieces.

rodrigosm29 (0)

okay you've probably won this contest
I'm a begginer, and I'm not exactly fluent in English (I've started learning English a while ago) but I dream of becoming a good programmer. I didn't know that a program so cool could be written like this. It was probably very hard to program, so I would like to say: Congratulations! Now I admire you.

Anthony_Tonev (80)

@rodrigosm29 Thank you for your support. There are still 10 more days - I've build this basically in 2 , so there is still time for someone to write 5 apps like this one. There is still some fight to be had - I will try to tweak some stuff to put a fair fight. Only time will tell (and the judge).

Also I'm coding since 2 years so - I'm as much a beginner as any aspiring coder out there. I'm an artist and mostly animator. So I guess it looks kinda nice because of my artistic touch. However - the algorithm is the core any app - and I still have what to learn and what to improve. So I share the same dream too.

ebest (590)

What if the community could ACTUALLY add musics? like if there was online storage for the music pieces?

Anthony_Tonev (80)

@ebest I'm thinking about adding a firebase data base with a version control on your peaces - only the latest peace will be played when song is called and you can call early drafts of peaces if you want. I will see if it can be done simple enough - I want to avoid registrations at this point and nothing should be erased. The last part is kinda tricky but honestly songs are just strings - I think the free plan of firebase can handle enormous amount of songs and versions and I don't expect to get flooded with data (unless someone is willing to flood me on purpose }:D ). Also, I have to check how I can hide environment variables in repl.it - so I can hide the API key of firebase.

ebest (590)

@Anthony_Tonev make a file called ".env"

the problem for me is it doesn't load in python
I don't know if you can, unless you encrypt the key

Anthony_Tonev (80)

@ebest For HTML, CSS, JS apps like this one it is recommended that the .env is hidden in the backend since any tech savvy person will be able to get it. So I will have to add a server I guess.

ebest (590)

@Anthony_Tonev You don't have the hacker plan thing so you can't get private repls. That might be annoying...

Also, why use firebase when you can make your own server?

Anthony_Tonev (80)

@ebest Well this server should be running all the time. I don't think I can keep a repl.it tab open 24/7.

katyadee (1161)

This is so cool. What gave you this idea?

Anthony_Tonev (80)

@katyadee A music box that I had since I was a lvl 3 human. It plays a unique melody-lullaby that I'm still trying to find what it's called.

When hackaton theme was announced I thought I wanted to use the opportunity and record it's music then share it with an animated music box that plays the recorded audio. I've animated the box and proceeded with the recording.

But the recording I did was homemade. And it was not sounding like it was played by the cartoony box. Was too realistic for it to mix well with the character.

So I've decided to code a digital music box editor, then learn a little bit of music composition and then compose it's unique music box melody on it. I still have to train my music hearing but I will eventually play it. It's a very nice melody worth sharing.

ebest (590)

@Anthony_Tonev I had one of those music boxes. They were interesting. What level are you right now?

ebest (590)

@Anthony_Tonev Is there any way to level up quicker? I'm stuck at lvl 12.

Anthony_Tonev (80)

@ebest In this game you get a tiny bit of XP every day and this is how you lvl up, but you can have a decent game time at any level. Some say that the real game starts when you reach lvl 22 because then you can decide to skip the tutorial stages or get access to better tutorial stages (academies, universities, courses). But honestly if you run the top tier class - the programmer class you can have fun at any level. At the current stage of the meta they can crush noobs even at level 10. So OP.

ebest (590)

@Anthony_Tonev HAHAHAHAHAHAHA

"But honestly if you run the top tier class - the programmer class you can have fun at any level. At the current stage of the meta they can crush noobs even at level 10. So OP."

-Ebest

ebest (590)

Three:
First song: THE FIRST SONG
1a-1,1c-1,1a-4,1c-4,1e-6,1g-6,1i-7,1e-8,1g-8,1i-9,2h-5,2d-6,2b-7,2h-7,2d-8,2b-9,3g-1,3i-1,3c-4,3e-4,3a-5,3g-5,3i-5,3c-6,3e-6,3a-7,4b-1,4b-4,4f-6,4h-6,4f-8,4h-8,5i-1,5e-4,5g-4,5a-5,5c-5,5i-5,5e-6,5g-6,5a-7,5c-7,6h-5,6d-6,6f-6,6h-7,6d-8,6f-8,7g-1,7c-4,7e-4,7a-5,7g-5,7c-6,7e-6,7a-7,8b-1,8d-1,8b-4,8d-4,8f-6,8h-6,8f-8,8h-8,9i-5,9e-6,9a-7,9c-7,9i-7,9e-8,9a-9,9c-9,10h-1,10d-4,10f-4,10b-5,10h-5,10d-6,10f-6,10b-7,11a-1,11c-1,11c-4,11a-5,
Optimal delay: 300

When I made this, I noticed one thing when you load it up. If the song takes more then one block, you first have to add enough blocks for the song to fit in. This one takes 11 blocks! My suggestion is so that you can put the music code in the url.

London bridges falling up

1i-1,1a-6,1e-6,1i-6,1g-7,1a-8,1e-8,1d-9,2h-1,2h-5,2d-6,2b-7,2d-8,3g-1,3c-5,3a-6,3g-6,3c-7,3i-7,4b-6,4f-6,4b-8,4f-8,4i-9,5e-1,5g-2,5e-4,5i-4,5g-5,5a-6,5e-6,5i-6,5c-7,5g-7,5a-8,5i-8,6d-1,6h-4,6d-5,6h-6,6h-8,7c-1,7e-2,7c-4,7e-4,7c-6,

Optimal delay is 200. 7 blocks required.

A classic: Ode to joy (Symphony No. 9) just slightly simplified to fit.

1a-6,1c-6,1e-7,1g-8,1i-8,2h-4,2f-5,2d-6,2b-7,3a-4,3c-5,3e-6,3g-6,4a-5,4b-5,4f-6,4h-6,5i-6,5a-7,5g-7,5c-8,5e-8,6d-4,6f-4,6b-5,6h-5,7f-4,7g-4,7c-5,7a-6,8h-4,8b-5,8d-5,8f-6,9g-4,9a-5,9i-5,9c-6,9e-6,9d-7,10h-4,10f-5,10b-6,10d-6,10c-7,11c-1,11a-5,11g-6,11i-6,12b-7,12h-7,12d-8,12f-8,13e-4,13g-4,13c-5,13i-5,13a-6,14h-4,14i-4,14d-5,14b-6,

Optimal delay: 300. Blocks: 14

Any more songs to use?

-Ebest

Anthony_Tonev (80)

@ebest wow, thanks alot I will add your song in the collection.

And yes that thing about loading them is not working well - it just loads notes. I have an object where I store notes, delay info and block count for community contributions. I will fix that to work the same way.

I will have to implement the url load for sure so I can make it like a community sharing thing but do you have any suggestions about a database maybe. I was thinking about firebase database where you just add a name and you get unique key plus that name and a version number if it's the same name - soma data about the song author etc. Or I can just make a node server and store them locally.

Anthony_Tonev (80)

@ebest Just added your songs - amazing job! Thank you for providing me with a decent content for the editor. This helps a lot.

ebest (590)

@Anthony_Tonev The first song is twinkle twinkle little star.

Also, change THE FIRST SONG's author to Jane Taylor
London Bridges falling down's author to Alice Bertha Gomme
and Ode to Joy to Ludwig van Beethoven.

Anthony_Tonev (80)

@ebest Yes I recognised them right away. I still think there should be the name of the person that added it as a box music. So I will name them like so : A. B. Gomme's "London Bridges falling down" by ebest.

BTW I have also added a button to generate n number of blocks (++ button next to load button).

ebest (590)

@Anthony_Tonev
Improved Ode to Joy:
1c-4,1a-6,1c-6,1i-6,1e-7,1g-8,1i-8,2f-1,2d-4,2h-4,2f-5,2d-6,2h-6,2b-7,3c-1,3a-4,3c-5,3a-6,3e-6,3g-6,3e-8,3g-8,4a-1,4f-4,4h-4,4a-5,4b-5,4e-5,4d-6,4f-6,4h-6,4c-7,5c-6,5e-6,5i-6,5a-7,5g-7,5c-8,5e-8,6d-1,6d-4,6f-4,6b-5,6h-5,7f-4,7g-4,7c-5,7a-6,7f-6,7g-6,8d-1,8h-4,8b-5,8d-5,8f-6,8f-8,9a-1,9i-1,9c-4,9e-4,9g-4,9a-5,9i-5,9c-6,9e-6,9d-7,10b-4,10d-4,10h-4,10f-5,10b-6,10d-6,10c-7,11c-1,11g-4,11i-4,11a-5,11f-5,11e-6,11g-6,11i-6,11d-7,12d-6,12f-6,12b-7,12h-7,12d-8,12f-8,13c-1,13e-4,13g-4,13c-5,13i-5,13a-6,13e-6,13g-6,14b-4,14h-4,14i-4,14d-5,14b-6,

ebest (590)

@Anthony_Tonev So many songs can't be done because of sharps (#). And can you add higher and lower notes so there's a longer line of notes available?

Anthony_Tonev (80)

@ebest yes I will consider adding more notes - how many do you think are enough? Now they are 9.

ode of joy is updated - or you wan't it as a separate peace called improved ode of joy?

Anthony_Tonev (80)

@ebest I've added more notes - you can switch between 9 notes and 16 notes mode by pressing "more cowbells!/less cowbells" button. Old songs will still sound the same but now songs will also have a type - 'mini' for simple 9 notes one and 'grand' for 16 notes one. These are all the notes I could find - not sure if they work for all songs but at least they can cover more than before.

ebest (590)

@Anthony_Tonev You may or may not have a BIG problem. Comparing this to a piano, I now notice that you are missing d and e. Change Ode to Joy's name to Ode to Joy in e♭.

ebest (590)

@ebest Also, it's 15 notes. Not 16

Anthony_Tonev (80)

@ebest
I have used a pack of sounds from freesounds.org that are named like so :
eb1,eb2,dd2,c2,dd1,bb2,c1,ab1,ab2,ab3,bb1,f1,f2,g1,g2

  • I saw that some are missing, so I will try to find a pack with all notes - but this is very strange since this pack should have all notes from the box recorded. I guess it was not a note rich box.
ebest (590)

@Anthony_Tonev can you make some way to make held notes?

Anthony_Tonev (80)

@ebest it turns out I can - this is the code snippet
previewNote.currentTime = 0;
previewNote.volume = (volumeVal / 100);

//held notes part
previewNote.mozPreservesPitch = false; //something that does something
previewNote.playbackRate = 0.5; //the lower this is the longer the note will be heard

previewNote.play();

ebest (590)

@Anthony_Tonev Then add some way to like hold the pedal or make longer notes

Anthony_Tonev (80)

@ebest I will try adding this - if you hold a button 1,2,3,4,5,6,7,8 or 9 and then click on the note, you will add a different color note indicating the level of delay it will get when it is played. Will have to not effect other notes - only this one.

ebest (590)

@Anthony_Tonev lol almost done with the main theme of star wars

ebest (590)

@Anthony_Tonev Finished! It uses all 16 notes.
1e-1,1b-5,1c-5,1d-5,1e-5,1m-6,1e-8,1i-8,1m-8,1o-9,1i-10,1n-10,1m-11,1i-12,2g-6,2e-8,2g-8,2n-8,2i-9,2a-10,2e-10,2h-10,2j-10,2n-10,2g-11,2a-12,2e-12,2j-12,2n-12,2a-15,2j-15,3k-3,3d-5,3h-5,3j-5,3k-5,3a-7,3k-8,3o-8,3a-9,3d-9,3b-10,3o-10,3a-11,3c-11,3o-12,4d-6,4m-7,4d-8,4k-8,4f-9,4m-9,4o-9,4e-10,4g-10,4k-10,4n-10,4d-11,4m-11,4g-12,4k-12,4g-15,5j-5,5n-5,5g-7,5e-8,5g-9,5j-9,5a-10,5e-10,5h-10,5g-11,5i-11,5a-12,5e-12,5a-15,6b-1,6b-4,6a-5,6b-6,6f-6,6g-6,6k-6,6g-8,6j-8,6k-8,6i-9,6l-9,6n-9,6h-10,6m-10,6g-11,7g-1,7b-2,7g-4,7b-5,7d-5,7f-5,7a-6,7g-6,7k-6,7l-6,7b-7,7l-8,7o-8,7n-9,7m-10,7l-11,8l-1,8l-4,8d-5,8h-5,8j-5,8l-6,8a-7,8c-9,8d-9,8a-12,9f-4,9i-4,9a-6,9b-6,9f-6,9i-6,9k-6,9l-7,9b-8,9e-8,9f-8,9d-9,9g-9,9i-9,9c-10,9h-10,9b-11,9m-12,9o-12,10a-8,10c-8,10e-8,10g-8,10i-8,10n-8,10l-9,10a-11,10c-11,10e-11,10i-11,10g-12,10o-12,10e-13,10c-14,10a-15,11j-3,11d-4,11f-4,11h-5,11i-5,11j-5,11j-8,11n-8,11d-9,11f-9,11n-10,11n-12,12c-6,12l-6,12c-8,12j-8,12l-8,12e-9,12n-9,12d-10,12f-10,12j-10,12m-10,12o-10,12c-11,12l-11,12f-12,12j-12,12o-12,12f-15,12o-15,13i-5,13m-5,13o-5,13f-7,13d-8,13f-9,13i-9,13d-10,13g-10,13f-11,13h-11,13d-12,14a-3,14a-5,14i-6,14a-8,14e-8,14i-8,14k-9,14e-10,14j-10,14l-10,14i-11,14e-12,14l-12,14l-15,15o-5,15c-6,15l-7,15a-8,15c-8,15j-8,15e-9,15l-9,15o-9,15a-10,15d-10,15f-10,15j-10,15m-10,15c-11,15l-11,15n-11,15a-12,15f-12,15j-12,15f-15,16d-5,16n-5,16l-6,16h-8,16f-10,16d-12,16f-12,16f-15,17j-1,17e-2,17c-3,17a-4,17g-5,17j-8,17g-10,17h-10,17i-10,17j-10,17g-12,17h-12,17i-12,17j-12,17g-15,17h-15,17i-15,17j-15,

Anthony_Tonev (80)

@ebest wow - john williams, his jurrasic park score and starwars are the most recognisable - everyone can guess them.
btw I have just added the hold note - only 1 type for now - delay 0.4 and it activates when holding 1 right before clicking on a note. Just need to fix it in the load function.

ebest (590)

@Anthony_Tonev Thanks! I noticed if your setting is "less cowbells" and you load up star wars, it won't automatically switch into "More cowbells"

Anthony_Tonev (80)

@ebest what is the optimal delay for it - just loaded it in. It's amazing!

Anthony_Tonev (80)

@ebest load function is very primitive - not keeping it up with the new features. Load notes is just loading notes - it does not care for anything else. I will try to add it. On the button for community contribution it is updating the size. However it is recommended you switch to 16 first because you will need to tune the box anyway...

ebest (590)

@Anthony_Tonev do you have a email address

Anthony_Tonev (80)

@ebest If you switch to 16 first - you should have no problem loading them.

Anthony_Tonev (80)

@ebest Granted. I haven't thought about it..

ebest (590)

@Anthony_Tonev Do you have any other music suggestions?

ebest (590)

@Anthony_Tonev Could you add a way to like stretch a note so it gets held for longer?

Anthony_Tonev (80)

@ebest hold key '1' and press the note right away it will make a note 40% longer--it will be played but it does not work with load and move arrows yet, however it keeps it in save by adding a dot after the note coordinates. I plan to add more delay type although they seem very similar but first I will have to make some audio correction on the files because they have some amount of silence which affects the stretch or if I will edit them anyway I think I can make better long notes by adding sound effects on the audio file in audacity... I think this will be a better solution than roughly stretching it.

niorg2606 (187)

Soo cute! I love every little detail you added, even the smiling music box on the bottom :)

Anthony_Tonev (80)

@niorg2606 Thank you! You know what they say - the devil is in the details };)

ArineeC (4)

OMG! I would never be able to accomplish this! Good job! Keep up the good work and GOOD LUCK!!!

Anthony_Tonev (80)

@ArineeC Thank you, but don't rush with discouraging yourself - I'm not even a programmer. I'm pretty sure that If you get a CS degree and focus on fundamentals - you will craft amazing apps in no time. I wish I did that.

ed9baker (0)

Can I make a suggestion? You should be able to click on notes again to deactivate them, without resetting it all.

Anthony_Tonev (80)

@ed9baker Good idea. I've just added your suggestion. Should work now. Thanks.

lsambrook (286)

Brilliant! I love it