问题描述
使用 csound 我正在尝试“动态”更改声音字体播放的音符的音量,例如,如果您在吹小号并在播放相同音符时吹得越来越强。我相信这将通过呼吸控制器来完成。 csound 文档中的以下代码显示了如何将控制器应用于声音字体,但是我正在努力了解如何实现动态音量变化。查看我正在使用的声音字体,呼吸控制是 CC#02。
<csoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac -+rtmidi=virtual -M0 ;;;realtime audio out and realtime midi in
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
;-o fluidCCi.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
giengine fluidEngine
; soundfont path to manual/examples
isfnum fluidLoad "19Trumpet.sf2",giengine,1
fluidProgramSelect giengine,1,isfnum,56
instr 1
mididefault 60,p3
midinoteonkey p4,p5
ikey init p4
ivel init p5
fluidCCi giengine,93,127 ;**=> change to CC #2 for breath control.**
**=>How to instruct instrument to play same note from a certain volume to another volume?**
fluidNote giengine,ikey,ivel
endin
instr 99
imvol init 7
asigl,asigr fluidOut giengine
outs asigl*imvol,asigr*imvol
endin
</CsInstruments>
<Csscore>
i 1 0 5 60 100 ; **=> how to pass instructions to play the same note from volume 70 to volume 100 for instance?**
i 99 0 60 ;
e
</Csscore>
</csoundSynthesizer>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)