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
winforms
azure-data-factory
plot
layout
elm
amazon-ecs
graphql
sql-server-2016
multiple-records
add
iggrid
facebook-php-sdk
qt-creator
msp430
opentracing
after-effects
finite-automata
connection-string
nhibernate-envers
emulator
autoconf
facebook-instant-articles
mustache.php
pass-by-reference
devops
icloud-api
numerical-methods
ping
wtx
webkitspeechrecognition
vision
c++-amp
srcset
bpel
bluestacks
iframe-resizer
http-status-code-503
google-qpx-express-api
ghost4j
normal-distribution
mmenu
bytecode-manipulation
dartium
user-controls
ws-security
ensembles
nxlog
estimote
executenonquery
jsch
rainbowtable
upstart
komodoedit
magma
nsarray
windows-iot-core-10
jspdf-autotable
minimization
crosswalk-runtime
django-debug-toolbar
bstr
oauth2client
execute
collapse
pundit
coveralls
ibaction
system.reflection
facebook-graph-api-v2.4
nsbutton
contenttype
balanced-payments
srs
monomac
.aspxauth
coderush
labwindows
qtkit
bubble-chart
removeclass
nsdatecomponents
heartbeat
oncheckedchanged
telerik-scheduler
cxxtest
blitz++
sef
sustainable-pace

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