Csound Csound-dev Csound-tekno Search About

[Csnd] Oscillator noise

Date2009-10-22 13:49
FromCharles Gran
Subject[Csnd] Oscillator noise
Attachmentslog.txt  synth-test.csd  
I've been working on a live piece that uses the pvs opcodes and have
been having trouble with noise.  I made an instrument just for
tracking this down.  It seems I just get noise from oscil which seems
odd.  When I play a note on a midi controller I get noise on the
attack and release and when I sing into the mic I get high frequency
noise throughout.  You can see from this test instrument that I've
been trying various means such as tone, but I don't understand why I
need to do this.  It must be something I'm not seeing.

Charles




-odac4 -iadc4 -b64 -B768 -M0



sr = 44100
ksmps = 64
nchnls = 1
0dbfs = 1

instr 1

 a1 inch 1

  ; -- mic control --
  ifftsize = 1024
  iwtype = 1 ;cleaner with hanning window

  fsig pvsanal a1, ifftsize, ifftsize/4, ifftsize, iwtype
  kfr, kamp pvspitch fsig, 0.01

  kfr portk kfr, .01
  kampmic portk kamp, .01

  ; -- keyboard control --
  ifr cpsmidi
  iamp ampmidi .2

  kenv  linenr  iamp, .01, .1, .01   ;envelope

  ; -- the synths --
  amic oscil kampmic, kfr*1, 1
  akey oscil kenv*iamp, ifr, 2
  ;asynth tone asynth, 1000

 out akey+amic
endin



f1 0 4096 10 1 .5 .333
f2 0 4096 10 1 .75 .5 .25
f3 0 4096 10 1 0.5 0.333 0.25 0.2 0.1666
f4 0 4096 10 1 .5 .333333 .25 .2 .166667 .142857 .125 .111111 .1
.090909 .083333 .076923 ;saw
f5 0 4096 10 1 0 .333333 0 .2 0 .142857 0 .111111 0 .090909 0 .076923 ;square
f6 0 1024 10 1 ;sine
f7 0 256 7 -1 128 -1 0 1 128 1 ;square
f8 0 256 7 1 256 -1 ;sawtooth
f9 0 256 7 -1 128 1 128 -1 ; triangle

i1 0 36000
e





