Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Accept MIDI input data via pipe #286

Open
williamsharkey opened this issue Mar 21, 2019 · 2 comments
Open

Accept MIDI input data via pipe #286

williamsharkey opened this issue Mar 21, 2019 · 2 comments

Comments

@williamsharkey
Copy link
Contributor

williamsharkey commented Mar 21, 2019

I am generating midi input files to MrsWatson programmatically, and was wondering if MrsWatson might be amenable to allowing the midi file to be piped in via stdin, by specifying "-" instead of a file path.

For example, suppose midigen.exe generates a midi file. Instead of using a temporary file like so:
midigen > temp.mid && mrswatson -p "c:\vst\Synth1.dll,mellowsynth.fxp" -m temp.mid -o out.wav

one could write:
midigen | mrswatson -p "c:\vst\Synth1.dll,mellowsynth.fxp" -m - -o out.wav

This would be similar to output option to write to stdout (cf: mrswatson --help output).

One could then more easily make processing chains piping in midi and piping out audio w/o junky temp files. (or is this a Pipedream?)

@varenc
Copy link

varenc commented Jun 10, 2020

I'm interested in doing this as well. @williamsharkey did you ever figure out a good solution?

@nikreiman nikreiman changed the title pipe midi input file Accept MIDI input data via pipe Jun 12, 2020
@nikreiman
Copy link
Member

This is a possibility, but I'm not sure how difficult it would be to implement. I'll take a look at it, though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants