MUSIC reading FOR MACHINES

“Dammit Jim, I’m a hacker, not a musician!”, to paraphrase McCoy Scotty from the original star trip series. Well, a few of us are likewise musicians, some, like me, are likewise hack-musicians, as well as some wouldn’t understand a whole note from a treble clef. however every now as well as then the music you want is in the type of sheet music as well as you requirement to convert that to something your hack can play. If you’re lucky, you can discover software application that will checked out the sheet music for you as well as spit out a MIDI or WAV file. Or, just like my hand-cranked music player, you may have to checked out just sufficient of the music yourself to convert musical notes to frequencies for something like a 555 timer chip. We’ll dive into both situations here.

If you can’t checked out music then you must still be able to get the gist of what we’re saying. however in situation you get confused, we’ve included a extremely quick introduction near the end of this article.

Optical music recognition (OMR)

MusicXML note example
You’ve most likely heard of OCR, Optical character recognition software, that converts words on paper to a digital form. Well there’s likewise music OCR, or a lot more exactly OMR, Optical music recognition software. You point a cam at a page of sheet music to catch an image, or provide the software application an picture data or a PDF consisting of the sheet music, as well as it converts that to music that you can hear at the press of a button, or save to a MIDI or WAV data for playback from elsewhere.

To try it out, I discovered a high high quality one called SharpEye 2.68 that had a 30-day, complimentary trial period. It’s able to save the music as a MIDI file, MusicXML, as well as in NIFF format. The snippet of MusicXML shown right here is of the musical note, A, as well as is a quarter note. As you’ll see, SharpEye does an excellent job, provided a clean, black as well as white image. It likewise supplies the needed editing tools to fix any recognition errors.

Greensleeves caught in sunlight as well as in SharpEye
For my very first test I took a picture in sunlight of the very first line from the tune Greensleeves. I then brought the picture into GIMP to ensure that I might convert it to a TIFF file, considering that SparpEye reads in only BMP as well as TIFF files. however I did no enhancing. I then opened the picture in SharpEye as well as told it to “Read image”. This is the optical music recognition step. The end result was just what you see in the snapshot here, flawless, as well as with only the appropriate music. In the snapshot I’ve clicked on one of the notes, the one that’s red, to show that this is editable music as well as not just a static image. Clicking on the play button played it flawlessly.

I saved it as a MIDI file. However, MIDI data specify exactly how to play the music, together with the notes, as well as do not consist of the audio itself. So I converted it to an audio track using Anvil Studio before saving the music to a WAV file, which you can listen to below. For any individual who wishes to do this in Anvil, at a minimum you can do data – open tune as well as data – Export Mixed Audio.

Audio Playerhttps://hackaday.com/wp-content/uploads/2017/05/greensleeves_sunlight.wav

00:00.
00:00.
00:00.

Captured poor music as well as in SharpEye
These OMR programs requirement clean pictures or PDFs of the music in buy to recognize them well. For example, the example shown above has some shadowing on the left which made SharpEye not able to checked out that part. The image is likewise poorly focused, which triggered it to get a great deal wrong in the bottom section. The music with the yellow background is SharpEye showing exactly how it sees the music before doing the recognition.

The poor music after fixing
Like lots of OMR programs, SharpEye isn’t meant as a music notation tool. It doesn’t setting notes for you, or change their positions when you add a clef. However, it does provide you sufficient editing tools to right recognition errors, as well as that’s what I did to add back the area that was shadowed, in addition to add the notes it missed on the bottom. I likewise inserted the 3/4 time signatures, which weren’t in the original considering that it was an picture taken of the middle of a score. With those fixes, it seems just right.

Audio Playerhttps://hackaday.com/wp-content/uploads/2017/05/bad_music_fixed.wav

00:00.
00:00.
00:00.

At this point you can save it as a MIDI data as well as then convert it to a WAV or MP3 as well as transfer that to your hack. Or, if you want to additionally refine the music, save it as a MusicXML data as well as tons it into your preferred music notation software, Sibelius for example, for additionally editing.

