csound


How does Csound's gen09 work?


I'm trying to understand Csound's gen09, and I tried this line:
gigen ftgen 1, 0, 16384, 9, 1, 1, 0, 1, 1, 180
The way I understood how gen09 works, the second partial in this case is supposed to cancel the first, because they are both at the fundamental frequency (1), and the phase is inverted (0 and 180). But instead of silence, I get a wave that looks like this:
What exactly is happening here to create this waveform?
What is happening here is that because rescaling is on (positive GEN number), the
small errors in the calculation are amplified (so the max value is 1). If you constructed the table with -9, you will see that the result is what you expected.
Try this
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
instr 1
a1 oscili 0dbfs,A4,1
out a1
endin
</CsInstruments>
<CsScore>
f1 0 16384 -9 1 1 0 1 1 180
i1 0 1
</CsScore>
</CsoundSynthesizer>
The result should be
SECTION 1:
ftable 1:
new alloc for instr 1:
B 0.000 .. 1.000 T 1.000 TT 1.000 M: 0.0
Score finished in csoundPerformKsmps().
inactive allocs returned to freespace
end of score. overall amps: 0.0
overall samples out of range: 0

Related Links

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

Categories

HOME
twitter
pdf
keycloak
cookies
heroku
dictionary
tinymce
nullpointerexception
dot
alfresco
framework7
sqlite-net-extensions
spring-cloud-stream
echarts
networkx
ios-charts
iggrid
offline
modx-revolution
mapserver
vb.net-2010
messages
ibm-odm
windows-server-2012
zebra-printers
libtiff
django-admin
pugjs
swiftlint
devops
cultureinfo
captiveportal
chromebook
pingfederate
filezilla
webkitspeechrecognition
pim
stringtemplate
openoffice.org
nssegmentedcontrol
fusionpbx
dartium
leading-zero
temporary-files
tasker
ws-security
particles.js
preconditions
ncalc
multipeer-connectivity
paxos
pnotify
gabor-filter
yii2-extension
slickedit
libusb-win32
nsarray
dtexec
boost-preprocessor
akka-cluster
imanage
lync-client-sdk
probability-density
savon
transmitfile
qpid
angstrom-linux
simplewebrtc
pagedlist
make-install
hover-over
suffix-tree
goose
ptrace
intel-fortran
spidermonkey
embedded-code
event-bubbling
vstest.console.exe
oberon
pretty-print
proj4js
camanjs
asp.net-dynamic-data
html-helper
srs
flexmojos
web2py-modules
listings
mt
funscript
enter
hgsubversion
netdna-api
gnu-prolog
propagation
xfbml
datareader
visitor-statistic
sudzc
wise
jquery-ui-droppable
adrotator
mtj
scripting-languages

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