Comments (4)
OK, I've added TextEncoding
property to ReadingSettings
and WritingSettings
. These changes will be available in the next release of the DryWetMIDI.
To write the text of text-based meta events, for example, in Unicode you will be able to specify desired encoding via WritingSettings
:
midiFile.Write("output.mid",
settings: new WritingSettings { TextEncoding = Encoding.Unicode });
and then you can read this file using the same encoding via ReadingSettings
:
var midiFile = MidiFile.Read("input.mid",
settings: new ReadingSettings { TextEncoding = Encoding.Unicode });
from drywetmidi.
DryWetMIDI 1.2.0 has been released. This release contains a fix for this bug as described in the post above.
from drywetmidi.
Max,
Thanks for this. For the text fields (that are represented as 8-bit ASCII, not Unicode), the value "TextEncoding = Encoding.GetEncoding(28591)" works for me in this specific case (28591 is ISO 8859-1, aka Latin-1).
Kind regards,
Nico
from drywetmidi.
Nico,
Sounds good, glad to hear that you've solved your problem :)
Max
from drywetmidi.
Related Issues (20)
- Anytime I retrieve a device from InputDevice.GetByIndex() it returns a new instance of that device. HOT 4
- Failing to Dispose() of an InputDevice results in never being able to use that device again. Until Unity restart. HOT 3
- Connection issues and how to debug them? HOT 5
- Can't sync midi file notes with audio file HOT 12
- HELP !!! Notes in panel to midi file?? HOT 9
- please help a noob HOT 6
- Remove all notes example from the README not working HOT 9
- Using wetdrymidi in C# project causes error CS0009
- InputDevice event listening crash HOT 2
- Crash when running in Unity on M2 MacBook HOT 3
- MidiDeviceException Internal error HOT 9
- Android Support
- Unity cannot exit after use HOT 10
- MidiClock sync problem HOT 6
- MIDI Tempo changes count returns 1 but the song has 6 tempo changes. HOT 1
- add il2cpp mode HOT 5
- CustomChunk no mididata throw error HOT 4
- CSharp Code Error HOT 2
- MIDI File returns error: InvalidMetaEventParameterValueException HOT 1
- Unable to send Note-On event to device HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drywetmidi.