قراءة الموسيقى للآلات

“داميت جيم، أنا قراصنة، وليس موسيقي!”، لإعادة صياغة MCCOY SCOTTY من سلسلة رحلة النجوم الأصلية. حسنا، هناك عدد قليل منا موسيقيين بالمثل، بعضهم، مثلي، يخترقون الموسيقيين، وكذلك البعض لن يفهموا ملاحظة كاملة من المفتاح الموسيقي ثلاثي التريب. ولكن كل الآن وكذلك الموسيقى التي تريدها هي في نوع الموسيقى ورقة وكذلك شرطا لتحويل ذلك إلى شيء يمكن أن تلعب الاختراق. إذا كنت محظوظا، فيمكنك اكتشاف تطبيق البرمجيات التي ستحقق من الموسيقى ورقة من أجلك وكذلك بصق ملف MIDI أو WAV. أو، تماما مثل مشغل الموسيقى مكرن يدي، قد تضطر إلى سحب ما يكفي من الموسيقى بنفسك لتحويل الملاحظات الموسيقية إلى ترددات لشيء مثل رقاقة توقيت 555. سنغوص في كلتا الحالتين هنا.

إذا لم تتمكن من فحص الموسيقى، يجب أن تكون قادرا على الحصول على جوهر ما نقوله. ومع ذلك، في الموقف، تشعر بالارتباك، قمنا بتضمين مقدمة سريعة للغاية بالقرب من نهاية هذه المقالة.

التعرف على الموسيقى البصرية (OMR)

MusicXML ملاحظة مثال على ذلك
من المرجح أن تسمع عن برنامج التعرف على الحروف الضوئية، التي تحول الكلمات على الورق إلى نموذج رقمي. حسنا، هناك موسيقى OCR، أو الكثير بالضبط، برامج التعرف على الموسيقى البصرية. يمكنك الإشارة إلى كاميرا في صفحة من الموسيقى ورقة للقبض على صورة، أو تقديم تطبيق البرنامج بيانات صورة أو PDF تتكون من موسيقى الورقة، وكذلك يحول ذلك إلى الموسيقى التي يمكنك سماعها عند الضغط على زر ، أو حفظ إلى بيانات MIDI أو WAV للتشغيل من مكان آخر.

لمحاولة ذلك، اكتشفت واحدة عالية الجودة ذات جودة عالية تسمى Sharpeye 2.68 التي كانت لها فترة تجريبية مدتها 30 يوما. إنه قادر على حفظ الموسيقى كملف MIDI، MusicXML، وكذلك في تنسيق NIFF. مقتطف MusicXML يظهر هنا هو الملاحظة الموسيقية، A، وكذلك هو مذكرة ربع. كما سترى، تقوم Sharpeye بعمل ممتاز، وفرت نظيفة، أسود وكذلك صورة بيضاء. يوفر الأمر أيضا أدوات التحرير اللازمة لإصلاح أي أخطاء التعرف.

greensleeves اشتعلت في ضوء الشمس وكذلك في Sharpeye
لأول اختباري الأول أخذت صورة لأشعة الشمس في الخط الأول جدا من Tune Greensleeves. ثم أحضرت الصورة إلى GIMP للتأكد من أنني قد تحويلها إلى ملف TIFF، بالنظر إلى أن Sparpeye يقرأ في BMP فقط بالإضافة إلى ملفات TIFF. ومع ذلك لم أفعل أي تعزيز. ثم فتحت الصورة في Sharpeye وكذلك أخبرها “قراءة الصورة”. هذه هي خطوة التعرف على الموسيقى البصرية. كانت النتيجة النهائية فقط ما تراه في لقطة هنا، لا تشوبه شائبة، وكذلك مع الموسيقى المناسبة فقط. في اللقطة التي قمت بالنقر فوق أحد الملاحظات، فإن هذا أحمر، لإظهار أن هذه الموسيقى قابلة للتحرير وكذلك صورة ثابتة. يؤدي النقر فوق زر التشغيل إلى لعبها بلا عيوب.

أنقذتها كملف ميدي. ومع ذلك، تحدد بيانات MIDI بالضبط كيفية تشغيل الموسيقى، بالإضافة إلى الملاحظات، وكذلك لا تتكون من الصوت نفسه. لذلك قمت بتحويلها إلى مسار صوتي باستخدام ستوديو Anvil قبل حفظ الموسيقى إلى ملف WAV، والذي يمكنك الاستماع إليه أدناه. بالنسبة لأي فرد يرغب في القيام بذلك في سندان، في الحد الأدنى يمكنك القيام بالبيانات – ضبط البيانات المفتوحة وكذلك البيانات – تصدير الصوت المختلط.

