Csound Csound-dev Csound-tekno Search About

[Csnd] midiVelociryAmp always shows 0, but value seems ok

Date2018-12-02 10:33
FromRichard
Subject[Csnd] midiVelociryAmp always shows 0, but value seems ok
I have a csd where I use the following options:


-odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5


The csd works, I get different velocities, but the output of 
midiVelocityAmp always shows 0...

midiKey:         pfield:   4  value:  57
midiVelocityAmp: pfield:   5  value:   0


Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra

Richard

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

Date2018-12-02 11:36
FromVictor Lazzarini
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
yep, this was reported here and I fixed it in git.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Dec 2018, at 11:34, Richard  wrote:
> 
> I have a csd where I use the following options:
> 
> 
> -odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
> 
> 
> The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...
> 
> midiKey:         pfield:   4  value:  57
> midiVelocityAmp: pfield:   5  value:   0
> 
> 
> Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra
> 
> Richard
> 
> 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

Date2018-12-02 11:38
FromVictor Lazzarini
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
sorry, I realise now this is something else, not fixed.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Dec 2018, at 12:37, Victor Lazzarini  wrote:
> 
> yep, this was reported here and I fixed it in git.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 2 Dec 2018, at 11:34, Richard  wrote:
>> 
>> I have a csd where I use the following options:
>> 
>> 
>> -odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
>> 
>> 
>> The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...
>> 
>> midiKey:         pfield:   4  value:  57
>> midiVelocityAmp: pfield:   5  value:   0
>> 
>> 
>> Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra
>> 
>> Richard
>> 
>> 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

Date2018-12-02 20:28
Fromjpff
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
The value printed is calculateas te integer part of value, o value odf 
0dbfs affects it and in many cases will be lss that 1

     MYFLT value = (MYFLT) ip->m_veloc;
     value = value * value / FL(16239.0);
     value = value * csound->e0dbfs;
     pfield->value = value;

I have no idea what it should say of ourse



On Sun, 2 Dec 2018, Victor Lazzarini wrote:

> sorry, I realise now this is something else, not fixed.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 2 Dec 2018, at 12:37, Victor Lazzarini  wrote:
>>
>> yep, this was reported here and I fixed it in git.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 2 Dec 2018, at 11:34, Richard  wrote:
>>>
>>> I have a csd where I use the following options:
>>>
>>> 
>>> -odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
>>> 
>>>
>>> The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...
>>>
>>> midiKey:         pfield:   4  value:  57
>>> midiVelocityAmp: pfield:   5  value:   0
>>>
>>>
>>> Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra
>>>
>>> Richard
>>>
>>> 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

Date2018-12-02 20:31
FromVictor Lazzarini
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
I think it should print a float, since it's amplitude not velocity.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Dec 2018, at 20:28, jpff  wrote:
> 
> The value printed is calculateas te integer part of value, o value odf 0dbfs affects it and in many cases will be lss that 1
> 
>    MYFLT value = (MYFLT) ip->m_veloc;
>    value = value * value / FL(16239.0);
>    value = value * csound->e0dbfs;
>    pfield->value = value;
> 
> I have no idea what it should say of ourse
> 
> 
> 
>> On Sun, 2 Dec 2018, Victor Lazzarini wrote:
>> 
>> sorry, I realise now this is something else, not fixed.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 2 Dec 2018, at 12:37, Victor Lazzarini  wrote:
>>> 
>>> yep, this was reported here and I fixed it in git.
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>>> On 2 Dec 2018, at 11:34, Richard  wrote:
>>>> 
>>>> I have a csd where I use the following options:
>>>> 
>>>> 
>>>> -odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
>>>> 
>>>> 
>>>> The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...
>>>> 
>>>> midiKey:         pfield:   4  value:  57
>>>> midiVelocityAmp: pfield:   5  value:   0
>>>> 
>>>> 
>>>> Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra
>>>> 
>>>> Richard
>>>> 
>>>> 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

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

Date2018-12-02 20:50
FromJohn ff
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
Should I change it or will you,?

Sent from TypeApp
On 2 Dec 2018, at 20:32, Victor Lazzarini <victor.lazzarini@mu.ie> wrote:
I think it should print a float, since it's amplitude not velocity.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 20:28, jpff <jpff@CODEMIST.CO.UK> wrote:

The value printed is calculateas te integer part of value, o value odf 0dbfs affects it and in many cases will be lss that 1

