GithubHelp home page GithubHelp logo

midifile's Introduction

midifile

Read and write MIDI files (.mid). Open midifile-help.pd with Pd to get detailed information about supported methods.

Author: Martin Peach

midifile's People

Contributors

mrpeach-xx avatar reduzent avatar umlaeute avatar jonwwilkes avatar

Watchers

Chris McCormick avatar  avatar  avatar Dan Wilcox avatar

midifile's Issues

Having problems getting [midifile] to work

This isn't really an "issue", I don't think, but I'm having problems getting [midifile] to work. I've had no luck creating MIDI files, except for the most trivial of examples. If I try to play back the file, I just get a stream of error messages like the following:

midifile: No running status on track 0 at 957

And if I try to play it back using [cyclone/seq], I get the following error messages:

seq's warning: missing running status in midi file... skip to end of track
seq's warning: no valid miditracks

I've posted this question on the forum as well as the mailing list, but haven't been able to resolve the problem. Is there some place I can find examples, other than what's in the help file for [midifile]? Maybe if I can look at how other people are using it, I can figure out what I'm doing wrong. I've tried Google, but didn't come up with anything.

I'm using the latest version available through Deken, v20200615, (although I don't know if there's a later version that isn't available in Deken yet), under Pd 0.52.1 and Windows 7 (64-bit).

Thanks.

Tasklist:

  • The original issue has been determined to be a problem with my patch, not with [midifile]. Sorry!
  • The wrong number is reported by [midifile] for the number of bytes written to the file. It always seems to be 1 or 2 bytes greater than the actual number of bytes in the file.
  • When reading a file, [track n( messages seem to be ignored. All tracks are played.
  • At least under Windows, an error message is sometimes displayed in the Pd console about delete permission for the temporary files that are generated when writing to a MIDI file.
  • Errors in help file: the [route_events] subpatch of [midifile_read] shows CC messages as being in the range of 176 to 192 inclusive, but 192 is a Program Change message. Also, any messages except Note On, Note Off, Control Change and System Exclusive messages are considered System messages. So Aftertouch, Channel Pressure, Pitch Bend, Channel Mode, etc., aren't being routed properly. It's not clear to me whether or not these messages are actually being written to an output file, I haven't looked at the source code very closely. But IMHO, the help file should indicate whether or not they're supported.

Image1

Errors in help file for [midifile] object

Errors in help file: the [route_events] subpatch of [midifile_read] shows CC messages as being in the range of 176 to 192 inclusive, but 192 is a Program Change message. Also, any messages except Note On, Note Off, Control Change and System Exclusive messages are considered System messages. So Aftertouch, Channel Pressure, Pitch Bend, Channel Mode, etc., aren't being routed properly. It's not clear to me whether or not these messages are actually being written to an output file, I haven't looked at the source code very closely. But IMHO, the help file should indicate whether or not they're supported.

162739345-7bd92fa1-0604-4d78-8701-bca6335e9dad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.