مشغل الصوت SHTTPS: //hackaday.com/wp-content/uploads/2017/05/greensleeves_sunlight.wav

00:00
00:00
00:00

استولت على الموسيقى الفقيرة وكذلك في Sharpeye
تتطلب برامج OMR هذه الصور النظيفة أو ملفات PDF للموسيقى في شراءها للتعرف عليها بشكل جيد. على سبيل المثال، يحتوي المثال الموضح أعلاه على بعض التظليل على اليسار والتي جعلت Sharpeye غير قادرة على التحقق من ذلك الجزء. تعد الصورة مركزة سيئة للغاية، مما أثارها للحصول على خطأ كبير في القسم السفلي. الموسيقى مع الخلفية الصفراء هي Sharpeye تظهر بالضبط كيف يرى الموسيقى قبل القيام بالتعرف.

الموسيقى الفقيرة بعد تحديد
مثل الكثير من برامج OMR، لا يعني Sharpeye كأداة إعلانية موسيقية. لا تضع ملاحظات لك، أو تغيير مواقعها عند إضافة المفتاح الموسيقي. ومع ذلك، فإنه يوفر لك أدوات تحرير كافية لأخطاء التعرف الصحيحة التقدير الصحيحة، وكذلك ما فعلته لإضافته إلى المنطقة التي كانت مظللة، بالإضافة إلى إضافة الملاحظات التي فاتتها في الأسفل. كما أدرجت بالتوقيعات التوقيت الثلاث 3/4، والتي لم تكن في الأصل بالنظر إلى أنها كانت صورة مأخوذة من منتصف النتيجة. مع تلك الإصلاحات، يبدو فقط على حق.

مشغل الصوت HTTPS: //hackaday.com/wp-content/uploads/2/2017/05/bad_music_fixed.wav

00:00
00:00
00:00

في هذه المرحلة، يمكنك حفظها كبيانات MIDI وكذلك تحويلها إلى WAV أو MP3 وكذلك نقل ذلك إلى الاختراق الخاص بك. أو، إذا كنت ترغب في تحسين الموسيقى بالإضافة إلى ذلك، احفظها كبيانات MusicXML وكذلك طلا في برنامج تدوين الموسيقى المفضل لديك، Sibelius على سبيل المثال، للتحرير بالإضافة إلى ذلك.

تجارب مع صورة ما قبل المعالجة

استخدمت ماسحة ماسعة مسطحة لمسح صفحة كاملة من معرض Song Scarborough – والتي تضم هذه المرة كلمات كلمات – إلى PDF file. Since SharpEye doesn’t checked out PDF data I very first packed it into GIMP as well as saved it as a TIFF file. SharpEye had issues reading it, so I went back to GIMP, saved it as a high high quality JPG instead, packed that back into GIMP, as well as exported that as a TIFF file. For some unknown reason, SharpEye might checked out that one.

Even then, the recognition worked poorly, missing big pieces of the music. I suspected that was since the music was grey on white. I utilized the Levels tool in GIMP to convert it to black on white as well as the recognition worked far much better this time.

Scarborough fair in SharpEye
Before doing the recognition, I had to tell SharpEye that the lyrics might be discovered above the staves considering that by default it looks for them below. In the snapshot, the original picture is the music with the yellow background. As you can see, there were some errors in the lyrics, however the text is editable. In the snapshot I’ve chosen “win’”, which must be “goin’”. notice also, that the lines of acknowledged music are laid out horizontally instead of vertically as you discover on a typical sheet of paper as well as as they are in the original image. however the result seems just fine.

Audio Player

00:00
00:00
00:00

You can discover a listing of other optical music recognition programs on Wikipedia, SmartScore being the one that has been around the longest in one type of another, starting in 1991. There’s likewise a SharpEye SDK which, from the list, is utilized by a few different products. There are even apps for iPads, iPhones as well as Android phones which you can discover demos of on YouTube. searching for “music scanner” seems to turn up a few great as well as poor ones.

Converting notes to Frequencies

