<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hello Alexandre,<br>
<br>
Yes, [else/midi] v.1.0.0 rc-7 can do it, but... It's Text format is
not fully time-wise compatible with [cyclone/seq] v.0.7.0 output.<br>
<br>
Examples using the same MIDI file saved as TEXTE file:<br>
[else/midi] -> file.txt with delta time (ms) between 2 successive
lines<br>
39.0625 153 53 0;<br>
46.875 151 84 0;<br>
0 151 81 70;<br>
13.0208 145 36 11;<br>
5.20833 153 81 66;<br>
0 177 1 0;<br>
0 225 0 64;<br>
39.0625 153 81 0;<br>
65.1042 153 81 56;<br>
39.0625 153 81 0;<br>
65.1042 153 51 51;<br>
39.0625 153 51 0;<br>
65.1042 153 81 59;<br>
39.0625 153 81 0;<br>
0 145 36 0;<br>
65.1042 153 81 58;<br>
<br>
[cyclone/seq] -> file.txt with cumulative delta time (ms) from
the beginning of the song<br>
7565.1 153 53 0;<br>
7611.98 151 84 0;<br>
7611.98 151 81 70;<br>
7625 145 36 11;<br>
7630.21 153 81 66;<br>
7630.21 177 1 0;<br>
7630.21 225 0 64;<br>
7669.27 153 81 0;<br>
7734.37 153 81 56;<br>
7773.44 153 81 0;<br>
7838.54 153 51 51;<br>
7877.6 153 51 0;<br>
7942.71 153 81 59;<br>
7981.77 153 81 0;<br>
7981.77 145 36 0;<br>
8046.87 153 81 58;<br>
<br>
It would be useful if both MIDI Sequencer objects can directly share
the same Text format, for both file.txt and object's [print output],
so previous files.txt done with [cyclone/seq] can be directly reused
with [else/midi].<br>
<br>
Thanks.<br>
- - - - - - -<br>
<div class="moz-signature">Best, Joe<br>
- - - - - - -<br>
<br>
</div>
<div class="moz-cite-prefix">Le 22/04/2023 à 20:31, Alexandre Torres
Porres a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAEAsFmjumuW56Um0WWA3WmO=Rw6asR=+qhXj00_AJTGr5dEk4Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi, the [else/midi] object can save a midi file to
text in a format that can be used in [text]. </div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em sáb., 22 de abr. de 2023 às
10:00, Peter P. <<a href="mailto:peterparker@fastmail.com"
moz-do-not-send="true" class="moz-txt-link-freetext">peterparker@fastmail.com</a>>
escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks
Miller, Christof, Patko,<br>
<br>
midi2sco looks really good, I also found midi2csv which does a
similar<br>
job, keeping the midi pitch notation but possibly specifying
time in<br>
midi ticks, hence needing some polishing of the results as
well.<br>
<br>
best, Peter<br>
<br>
* Miller Puckette <<a
href="mailto:mpuckette@cloud.ucsd.edu" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">mpuckette@cloud.ucsd.edu</a>>
[2023-04-22 13:26]:<br>
> I've been using the "midi2sco" program to convert MIDI
files to csound<br>
> scores and then either reading the csound straight into a
text object (read<br>
> -c message so end-of-line terminates lists) - and/or
writing simple awk<br>
> scripts to change csound pitch notation back into MIDI
pitches and convert<br>
> times to milliseconds.<br>
> <br>
> cheers<br>
> <br>
> Miller<br>
> <br>
> On 4/22/23 12:57, Christof Ressi wrote:<br>
> > You can read the MIDI file with [mrpeach/midifile],
output everything in<br>
> > a loop and save the MIDI messages in a [text]
object. You just need to<br>
> > calculate the appropriate time delta between
messages.<br>
> > <br>
> > Christof<br>
> > <br>
> > On 22.04.2023 07:46, Peter P. wrote:<br>
> > > Hi,<br>
> > > <br>
> > > starting to use [text sequence] instead of
[qlist] more and more, I am<br>
> > > wondering how difficult it might be to write an
external script that<br>
> > > converts .mid file into .txt usable by
[textfile sequence]?<br>
> > > <br>
> > > Has anyone attempted something similar already?
What would be the<br>
> > > easiest language and/or libraries to do this on
DebianGNU Linux?<br>
> > > <br>
> > > Thanks!<br>
> > > Peter<br>
> > > <br>
> > > _______________________________________________<br>
> > > <a href="mailto:Pd-list@lists.iem.at"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">Pd-list@lists.iem.at</a>
mailing list<br>
> > > UNSUBSCRIBE and account-management -> <a
href="https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FX8XWZP4VHyBnFI5axOis2enTs45LT8_Vo4SMqvp-FvMqA5qk59VeeqWL6VVeoi70CbHzKynWW-sEg$"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FX8XWZP4VHyBnFI5axOis2enTs45LT8_Vo4SMqvp-FvMqA5qk59VeeqWL6VVeoi70CbHzKynWW-sEg$</a><br>
</blockquote>
</div>
</blockquote>
</body>
</html>