Experiments with picture Pre-Processing

I utilized a flatbed scanner to scan a full page of the song Scarborough fair — which this time around includes lyrics — to a PDF ফাইল। যেহেতু Sharpeye পিডিএফ ডেটা চেক না করে আমি খুব প্রথমে এটি জিম্পে প্যাক করে পাশাপাশি এটি একটি টিআইএফএফ ফাইল হিসাবে সংরক্ষণ করেছি। Sharpeye এটি পড়া সমস্যা ছিল, তাই আমি জিম্পে ফিরে গিয়েছিলাম, পরিবর্তে এটি একটি উচ্চ উচ্চ মানের JPG হিসাবে সংরক্ষিত, যে জিম্প ফিরে প্যাক, পাশাপাশি একটি টিফ ফাইল হিসাবে রপ্তানি। কিছু অজানা কারণে, Sharpeye যে এক চেক আউট হতে পারে।

তবুও, স্বীকৃতিটি দুর্বলভাবে কাজ করে, সঙ্গীতের বড় টুকরা অনুপস্থিত। আমি সন্দেহ করে যে সঙ্গীতটি সাদা হয়ে গেল। আমি হোয়াইটের উপর কালো এবং সেইসাথে স্বীকৃতিটি এই সময়ে অনেক ভালোভাবে কাজ করার জন্য জিম্পে লেভেল সরঞ্জামটি ব্যবহার করেছি।

Scarborough ফেয়ার Sharpeye
স্বীকৃতি করার আগে, আমাকে শস্যের কথা বলতে হয়েছিল যে এই গানগুলি হ’ল স্টাফের উপরে আবিষ্কৃত হতে পারে যে এটি ডিফল্টভাবে এটি নীচে দেখায়। স্ন্যাপশটে, মূল ছবি হলুদ ব্যাকগ্রাউন্ডের সাথে সঙ্গীত। আপনি দেখতে পারেন, গানগুলিতে কিছু ত্রুটি ছিল, তবে পাঠ্যটি সম্পাদনাযোগ্য। স্ন্যাপশটটিতে আমি “জয় ‘” নির্বাচিত করেছি, যা অবশ্যই “গোইন’ হতে হবে। লক্ষ্য করুন যে, স্বীকৃতিযুক্ত সংগীতের লাইনগুলি উল্লম্বভাবে উল্লম্বভাবে পরিবর্তে অনুভূমিকভাবে সাজানো হয়, যেমন আপনি মূল চিত্রের মধ্যে একটি সাধারণ শীটটিতে আবিষ্কার করেছেন। তবে ফলাফল ঠিক সূক্ষ্ম মনে হয়।

অডিও প্লেয়ারহেটিংস: //hackaday.com/wp-content/uploads/2017/05/scarborough_fair_en.wav

00:00.
00:00.
00:00.

আপনি উইকিপিডিয়াতে অন্যান্য অপটিক্যাল মিউজিক স্বীকৃতি প্রোগ্রামগুলির একটি তালিকা আবিষ্কার করতে পারেন, স্মার্টসকোর 1991 সালে শুরু হওয়া অন্যতম মধ্যে দীর্ঘতম অন্যতম মধ্যে দীর্ঘতম হয়েছে। একইভাবে একটি শার্পেই এসডিকে রয়েছে যা তালিকা থেকে কয়েকটি ব্যবহার করা হয় বিভিন্ন পণ্য। আইপ্যাড, আইফোনগুলির পাশাপাশি Android ফোনগুলির জন্য অ্যাপ্লিকেশন রয়েছে যা আপনি YouTube এর ডেমো আবিষ্কার করতে পারেন। “সঙ্গীত স্ক্যানার” এর জন্য অনুসন্ধান করা কয়েকটি দুর্দান্ত এবং দরিদ্রদেরও পরিণত হয়।

ফ্রিকোয়েন্সি নোট রূপান্তর

