thanks Ben - hmm I think I will use a midi/csv utility
http://www.fourmilab.ch/webtools/midicsv/ and see how that goes. Another
option is http://playitbyr.org/index.html and output to Csound and from
there to midi. PlayitbyR and into Csound might be something that suits your
work, Csound being enormously powerful although a bit clunky to use -
although I haven't used it in about 10 years - maybe it has improved since
then, perhaps I'd better look  :)

thanks, Greg



>tuneR writes Wave (.WAV?) files as output; it can also write output

suitable for lilypond input -- and lilypond can write MIDI output.

  Bottom line, I think you may have to use an external program to
convert Wave to midi, or something.  It wouldn't be too hard to
write ABC (http://abcnotation.org) output and run it through abc2midi ...
http://rpubs.com/bbolker/3237 is an example of some stuff I was
playing with recently along these lines.

  I don't see any midi input anywhere ... library("sos"); findFn("midi")
doesn't give a lot of hits ...






On 27 December 2012 10:03, Greg Hooper <gregstuarthooper@gmail.com> wrote:

> thanks Mehmet - but I can't see how to read or write midifiles from the
> tuneR docs. Looks primarily for wav file analysis. Am I missing something?
> Greg
>
> On 27 December 2012 09:49, Suzen, Mehmet <msuzen@gmail.com> wrote:
>
>> Hi Greg,
>>
>>  you can try tuneR :
>> http://cran.r-project.org/web/packages/tuneR/
>>
>> Best,
>> -m
>>
>> On 26 December 2012 22:04, Greg Hooper <gregstuarthooper@gmail.com>
>> wrote:
>> > Hi, I have been using Matlab to produce midi files for sonfication and
>> > algorithmic composition projects. I would like to transfer that work
>> into R
>> > (in which I am a total newbie) and have been looking for a package that
>> can
>> > read and write midi files. No success so far so does anyone know of
>> one? I
>> > have seen that I can output to csv and then use a utility to convert
>> csv to
>> > midi (and vice-versa). But native R would be better if possible.
>> > thanks for any help, Greg
>> >
>> >         [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > R-help@r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>>
>
>

	[[alternative HTML version deleted]]