What if you have the sheet music in front of you as well as your hack is one that takes the private notes as well as converts each directly to an appropriate sound? WAV as well as MP3 data won’t work considering that those contain already converted music.

Musical note frequencies as well as 555 timer circuit
The method to do it is basic really. Each music note has a corresponding frequency. For a preferred note, your circuit requirement only cycle a speaker at that note’s frequency. as well as a basic method to supply that frequency is utilizing a 555 timer circuit in astable mode like the one shown. In the circuit, the output frequency is figured out by capacitor C, and resistors R1 as well as R2. You can clearly see that dependency by checking out the frequency formula for the 555 timer’s output.

Resistances for musical notes as well as 555 timer circuit
A normal method of manipulating that formula is to utilize a fixed value for R2, as well as then to add a different resistance to it for every desired frequency, as shown in the customized circuit. For now let’s insert a variable resistor Rn. In the diagram you can see that we very first added Rn to the frequency formula, as well as that we then rearranged the formula to fix for Rn instead. plug that formula into a spreadsheet as well as you can come up with the needed resistor values for the preferred music notes.

Hand cranked 555 timer music player
An example of this circuit being utilized is in this hand cranked music player. The musical notes are encoded as holes in a loop of paper. The setting of the hole along the width of the paper figures out which of 13 possible notes is played. The length of the hole controls the length of time the note is played.

555 timer music player circuit
The circuit diagram for the music player shows the exact same 555 timer circuit however with Rn replaced by 13 different resistors whose values were calculated utilizing the formula for Rn. However, only one resistor is utilized by the circuit at any type of time. exactly how is that done?

Each of those 13 resistors is soldered to one of 13 copper plates. sitting on top of each copper plate is a copper wire. The paper slides between the plate as well as the wire. only when there’s a hole in the paper between the cable as well as the plate do they make electrical contact. That brings the corresponding resistor into the circuit, as well as the 555 outputs the right frequency for the preferred musical note. In the diagram we’re highlighting the electrical path if a hole is between D3’s cable as well as copper plate.

A extremely quick introduction To reading Music

Before we end this article, here’s the guaranteed very little introduction to reading sheet music, just sufficient to comprehend this article.

How to checked out music for piano
A basic method to begin is by checking out the secrets on a piano. Each key represents a musical note, denoted by a letter from A to G. You can always find C since it’s the white crucial to the left of any type of set of two black keys. There are only seven letters from A to G, however look carefully at the keyboARD وكذلك سترى أن نمط الأسود وكذلك الأسرار البيضاء يتكرر بعد كل سبع مفاتيح بيضاء.

على الورق، تسمى الموسيقى ورقة، تتكون تدوين الموسيقى المعاصر من مجموعات من الخطوط الأفقية التي تسمى Staves (المفرد هو الموظفين أو Stave). تمثل العلامات الملاحظات، بالإضافة إلى الجزء الدائري من العلامة يتم وضع إما على خط أو بين سطرين. يخبرك الإعداد العمودي للعلامة على الموظفين التي تلاحظ أنها كذلك. التي التوقيع الذي يخبرك بالضبط كم من الوقت لعقد المذكرة.

هناك قدر كبير من ذلك بكثير، ولكن هناك الآن يمكنك التحقق من موسيقى ورقة كافية لمتابعة مع هذا المنشور وكذلك على الأقل ضرب الأسرار المثالية على البيانو. تظهر هذه التوصية كواحدة محترمة إذا كنت ترغب في حفر أعمق.

endnote.

لقد صادفنا الموسيقى ورقة عدة مرات هنا على هاكاداي. [دينو] فعل نفس النوع بالضبط من تحويل الملاحظات الموسيقية التي تغطيها، ومع ذلك استخدام وظيفة نغمة أردوينو () لتشغيلها إلى مكبر صوت لآلة تقليل الكرة الصغيرة في سن العام. [Zulko] استخدم بيثون بالإضافة إلى محولات فورييه لإنشاء موسيقى ورقة عندما أعرب عن تشغيل ما اكتشفه مشفرا على ورقة مثقبة من الورق.

وعلى هذه الملاحظة (Groan)، ما هي الجثث الموسيقي الذي جربته؟ هل كان عليك أن تقدم مع الموسيقى ورقة في أي نوع من الخارقة؟ يرجى مشاركتها معنا في التعليقات أدناه.

Leave a Reply

Your email address will not be published. Required fields are marked *