Csound Csound-dev Csound-tekno Search About

Midi file capabilities

Date2016-05-06 10:34
FromLars Indrek Hansson
SubjectMidi file capabilities

Hi!


Csound can render soundfiles with several opcodes, but the only way to

render a midifile is with the -F (or -midifile) flag in the options. That means

that only one midifile at a time can be used within an orchestra. This seems

odd. Imagine if one only could use one soundfile at a time within a csound

orchestra. That would have been pretty primitive, wouldn´t it?


Perhaps it´s possible to assign several midifiles in the options but even so

there´s no way of controlling the rendition of them, i.e playing them

independently or looping them. Or have I missed something?


Wouldn´t it enhance Csounds capabilities considerably if you could render

midifiles within the orchestra like soundfiles are rendered, perhaps storing

them in a GEN-function in the same way you store soundfiles in GEN1 and

maybe having a pointer to access the table with looping possibilities?


Are there any such plans?


/Lars





 


Date2016-05-06 10:58
FromRichard
SubjectRe: Midi file capabilities

Yes, this seems a bit limited indeed.

On the other hand, you can convert midi files to standard score and this way have more control over them, but it's a workaround...


Richard


On 06/05/16 11:34, Lars Indrek Hansson wrote:

Hi!


Csound can render soundfiles with several opcodes, but the only way to

render a midifile is with the -F (or -midifile) flag in the options. That means

that only one midifile at a time can be used within an orchestra. This seems

odd. Imagine if one only could use one soundfile at a time within a csound

orchestra. That would have been pretty primitive, wouldn´t it?


Perhaps it´s possible to assign several midifiles in the options but even so

there´s no way of controlling the rendition of them, i.e playing them

independently or looping them. Or have I missed something?


Wouldn´t it enhance Csounds capabilities considerably if you could render

midifiles within the orchestra like soundfiles are rendered, perhaps storing

them in a GEN-function in the same way you store soundfiles in GEN1 and

maybe having a pointer to access the table with looping possibilities?


Are there any such plans?


/Lars





 

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


Date2016-05-06 11:05
FromHlöðver Sigurðsson
SubjectRe: Midi file capabilities
I would suggest print the midi values and amp values to a file with fprints and read them with GEN23 and read them by index with tab_i. But there could be an opcode made that does this, maybe a lack of interest in non-realtime midi is the reason it has not yet been done. Don't think Supercollider can do this either, don't know about Max or Pd.

2016-05-06 11:58 GMT+02:00 Richard <zappfinger@gmail.com>:

Yes, this seems a bit limited indeed.

On the other hand, you can convert midi files to standard score and this way have more control over them, but it's a workaround...


Richard


On 06/05/16 11:34, Lars Indrek Hansson wrote:

Hi!


Csound can render soundfiles with several opcodes, but the only way to

render a midifile is with the -F (or -midifile) flag in the options. That means

that only one midifile at a time can be used within an orchestra. This seems

odd. Imagine if one only could use one soundfile at a time within a csound

orchestra. That would have been pretty primitive, wouldn´t it?


Perhaps it´s possible to assign several midifiles in the options but even so

there´s no way of controlling the rendition of them, i.e playing them

independently or looping them. Or have I missed something?


Wouldn´t it enhance Csounds capabilities considerably if you could render

midifiles within the orchestra like soundfiles are rendered, perhaps storing

them in a GEN-function in the same way you store soundfiles in GEN1 and

maybe having a pointer to access the table with looping possibilities?


Are there any such plans?


/Lars





 

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

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

Date2016-05-06 11:13
FromVictor Lazzarini
SubjectRe: Midi file capabilities
It would be a good thing and I have considered the idea before. However there would need to be
a redesign of how MIDI files are read. Currently, they work in similar way to the standard score 
(e.g. loaded and then played from beginning to end, but can be rewound, etc).

Off the top of my head, we could possibly design a reader that would just spew out RT events
and that is probably the easiest way to do it. In that case, it would be in addition to the -F option.

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 6 May 2016, at 11:05, Hlöðver Sigurðsson  wrote:
> 
> I would suggest print the midi values and amp values to a file with fprints and read them with GEN23 and read them by index with tab_i. But there could be an opcode made that does this, maybe a lack of interest in non-realtime midi is the reason it has not yet been done. Don't think Supercollider can do this either, don't know about Max or Pd.
> 
> 2016-05-06 11:58 GMT+02:00 Richard :
> Yes, this seems a bit limited indeed.
> 
> On the other hand, you can convert midi files to standard score and this way have more control over them, but it's a workaround...
> 
> 
> Richard
> 
> On 06/05/16 11:34, Lars Indrek Hansson wrote:
>> Hi!
>> 
>> 
>> Csound can render soundfiles with several opcodes, but the only way to
>> 
>> render a midifile is with the -F (or -midifile) flag in the options. That means
>> 
>> that only one midifile at a time can be used within an orchestra. This seems
>> 
>> odd. Imagine if one only could use one soundfile at a time within a csound
>> 
>> orchestra. That would have been pretty primitive, wouldn´t it?
>> 
>> 
>> Perhaps it´s possible to assign several midifiles in the options but even so
>> 
>> there´s no way of controlling the rendition of them, i.e playing them
>> 
>> independently or looping them. Or have I missed something?
>> 
>> 
>> Wouldn´t it enhance Csounds capabilities considerably if you could render
>> 
>> midifiles within the orchestra like soundfiles are rendered, perhaps storing
>> 
>> them in a GEN-function in the same way you store soundfiles in GEN1 and
>> 
>> maybe having a pointer to access the table with looping possibilities?
>> 
>> 
>> Are there any such plans?
>> 
>> 
>> /Lars
>> 
>> 
>> 
>> 
>> 
>>  
>> 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
> 
> 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

