Read (or play) only part of a sound file
Date | 2015-07-23 13:08 |
From | chensokolovsky |
Subject | Read (or play) only part of a sound file |
Hi, a small question: What is the best way to read (or just play) a stereo sound file from frame x to frame y For example: instr 1 aL, aR diskin2 "myFile.wav" outs aL,aR will read and play the entire file. But suppose I wish to play only the first 10,000 frames of the file ? Or only from frame 5,000 to 15,000 ? Thanks -- View this message in context: http://csound.1045644.n5.nabble.com/Read-or-play-only-part-of-a-sound-file-tp5742854.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-07-23 13:29 |
From | jpff |
Subject | Re: Read (or play) only part of a sound file |
diskin2 hasd an iskiptim parameter to skip(in seconds) start of file. Then play just for the (y-x)/sr time. Use sample-accurate if you are concerned with quantisation in time May be better ways, like reading into a table? On Thu, 23 Jul 2015, chensokolovsky wrote: > Hi, a small question: > > What is the best way to read (or just play) a stereo sound file from frame x > to frame y > > For example: > instr 1 > aL, aR diskin2 "myFile.wav" > outs aL,aR > > will read and play the entire file. > > But suppose I wish to play only the first 10,000 frames of the file ? > Or only from frame 5,000 to 15,000 ? > > Thanks > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Read-or-play-only-part-of-a-sound-file-tp5742854.html > Sent from the Csound - General mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > _______________________________________________ > Csound-users mailing list > Csound-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-users > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-07-27 06:40 |
From | chensokolovsky |
Subject | Re: Read (or play) only part of a sound file |
Thank you! I'll give it a shot. -- View this message in context: http://csound.1045644.n5.nabble.com/Read-or-play-only-part-of-a-sound-file-tp5742854p5742890.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |