Csound Csound-dev Csound-tekno Search About

[Csnd] reading MIDI files

Date2011-08-31 14:16
Fromfrancesco
Subject[Csnd] reading MIDI files
Hello All,
i have some MIDI files that i would read in Csound, but i don't know much of
MIDI.
i'm trying something like 'minimalism', where i have a infinite loop of a
phrase (a MIDI file) and then it start a second loop phrase (another MIDI
file) over the first, ecc.
i see that using -F flags is for reading one only MIDI file.
Is that possible and how?

Thanks,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754092.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 14:29
FromVictor Lazzarini
SubjectRe: [Csnd] reading MIDI files
MIDI files are dead easy to play with Csound. You can do this

1) use option -F  to drive instruments from the MIDI file

2) if you don't want to bother with MIDI opcodes you can just use a  
straight mapping of velocity and
note number to p-fields e.g.:

--midi-velocity-amp=4    --midi-key-cps=5

which will map velocity to amp linearly and place it in p4 and note  
number to cps and
place it in p5.

Then you can just use these in your instruments. The default mapping  
would also connect
channel to instrument (but you can using massign to change it).

You get polyphony for free (no need for any extra programming).

Regards

Victor


On 31 Aug 2011, at 14:16, francesco wrote:

> Hello All,
> i have some MIDI files that i would read in Csound, but i don't know  
> much of
> MIDI.
> i'm trying something like 'minimalism', where i have a infinite loop  
> of a
> phrase (a MIDI file) and then it start a second loop phrase (another  
> MIDI
> file) over the first, ecc.
> i see that using -F flags is for reading one only MIDI file.
> Is that possible and how?
>
> Thanks,
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754092.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 14:37
Fromfrancesco
Subject[Csnd] Re: reading MIDI files
Thank You Mr. Victor,
but can i read more than one MIDI files in the same csd?

ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754152.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 14:44
FromVictor Lazzarini
SubjectRe: [Csnd] Re: reading MIDI files
I don't think so, but I never tried to see what happens. A solution is  
to have a MIDI file player sending events to a port, which you then  
open with Csound.
You can do that by setting up alsamidi software ports, which I have  
done in the past but can't remember exactly how it is done (Dave  
Phillips, please help!),
but you can check in the amidi man page.

Victor
On 31 Aug 2011, at 14:37, francesco wrote:

> Thank You Mr. Victor,
> but can i read more than one MIDI files in the same csd?
>
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754152.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 14:52
FromVictor Lazzarini
SubjectRe: [Csnd] Re: reading MIDI files
$ amidi -p virtual-port

will create a port. Then you can use aplaymidi  to send data to that  
port.

and

csound  -M virtual-port

should catch the data in Csound.

Victor

On 31 Aug 2011, at 14:44, Victor Lazzarini wrote:

> I don't think so, but I never tried to see what happens. A solution  
> is to have a MIDI file player sending events to a port, which you  
> then open with Csound.
> You can do that by setting up alsamidi software ports, which I have  
> done in the past but can't remember exactly how it is done (Dave  
> Phillips, please help!),
> but you can check in the amidi man page.
>
> Victor
> On 31 Aug 2011, at 14:37, francesco wrote:
>
>> Thank You Mr. Victor,
>> but can i read more than one MIDI files in the same csd?
>>
>> ciao,
>> francesco.
>>
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754152.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 14:55
Fromfrancesco
Subject[Csnd] Re: reading MIDI files
Ah, ah!
then Csound is not perfect!
I will go to buy something more professional...
(obviously i'm joking)

Thank Mr. Victor, i will try to see how suggested.

ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754229.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 14:57
FromVictor Lazzarini
SubjectRe: [Csnd] Re: reading MIDI files
I was probably wrong in my amidi prescription, which was untested and  
from memory. I think you might need to load up virmidi:
See this tutorial:
http://www.faqs.org/docs/Linux-HOWTO/MIDI-HOWTO.html


On 31 Aug 2011, at 14:55, francesco wrote:

> Ah, ah!
> then Csound is not perfect!
> I will go to buy something more professional...
> (obviously i'm joking)
>
> Thank Mr. Victor, i will try to see how suggested.
>
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754229.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-08-31 22:03
FromDavidW
SubjectRe: [Csnd] Re: reading MIDI files

On 31/08/2011, at 11:57 PM, Victor Lazzarini wrote:

I was probably wrong in my amidi prescription, which was untested and from memory. I think you might need to load up virmidi:
See this tutorial:
http://www.faqs.org/docs/Linux-HOWTO/MIDI-HOWTO.html

How to do this on OSX? - has anyone tried ipMIDI, for example?

Gosh, MIDI - such a blast from the past! - I must get a MIDI interface for OSX - any recommendations?

David



On 31 Aug 2011, at 14:55, francesco wrote:

Ah, ah!
then Csound is not perfect!
I will go to buy something more professional...
(obviously i'm joking)

Thank Mr. Victor, i will try to see how suggested.

ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754229.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

_____________________________________________
Dr David Worrall
Experimental Composer, Polymedia
Adjunct Research Fellow, Australian National University
Board Member, International Community for Auditory Display
Regional Editor, Organised Sound (CUP) 
IT Projects, Music Council of Australia 


Date2011-09-01 10:18
FromVictor Lazzarini
SubjectRe: [Csnd] Re: reading MIDI files
On OSX is dead easy, just use the IAC MIDI driver. You bring it online in the Audio MIDI utility and then just output to it and use it as input to Csound.

Victor
On 31 Aug 2011, at 22:03, DavidW wrote:


On 31/08/2011, at 11:57 PM, Victor Lazzarini wrote:

I was probably wrong in my amidi prescription, which was untested and from memory. I think you might need to load up virmidi:
See this tutorial:
http://www.faqs.org/docs/Linux-HOWTO/MIDI-HOWTO.html

How to do this on OSX? - has anyone tried ipMIDI, for example?

Gosh, MIDI - such a blast from the past! - I must get a MIDI interface for OSX - any recommendations?

David



On 31 Aug 2011, at 14:55, francesco wrote:

Ah, ah!
then Csound is not perfect!
I will go to buy something more professional...
(obviously i'm joking)

Thank Mr. Victor, i will try to see how suggested.

ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/reading-MIDI-files-tp4754092p4754229.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

_____________________________________________
Dr David Worrall
Experimental Composer, Polymedia
Adjunct Research Fellow, Australian National University
Board Member, International Community for Auditory Display
Regional Editor, Organised Sound (CUP) 
IT Projects, Music Council of Australia 


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie