Csound Csound-dev Csound-tekno Search About

[Csnd] how to just run a midi file, and how to render it and save as a wave file.

Date2020-05-18 22:33
FromZoe Byrne
Subject[Csnd] how to just run a midi file, and how to render it and save as a wave file.
Attachmentschor_308-.mid  
Hello all,
I could not found anywhere (not in this list, not in the floss manual, not in the web at all) a .csd file that takes a .mid file and just runs it. Does anyone have / know where is a file that does it?
Second. does someone have / know where is a .csd file to render a .mid file and get a .wav file from it?
Thanks in advance,
Zoe Byrne

p.s.: a .mid file is attached to check any .csd files that do what i ask.
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-05-18 22:41
From"Jeanette C."
SubjectRe: [Csnd] how to just run a midi file, and how to render it and save as a wave file.
Hi Zoe,
May 18 2020, Zoe Byrne has written:
...
> a .csd file that takes a .mid file and just runs it.
I think you do this with Csound -F option, which you can specify in a
.csd file in the

block:

-o out.wav -W -F file.mid

-o will specify an output filename and -W will make sure that it is a
WAV file.

I _THINK_ the instruments that you write should accept note number in p4
and velocity in p5.
You should find further information in the Csound reference manual under
MIDI/Score interoperability here:
https://csound.com/docs/manual/MidiInterop.html

HTH!

Best whishes,

Jeanette
...

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Twitter: https://twitter.com/jeanette_c_s
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

I know you're out there and I know that you still care <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-05-18 22:50
FromPete Goodeve
SubjectRe: [Csnd] how to just run a midi file, and how to render it and save as a wave file.
AttachmentsNone  

Date2020-05-18 23:10
FromRichard
SubjectRe: [Csnd] how to just run a midi file, and how to render it and save as a wave file.

A midi file does not produce sound, so you cannot 'just run it'.
The file contains information about what notes are to be played (at what velocity and time, etc).
Midi files are input to a sound generating device or synthesizer.

Most midi files are so called 'General midi files' and they also contain a suggestion of what instrument should be played on a certain channel, like bass, piano, drums, etc.
But you are free to choose another instrument if you like.

It is certainly possible to create a csd that generates a wave file from a (general) midi file.

Richard

On 18/05/2020 23:33, Zoe Byrne wrote:
Hello all,
I could not found anywhere (not in this list, not in the floss manual, not in the web at all) a .csd file that takes a .mid file and just runs it. Does anyone have / know where is a file that does it?
Second. does someone have / know where is a .csd file to render a .mid file and get a .wav file from it?
Thanks in advance,
Zoe Byrne

p.s.: a .mid file is attached to check any .csd files that do what i ask.
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-05-18 23:36
FromSteven Yi
SubjectRe: [Csnd] how to just run a midi file, and how to render it and save as a wave file.
The FLOSS manual has a section on reading MIDI files:


The example file there should be a good start that you can use a template and put in instruments of your own.


On Mon, May 18, 2020 at 5:34 PM Zoe Byrne <crazypiano1000@gmail.com> wrote:
Hello all,
I could not found anywhere (not in this list, not in the floss manual, not in the web at all) a .csd file that takes a .mid file and just runs it. Does anyone have / know where is a file that does it?
Second. does someone have / know where is a .csd file to render a .mid file and get a .wav file from it?
Thanks in advance,
Zoe Byrne

p.s.: a .mid file is attached to check any .csd files that do what i ask.
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here