WARNING: not loading 'date.dll' (incompatible with this version of
Csound (1.5/2.2)
WARNING: not loading 'pan2.dll' (incompatible with this version of
Csound (1.5/2.2)
PortMIDI real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
WARNING: not loading 'pvs_ops.dll' (incompatible with this version of
Csound (1.5/2.2)
PortAudio real-time audio module for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
0dBFS level = 32768.0
Csound version 5.11 (float samples) Oct  1 2009
Csound version 5.11 (float samples) Oct  1 2009
libsndfile-1.0.20
libsndfile-1.0.20
Reading options from $CSOUNDRC: C:\Csound\.csoundrc
Reading options from $CSOUNDRC: C:\Csound\.csoundrc
UnifiedCSD:  synth-test.csd
UnifiedCSD:  synth-test.csd
STARTING FILE
STARTING FILE
Creating options
Creating options
Creating orchestra
Creating orchestra
Creating score
Creating score
orchname:  c:\temp\cs2650.orc
orchname:  c:\temp\cs2650.orc
scorename: c:\temp\cs2674.sco
scorename: c:\temp\cs2674.sco
RAWWAVE_PATH: C:\Csound\samples/
RAWWAVE_PATH: C:\Csound\samples/
rtaudio: PortAudio module enabled ... rtaudio: PortAudio module
enabled ... using callback interface
using callback interface
rtmidi: PortMIDI module enabled
rtmidi: PortMIDI module enabled
orch compiler:
orch compiler:
32 lines read
32 lines read
		instr	instr	1	1	

Elapsed time at end of orchestra compile: real: 0.288s, CPU: 0.297s
Elapsed time at end of orchestra compile: real: 0.288s, CPU: 0.297s
sorting score ...
sorting score ...
	... done
	... done
Elapsed time at end of score sort: real: 0.289s, CPU: 0.297s
Elapsed time at end of score sort: real: 0.289s, CPU: 0.297s
Csound version 5.11 (float samples) Oct  1 2009
Csound version 5.11 (float samples) Oct  1 2009
midi channel 1 using instr 1
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
midi channel 16 using instr 1
displays suppressed
displays suppressed
0dBFS level = 1.0
0dBFS level = 1.0
The available MIDI in devices are:
The available MIDI in devices are:
   0: In-1 USB MidiSport 8x8 (MMSystem)
   0: In-1 USB MidiSport 8x8 (MMSystem)
   1: In-2 USB MidiSport 8x8 (MMSystem)
   1: In-2 USB MidiSport 8x8 (MMSystem)
   2: In-3 USB MidiSport 8x8 (MMSystem)
   2: In-3 USB MidiSport 8x8 (MMSystem)
   3: In-4 USB MidiSport 8x8 (MMSystem)
   3: In-4 USB MidiSport 8x8 (MMSystem)
   4: In-5 USB MidiSport 8x8 (MMSystem)
   4: In-5 USB MidiSport 8x8 (MMSystem)
   5: In-6 USB MidiSport 8x8 (MMSystem)
   5: In-6 USB MidiSport 8x8 (MMSystem)
   6: In-7 USB MidiSport 8x8 (MMSystem)
   6: In-7 USB MidiSport 8x8 (MMSystem)
   7: In-8 USB MidiSport 8x8 (MMSystem)
   7: In-8 USB MidiSport 8x8 (MMSystem)
   8: In-SMPTE USB MidiSport 8x8 (MMSystem)
   8: In-SMPTE USB MidiSport 8x8 (MMSystem)
   9: MIDI Yoke NT:  1 (MMSystem)
   9: MIDI Yoke NT:  1 (MMSystem)
  10: MIDI Yoke NT:  2 (MMSystem)
  10: MIDI Yoke NT:  2 (MMSystem)
  11: MIDI Yoke NT:  3 (MMSystem)
  11: MIDI Yoke NT:  3 (MMSystem)
  12: MIDI Yoke NT:  4 (MMSystem)
  12: MIDI Yoke NT:  4 (MMSystem)
  13: MIDI Yoke NT:  5 (MMSystem)
  13: MIDI Yoke NT:  5 (MMSystem)
  14: MIDI Yoke NT:  6 (MMSystem)
  14: MIDI Yoke NT:  6 (MMSystem)
  15: MIDI Yoke NT:  7 (MMSystem)
  15: MIDI Yoke NT:  7 (MMSystem)
  16: MIDI Yoke NT:  8 (MMSystem)
  16: MIDI Yoke NT:  8 (MMSystem)
  17: E-DSP MIDI Port [EC00] (MMSystem)
  17: E-DSP MIDI Port [EC00] (MMSystem)
PortMIDI: Activated input device 0: 'In-1 USB MidiSport 8x8' (MMSystem)
PortMIDI: Activated input device 0: 'In-1 USB MidiSport 8x8' (MMSystem)
orch now loaded
orch now loaded
audio buffered in 64 sample-frame blocks
audio buffered in 64 sample-frame blocks
reading 128-byte blks of shorts from adc4 (RAW)
reading 128-byte blks of shorts from adc4 (RAW)
PortAudio V19-devel (built Jun 18 2009 20:08:20)
PortAudio V19-devel (built Jun 18 2009 20:08:20)
PortAudio: available input devices:
PortAudio: available input devices:
   0: Microsoft Sound Mapper - Input
   0: Microsoft Sound Mapper - Input
   1: E-DSP Wave [EC00]
   1: E-DSP Wave [EC00]
   2: Primary Sound Capture Driver
   2: Primary Sound Capture Driver
   3: E-DSP Wave [EC00]
   3: E-DSP Wave [EC00]
   4: E-MU ASIO
   4: E-MU ASIO
PortAudio: selected input device 'E-MU ASIO'
PortAudio: selected input device 'E-MU ASIO'
PortAudio: available output devices:
PortAudio: available output devices:
   0: Microsoft Sound Mapper - Output
   0: Microsoft Sound Mapper - Output
   1: E-DSP Wave [EC00]
   1: E-DSP Wave [EC00]
   2: Primary Sound Driver
   2: Primary Sound Driver
   3: E-DSP Wave [EC00]
   3: E-DSP Wave [EC00]
   4: E-MU ASIO
   4: E-MU ASIO
PortAudio: selected output device 'E-MU ASIO'
PortAudio: selected output device 'E-MU ASIO'
writing 128-byte blks of shorts to dac4writing 128-byte blks of shorts to dac4

SECTION 1:
SECTION 1:
ftable 1:
ftable 1:
ftable 2:
ftable 2:
ftable 3:
ftable 3:
ftable 4:
ftable 4:
ftable 5:
ftable 5:
ftable 6:
ftable 6:
ftable 7:
ftable 7:
ftable 8:
ftable 8:
ftable 9:
ftable 9:
new alloc for instr 1:
new alloc for instr 1:
  rtevent:	   T  0.594 TT  0.594 M:  rtevent:	   T  0.594 TT  0.594 M:
 0.00000  0.00000

new alloc for instr 1:
new alloc for instr 1:
  rtevent:	   T  0.715 TT  0.715 M:  rtevent:	   T  0.715 TT  0.715 M:
 0.02441  0.02441

  rtevent:	   T  0.849 TT  0.849 M:  rtevent:	   T  0.849 TT  0.849 M:
 0.02441  0.02441

  rtevent:	   T  0.959 TT  0.959 M:  rtevent:	   T  0.959 TT  0.959 M:
 0.01806  0.01806

  rtevent:	   T  1.064 TT  1.064 M:  rtevent:	   T  1.064 TT  1.064 M:
 0.01805  0.01805

  rtevent:	   T  1.151 TT  1.151 M:  rtevent:	   T  1.151 TT  1.151 M:
 0.02250  0.02250

  rtevent:	   T  1.273 TT  1.273 M:  rtevent:	   T  1.273 TT  1.273 M:
 0.02246  0.02246

  rtevent:	   T  1.377 TT  1.377 M:  rtevent:	   T  1.377 TT  1.377 M:
 0.02250  0.02250

  rtevent:	   T  1.505 TT  1.505 M:  rtevent:	   T  1.505 TT  1.505 M:
 0.02250  0.02250

  rtevent:	   T  1.621 TT  1.621 M:  rtevent:	   T  1.621 TT  1.621 M:
 0.02441  0.02441

  rtevent:	   T  1.708 TT  1.708 M:  rtevent:	   T  1.708 TT  1.708 M:
 0.02433  0.02433

new alloc for instr 1:
new alloc for instr 1:
  rtevent:	   T  1.830 TT  1.830 M:  rtevent:	   T  1.830 TT  1.830 M:
 0.01825  0.01825

  rtevent:	   T  1.924 TT  1.924 M:  rtevent:	   T  1.924 TT  1.924 M:
 0.01801  0.01801

  rtevent:	   T  2.039 TT  2.039 M:  rtevent:	   T  2.039 TT  2.039 M:
 0.02066  0.02066

  rtevent:	   T  2.143 TT  2.143 M:  rtevent:	   T  2.143 TT  2.143 M:
 0.02066  0.02066

  rtevent:	   T  2.248 TT  2.248 M:  rtevent:	   T  2.248 TT  2.248 M:
 0.01806  0.01806

  rtevent:	   T  2.370 TT  2.370 M:  rtevent:	   T  2.370 TT  2.370 M:
 0.01801  0.01801

  rtevent:	   T  2.753 TT  2.753 M:  rtevent:	   T  2.753 TT  2.753 M:
 0.02250  0.02250

Early return from csoundPerform().
Early return from csoundPerform().
inactive allocs returned to freespace
inactive allocs returned to freespace
end of score.		   overall amps:end of score.		   overall amps:  0.02441  0.02441
	   overall samples out of range:
	   overall samples out of range:        0        0
0 errors in performance

0 errors in performance
Elapsed time at end of performance: real: 5.797s, CPU: 5.828s
Elapsed time at end of performance: real: 5.797s, CPU: 5.828s
2835 128-byte soundblks of shorts written to dac42835 128-byte
soundblks of shorts written to dac4




On Tue, Oct 13, 2009 at 5:19 PM, victor  wrote:
> Try adding a lp filter (port) in between pvspitch and oscil for
> both kamp and kfreq. The clicking etc is probably due to
> erratic changes in amp and freq, which need to be smoothed out.
>
> Victor
> ----- Original Message ----- From: "Charles Gran" 
> To: 
> Sent: Tuesday, October 13, 2009 10:17 PM
> Subject: [Csnd] pvspitch scratching and popping
>
>
>> I was playing around with pvspitch.  When I sing into a mic, it tracks
>> great right out of the box with the instrument from the manual (very
>> cool!).  I do get a good amount of noise though: cracking and popping.
>> This doesn't make sense because the sound in the example instrument
>> is only coming from the oscil, right?
>>
>> I've tried all the usual things on my end, adjusting -b and -B,
>> checking my signal path, testing with simple in/out instruments and
>> everything is fine.
>>
>> I've also played with the kthresh with little success.  I'm using the
>> instrument on the manual page verbatim. Does anyone else have this
>> problem?
>>
>> http://www.csounds.com/manual/html/pvspitch.html
>>
>> Charles
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-22 13:53
FromRory Walsh
Subject[Csnd] Re: Oscillator noise
If it's just the oscils that you think are making the noise change
them to interpolated lookup oscils, i.e, oscili.

2009/10/22 Charles Gran :
> I've been working on a live piece that uses the pvs opcodes and have
> been having trouble with noise.  I made an instrument just for
> tracking this down.  It seems I just get noise from oscil which seems
> odd.  When I play a note on a midi controller I get noise on the
> attack and release and when I sing into the mic I get high frequency
> noise throughout.  You can see from this test instrument that I've
> been trying various means such as tone, but I don't understand why I
> need to do this.  It must be something I'm not seeing.
>
> Charles
>
>
> 
> 
> -odac4 -iadc4 -b64 -B768 -M0
> 
>
> 
> sr = 44100
> ksmps = 64
> nchnls = 1
> 0dbfs = 1
>
> instr 1
>
>  a1 inch 1
>
>  ; -- mic control --
>  ifftsize = 1024
>  iwtype = 1 ;cleaner with hanning window
>
>  fsig pvsanal a1, ifftsize, ifftsize/4, ifftsize, iwtype
>  kfr, kamp pvspitch fsig, 0.01
>
>  kfr portk kfr, .01
>  kampmic portk kamp, .01
>
>  ; -- keyboard control --
>  ifr cpsmidi
>  iamp ampmidi .2
>
>  kenv  linenr  iamp, .01, .1, .01   ;envelope
>
>  ; -- the synths --
>  amic oscil kampmic, kfr*1, 1
>  akey oscil kenv*iamp, ifr, 2
>  ;asynth tone asynth, 1000
>
>  out akey+amic
> endin
> 
>
> 
> f1 0 4096 10 1 .5 .333
> f2 0 4096 10 1 .75 .5 .25
> f3 0 4096 10 1 0.5 0.333 0.25 0.2 0.1666
> f4 0 4096 10 1 .5 .333333 .25 .2 .166667 .142857 .125 .111111 .1
> .090909 .083333 .076923 ;saw
> f5 0 4096 10 1 0 .333333 0 .2 0 .142857 0 .111111 0 .090909 0 .076923 ;square
> f6 0 1024 10 1 ;sine
> f7 0 256 7 -1 128 -1 0 1 128 1 ;square
> f8 0 256 7 1 256 -1 ;sawtooth
> f9 0 256 7 -1 128 1 128 -1 ; triangle
>
> i1 0 36000
> e
> 
> 
>
>
>
> WARNING: not loading 'date.dll' (incompatible with this version of
> Csound (1.5/2.2)
> WARNING: not loading 'pan2.dll' (incompatible with this version of
> Csound (1.5/2.2)
> PortMIDI real time MIDI plugin for Csound
> PortMIDI real time MIDI plugin for Csound
> WARNING: not loading 'pvs_ops.dll' (incompatible with this version of
> Csound (1.5/2.2)
> PortAudio real-time audio module for Csound
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> 0dBFS level = 32768.0
> Csound version 5.11 (float samples) Oct  1 2009
> Csound version 5.11 (float samples) Oct  1 2009
> libsndfile-1.0.20
> libsndfile-1.0.20
> Reading options from $CSOUNDRC: C:\Csound\.csoundrc
> Reading options from $CSOUNDRC: C:\Csound\.csoundrc
> UnifiedCSD:  synth-test.csd
> UnifiedCSD:  synth-test.csd
> STARTING FILE
> STARTING FILE
> Creating options
> Creating options
> Creating orchestra
> Creating orchestra
> Creating score
> Creating score
> orchname:  c:\temp\cs2650.orc
> orchname:  c:\temp\cs2650.orc
> scorename: c:\temp\cs2674.sco
> scorename: c:\temp\cs2674.sco
> RAWWAVE_PATH: C:\Csound\samples/
> RAWWAVE_PATH: C:\Csound\samples/
> rtaudio: PortAudio module enabled ... rtaudio: PortAudio module
> enabled ... using callback interface
> using callback interface
> rtmidi: PortMIDI module enabled
> rtmidi: PortMIDI module enabled
> orch compiler:
> orch compiler:
> 32 lines read
> 32 lines read
>                instr   instr   1       1
>
> Elapsed time at end of orchestra compile: real: 0.288s, CPU: 0.297s
> Elapsed time at end of orchestra compile: real: 0.288s, CPU: 0.297s
> sorting score ...
> sorting score ...
>        ... done
>        ... done
> Elapsed time at end of score sort: real: 0.289s, CPU: 0.297s
> Elapsed time at end of score sort: real: 0.289s, CPU: 0.297s
> Csound version 5.11 (float samples) Oct  1 2009
> Csound version 5.11 (float samples) Oct  1 2009
> midi channel 1 using instr 1
> midi channel 1 using instr 1
> midi channel 2 using instr 1
> midi channel 2 using instr 1
> midi channel 3 using instr 1
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> midi channel 16 using instr 1
> displays suppressed
> displays suppressed
> 0dBFS level = 1.0
> 0dBFS level = 1.0
> The available MIDI in devices are:
> The available MIDI in devices are:
>   0: In-1 USB MidiSport 8x8 (MMSystem)
>   0: In-1 USB MidiSport 8x8 (MMSystem)
>   1: In-2 USB MidiSport 8x8 (MMSystem)
>   1: In-2 USB MidiSport 8x8 (MMSystem)
>   2: In-3 USB MidiSport 8x8 (MMSystem)
>   2: In-3 USB MidiSport 8x8 (MMSystem)
>   3: In-4 USB MidiSport 8x8 (MMSystem)
>   3: In-4 USB MidiSport 8x8 (MMSystem)
>   4: In-5 USB MidiSport 8x8 (MMSystem)
>   4: In-5 USB MidiSport 8x8 (MMSystem)
>   5: In-6 USB MidiSport 8x8 (MMSystem)
>   5: In-6 USB MidiSport 8x8 (MMSystem)
>   6: In-7 USB MidiSport 8x8 (MMSystem)
>   6: In-7 USB MidiSport 8x8 (MMSystem)
>   7: In-8 USB MidiSport 8x8 (MMSystem)
>   7: In-8 USB MidiSport 8x8 (MMSystem)
>   8: In-SMPTE USB MidiSport 8x8 (MMSystem)
>   8: In-SMPTE USB MidiSport 8x8 (MMSystem)
>   9: MIDI Yoke NT:  1 (MMSystem)
>   9: MIDI Yoke NT:  1 (MMSystem)
>  10: MIDI Yoke NT:  2 (MMSystem)
>  10: MIDI Yoke NT:  2 (MMSystem)
>  11: MIDI Yoke NT:  3 (MMSystem)
>  11: MIDI Yoke NT:  3 (MMSystem)
>  12: MIDI Yoke NT:  4 (MMSystem)
>  12: MIDI Yoke NT:  4 (MMSystem)
>  13: MIDI Yoke NT:  5 (MMSystem)
>  13: MIDI Yoke NT:  5 (MMSystem)
>  14: MIDI Yoke NT:  6 (MMSystem)
>  14: MIDI Yoke NT:  6 (MMSystem)
>  15: MIDI Yoke NT:  7 (MMSystem)
>  15: MIDI Yoke NT:  7 (MMSystem)
>  16: MIDI Yoke NT:  8 (MMSystem)
>  16: MIDI Yoke NT:  8 (MMSystem)
>  17: E-DSP MIDI Port [EC00] (MMSystem)
>  17: E-DSP MIDI Port [EC00] (MMSystem)
> PortMIDI: Activated input device 0: 'In-1 USB MidiSport 8x8' (MMSystem)
> PortMIDI: Activated input device 0: 'In-1 USB MidiSport 8x8' (MMSystem)
> orch now loaded
> orch now loaded
> audio buffered in 64 sample-frame blocks
> audio buffered in 64 sample-frame blocks
> reading 128-byte blks of shorts from adc4 (RAW)
> reading 128-byte blks of shorts from adc4 (RAW)
> PortAudio V19-devel (built Jun 18 2009 20:08:20)
> PortAudio V19-devel (built Jun 18 2009 20:08:20)
> PortAudio: available input devices:
> PortAudio: available input devices:
>   0: Microsoft Sound Mapper - Input
>   0: Microsoft Sound Mapper - Input
>   1: E-DSP Wave [EC00]
>   1: E-DSP Wave [EC00]
>   2: Primary Sound Capture Driver
>   2: Primary Sound Capture Driver
>   3: E-DSP Wave [EC00]
>   3: E-DSP Wave [EC00]
>   4: E-MU ASIO
>   4: E-MU ASIO
> PortAudio: selected input device 'E-MU ASIO'
> PortAudio: selected input device 'E-MU ASIO'
> PortAudio: available output devices:
> PortAudio: available output devices:
>   0: Microsoft Sound Mapper - Output
>   0: Microsoft Sound Mapper - Output
>   1: E-DSP Wave [EC00]
>   1: E-DSP Wave [EC00]
>   2: Primary Sound Driver
>   2: Primary Sound Driver
>   3: E-DSP Wave [EC00]
>   3: E-DSP Wave [EC00]
>   4: E-MU ASIO
>   4: E-MU ASIO
> PortAudio: selected output device 'E-MU ASIO'
> PortAudio: selected output device 'E-MU ASIO'
> writing 128-byte blks of shorts to dac4writing 128-byte blks of shorts to dac4
>
> SECTION 1:
> SECTION 1:
> ftable 1:
> ftable 1:
> ftable 2:
> ftable 2:
> ftable 3:
> ftable 3:
> ftable 4:
> ftable 4:
> ftable 5:
> ftable 5:
> ftable 6:
> ftable 6:
> ftable 7:
> ftable 7:
> ftable 8:
> ftable 8:
> ftable 9:
> ftable 9:
> new alloc for instr 1:
> new alloc for instr 1:
>  rtevent:         T  0.594 TT  0.594 M:  rtevent:         T  0.594 TT  0.594 M:
>  0.00000  0.00000
>
> new alloc for instr 1:
> new alloc for instr 1:
>  rtevent:         T  0.715 TT  0.715 M:  rtevent:         T  0.715 TT  0.715 M:
>  0.02441  0.02441
>
>  rtevent:         T  0.849 TT  0.849 M:  rtevent:         T  0.849 TT  0.849 M:
>  0.02441  0.02441
>
>  rtevent:         T  0.959 TT  0.959 M:  rtevent:         T  0.959 TT  0.959 M:
>  0.01806  0.01806
>
>  rtevent:         T  1.064 TT  1.064 M:  rtevent:         T  1.064 TT  1.064 M:
>  0.01805  0.01805
>
>  rtevent:         T  1.151 TT  1.151 M:  rtevent:         T  1.151 TT  1.151 M:
>  0.02250  0.02250
>
>  rtevent:         T  1.273 TT  1.273 M:  rtevent:         T  1.273 TT  1.273 M:
>  0.02246  0.02246
>
>  rtevent:         T  1.377 TT  1.377 M:  rtevent:         T  1.377 TT  1.377 M:
>  0.02250  0.02250
>
>  rtevent:         T  1.505 TT  1.505 M:  rtevent:         T  1.505 TT  1.505 M:
>  0.02250  0.02250
>
>  rtevent:         T  1.621 TT  1.621 M:  rtevent:         T  1.621 TT  1.621 M:
>  0.02441  0.02441
>
>  rtevent:         T  1.708 TT  1.708 M:  rtevent:         T  1.708 TT  1.708 M:
>  0.02433  0.02433
>
> new alloc for instr 1:
> new alloc for instr 1:
>  rtevent:         T  1.830 TT  1.830 M:  rtevent:         T  1.830 TT  1.830 M:
>  0.01825  0.01825
>
>  rtevent:         T  1.924 TT  1.924 M:  rtevent:         T  1.924 TT  1.924 M:
>  0.01801  0.01801
>
>  rtevent:         T  2.039 TT  2.039 M:  rtevent:         T  2.039 TT  2.039 M:
>  0.02066  0.02066
>
>  rtevent:         T  2.143 TT  2.143 M:  rtevent:         T  2.143 TT  2.143 M:
>  0.02066  0.02066
>
>  rtevent:         T  2.248 TT  2.248 M:  rtevent:         T  2.248 TT  2.248 M:
>  0.01806  0.01806
>
>  rtevent:         T  2.370 TT  2.370 M:  rtevent:         T  2.370 TT  2.370 M:
>  0.01801  0.01801
>
>  rtevent:         T  2.753 TT  2.753 M:  rtevent:         T  2.753 TT  2.753 M:
>  0.02250  0.02250
>
> Early return from csoundPerform().
> Early return from csoundPerform().
> inactive allocs returned to freespace
> inactive allocs returned to freespace
> end of score.              overall amps:end of score.              overall amps:  0.02441  0.02441
>           overall samples out of range:
>           overall samples out of range:        0        0
> 0 errors in performance
>
> 0 errors in performance
> Elapsed time at end of performance: real: 5.797s, CPU: 5.828s
> Elapsed time at end of performance: real: 5.797s, CPU: 5.828s
> 2835 128-byte soundblks of shorts written to dac42835 128-byte
> soundblks of shorts written to dac4
>
>
>
>
> On Tue, Oct 13, 2009 at 5:19 PM, victor  wrote:
>> Try adding a lp filter (port) in between pvspitch and oscil for
>> both kamp and kfreq. The clicking etc is probably due to
>> erratic changes in amp and freq, which need to be smoothed out.
>>
>> Victor
>> ----- Original Message ----- From: "Charles Gran" 
>> To: 
>> Sent: Tuesday, October 13, 2009 10:17 PM
>> Subject: [Csnd] pvspitch scratching and popping
>>
>>
>>> I was playing around with pvspitch.  When I sing into a mic, it tracks
>>> great right out of the box with the instrument from the manual (very
>>> cool!).  I do get a good amount of noise though: cracking and popping.
>>> This doesn't make sense because the sound in the example instrument
>>> is only coming from the oscil, right?
>>>
>>> I've tried all the usual things on my end, adjusting -b and -B,
>>> checking my signal path, testing with simple in/out instruments and
>>> everything is fine.
>>>
>>> I've also played with the kthresh with little success.  I'm using the
>>> instrument on the manual page verbatim. Does anyone else have this
>>> problem?
>>>
>>> http://www.csounds.com/manual/html/pvspitch.html
>>>
>>> Charles
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-22 14:28
FromOeyvind Brandtsegg
Subject[Csnd] Re: Oscillator noise
I'm not toally sure, as I haven''t looked too closely,
but do you also get noise if you disable the amic signal completely ?
like this:
out akey ; (no amic signal output)

I am aware that this is not what you want, but it might help in
tracking down the source of the noise.
It would seem sensible that "The clicking etc is probably due to
erratic changes in amp and freq, which need to be smoothed out." as
Victor suggested. Even if the sound (amic signal) is only coming from
an oscillator, if this oscillator has frequency and amplitude values
that jumps abruptly (due to some noise or complexity in the live input
signal), you will get noise in the output of the oscillator.
Controlling the amplitude of an oscillator with a noisy signal is
equivalent to amplitude modulation with a noisy signal.

hope it brings you one step closer
best
Oeyvind


2009/10/22 Charles Gran :
> I've been working on a live piece that uses the pvs opcodes and have
> been having trouble with noise.  I made an instrument just for
> tracking this down.  It seems I just get noise from oscil which seems
> odd.  When I play a note on a midi controller I get noise on the
> attack and release and when I sing into the mic I get high frequency
> noise throughout.  You can see from this test instrument that I've
> been trying various means such as tone, but I don't understand why I
> need to do this.  It must be something I'm not seeing.
>
> Charles
>
>
> 
> 
> -odac4 -iadc4 -b64 -B768 -M0
> 
>
> 
> sr = 44100
> ksmps = 64
> nchnls = 1
> 0dbfs = 1
>
> instr 1
>
>  a1 inch 1
>
>  ; -- mic control --
>  ifftsize = 1024
>  iwtype = 1 ;cleaner with hanning window
>
>  fsig pvsanal a1, ifftsize, ifftsize/4, ifftsize, iwtype
>  kfr, kamp pvspitch fsig, 0.01
>
>  kfr portk kfr, .01
>  kampmic portk kamp, .01
>
>  ; -- keyboard control --
>  ifr cpsmidi
>  iamp ampmidi .2
>
>  kenv  linenr  iamp, .01, .1, .01   ;envelope
>
>  ; -- the synths --
>  amic oscil kampmic, kfr*1, 1
>  akey oscil kenv*iamp, ifr, 2
>  ;asynth tone asynth, 1000
>
>  out akey+amic
> endin
> 
>
> 
> f1 0 4096 10 1 .5 .333
> f2 0 4096 10 1 .75 .5 .25
> f3 0 4096 10 1 0.5 0.333 0.25 0.2 0.1666
> f4 0 4096 10 1 .5 .333333 .25 .2 .166667 .142857 .125 .111111 .1
> .090909 .083333 .076923 ;saw
> f5 0 4096 10 1 0 .333333 0 .2 0 .142857 0 .111111 0 .090909 0 .076923 ;square
> f6 0 1024 10 1 ;sine
> f7 0 256 7 -1 128 -1 0 1 128 1 ;square
> f8 0 256 7 1 256 -1 ;sawtooth
> f9 0 256 7 -1 128 1 128 -1 ; triangle
>
> i1 0 36000
> e
> 
> 
>
>
>
> WARNING: not loading 'date.dll' (incompatible with this version of
> Csound (1.5/2.2)
> WARNING: not loading 'pan2.dll' (incompatible with this version of
> Csound (1.5/2.2)
> PortMIDI real time MIDI plugin for Csound
> PortMIDI real time MIDI plugin for Csound
> WARNING: not loading 'pvs_ops.dll' (incompatible with this version of
> Csound (1.5/2.2)
> PortAudio real-time audio module for Csound
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> 0dBFS level = 32768.0
> Csound version 5.11 (float samples) Oct  1 2009
> Csound version 5.11 (float samples) Oct  1 2009
> libsndfile-1.0.20
> libsndfile-1.0.20
> Reading options from $CSOUNDRC: C:\Csound\.csoundrc
> Reading options from $CSOUNDRC: C:\Csound\.csoundrc
> UnifiedCSD:  synth-test.csd
> UnifiedCSD:  synth-test.csd
> STARTING FILE
> STARTING FILE
> Creating options
> Creating options
> Creating orchestra
> Creating orchestra
> Creating score
> Creating score
> orchname:  c:\temp\cs2650.orc
> orchname:  c:\temp\cs2650.orc
> scorename: c:\temp\cs2674.sco
> scorename: c:\temp\cs2674.sco
> RAWWAVE_PATH: C:\Csound\samples/
> RAWWAVE_PATH: C:\Csound\samples/
> rtaudio: PortAudio module enabled ... rtaudio: PortAudio module
> enabled ... using callback interface
> using callback interface
> rtmidi: PortMIDI module enabled
> rtmidi: PortMIDI module enabled
> orch compiler:
> orch compiler:
> 32 lines read
> 32 lines read
>                instr   instr   1       1
>
> Elapsed time at end of orchestra compile: real: 0.288s, CPU: 0.297s
> Elapsed time at end of orchestra compile: real: 0.288s, CPU: 0.297s
> sorting score ...
> sorting score ...
>        ... done
>        ... done
> Elapsed time at end of score sort: real: 0.289s, CPU: 0.297s
> Elapsed time at end of score sort: real: 0.289s, CPU: 0.297s
> Csound version 5.11 (float samples) Oct  1 2009
> Csound version 5.11 (float samples) Oct  1 2009
> midi channel 1 using instr 1
> midi channel 1 using instr 1
> midi channel 2 using instr 1
> midi channel 2 using instr 1
> midi channel 3 using instr 1
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> midi channel 16 using instr 1
> displays suppressed
> displays suppressed
> 0dBFS level = 1.0
> 0dBFS level = 1.0
> The available MIDI in devices are:
> The available MIDI in devices are:
>   0: In-1 USB MidiSport 8x8 (MMSystem)
>   0: In-1 USB MidiSport 8x8 (MMSystem)
>   1: In-2 USB MidiSport 8x8 (MMSystem)
>   1: In-2 USB MidiSport 8x8 (MMSystem)
>   2: In-3 USB MidiSport 8x8 (MMSystem)
>   2: In-3 USB MidiSport 8x8 (MMSystem)
>   3: In-4 USB MidiSport 8x8 (MMSystem)
>   3: In-4 USB MidiSport 8x8 (MMSystem)
>   4: In-5 USB MidiSport 8x8 (MMSystem)
>   4: In-5 USB MidiSport 8x8 (MMSystem)
>   5: In-6 USB MidiSport 8x8 (MMSystem)
>   5: In-6 USB MidiSport 8x8 (MMSystem)
>   6: In-7 USB MidiSport 8x8 (MMSystem)
>   6: In-7 USB MidiSport 8x8 (MMSystem)
>   7: In-8 USB MidiSport 8x8 (MMSystem)
>   7: In-8 USB MidiSport 8x8 (MMSystem)
>   8: In-SMPTE USB MidiSport 8x8 (MMSystem)
>   8: In-SMPTE USB MidiSport 8x8 (MMSystem)
>   9: MIDI Yoke NT:  1 (MMSystem)
>   9: MIDI Yoke NT:  1 (MMSystem)
>  10: MIDI Yoke NT:  2 (MMSystem)
>  10: MIDI Yoke NT:  2 (MMSystem)
>  11: MIDI Yoke NT:  3 (MMSystem)
>  11: MIDI Yoke NT:  3 (MMSystem)
>  12: MIDI Yoke NT:  4 (MMSystem)
>  12: MIDI Yoke NT:  4 (MMSystem)
>  13: MIDI Yoke NT:  5 (MMSystem)
>  13: MIDI Yoke NT:  5 (MMSystem)
>  14: MIDI Yoke NT:  6 (MMSystem)
>  14: MIDI Yoke NT:  6 (MMSystem)
>  15: MIDI Yoke NT:  7 (MMSystem)
>  15: MIDI Yoke NT:  7 (MMSystem)
>  16: MIDI Yoke NT:  8 (MMSystem)
>  16: MIDI Yoke NT:  8 (MMSystem)
>  17: E-DSP MIDI Port [EC00] (MMSystem)
>  17: E-DSP MIDI Port [EC00] (MMSystem)
> PortMIDI: Activated input device 0: 'In-1 USB MidiSport 8x8' (MMSystem)
> PortMIDI: Activated input device 0: 'In-1 USB MidiSport 8x8' (MMSystem)
> orch now loaded
> orch now loaded
> audio buffered in 64 sample-frame blocks
> audio buffered in 64 sample-frame blocks
> reading 128-byte blks of shorts from adc4 (RAW)
> reading 128-byte blks of shorts from adc4 (RAW)
> PortAudio V19-devel (built Jun 18 2009 20:08:20)
> PortAudio V19-devel (built Jun 18 2009 20:08:20)
> PortAudio: available input devices:
> PortAudio: available input devices:
>   0: Microsoft Sound Mapper - Input
>   0: Microsoft Sound Mapper - Input
>   1: E-DSP Wave [EC00]
>   1: E-DSP Wave [EC00]
>   2: Primary Sound Capture Driver
>   2: Primary Sound Capture Driver
>   3: E-DSP Wave [EC00]
>   3: E-DSP Wave [EC00]
>   4: E-MU ASIO
>   4: E-MU ASIO
> PortAudio: selected input device 'E-MU ASIO'
> PortAudio: selected input device 'E-MU ASIO'
> PortAudio: available output devices:
> PortAudio: available output devices:
>   0: Microsoft Sound Mapper - Output
>   0: Microsoft Sound Mapper - Output
>   1: E-DSP Wave [EC00]
>   1: E-DSP Wave [EC00]
>   2: Primary Sound Driver
>   2: Primary Sound Driver
>   3: E-DSP Wave [EC00]
>   3: E-DSP Wave [EC00]
>   4: E-MU ASIO
>   4: E-MU ASIO
> PortAudio: selected output device 'E-MU ASIO'
> PortAudio: selected output device 'E-MU ASIO'
> writing 128-byte blks of shorts to dac4writing 128-byte blks of shorts to dac4
>
> SECTION 1:
> SECTION 1:
> ftable 1:
> ftable 1:
> ftable 2:
> ftable 2:
> ftable 3:
> ftable 3:
> ftable 4:
> ftable 4:
> ftable 5:
> ftable 5:
> ftable 6:
> ftable 6:
> ftable 7:
> ftable 7:
> ftable 8:
> ftable 8:
> ftable 9:
> ftable 9:
> new alloc for instr 1:
> new alloc for instr 1:
>  rtevent:         T  0.594 TT  0.594 M:  rtevent:         T  0.594 TT  0.594 M:
>  0.00000  0.00000
>
> new alloc for instr 1:
> new alloc for instr 1:
>  rtevent:         T  0.715 TT  0.715 M:  rtevent:         T  0.715 TT  0.715 M:
>  0.02441  0.02441
>
>  rtevent:         T  0.849 TT  0.849 M:  rtevent:         T  0.849 TT  0.849 M:
>  0.02441  0.02441
>
>  rtevent:         T  0.959 TT  0.959 M:  rtevent:         T  0.959 TT  0.959 M:
>  0.01806  0.01806
>
>  rtevent:         T  1.064 TT  1.064 M:  rtevent:         T  1.064 TT  1.064 M:
>  0.01805  0.01805
>
>  rtevent:         T  1.151 TT  1.151 M:  rtevent:         T  1.151 TT  1.151 M:
>  0.02250  0.02250
>
>  rtevent:         T  1.273 TT  1.273 M:  rtevent:         T  1.273 TT  1.273 M:
>  0.02246  0.02246
>
>  rtevent:         T  1.377 TT  1.377 M:  rtevent:         T  1.377 TT  1.377 M:
>  0.02250  0.02250
>
>  rtevent:         T  1.505 TT  1.505 M:  rtevent:         T  1.505 TT  1.505 M:
>  0.02250  0.02250
>
>  rtevent:         T  1.621 TT  1.621 M:  rtevent:         T  1.621 TT  1.621 M:
>  0.02441  0.02441
>
>  rtevent:         T  1.708 TT  1.708 M:  rtevent:         T  1.708 TT  1.708 M:
>  0.02433  0.02433
>
> new alloc for instr 1:
> new alloc for instr 1:
>  rtevent:         T  1.830 TT  1.830 M:  rtevent:         T  1.830 TT  1.830 M:
>  0.01825  0.01825
>
>  rtevent:         T  1.924 TT  1.924 M:  rtevent:         T  1.924 TT  1.924 M:
>  0.01801  0.01801
>
>  rtevent:         T  2.039 TT  2.039 M:  rtevent:         T  2.039 TT  2.039 M:
>  0.02066  0.02066
>
>  rtevent:         T  2.143 TT  2.143 M:  rtevent:         T  2.143 TT  2.143 M:
>  0.02066  0.02066
>
>  rtevent:         T  2.248 TT  2.248 M:  rtevent:         T  2.248 TT  2.248 M:
>  0.01806  0.01806
>
>  rtevent:         T  2.370 TT  2.370 M:  rtevent:         T  2.370 TT  2.370 M:
>  0.01801  0.01801
>
>  rtevent:         T  2.753 TT  2.753 M:  rtevent:         T  2.753 TT  2.753 M:
>  0.02250  0.02250
>
> Early return from csoundPerform().
> Early return from csoundPerform().
> inactive allocs returned to freespace
> inactive allocs returned to freespace
> end of score.              overall amps:end of score.              overall amps:  0.02441  0.02441
>           overall samples out of range:
>           overall samples out of range:        0        0
> 0 errors in performance
>
> 0 errors in performance
> Elapsed time at end of performance: real: 5.797s, CPU: 5.828s
> Elapsed time at end of performance: real: 5.797s, CPU: 5.828s
> 2835 128-byte soundblks of shorts written to dac42835 128-byte
> soundblks of shorts written to dac4
>
>
>
>
> On Tue, Oct 13, 2009 at 5:19 PM, victor  wrote:
>> Try adding a lp filter (port) in between pvspitch and oscil for
>> both kamp and kfreq. The clicking etc is probably due to
>> erratic changes in amp and freq, which need to be smoothed out.
>>
>> Victor
>> ----- Original Message ----- From: "Charles Gran" 
>> To: 
>> Sent: Tuesday, October 13, 2009 10:17 PM
>> Subject: [Csnd] pvspitch scratching and popping
>>
>>
>>> I was playing around with pvspitch.  When I sing into a mic, it tracks
>>> great right out of the box with the instrument from the manual (very
>>> cool!).  I do get a good amount of noise though: cracking and popping.
>>> This doesn't make sense because the sound in the example instrument
>>> is only coming from the oscil, right?
>>>
>>> I've tried all the usual things on my end, adjusting -b and -B,
>>> checking my signal path, testing with simple in/out instruments and
>>> everything is fine.
>>>
>>> I've also played with the kthresh with little success.  I'm using the
>>> instrument on the manual page verbatim. Does anyone else have this
>>> problem?
>>>
>>> http://www.csounds.com/manual/html/pvspitch.html
>>>
>>> Charles
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-22 22:45
FromCharles Gran
Subject[Csnd] Re: Re: Oscillator noise
Thanks Oeyvind.  I had tried this before but just double-checked in case.

out akey;+amic

doesn't change anything when I play the keyboard.  It seems that a
signal of a certain strength is needed from the mic before the pvs
kicks in so sotto voce singing isn't really converted and probably
isn't affecting the signal when I am playing anyway.

> Even if the sound (amic signal) is only coming from
> an oscillator, if this oscillator has frequency and amplitude values
> that jumps abruptly (due to some noise or complexity in the live input
> signal), you will get noise in the output of the oscillator.
> Controlling the amplitude of an oscillator with a noisy signal is
> equivalent to amplitude modulation with a noisy signal.

I'll definitely give that another try.

Thanks,
Charles


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-23 00:57
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: Re: Oscillator noise
Ok, I tested it here.
When changing -b and -B into very safe values (-b1024 -B2048), I get
no noise on the keyboard oscillator. The values you had used was kind
of odd (-b64 -B768), should theroretically work, but still odd... I
would normally use -B exactly twice -b (so for -b 64, use -B 128)

I also tested the mic input processing, and got much cleaner results by changing
 kfr, kamp pvspitch fsig, 0.01
to
 kfr, kamp pvspitch fsig, 0.1

The kthresh parameter to pvspitch can be used as a (sort of) of noise
gate, eliminating components with low amplitude. It seems (even at
0.1) I could get audio feedback through the system, so the oscillator
output though my (laptop) speakers was picked up by the (laptop) mic,
subsequently analyzed for pitch and amplitude and used to control the
oscillator, being fed to the speaker output and the loop starts again.
This creates a closed loop kind of chaotic oscillator. With a better
speaker/mic setup the feedback may be minimized of course. But at 0.1,
I could sing and the oscillator would follow (but once in a while the
feedback loop would trigger due to physical audio signal leak from
speaker to mic, and then the oscillator would happily wander on it's
own for a while until it happened to produce less amplitude and the
feedback loop would stop).

best
Oeyvind

2009/10/22 Charles Gran :
> Thanks Oeyvind.  I had tried this before but just double-checked in case.
>
> out akey;+amic
>
> doesn't change anything when I play the keyboard.  It seems that a
> signal of a certain strength is needed from the mic before the pvs
> kicks in so sotto voce singing isn't really converted and probably
> isn't affecting the signal when I am playing anyway.
>
>> Even if the sound (amic signal) is only coming from
>> an oscillator, if this oscillator has frequency and amplitude values
>> that jumps abruptly (due to some noise or complexity in the live input
>> signal), you will get noise in the output of the oscillator.
>> Controlling the amplitude of an oscillator with a noisy signal is
>> equivalent to amplitude modulation with a noisy signal.
>
> I'll definitely give that another try.
>
> Thanks,
> Charles
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-23 01:34
FromCharles Gran
Subject[Csnd] Re: Re: Re: Re: Oscillator noise
Thank you Oeyvind, I'll definitely check these out tomorrow.

On Thu, Oct 22, 2009 at 6:57 PM, Oeyvind Brandtsegg  wrote:
 ...


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-23 01:42
FromCharles Gran
Subject[Csnd] Re: Re: Oscillator noise
Some results of my own.  With midi control the linenr was the source
of the noise because the ksmps was too high.  Setting to 1 makes it
very smooth.  (Also I could only hear this noise through my sony
MDR-7506 headphones which tend to exaggerate highs/lows, I couldn't
really hear it much through my monitors).  So, the below works
perfectly for my setup.  My next email presents a new question about
mic input.




-odac4 -b64 -B512 -M0



sr = 44100
ksmps = 1
nchnls = 1
0dbfs = 1

instr 1

  ifr cpsmidi
  iamp ampmidi .2
  kenv linenr iamp, .01, .01, .01
  akey oscili kenv, ifr, 1

 out akey
endin



f1 0 4096 10 1 .5 .333333 .25
i1 0 36000
e




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-23 02:20
FromCharles Gran
Subject[Csnd] Re: Re: Re: Re: Oscillator noise
On Thu, Oct 22, 2009 at 6:57 PM, Oeyvind Brandtsegg  wrote:
> Ok, I tested it here.
> When changing -b and -B into very safe values (-b1024 -B2048), I get
> no noise on the keyboard oscillator. The values you had used was kind
> of odd (-b64 -B768), should theroretically work, but still odd... I
> would normally use -B exactly twice -b (so for -b 64, use -B 128)

Yes, -b and -B are a bit of a mystery.  Based on what I read--in the
manual I think--they're not so related.  Of course I could be
completely wrong.  I'm pretty sure -b has to be a multiple of ksmps
for real-time to work well.  But I think -B is just a hardware buffer,
right.  Anyway, it hasn't been a problem, and I get better real-time
performance with 768 than with 1024.

> I also tested the mic input processing, and got much cleaner results by changing
>  kfr, kamp pvspitch fsig, 0.01
> to
>  kfr, kamp pvspitch fsig, 0.1

I see what you mean about the gate, good to know.  Right now the sound
of the attached and appended is great, my only issue is that I can't
get a nice legato release.  As my singing gets softer, the sound cuts
off, but setting the threshold of pvspitch to something more
sensitive, like .005, makes it unstable sounding.



-odac4 -iadc4 -b64 -B768 -M0



sr = 44100
ksmps = 1
nchnls = 1
0dbfs = 1

instr 1

 a1 inch 1
  ifftsize = 1024
  iwtype = 1 ;cleaner with hanning window
  fsig pvsanal a1, ifftsize, ifftsize/4, ifftsize, iwtype
  kfr, kamp pvspitch fsig, 0.01
  kamp portk kamp, .01
  amic oscili kamp, kfr*.5, 1
 out amic

endin



f1 0 4096 10 1 .5 .333333 .25
i1 0 36000
e




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"