Csound Csound-dev Csound-tekno Search About

[Cs-dev] midichn opcode off by one?

Date2014-02-04 22:29
FromOeyvind Brandtsegg
Subject[Cs-dev] midichn opcode off by one?
There is a chance the midichn opcode is off by one,
when I play on midi channel 1 it returns the value 2

instr 5
    inote        notnum
    ivel        veloc 0, 127
    ichn        midichn
print inote, ivel, ichn
endin


-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-04 23:25
Frompete.goodeve@computer.org
SubjectRe: [Cs-dev] midichn opcode off by one?
AttachmentsNone  

Date2014-02-05 08:06
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] midichn opcode off by one?
Yes it has happened between csound 5 and 6 it seems. Could you test with 6?


2014-02-05  :
> On Tue, Feb 04, 2014 at 11:29:07PM +0100, Oeyvind Brandtsegg wrote:
>> There is a chance the midichn opcode is off by one,
>> when I play on midi channel 1 it returns the value 2
>>
>> instr 5
>>     inote        notnum
>>     ivel        veloc 0, 127
>>     ichn        midichn
>> print inote, ivel, ichn
>> endin
>
> Are you sure that your input on "channel 1" is not using the "0..15"
> convention (so it's actually the *second* one)?  midichn counts from 1..16.
>
> I'm still using Csound 5.19, but when I try the above orc, playing input
> from my keyboard on its usual (first) channel, it shows "ichn = 1" as
> expected.
>
>         -- Pete --
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-05 10:11
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] midichn opcode off by one?
Ah,
found it, it is Reaper that has the channel numbering off by one,
sorry for the noise.
Oeyvind

