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
ibm-bluemix
osgi
variables
cookies
azure-data-factory
server
pycharm
electron
grep
read-eval-print-loop
at-command
survey
ravendb
in-app-purchase
portia
facebook-messenger-bot
applepay
iron-router
evopdf
openedx
crystal-reports-2008
nas
tokenize
intentfilter
tibco-mdm
wijmo
xpages-ssjs
javacv
assistant
flink-streaming
scorm2004
windows-dev-center
textmate
bower-install
bytecode-manipulation
simplexml
xenforo
reportbuilder
g-code
reportingservices-2005
password-encryption
bootstrap-dialog
dotcover
rainbowtable
scrollable
react-scripts
logparser
return-value
rdfs
aurelia-validation
slickedit
jspdf-autotable
spring-cache
blacklist
watchconnectivity
infix-notation
log4c
skobbler-maps
mongocsharpdriver
pagedlist
photobucket
javax.sound.midi
iad
vhd
qtableview
execute
intellij-14
jmeter-maven-plugin
security-testing
embedded-code
emailrelay
responsive-images
arcanist
mono-embedding
dereference
block-device
c3
tt-news
fpml
javafx-webengine
eol
valueconverter
poller
concurrent-collections
openlaszlo
imdbpy
opcache
rabl
specification-pattern
tinn-r
angularjs-controller
dmoz
jquery-knob
quickdialog
propertyeditor
bubble-chart
buildr
spring-portlet-mvc
code-cleanup
invite
winbugs14
mongomapper
gin
asp.net-profiles
web-architecture
kdbg
swing-app-framework
grid-system
lzh

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