Csound Csound-dev Csound-tekno Search About

Re: spectral freezing...?

Date2006-04-28 16:26
FromVictor Lazzarini
SubjectRe: spectral freezing...?
There is no opcode as such at the moment, but it's
good that you asked because you reminded me to
do it, which should be simple.

At the moment what you can do is to freeze an
analysed file, by keeping the value of ktim in
pvsfread fixed.

Victor

>
> I wrote a class for Victor's SndObj library to do this and
> once I was  done realised that looping a small snippet of
> the signal repeatedly  resulting in pretty much the same
> sound as a 'spectral freeze', plus if  was less CPU
> intensive. As for real spectral freezing in Csound, I
> ain't  too sure.
>
> Rory.
>
> Peiman Khosravi wrote:
> > Hello everyone,
> >
> > I am back again with more questions!
> >
> > Is there a way to have a real-time spectral freezing
> > instrument using the pvs opcodes? I was thinking of
> > perhaps using the binit or pvsftw opcodes (?)
> >
> > Any advice will be much appreciated.
> >
> > Many thanks
> >
> > Peiman
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk

Date2006-04-28 16:56
From"Dr. Richard Boulanger"
SubjectRe: spectral freezing... - and more?
Victor,

Hope you are well.

While you are at it making us all a cool new *spectral freezing*  
opcode (and maybe other variants!)

I would love to suggest that we have been missing a nice sweepable  
format-filter opcode as well
- one that would let us use an f-table or linseg to sweep through the  
vowels (formant-tables) to
do vocal synthesis, talk-box, and other effects.

They have a pretty nice one in the nord modular and in reaktor.

Dr. B.

On Apr 28, 2006, at 11:26 AM, Victor Lazzarini wrote:

> There is no opcode as such at the moment, but it's
> good that you asked because you reminded me to
> do it, which should be simple.
>
> At the moment what you can do is to freeze an
> analysed file, by keeping the value of ktim in
> pvsfread fixed.
>
> Victor
>
>>
>> I wrote a class for Victor's SndObj library to do this and
>> once I was  done realised that looping a small snippet of
>> the signal repeatedly  resulting in pretty much the same
>> sound as a 'spectral freeze', plus if  was less CPU
>> intensive. As for real spectral freezing in Csound, I
>> ain't  too sure.
>>
>> Rory.
>>
>> Peiman Khosravi wrote:
>>> Hello everyone,
>>>
>>> I am back again with more questions!
>>>
>>> Is there a way to have a real-time spectral freezing
>>> instrument using the pvs opcodes? I was thinking of
>>> perhaps using the binit or pvsftw opcodes (?)
>>>
>>> Any advice will be much appreciated.
>>>
>>> Many thanks
>>>
>>> Peiman
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to
>> csound-unsubscribe@lists.bath.ac.uk
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2006-04-28 19:01
FromPeiman Khosravi
SubjectRe: spectral freezing...?
Hello,

Thanks for your replies. It would indeed be very nice to have a  
spectral freezing opcode. Although looping a short fragment from the  
buffer would achieve a similar effect it would not be very easy to  
use in real-time performance (where the signal can be instantly  
captured and frozen): I am at the moment using the Csound~ max  
external for real-time FFT processing.

Just a thought: it would perhaps be nice to have the freeze added as  
a function to pvsynth (?).

Thanks
Peiman


On 28 Apr 2006, at 16:26, Victor Lazzarini wrote:

> There is no opcode as such at the moment, but it's
> good that you asked because you reminded me to
> do it, which should be simple.
>
> At the moment what you can do is to freeze an
> analysed file, by keeping the value of ktim in
> pvsfread fixed.
>
> Victor
>
>>
>> I wrote a class for Victor's SndObj library to do this and
>> once I was  done realised that looping a small snippet of
>> the signal repeatedly  resulting in pretty much the same
>> sound as a 'spectral freeze', plus if  was less CPU
>> intensive. As for real spectral freezing in Csound, I
>> ain't  too sure.
>>
>> Rory.
>>
>> Peiman Khosravi wrote:
>>> Hello everyone,
>>>
>>> I am back again with more questions!
>>>
>>> Is there a way to have a real-time spectral freezing
>>> instrument using the pvs opcodes? I was thinking of
>>> perhaps using the binit or pvsftw opcodes (?)
>>>
>>> Any advice will be much appreciated.
>>>
>>> Many thanks
>>>
>>> Peiman
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to
>> csound-unsubscribe@lists.bath.ac.uk
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2006-04-28 20:35
FromRory Walsh
SubjectRe: spectral freezing...?
It shouldn't be too hard to capture the signal and freeze it in the 
time-pressure domain, in realtime; especially using the fltk opcodes. 
Obviously this only works well with sustained sounds and sounds that are 
longer in duration than the loop time so one has to be sharp to capture 
the sound in time! See the .csd file below. You can start and stop the 
freezing by turning the freeze button on/off.

Rory.




//defualt options
-odevaudio1 -idevaudio -b10


sr = 44100
kr = 4410
ksmps = 10
nchnls = 1


         FLpanel "Buttons", 100, 60, 100, 100
gkplay, ihb1 FLbutton "Freeze", 1, 0, 2, 60, 30, 10, 10, -1
         FLpanelEnd
         FLrun

instr 1
ain in
asig, krec sndloop ain, 1, gkplay, 0.6, 0.02
out ain+asig
endin



i1 0 100




Date2006-04-28 21:06
FromPeiman Khosravi
SubjectRe: spectral freezing...?
Hi Rory,

Thanks for that it works very nicely!

Peiman

On 28 Apr 2006, at 20:35, Rory Walsh wrote:

> It shouldn't be too hard to capture the signal and freeze it in the  
> time-pressure domain, in realtime; especially using the fltk  
> opcodes. Obviously this only works well with sustained sounds and  
> sounds that are longer in duration than the loop time so one has to  
> be sharp to capture the sound in time! See the .csd file below. You  
> can start and stop the freezing by turning the freeze button on/off.
>
> Rory.
>
>
> 
> 
> //defualt options
> -odevaudio1 -idevaudio -b10
> 
> 
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 1
>
>
>         FLpanel "Buttons", 100, 60, 100, 100
> gkplay, ihb1 FLbutton "Freeze", 1, 0, 2, 60, 30, 10, 10, -1
>         FLpanelEnd
>         FLrun
>
> instr 1
> ain in
> asig, krec sndloop ain, 1, gkplay, 0.6, 0.02
> out ain+asig
> endin
> 
>
> 
> i1 0 100
>
>
> 
> 
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk