Csound Csound-dev Csound-tekno Search About

RE: pvoc,soundin/diskin

Date1998-05-28 15:56
Fromp robinson
SubjectRE: pvoc,soundin/diskin
> Why not use a sound file editor to excerpt the section you want, then
> save it as a new file? Then use the new file you created as your soundin
> source. I use Cool Edit 96 (Win95) to do this for my GEN01 instruments.
> You can also use this method to trim/pad the soundfile to make it the
> exact number of samples you need, if necessary.
> 
> -dB
>  (David M. Boothe, Audio Director 
>   Lyrick Studios, Dallas, TX)
> 
> 
I also use Cool Edit to do this, but it does mean multiple copies of
essentially the same information, Qian Chen's suggestion

> why isn't there a parameter to specify the
> > duration a user wants it to read?  For example, if I want to skip 2
> > seconds and just read 5 seconds but not the whole files after the 2
> > seconds, I could use that parameter.  

would not only save on disk space, but would allow for experimentation
without ever leaving Csound, for an example: If i have a sound file of
10 seconds long, want it to play 1 second of it, but only want the 1
second "that sounds best to me", then i would prefer to be able to do it
within csound, also would it be possible to incorporate some kind of
looping facility into this new parameter (which would allow [me, at
least]to experiment with extracting steady state tones from sound files
of varying sounds. Finally, could this be controlled in realtime?. 

P@.

Date1998-05-28 16:34
FromEli Brandt
SubjectRe: pvoc,soundin/diskin
p robinson wrote:
> > why isn't there a parameter to specify the
> > > duration a user wants it to read?  For example, if I want to skip 2
> > > seconds and just read 5 seconds but not the whole files after the 2
> > > seconds, I could use that parameter.  
> 
> would not only save on disk space, but would allow for experimentation
> without ever leaving Csound, for an example: If i have a sound file of
> 10 seconds long, want it to play 1 second of it, but only want the 1
> second "that sounds best to me", then i would prefer to be able to do it
> within csound,

kgate   linseg  1, iplaydur-islewdur, 1, iplaydur, 0, 1, 0

  e

Date1998-05-28 20:24
From"Matt J. Ingalls"
SubjectRE: pvoc,soundin/diskin
> > why isn't there a parameter to specify the
> > > duration a user wants it to read?  For example, if I want to skip 2
> > > seconds and just read 5 seconds but not the whole files after the 2
> > > seconds, I could use that parameter.  

	the duration of the note (p3) is the duration of the soundin.
> 
> within csound, also would it be possible to incorporate some kind of
> looping facility into this new parameter (which would allow [me, at

	this is best done with a table-lookup instrument where the index
is created by an oscil/phasor with amplitude=loop length then added to the
skip time... 

	of course if you are using a multi-channel soundfile you are out
of luck - also problems with memory for large files (most so on a Mac).

	i always planned on writing a version of diskin that took
parameters like table, instead of soundin.  maybe i should look into that
now...


	the other option, of course, is to use some sort of score
generating program to create a new note for each loop.  this actually is
the most flexible (and in some ways the easiest) method, and the one i at
least prefer...

> You can use reinit to do a loop but I could not get reinit to work with
> diskin only soundin. 

	that's a bug in diskin - will get on that - thanks.

-matt