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
netbeans
azure-data-factory
tinymce
infragistics
amazon-ecs
blueprintjs
in-app-purchase
autotools
webrequest
facebook-php-sdk
reveal.js
handsontable
apache-cayenne
orchardcms
openrefine
amazonsellercentral
object-detection
opencover
sparse-matrix
opentype
google-cloud-nl
file-rename
newline
gsmcomm
nat
fabric8
siesta-swift
karaf
mapbox-gl
libraries
abstract-class
xenforo
gzipstream
heightmap
segment
angular2-meteor
apache-fop
upstart
tizen-native-app
tropo
worker-thread
ableton-live
httplistener
intrusion-detection
packagist
suffix-tree
livequery
design-by-contract
xna-4.0
teamcity-8.0
wyam
muse
splash
graph-drawing
p2
dereference
python-green
block-device
operator-precedence
websocket4net
jubula
phpthumb
seaside
picturefill
bundles
c18
.aspxauth
google-cloud-save
eclipse-memory-analyzer
rabl
chronoforms
eventlistener
tinn-r
itmstransporter
anonymous-methods
dice
first-responder
parametric-equations
chrono
buildr
yetanotherforum
appender
table-footer
yslow
paster
sproutcore-2
zend-tool
nintendo-ds
memory-size
virtual-functions
simpletest
project-hosting

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App