Csound Csound-dev Csound-tekno Search About

[Csnd] additions to soundfont opcodes

Date2008-08-05 13:42
FromVictor Lazzarini
Subject[Csnd] additions to soundfont opcodes
Hi all,

I have added one extra optional parameter to all sfont-playback opcodes
(sfplay etc). This now controls whether the soundfont envelope is
to be used or not.

Originally, sfont opcodes ignored the soundfont envelope completely,
playing the samples full amplitude. Now I have implemented an
attack-decay-sustain envelope. The release part has not been added
because it depends on the runtime extension (like 'r' envelopes), but
I will look into possibly adding that too.

The envelope parameter is now one extra optional parameter at the
end, default to 0 (no envelope). 1 is linear attack/decay and 2 is
linear attack/exponential decay.

The envelope seems to make a lot of difference in the playback of
GM soundfonts, making it sound closer to the fluid opcodes (with
much less CPU consumption...)

In CVS now.

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 


Date2008-08-13 22:08
From"Andres Cabrera"
Subject[Csnd] Re: additions to soundfont opcodes
AttachmentsNone  None