csound


CSOUND Function Table Scaling Error


I am currently working on a multi channel audio convolver using Csound. I am creating two ftables and loading two different IR's 2048 points long into them at a sample rate of 48kHz. I am using the first gen function table commands (iRL ftgen 0, 0, 2048, -1, "IRL.wav", 0, 0, 0) and (iRR ftgen 0, 0, 2048, -1, "IRR.wav", 0, 0, 0 ).
One problem i currently have is setting the function table number to negative (-1) does stop scaling but each ftable is scaled differently. One scalemax value is 0.155 and the other 0.145. I wanted to know how I can completely stop this scaling from occurring so both the IR's are not scaled and loaded into the table.
I think what you do is correct, although you do not set "the function table number to negative (-1)", but the GEN number (which is 1 for normalising and -1 for simple copy).
I cannot believe that any scaling is done by Csound in the case you describe, so I see two possibilities for the difference in the scalemax value:
1) The input files have these (different) maxima. This is very likely, if they are real stereo impulse responses.
2) Make sure you really import a mono audio file into the table. If "IRL.wav" has more than one channel, you will get mess. (Alternatively, you could import both channels into the table using a stereo sound file.)
Just as a side note, I was wondering if you don't need global variables for the tables (giRL and giRR rather than iRL and iRR).

Related Links

How does Csound's gen09 work?
CSOUND Function Table Scaling Error

Categories

HOME
twitter
winforms
hive
amazon-ec2
fluentd
mfc
angular-material
tesseract
filtering
cmd
cakephp-2.5
disassembler
append
adfs
iggrid
nano-server
moonmail
quartz-scheduler
connection-string
nhibernate-envers
custom-wordpress-pages
accessor
extjs5
mustache.php
format-specifiers
firebase-crash-reporting
javacv
poltergeist
internet-explorer-9
elasticsearch-ruby
replaceall
gitignore
c++-amp
.net-4.0
exuberant-ctags
ioio
jspresso
lxd
protovis
ghost4j
http-referer
normal-distribution
force-layout
wixsharp
dartium
splice
jvm-languages
fakeiteasy
segment
user-accounts
fault
termination
atomicity
jxcore
python-cryptography
mcafee
query-performance
google-cdn
xcb
static-ip-address
removechild
ado.net-entity-data-model
dstu2-fhir
intrusion-detection
skobbler-maps
paypal-express
plottable.js
lua-5.1
independentsoft
pervasive-sql
wso2cloud
qtableview
lemon
ibaction
cisco-ios
apache-commons-net
lustre
website-monitoring
gwidgets
camanjs
device-manager
funcunit
valuechangelistener
jsctypes
jmapviewer
odata4j
eventlistener
delphi-6
tinn-r
isnullorempty
funscript
netbeans-6.9
amazon-appstore
zpt
coredump
xtype
netbeans-7.1
multi-tier
privilege
anti-piracy
noscript
port-number

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App