আপনার যদি আপনার সামনে আপনার সামনে শীট সঙ্গীত থাকে তবে ব্যক্তিগত নোট নেয় এবং সেইসাথে প্রতিটি সরাসরি একটি উপযুক্ত শব্দে রূপান্তরিত হয়? WAV পাশাপাশি এমপি 3 ডেটা যা ইতিমধ্যে রূপান্তরিত সঙ্গীত ধারণ করে তা বিবেচনা করবে না।

বাদ্যযন্ত্র নোট ফ্রিকোয়েন্সি পাশাপাশি 555 টাইমার সার্কিট
এটা করার পদ্ধতি সত্যিই মৌলিক। প্রতিটি সঙ্গীত নোট একটি সংশ্লিষ্ট ফ্রিকোয়েন্সি আছে। একটি পছন্দের নোটের জন্য, আপনার সার্কিটের প্রয়োজন কেবল সেই নোটের ফ্রিকোয়েন্সিটিতে একজন স্পিকার চক্র। সেইসাথে সেই ফ্রিকোয়েন্সি সরবরাহ করার একটি মৌলিক পদ্ধতিটি দেখানো মত Astable মোডে 555 টি টাইমার সার্কিট ব্যবহার করা হচ্ছে। সার্কিটে, আউটপুট ফ্রিকোয়েন্সি ক্যাপাসিটরের সি, এবং প্রতিরোধক R1 পাশাপাশি R2 দ্বারা figured হয়। আপনি 555 টি টাইমার এর আউটপুটের জন্য ফ্রিকোয়েন্সি সূত্রটি পরীক্ষা করে সেই নির্ভরতাটি পরিষ্কারভাবে দেখতে পারেন।

বাদ্যযন্ত্র নোটের পাশাপাশি 555 টি টাইমার সার্কিটের জন্য প্রতিরোধ
কাস্টমাইজড সার্কিটে দেখানো হিসাবে R2 এর জন্য একটি নির্দিষ্ট মানটি ব্যবহার করা, R2 এর জন্য একটি নির্দিষ্ট মানটি ব্যবহার করা, পাশাপাশি কাস্টমাইজড সার্কিটে দেখানো প্রতিটি পছন্দসই ফ্রিকোয়েন্সিটির জন্য এটির জন্য একটি ভিন্ন প্রতিরোধের সাথে যুক্ত করা। এখন জন্য একটি পরিবর্তনশীল প্রতিরোধক RN সন্নিবেশ করা যাক। ডায়াগ্রামে আপনি দেখতে পারেন যে আমরা প্রথমে ফ্রিকোয়েন্সি সূত্রের সাথে RN যোগ করেছি, পাশাপাশি আমরা এর পরিবর্তে RN এর জন্য ফর্মুলাটি পুনর্বিন্যাস করেছি। একটি স্প্রেডশীটে সেই সূত্রটি প্লাগ করুন এবং পাশাপাশি আপনি পছন্দের সঙ্গীত নোটগুলির জন্য প্রয়োজনীয় প্রতিরোধক মূল্যের সাথে আসতে পারেন।

হাত 555 টাইমার সঙ্গীত প্লেয়ার cranked
এই সার্কিটের একটি উদাহরণ ব্যবহার করা হচ্ছে এই হাতে ক্র্যাঙ্কেড মিউজিক প্লেয়ার। বাদ্যযন্ত্র নোট কাগজ একটি লুপ মধ্যে গর্ত হিসাবে এনকোড করা হয়। কাগজের প্রস্থের পাশে গর্তের সেটিংটি 13 টি সম্ভাব্য নোটগুলি খেলেছে। গর্তের দৈর্ঘ্যটি নোটের দৈর্ঘ্য নিয়ন্ত্রণ করে।

555 টাইমার মিউজিক প্লেয়ার সার্কিট
মিউজিক প্লেয়ারের সার্কিট ডায়াগ্রামটি একই 555 টি টাইমার সার্কিট দেখায় তবে RN 13 টি ভিন্ন প্রতিরোধক দ্বারা প্রতিস্থাপিত হয়েছে যার মানগুলি RN এর সূত্রটি ব্যবহার করে গণনা করা হয়েছিল। যাইহোক, শুধুমাত্র একটি প্রতিরোধক কোন ধরনের সময় সার্কিট দ্বারা ব্যবহার করা হয়। ঠিক কিভাবে যে কাজ করা হয়?

