Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: Re: Re: Multiple MIDI Input Devices?

Date2009-02-23 03:11
From"Art Hunkins"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Multiple MIDI Input Devices?
Hi, Andres,

I'm having good luck with Csound5.10.1 and WindowsXP, using your new 
pmidi.dll with -Ma. Thanks much for this enhancement.

The new pmidi.dll does not, however, work with any older versions 
(Csound5.09 for example). The error message is: "incompatible with this 
version of Csound (2.0/1.6)." If there's any way around this, please let me 
know.

In addition, the new pmidi.dll seems to require the most recent versions of 
portmidi, pthread, and porttime (I seem to recall the same kind of 
compatibility message as above, if these are not updated too).

Art Hunkins

----- Original Message ----- 
From: "Andres Cabrera" 
To: 
Sent: Tuesday, February 17, 2009 11:27 AM
Subject: [Csnd] Re: Re: Re: Re: Re: Multiple MIDI Input Devices?


Hi Art,

I think the dll should work with earlier versions as well as the
csound plugin API has not changed AFAIK. Try it and let us know if it
works.

Cheers,
Andrés

On Tue, Feb 17, 2009 at 11:09 AM, Art Hunkins  wrote:
> Andres:
>
> With regard to PortMIDI for Windows:
> Is your new PortMIDI available aside from (as part of) Csound 5.10?
> E.g., can I simply download the new .dll and substitute if for the .dll in
> some other v5.xx?
> Or are other module involved as well?
>
> If so, others might be interested in this "solution" as well.
>
> Art Hunkins
>
> ----- Original Message ----- From: "Andres Cabrera" 
> 
> To: 
> Sent: Monday, February 16, 2009 11:57 AM
> Subject: [Csnd] Re: Re: Re: Multiple MIDI Input Devices?
>
>
> Hi,
>
> I implemented it (not exactly but made it possible to listen to all
> MIDI devices) only for PortMIDI, and the PortMIDI module is not
> included in the XO version of csound, only the alsa MIDI module is
> available. The alsa sources contain some helpful information. I'll see
> if I can cook something.
>
> Cheers,
> Andrés
>
> On Sun, Feb 15, 2009 at 7:35 PM, Steven Yi  wrote:
>>
>> I thought Andres implemented this in the latest Csound version that
>> was released?
>>
>> On Sun, Feb 15, 2009 at 2:28 PM, joachim heintz 
>> wrote:
>>>
>>> my vote for this, too ...
>>>       joachim
>>>
>>>
>>> Am 15.02.2009 um 22:27 schrieb Art Hunkins:
>>>
>>>> I believe Rick made this developer request some time ago; I don't 
>>>> recall
>>>> a
>>>> response to it.
>>>>
>>>> What I'd like is an expansion of the -M flag, to include a
>>>> comma-delineated list of input devices.
>>>>
>>>> Example (for Windows): -M0,8,11
>>>>
>>>> The idea is for a .csnd file to be able to recognize and process MIDI
>>>> input from several devices.
>>>>
>>>> Such would not be necessary if USB controllers had "USB Thru" 
>>>> comparable
>>>> to "MIDI Thru." Or for that matater if there were "USB Merge" similar 
>>>> to
>>>> "MIDI Merge" boxes.
>>>>
>>>> I realize the MIDIOx can do this in software on the PC, and there is a
>>>> comparable utility on the Mac. (I'm thinking though of Linux on the
>>>> OLPC.)
>>>>
>>>> I want to stay away from a software utility, however, as I need to keep
>>>> everything as simple as possible for kids (OLPC).
>>>>
>>>> This would appear to be a rather minimal developer task as long as
>>>> PortMIDI, etc., allowed it. I suppose, too, that the implementation
>>>> would
>>>> involve supporting MIDI libraries for the various platforms. (I'm
>>>> particularly concerned about Linux, as I'd like to get collaborative
>>>> Activities developed for Sugar that involve kids using multiple MIDI
>>>> controllers on the same OLPC. The controllers I want to use are all 
>>>> USB,
>>>> as
>>>> they wouldn't require an additional power source.)
>>>>
>>>> I'd appreciate developer response on such a possibility.
>>>>
>>>> Art Hunkins
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe
>>>> csound"
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
>
>
> Andrés
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"=
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"= 


Date2009-02-23 13:58
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Multiple MIDI Input Devices?
Hi Art,

Since the Csound API number was bumped, I guess this makes the current
dll incompatible (It's actually only incompatible in numbers, since I
would think it's actually binary compatible). The code is not
incompatible, but you would have to get an earlier version and build
the dll for that version. If you do that, that dll will work for any
previous version.

Cheers,
Andrés

On Sun, Feb 22, 2009 at 10:11 PM, Art Hunkins  wrote:
> Hi, Andres,
>
> I'm having good luck with Csound5.10.1 and WindowsXP, using your new
> pmidi.dll with -Ma. Thanks much for this enhancement.
>
> The new pmidi.dll does not, however, work with any older versions
> (Csound5.09 for example). The error message is: "incompatible with this
> version of Csound (2.0/1.6)." If there's any way around this, please let me
> know.
>
> In addition, the new pmidi.dll seems to require the most recent versions of
> portmidi, pthread, and porttime (I seem to recall the same kind of
> compatibility message as above, if these are not updated too).
>
> Art Hunkins
>
> ----- Original Message ----- From: "Andres Cabrera" 
> To: 
> Sent: Tuesday, February 17, 2009 11:27 AM
> Subject: [Csnd] Re: Re: Re: Re: Re: Multiple MIDI Input Devices?
>
>
> Hi Art,
>
> I think the dll should work with earlier versions as well as the
> csound plugin API has not changed AFAIK. Try it and let us know if it
> works.
>
> Cheers,
> Andrés
>
> On Tue, Feb 17, 2009 at 11:09 AM, Art Hunkins  wrote:
>>
>> Andres:
>>
>> With regard to PortMIDI for Windows:
>> Is your new PortMIDI available aside from (as part of) Csound 5.10?
>> E.g., can I simply download the new .dll and substitute if for the .dll in
>> some other v5.xx?
>> Or are other module involved as well?
>>
>> If so, others might be interested in this "solution" as well.
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: "Andres Cabrera"
>> 
>> To: 
>> Sent: Monday, February 16, 2009 11:57 AM
>> Subject: [Csnd] Re: Re: Re: Multiple MIDI Input Devices?
>>
>>
>> Hi,
>>
>> I implemented it (not exactly but made it possible to listen to all
>> MIDI devices) only for PortMIDI, and the PortMIDI module is not
>> included in the XO version of csound, only the alsa MIDI module is
>> available. The alsa sources contain some helpful information. I'll see
>> if I can cook something.
>>
>> Cheers,
>> Andrés
>>
>> On Sun, Feb 15, 2009 at 7:35 PM, Steven Yi  wrote:
>>>
>>> I thought Andres implemented this in the latest Csound version that
>>> was released?
>>>
>>> On Sun, Feb 15, 2009 at 2:28 PM, joachim heintz 
>>> wrote:
>>>>
>>>> my vote for this, too ...
>>>>      joachim
>>>>
>>>>
>>>> Am 15.02.2009 um 22:27 schrieb Art Hunkins:
>>>>
>>>>> I believe Rick made this developer request some time ago; I don't
>>>>> recall
>>>>> a
>>>>> response to it.
>>>>>
>>>>> What I'd like is an expansion of the -M flag, to include a
>>>>> comma-delineated list of input devices.
>>>>>
>>>>> Example (for Windows): -M0,8,11
>>>>>
>>>>> The idea is for a .csnd file to be able to recognize and process MIDI
>>>>> input from several devices.
>>>>>
>>>>> Such would not be necessary if USB controllers had "USB Thru"
>>>>> comparable
>>>>> to "MIDI Thru." Or for that matater if there were "USB Merge" similar
>>>>> to
>>>>> "MIDI Merge" boxes.
>>>>>
>>>>> I realize the MIDIOx can do this in software on the PC, and there is a
>>>>> comparable utility on the Mac. (I'm thinking though of Linux on the
>>>>> OLPC.)
>>>>>
>>>>> I want to stay away from a software utility, however, as I need to keep
>>>>> everything as simple as possible for kids (OLPC).
>>>>>
>>>>> This would appear to be a rather minimal developer task as long as
>>>>> PortMIDI, etc., allowed it. I suppose, too, that the implementation
>>>>> would
>>>>> involve supporting MIDI libraries for the various platforms. (I'm
>>>>> particularly concerned about Linux, as I'd like to get collaborative
>>>>> Activities developed for Sugar that involve kids using multiple MIDI
>>>>> controllers on the same OLPC. The controllers I want to use are all
>>>>> USB,
>>>>> as
>>>>> they wouldn't require an additional power source.)
>>>>>
>>>>> I'd appreciate developer response on such a possibility.
>>>>>
>>>>> Art Hunkins
>>>>>
>>>>>
>>>>> Send bugs reports to this list.
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe
>>>>> csound"
>>>>
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"=
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
>
>
> Andrés
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"=
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 


Andrés


Date2009-02-23 14:06
FromJonathan vanAtom
Subject[Csnd] Bars/Beats
Hey guys

One of the difficult things I'm encountering as I'm learning Csound is  
working with units of time. By default, Csound times events in  
seconds, which can be had to work with logically unless your working  
in an evenly dividable tempo (i.e. 60, 120bpm). I've found in Dr B's  
tutorials some macros that handle the conversion to bars and beats, on  
of which is posted below.

I was just wondering how you guys deal with this in your songs and if  
anyone has some advice on an easy way to work this.

;**********Beat  
Macro 
********************************************************************
#define BEAT #[60 / $BPM]#
#define th #[$BEAT / 8]#
#define s #[$BEAT / 4]#
#define sd #[($BEAT / 4) * 1.5]#
#define st #[($BEAT / 2) / 3]#
#define e #[$BEAT / 2]#
#define ed #[($BEAT / 2) * 1.5]#
#define et #[$BEAT / 3]#
#define q #[$BEAT]#
#define qd #[$BEAT * 1.5]#
#define qt #[$BEAT * (2/3)]#
#define h #[$BEAT * 2]#
#define hd #[$BEAT * 3]#
#define ht #[$BEAT * (4/3)]#
#define w #[$BEAT * 4]#
#define m(MNUMBER'BEATNUMBER) #[(($BEAT * $PERMEASURE) * ($MNUMBER  
-1 )) + (($BEATNUMBER - 1) * $BEAT)]#
#define r #0#
;***************************************************************************************
; ENTER BPM HERE!
#define BPM #131.94#
; ENTER BEATS PER MEASURE HERE!
#define PERMEASURE #4#