Date2016-05-06 11:13
FromLars Indrek Hansson
SubjectSV: [Csnd] Midi file capabilities

Yes, but if we had these kind of flexible GEN-tables/opcodes for rendering

midifiles it wouldn´t be non realtime. That´s the whole point. Being

able to play snippets of midifiles, loop them etc would create new

possibilities and let´s face it score syntax is not always the best solution

for every task and think of all the users that would like to write scores

in a more intuitive way.


/Lars 




Från: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> för Hlöðver Sigurðsson <hlolli@GMAIL.COM>
Skickat: den 6 maj 2016 12:05
Till: CSOUND@LISTSERV.HEANET.IE
Ämne: Re: [Csnd] Midi file capabilities
 
I would suggest print the midi values and amp values to a file with fprints and read them with GEN23 and read them by index with tab_i. But there could be an opcode made that does this, maybe a lack of interest in non-realtime midi is the reason it has not yet been done. Don't think Supercollider can do this either, don't know about Max or Pd.

2016-05-06 11:58 GMT+02:00 Richard <zappfinger@gmail.com>:

Yes, this seems a bit limited indeed.

On the other hand, you can convert midi files to standard score and this way have more control over them, but it's a workaround...


Richard


On 06/05/16 11:34, Lars Indrek Hansson wrote:

Hi!


Csound can render soundfiles with several opcodes, but the only way to

render a midifile is with the -F (or -midifile) flag in the options. That means

that only one midifile at a time can be used within an orchestra. This seems

odd. Imagine if one only could use one soundfile at a time within a csound

orchestra. That would have been pretty primitive, wouldn´t it?


Perhaps it´s possible to assign several midifiles in the options but even so

there´s no way of controlling the rendition of them, i.e playing them

independently or looping them. Or have I missed something?


Wouldn´t it enhance Csounds capabilities considerably if you could render

midifiles within the orchestra like soundfiles are rendered, perhaps storing

them in a GEN-function in the same way you store soundfiles in GEN1 and

maybe having a pointer to access the table with looping possibilities?


Are there any such plans?


/Lars





 

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

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

Date2016-05-06 11:22
FromVictor Lazzarini
SubjectRe: SV: [Csnd] Midi file capabilities
I am not talking about score syntax anywhere. I am talking about an opcode that spews out RT events,
not scores. It can possibly read files from specialised GEN tables, or it could read files directly. 
Scores do not come anywhere near this.

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 6 May 2016, at 11:13, Lars Indrek Hansson  wrote:
> 
> Yes, but if we had these kind of flexible GEN-tables/opcodes for rendering 
> midifiles it wouldn´t be non realtime. That´s the whole point. Being 
> able to play snippets of midifiles, loop them etc would create new 
> possibilities and let´s face it score syntax is not always the best solution 
> for every task and think of all the users that would like to write scores 
> in a more intuitive way.
> 
> /Lars 
> 
> 
> Från: A discussion list for users of Csound  för Hlöðver Sigurðsson 
> Skickat: den 6 maj 2016 12:05
> Till: CSOUND@LISTSERV.HEANET.IE
> Ämne: Re: [Csnd] Midi file capabilities
>  
> I would suggest print the midi values and amp values to a file with fprints and read them with GEN23 and read them by index with tab_i. But there could be an opcode made that does this, maybe a lack of interest in non-realtime midi is the reason it has not yet been done. Don't think Supercollider can do this either, don't know about Max or Pd.
> 
> 2016-05-06 11:58 GMT+02:00 Richard :
> Yes, this seems a bit limited indeed.
> On the other hand, you can convert midi files to standard score and this way have more control over them, but it's a workaround...
> 
> Richard
> 
> On 06/05/16 11:34, Lars Indrek Hansson wrote:
>> Hi!
>> 
>> Csound can render soundfiles with several opcodes, but the only way to 
>> render a midifile is with the -F (or -midifile) flag in the options. That means
>> that only one midifile at a time can be used within an orchestra. This seems 
>> odd. Imagine if one only could use one soundfile at a time within a csound 
>> orchestra. That would have been pretty primitive, wouldn´t it? 
>> 
>> Perhaps it´s possible to assign several midifiles in the options but even so 
>> there´s no way of controlling the rendition of them, i.e playing them 
>> independently or looping them. Or have I missed something?
>> 
>> Wouldn´t it enhance Csounds capabilities considerably if you could render 
>> midifiles within the orchestra like soundfiles are rendered, perhaps storing 
>> them in a GEN-function in the same way you store soundfiles in GEN1 and 
>> maybe having a pointer to access the table with looping possibilities?
>> 
>> Are there any such plans?
>> 
>> /Lars
>> 
>> 
>> 
>> 
>>  
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://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
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://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 tohttps://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