13 টি প্রতিরোধক প্রতিটি 13 টি তামার প্লেটের মধ্যে একটি বিক্রি হয়। প্রতিটি তামা প্লেট উপরে বসা একটি তামার তারের। প্লেট পাশাপাশি তারের মধ্যে কাগজ স্লাইড। শুধুমাত্র যখন তারের এবং প্লেটের মধ্যে কাগজে একটি গর্ত থাকে তখন তারা বৈদ্যুতিক যোগাযোগ করে। যে সার্কিট মধ্যে সংশ্লিষ্ট প্রতিরোধক এনেছে, পাশাপাশি 555 পছন্দসই বাদ্যযন্ত্র নোট জন্য সঠিক ফ্রিকোয়েন্সি আউটপুট। 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 keyboপাশাপাশি আপনি দেখতে পাবেন যে কালো এবং সাদা স্রোতগুলির প্যাটার্ন প্রতি সাতটি সাদা কীগুলির পরে পুনরাবৃত্তি করে।

পত্রিকাটি নামে পরিচিত, সমসাময়িক সংগীত নোটেশন স্টাফ নামে পরিচিত অনুভূমিক লাইনগুলির গোষ্ঠী রয়েছে (একবচনকারী ব্যক্তি বা স্ট্যাভ বা স্টেভ)। লক্ষণগুলি নোটগুলি প্রতিনিধিত্ব করে, সেইসাথে সাইনের বৃত্তাকার অংশটি লাইনে বা দুটি লাইনের মধ্যে থাকে। কর্মীদের উপর সাইন এর উল্লম্ব সেটিং আপনাকে বলে যে এটি নোট বলে। কোন সাইনটি আপনাকে নোটটি ধরে রাখার জন্য ঠিক কতক্ষণ বলে তা আপনাকে বলে।

এটিতে অনেক বেশি চুক্তি রয়েছে তবে এখন আপনি এই পোস্টের সাথে একসাথে অনুসরণ করার জন্য পর্যাপ্ত শীট সঙ্গীতটি পরীক্ষা করতে পারেন এবং অন্তত একটি পিয়ানোতে আদর্শ গোপনীয়তাগুলি হিট করতে পারেন। আপনি যদি গভীরে খনন করতে চান তবে এই সুপারিশটি একটি সম্মানজনক একের মত প্রদর্শিত হয়।

Endnote.

আমরা হ্যাকডেতে এখানে কয়েকবার শীট সঙ্গীত সম্মুখীন করেছি। [ডিনো] সঠিকভাবে একই ধরণের বাদ্যযন্ত্র-নোট-টু-ফ্রিকোয়েন্সি রূপান্তরটি আমরা আচ্ছাদিত করেছি, তবে তার নতুন বছরের প্রাক্কালে ক্ষুদ্র গোলকটি হ্রাসের জন্য একটি স্পিকারে তাদের স্পিকারে তাদের খেলতে এআরডুইনোর স্বর () ফাংশনটিকে আচ্ছাদিত করেছিল। [Zulko] পাইথন এবং চতুর্থ ট্রান্সফরমারগুলি শীট সঙ্গীত তৈরি করার জন্য ব্যবহার করেছিলেন যখন তিনি কাগজটির একটি ছিদ্রযুক্ত রোলে এনকোড করা আবিষ্কার করেছিলেন।

এবং যে নোট (GROAN), আপনি কি বাদ্যযন্ত্র Antics চেষ্টা করেছেন? আপনি হ্যাক কোন ধরনের শীট সঙ্গীত সঙ্গে অফার ছিল? নীচের মন্তব্য আমাদের সাথে তাদের শেয়ার করুন।

Leave a Reply

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