MYFLT value = (MYFLT) ip->m_veloc;
value = value * value / FL(16239.0);
value = value * csound->e0dbfs;
pfield->value = value;

I have no idea what it should say of ourse



On Sun, 2 Dec 2018, Victor Lazzarini wrote:

sorry, I realise now this is something else, not fixed.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 12:37, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

yep, this was reported here and I fixed it in git.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 11:34, Richard <zappfinger@GMAIL.COM> wrote:

I have a csd where I use the following options:

<CsOptions>
-odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
</CsOptions>

The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...

midiKey: pfield: 4 value: 57
midiVelocityAmp: pfield: 5 value: 0


Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra

Richard

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

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

Date2018-12-02 21:09
FromVictor Lazzarini
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
I can do it but it will be tomorrow as I am away from the computer now.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 20:51, John ff <jpff@CODEMIST.CO.UK> wrote:

Should I change it or will you,?

Sent from TypeApp
On 2 Dec 2018, at 20:32, Victor Lazzarini <victor.lazzarini@mu.ie> wrote:
I think it should print a float, since it's amplitude not velocity.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 20:28, jpff <jpff@CODEMIST.CO.UK> wrote:

The value printed is calculateas te integer part of value, o value odf 0dbfs affects it and in many cases will be lss that 1

MYFLT value = (MYFLT) ip->m_veloc;
value = value * value / FL(16239.0);
value = value * csound->e0dbfs;
pfield->value = value;

I have no idea what it should say of ourse



On Sun, 2 Dec 2018, Victor Lazzarini wrote:

sorry, I realise now this is something else, not fixed.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 12:37, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

yep, this was reported here and I fixed it in git.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Dec 2018, at 11:34, Richard <zappfinger@GMAIL.COM> wrote:

I have a csd where I use the following options:

<CsOptions>
-odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
</CsOptions>

The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...

midiKey: pfield: 4 value: 57
midiVelocityAmp: pfield: 5 value: 0


Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra

Richard

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

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

Date2018-12-03 09:36
FromVictor Lazzarini
SubjectRe: [Csnd] midiVelociryAmp always shows 0, but value seems ok
done.
========================
Prof. 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 2 Dec 2018, at 21:09, Victor Lazzarini  wrote:
> 
> I can do it but it will be tomorrow as I am away from the computer now.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 2 Dec 2018, at 20:51, John ff  wrote:
> 
>> Should I change it or will you,?
>> 
>> Sent from TypeApp
>> On 2 Dec 2018, at 20:32, Victor Lazzarini  wrote:
>> I think it should print a float, since it's amplitude not velocity.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>  On 2 Dec 2018, at 20:28, jpff  wrote:
>>  
>>  The value printed is calculateas te integer part of value, o value odf 0dbfs affects it and in many cases will be lss that 1
>>  
>>     MYFLT value = (MYFLT) ip->m_veloc;
>>     value = value * value / FL(16239.0);
>>     value = value * csound->e0dbfs;
>>     pfield->value = value;
>>  
>>  I have no idea what it should say of ourse
>>  
>>  
>>  
>>  On Sun, 2 Dec 2018, Victor Lazzarini wrote:
>>  
>>  sorry, I realise now this is something else, not fixed.
>>  
>>  Victor Lazzarini
>>  Dean of Arts, Celtic Studies, and Philosophy
>>  Maynooth University
>>  Ireland
>>  
>>  On 2 Dec 2018, at 12:37, Victor Lazzarini  wrote:
>>  
>>  yep, this was reported here and I fixed it in git.
>>  
>>  Victor Lazzarini
>>  Dean of Arts, Celtic Studies, and Philosophy
>>  Maynooth University
>>  Ireland
>>  
>>  On 2 Dec 2018, at 11:34, Richard  wrote:
>>  
>>  I have a csd where I use the following options:
>>  
>>  
>>  -odac1 -M0 -B256 -b64 --midi-key=4 --midi-velocity-amp=5
>>  
>>  
>>  The csd works, I get different velocities, but the output of midiVelocityAmp always shows 0...
>>  
>>  midiKey:         pfield:   4  value:  57
>>  midiVelocityAmp: pfield:   5  value:   0
>>  
>>  
>>  Csound version 6.09.1 (double samples) Jul 10 2017 on Mac High Sierra
>>  
>>  Richard
>>  
>>  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
>> 
>> 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