2014-02-05 Oeyvind Brandtsegg :
> Yes it has happened between csound 5 and 6 it seems. Could you test with 6?
>
>
> 2014-02-05  :
>> On Tue, Feb 04, 2014 at 11:29:07PM +0100, Oeyvind Brandtsegg wrote:
>>> There is a chance the midichn opcode is off by one,
>>> when I play on midi channel 1 it returns the value 2
>>>
>>> instr 5
>>>     inote        notnum
>>>     ivel        veloc 0, 127
>>>     ichn        midichn
>>> print inote, ivel, ichn
>>> endin
>>
>> Are you sure that your input on "channel 1" is not using the "0..15"
>> convention (so it's actually the *second* one)?  midichn counts from 1..16.
>>
>> I'm still using Csound 5.19, but when I try the above orc, playing input
>> from my keyboard on its usual (first) channel, it shows "ichn = 1" as
>> expected.
>>
>>         -- Pete --
>>
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-05 10:13
FromRory Walsh
SubjectRe: [Cs-dev] midichn opcode off by one?
Reaper or Cabbage?

On 5 February 2014 10:11, Oeyvind Brandtsegg  wrote:
> Ah,
> found it, it is Reaper that has the channel numbering off by one,
> sorry for the noise.
> Oeyvind
>
> 2014-02-05 Oeyvind Brandtsegg :
>> Yes it has happened between csound 5 and 6 it seems. Could you test with 6?
>>
>>
>> 2014-02-05  :
>>> On Tue, Feb 04, 2014 at 11:29:07PM +0100, Oeyvind Brandtsegg wrote:
>>>> There is a chance the midichn opcode is off by one,
>>>> when I play on midi channel 1 it returns the value 2
>>>>
>>>> instr 5
>>>>     inote        notnum
>>>>     ivel        veloc 0, 127
>>>>     ichn        midichn
>>>> print inote, ivel, ichn
>>>> endin
>>>
>>> Are you sure that your input on "channel 1" is not using the "0..15"
>>> convention (so it's actually the *second* one)?  midichn counts from 1..16.
>>>
>>> I'm still using Csound 5.19, but when I try the above orc, playing input
>>> from my keyboard on its usual (first) channel, it shows "ichn = 1" as
>>> expected.
>>>
>>>         -- Pete --
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>
>
>
> --
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-05 10:26
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] midichn opcode off by one?
Reaper,
tested the same in Live and it was ok.

2014-02-05 Rory Walsh :
> Reaper or Cabbage?
>
> On 5 February 2014 10:11, Oeyvind Brandtsegg  wrote:
>> Ah,
>> found it, it is Reaper that has the channel numbering off by one,
>> sorry for the noise.
>> Oeyvind
>>
>> 2014-02-05 Oeyvind Brandtsegg :
>>> Yes it has happened between csound 5 and 6 it seems. Could you test with 6?
>>>
>>>
>>> 2014-02-05  :
>>>> On Tue, Feb 04, 2014 at 11:29:07PM +0100, Oeyvind Brandtsegg wrote:
>>>>> There is a chance the midichn opcode is off by one,
>>>>> when I play on midi channel 1 it returns the value 2
>>>>>
>>>>> instr 5
>>>>>     inote        notnum
>>>>>     ivel        veloc 0, 127
>>>>>     ichn        midichn
>>>>> print inote, ivel, ichn
>>>>> endin
>>>>
>>>> Are you sure that your input on "channel 1" is not using the "0..15"
>>>> convention (so it's actually the *second* one)?  midichn counts from 1..16.
>>>>
>>>> I'm still using Csound 5.19, but when I try the above orc, playing input
>>>> from my keyboard on its usual (first) channel, it shows "ichn = 1" as
>>>> expected.
>>>>
>>>>         -- Pete --
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> --
>>>
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>> Cell: +47 92 203 205
>>>
>>> http://flyndresang.no/
>>> http://www.partikkelaudio.com/
>>> http://soundcloud.com/brandtsegg
>>> http://soundcloud.com/t-emp
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-05 10:34
FromRory Walsh
SubjectRe: [Cs-dev] midichn opcode off by one?
Phew!

On 5 February 2014 10:26, Oeyvind Brandtsegg  wrote:
> Reaper,
> tested the same in Live and it was ok.
>
> 2014-02-05 Rory Walsh :
>> Reaper or Cabbage?
>>
>> On 5 February 2014 10:11, Oeyvind Brandtsegg  wrote:
>>> Ah,
>>> found it, it is Reaper that has the channel numbering off by one,
>>> sorry for the noise.
>>> Oeyvind
>>>
>>> 2014-02-05 Oeyvind Brandtsegg :
>>>> Yes it has happened between csound 5 and 6 it seems. Could you test with 6?
>>>>
>>>>
>>>> 2014-02-05  :
>>>>> On Tue, Feb 04, 2014 at 11:29:07PM +0100, Oeyvind Brandtsegg wrote:
>>>>>> There is a chance the midichn opcode is off by one,
>>>>>> when I play on midi channel 1 it returns the value 2
>>>>>>
>>>>>> instr 5
>>>>>>     inote        notnum
>>>>>>     ivel        veloc 0, 127
>>>>>>     ichn        midichn
>>>>>> print inote, ivel, ichn
>>>>>> endin
>>>>>
>>>>> Are you sure that your input on "channel 1" is not using the "0..15"
>>>>> convention (so it's actually the *second* one)?  midichn counts from 1..16.
>>>>>
>>>>> I'm still using Csound 5.19, but when I try the above orc, playing input
>>>>> from my keyboard on its usual (first) channel, it shows "ichn = 1" as
>>>>> expected.
>>>>>
>>>>>         -- Pete --
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Managing the Performance of Cloud-Based Applications
>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>> Read the Whitepaper.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Oeyvind Brandtsegg
>>>> Professor of Music Technology
>>>> NTNU
>>>> 7491 Trondheim
>>>> Norway
>>>> Cell: +47 92 203 205
>>>>
>>>> http://flyndresang.no/
>>>> http://www.partikkelaudio.com/
>>>> http://soundcloud.com/brandtsegg
>>>> http://soundcloud.com/t-emp
>>>
>>>
>>>
>>> --
>>>
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>> Cell: +47 92 203 205
>>>
>>> http://flyndresang.no/
>>> http://www.partikkelaudio.com/
>>> http://soundcloud.com/brandtsegg
>>> http://soundcloud.com/t-emp
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net