Csound Csound-dev Csound-tekno Search About

Scaling volume of an instrument by the number of notes in midi instrument

Date2015-07-25 18:35
FromAnton Kholomiov
SubjectScaling volume of an instrument by the number of notes in midi instrument
AttachmentsNone  None  
There is a problem that I face often. 
The instrument seems to be sound good when you play a note or a chord.
But when suddenly you start to play a chord with both of the hands
the sound is clipped. I can scale the volume by the number of fingers.
But then the single played note is too quiet. Of course it never happens on the real
piano. 

Why to solve this problem properly? How the hardware synths typically 
solve this problem? Should I monitor the number of played notes?
Or there is some better solution?

Anton



Date2015-07-25 18:40
Fromjpff
SubjectRe: Scaling volume of an instrument by the number of notes in midi instrument
AttachmentsNone  None  
Conventional response is to count active notes (use active opcode) and 
scales by square root of number.
==John ff

On Sat, 25 Jul 2015, Anton Kholomiov wrote:

> There is a problem that I face often. The instrument seems to be
> sound good when you play a note or a chord.
> But when suddenly you start to play a chord with both of the
> hands
> the sound is clipped. I can scale the volume by the number of
> fingers.
> But then the single played note is too quiet. Of course it never
> happens on the real
> piano. 
> 
> Why to solve this problem properly? How the hardware synths
> typically 
> solve this problem? Should I monitor the number of played notes?
> Or there is some better solution?
> 
> Anton
> 
> 
> 
>

Date2015-07-25 18:45
FromAnton Kholomiov
SubjectRe: Scaling volume of an instrument by the number of notes in midi instrument
AttachmentsNone  None  
Oh, Thanks for such a quick reply! 

2015-07-25 20:40 GMT+03:00 jpff <jpff@codemist.co.uk>:
Conventional response is to count active notes (use active opcode) and scales by square root of number.
==John ff


On Sat, 25 Jul 2015, Anton Kholomiov wrote:

There is a problem that I face often. The instrument seems to be
sound good when you play a note or a chord.
But when suddenly you start to play a chord with both of the
hands
the sound is clipped. I can scale the volume by the number of
fingers.
But then the single played note is too quiet. Of course it never
happens on the real
piano. 

Why to solve this problem properly? How the hardware synths
typically 
solve this problem? Should I monitor the number of played notes?
Or there is some better solution?

Anton




------------------------------------------------------------------------------

_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



Date2015-07-27 09:56
FromJacques Leplat
SubjectRe: Scaling volume of an instrument by the number of notes in midi instrument
Thanks from me too! 


> On 25 Jul 2015, at 18:40, jpff  wrote:
> 
> Conventional response is to count active notes (use active opcode) and scales by square root of number.
> ==John ff
> 
> On Sat, 25 Jul 2015, Anton Kholomiov wrote:
> 
>> There is a problem that I face often. The instrument seems to be
>> sound good when you play a note or a chord.
>> But when suddenly you start to play a chord with both of the
>> hands
>> the sound is clipped. I can scale the volume by the number of
>> fingers.
>> But then the single played note is too quiet. Of course it never
>> happens on the real
>> piano. 
>> Why to solve this problem properly? How the hardware synths
>> typically 
>> solve this problem? Should I monitor the number of played notes?
>> Or there is some better solution?
>> Anton
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-07-31 22:12
FromRoger Kelly
SubjectRe: Scaling volume of an instrument by the number of notes in midi instrument
AttachmentsNone  None  
Could someone post a simple example?

On Sat, Jul 25, 2015 at 12:40 PM, jpff <jpff@codemist.co.uk> wrote:
Conventional response is to count active notes (use active opcode) and scales by square root of number.
==John ff


On Sat, 25 Jul 2015, Anton Kholomiov wrote:

There is a problem that I face often. The instrument seems to be
sound good when you play a note or a chord.
But when suddenly you start to play a chord with both of the
hands
the sound is clipped. I can scale the volume by the number of
fingers.
But then the single played note is too quiet. Of course it never
happens on the real
piano. 

Why to solve this problem properly? How the hardware synths
typically 
solve this problem? Should I monitor the number of played notes?
Or there is some better solution?

Anton




------------------------------------------------------------------------------

_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here