Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by CDKML · Nov 23, 2017 at 06:08 PM · dll.netlibraries

How to integrate DryWetMidi (.NET 4.6) library in Unity 2017

So it seems than finally with the 2017.1 update, Unity will be able to support .NET 4.6, which is great news for me because i'm trying to integrate DryWetMidi in order to use and manipulate MIDI files, such as getting the notes. I wasn't able to do this since DryWetMidi is built on .NET 4.6, and Unity 5.6 on .NET 3.5

My question now is: how can I integrate the library with Unity and start using it's functions? is there a manual or something alike? do i need to import a .dll or just drag and drop the folder into my Unity project?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FabioZumbi12 · Dec 14, 2017 at 08:56 AM 0
Share

Did you already know how to integrate? I want to use this library too! Thanks.

avatar image CDKML FabioZumbi12 · Dec 14, 2017 at 10:52 AM 0
Share

I realised it wasn't possible to integrate the library because DryWet$$anonymous$$idi targetted .NET framework 4.6.1 , not 4.6. But, good news! The creator of the library told me that he recently released DryWet$$anonymous$$IDI 2.0.1 where target .NET Framework version was now 4.5. I haven't tried it yet for schedule reasons, but i think now we should be able to use it in Unity 2017 and there won't be syntax errors anymore. If you try the new version i'd love to read your experience.

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by FabioZumbi12 · Dec 14, 2017 at 11:27 AM

Hi, I done imported into my Unity instance and is working (with the help of author too).

My unity version: Unity 2017.2.0f3

This is what i've done to work:

  • Download the master (or develop) branch from github https://github.com/melanchall/drywetmidi;

  • Drop the folder "DryWetMidi" into scripts folder together with other scripts;

  • Go to "Edit -> Project Settings -> player -> Other Settings" and set Script Runtime Version to "Experimental (.Net 4.6 Equivalent)", restart Unity and all will work like as expected.

I using MIDI only to read notes/tempos, then, i dont know if is fully functional, but for what i need its ok, hope work for you too ;)

And the author is very attentive.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CDKML · Jan 02, 2018 at 02:38 PM 0
Share

Thanks! I finally tried to integrate the library and now it's working perfect. I had to delete the DryWet$$anonymous$$idi.Test folder and read this reddit thread to make everything work fine in Visual Studio 2015 and that's all. Now i just have to find the script where i should put my $$anonymous$$IDI song and play it :)

avatar image albertvegara · Sep 26, 2018 at 04:48 PM 0
Share

I am legit going to suck your dick. Thank you

avatar image
0

Answer by melanchall · May 25 at 05:51 PM

Official DryWetMIDI asset has been released in Unity Asset Store so now you can use standard Unity ways to integrate the library. More info in the Using in Unity article.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

123 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why are .NetStandard 1.0 libraries not working? 0 Answers

NotImplementedException: Unmanaged activation is not supported 0 Answers

[Unity 2017 bug] .NET 4.6 Dll's references problem 0 Answers

Set cursor position at the middle of the screen. 1 Answer

Creating multiple instances of a dll object 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges