Thanks for the extra explanation. I am guessing dac is digital audio converter or something like that? i am not from the audio world unfortunately, in fact i'm from the real-time 3d dev world so a lot of this stuff is new to me.
but again thanks for the hand holding. if i still have trouble after trying to modify the sample and reading the docs, i'll post back.
---------- Original Message ---------------------------------- From: "matthew jones" M.Jones@signal.qinetiq.com Date: Wed, 15 Oct 2003 15:35:36 +0100
I'm sure you'll get a few other replies but I thought I'd send it anyways... ADC stands for Analogue-to-Digital Converter, the circuitry in your sound card that every few nanoseconds looks at the voltage it's being sent via the line-in socket (yes, all audio signals will be in the form of a fluctuating voltage in the Analogue domain) which is clearly an analogue signal, and sends a corresponding number to the computer. The higher the number the higher the voltage at that particular instant. the output number is clearly a digital number, since there is finite precision in this circuitry.
Hence this is called sampling - every N nanoseconds it samples the input to find out its value, and sends a corresponding number, called a 'sample'. you then get a long series of numbers into the computer, which you can save to hard disc in the form of a wav file, or PD can read them via the [adc~] object. So from the outlet of this object comes a fast stream of numbers between 0 and 1 (1 corresponding to the maximum input voltage on your soundcard), which you can then stream to a [dac~] object for instance... can you guess what this stands for? (ha, joke. me? patronising??!)
the [delwrite~] object is just being told to send out the sample that was read M miliseconds ago.
sorry if all this is way below your level, but it's hard to know where to start sometimes. have fun with pd! see what else can be done!
matt
Based on the script that someone originally posted, this is what I have, however it doesn't seem to work. Let me ask this, before I run PD, I should *not* be hearing anything correct? Currently I hear something because the line in volume is up, if I shutoff this volume then I hear nothing, but then when I run this script in PD I still don't hear anything. I did swap the adc for the osc..
Not sure what I'm missing :(
#N canvas 0 0 456 306 12; #X obj 99 217 dac~; #X obj 98 96 adc~ 440; #X floatatom 98 73 5 0 0 0 - - -; #X obj 99 129 delwrite~ delay_line 1000; #X obj 99 173 delread~ delay_line 1000; #X obj 98 20 loadbang; #X msg 98 46 440; #X text 156 71 <-- fiddle with this; #X obj 346 218 loadbang; #X msg 346 247 ; pd dsp 1; #X connect 1 0 3 0; #X connect 2 0 1 0; #X connect 4 0 0 0; #X connect 4 0 0 1; #X connect 5 0 6 0; #X connect 6 0 2 0; #X connect 8 0 9 0;
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of Benjamin Freidlin Sent: Wednesday, October 15, 2003 10:48 AM To: pd-list@iem.kug.ac.at Subject: Re: [PD] New user question: How to create simple audio delay?
Thanks for the extra explanation. I am guessing dac is digital audio converter or something like that? i am not from the audio world unfortunately, in fact i'm from the real-time 3d dev world so a lot of this stuff is new to me.
but again thanks for the hand holding. if i still have trouble after trying to modify the sample and reading the docs, i'll post back.
---------- Original Message ---------------------------------- From: "matthew jones" M.Jones@signal.qinetiq.com Date: Wed, 15 Oct 2003 15:35:36 +0100
I'm sure you'll get a few other replies but I thought I'd send it anyways... ADC stands for Analogue-to-Digital Converter, the circuitry in your sound card that every few nanoseconds looks at the voltage it's being sent via the line-in socket (yes, all audio signals will be in the form of a fluctuating voltage in the Analogue domain) which is clearly an analogue signal, and sends a corresponding number to the computer. The higher the number the higher the voltage at that particular instant. the output number is clearly a digital number, since there is finite precision in this circuitry.
Hence this is called sampling - every N nanoseconds it samples the input to find out its value, and sends a corresponding number, called a 'sample'. you then get a long series of numbers into the computer, which you can save to hard disc in the form of a wav file, or PD can read them via the [adc~] object. So from the outlet of this object comes a fast stream of numbers between 0 and 1 (1 corresponding to the maximum input voltage on your soundcard), which you can then stream to a [dac~] object for instance... can you guess what this stands for? (ha, joke. me? patronising??!)
the [delwrite~] object is just being told to send out the sample that was read M miliseconds ago.
sorry if all this is way below your level, but it's hard to know where to start sometimes. have fun with pd! see what else can be done!
matt
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
As an aside, I found this one that works for me, but I'm unable to dynamically modify the delay. It seems to be hard coded, but I'm too new to this to figure out where..
#N canvas 89 76 450 300 10; #X obj 135 75 adc~; #X obj 140 212 dac~; #X obj 59 118 delwrite~ bufL 20000; #X obj 237 118 delwrite~ bufR 20000; #X obj 57 165 delread~ bufL 2000; #X obj 217 162 delread~ bufR 2000; #X connect 0 0 2 0; #X connect 0 1 3 0; #X connect 4 0 1 0; #X connect 5 0 1 1;
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of Benjamin Freidlin Sent: Thursday, October 16, 2003 2:56 PM To: pd-list@iem.kug.ac.at Subject: RE: [PD] New user question: How to create simple audio delay?
Based on the script that someone originally posted, this is what I have, however it doesn't seem to work. Let me ask this, before I run PD, I should *not* be hearing anything correct? Currently I hear something because the line in volume is up, if I shutoff this volume then I hear nothing, but then when I run this script in PD I still don't hear anything. I did swap the adc for the osc..
Not sure what I'm missing :(
#N canvas 0 0 456 306 12; #X obj 99 217 dac~; #X obj 98 96 adc~ 440; #X floatatom 98 73 5 0 0 0 - - -; #X obj 99 129 delwrite~ delay_line 1000; #X obj 99 173 delread~ delay_line 1000; #X obj 98 20 loadbang; #X msg 98 46 440; #X text 156 71 <-- fiddle with this; #X obj 346 218 loadbang; #X msg 346 247 ; pd dsp 1; #X connect 1 0 3 0; #X connect 2 0 1 0; #X connect 4 0 0 0; #X connect 4 0 0 1; #X connect 5 0 6 0; #X connect 6 0 2 0; #X connect 8 0 9 0;
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of Benjamin Freidlin Sent: Wednesday, October 15, 2003 10:48 AM To: pd-list@iem.kug.ac.at Subject: Re: [PD] New user question: How to create simple audio delay?
Thanks for the extra explanation. I am guessing dac is digital audio converter or something like that? i am not from the audio world unfortunately, in fact i'm from the real-time 3d dev world so a lot of this stuff is new to me.
but again thanks for the hand holding. if i still have trouble after trying to modify the sample and reading the docs, i'll post back.
---------- Original Message ---------------------------------- From: "matthew jones" M.Jones@signal.qinetiq.com Date: Wed, 15 Oct 2003 15:35:36 +0100
I'm sure you'll get a few other replies but I thought I'd send it anyways... ADC stands for Analogue-to-Digital Converter, the circuitry in your sound card that every few nanoseconds looks at the voltage it's being sent via the line-in socket (yes, all audio signals will be in the form of a fluctuating voltage in the Analogue domain) which is clearly an analogue signal, and sends a corresponding number to the computer. The higher the number the higher the voltage at that particular instant. the output number is clearly a digital number, since there is finite precision in this circuitry.
Hence this is called sampling - every N nanoseconds it samples the input to find out its value, and sends a corresponding number, called a 'sample'. you then get a long series of numbers into the computer, which you can save to hard disc in the form of a wav file, or PD can read them via the [adc~] object. So from the outlet of this object comes a fast stream of numbers between 0 and 1 (1 corresponding to the maximum input voltage on your soundcard), which you can then stream to a [dac~] object for instance... can you guess what this stands for? (ha, joke. me? patronising??!)
the [delwrite~] object is just being told to send out the sample that was read M miliseconds ago.
sorry if all this is way below your level, but it's hard to know where to start sometimes. have fun with pd! see what else can be done!
matt
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
hi.
Zitiere Benjamin Freidlin benjamin@allthecraze.com:
As an aside, I found this one that works for me, but I'm unable to dynamically modify the delay. It seems to be hard coded, but I'm too new to this to figure out where..
#N canvas 89 76 450 300 10; #X obj 135 75 adc~; #X obj 140 212 dac~; #X obj 59 118 delwrite~ bufL 20000; #X obj 237 118 delwrite~ bufR 20000; #X obj 57 165 delread~ bufL 2000; #X obj 217 162 delread~ bufR 2000; #X connect 0 0 2 0; #X connect 0 1 3 0; #X connect 4 0 1 0; #X connect 5 0 1 1;
well, the 2nd argument to [delwrite~] states the size of the buffer (read: the maximum delay you can get with this delayline) the 2nd argument to [delread~] is the current-delay of (this part of) the delayline. so you have 2000 ms delay of your adc~signal.
you can send a float into the inlet of [delread~] to change the delay-time. for experimenting, use a number-box (Ctrl-3).
Based on the script that someone originally posted, this is what I have, however it doesn't seem to work. Let me ask this, before I run PD, I should *not* be hearing anything correct? Currently I hear something because the line in volume is up, if I shutoff this volume then I hear nothing, but then when I run this script in PD I still don't hear anything. I did swap the adc for the osc..
pobably you should turn on the DSP in pd (click on the message box in the lower-left corner...). and make sure you have some gain in your mixer for a DSP-process...
mfg.as.dr5 IOhannes
this will give you a 5 second delay between the input and the output. -josh
Benjamin Freidlin wrote:
Based on the script that someone originally posted, this is what I have, however it doesn't seem to work. Let me ask this, before I run PD, I should *not* be hearing anything correct? Currently I hear something because the line in volume is up, if I shutoff this volume then I hear nothing, but then when I run this script in PD I still don't hear anything. I did swap the adc for the osc..
Not sure what I'm missing :(
I see so it's the 5000 for delay_line that I can tweak. Thanks a bunch.
-----Original Message----- From: Josh Steiner [mailto:josh@vitriolix.com] Sent: Thursday, October 16, 2003 3:42 PM To: Benjamin Freidlin Cc: pd-list@iem.kug.ac.at Subject: Re: [PD] New user question: How to create simple audio delay?
this will give you a 5 second delay between the input and the output. -josh
Benjamin Freidlin wrote:
Based on the script that someone originally posted, this is what I
have,
however it doesn't seem to work. Let me ask this, before I run PD, I should *not* be hearing anything correct? Currently I hear something because the line in volume is up, if I shutoff this volume then I hear nothing, but then when I run this script in PD I still don't hear anything. I did swap the adc for the osc..
Not sure what I'm missing :(