Thanks guys!

JvA
----------
http://music.jonathanvanatom.com
http://www.myspace.com/vanatom
cyberiam@yahoo.com


Date2009-02-23 14:43
FromAidan Collins
Subject[Csnd] Re: Bars/Beats
I have usually just worked with 1 second beats. So then a quarter note
is .25, a half .5, and an eighth .125 etc. since I just feel
comfortable with fractions as decimals.
Then you can use a tempo statement (t) to adjust the performance to be
the tempo you are actually looking for.

Aidan



On Mon, Feb 23, 2009 at 9:06 AM, Jonathan vanAtom  wrote:
> Hey guys
>
> One of the difficult things I'm encountering as I'm learning Csound is
> working with units of time. By default, Csound times events in seconds,
> which can be had to work with logically unless your working in an evenly
> dividable tempo (i.e. 60, 120bpm). I've found in Dr B's tutorials some
> macros that handle the conversion to bars and beats, on of which is posted
> below.
>
> I was just wondering how you guys deal with this in your songs and if anyone
> has some advice on an easy way to work this.
>
> ;**********Beat
> Macro********************************************************************
> #define BEAT #[60 / $BPM]#
> #define th #[$BEAT / 8]#
> #define s #[$BEAT / 4]#
> #define sd #[($BEAT / 4) * 1.5]#
> #define st #[($BEAT / 2) / 3]#
> #define e #[$BEAT / 2]#
> #define ed #[($BEAT / 2) * 1.5]#
> #define et #[$BEAT / 3]#
> #define q #[$BEAT]#
> #define qd #[$BEAT * 1.5]#
> #define qt #[$BEAT * (2/3)]#
> #define h #[$BEAT * 2]#
> #define hd #[$BEAT * 3]#
> #define ht #[$BEAT * (4/3)]#
> #define w #[$BEAT * 4]#
> #define m(MNUMBER'BEATNUMBER) #[(($BEAT * $PERMEASURE) * ($MNUMBER -1 )) +
> (($BEATNUMBER - 1) * $BEAT)]#
> #define r #0#
> ;***************************************************************************************
> ; ENTER BPM HERE!
> #define BPM #131.94#
> ; ENTER BEATS PER MEASURE HERE!
> #define PERMEASURE #4#
>
>
> Thanks guys!
>
> JvA
> ----------
> http://music.jonathanvanatom.com
> http://www.myspace.com/vanatom
> cyberiam@yahoo.com
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>