|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Using setScoreOffsetSeconds() with sound-file playback.I'm having an issue getting 'csoundSetScoreOffsetSeconds' to work correctly when called on a .csd that uses the 'soundin' opcode. After calling 'csoundSetScoreOffsetSeconds', the 'soundin' opcode still reads the sound-file from wherever it left off from the previous performance. I've tried a few different ways of working around this, using 'loscil' with GEN01, 'diskin', 'diskin2', etc... but they all do the same thing as 'soundin'. Is there a way to play sound-files and still have them respond correctly to 'csoundSetScoreOffsetSeconds', without having to recompile the .csd? Regards, -andy.f |
|
|
Re: Using setScoreOffsetSeconds() with sound-file playback.score events (midi events from a midifile too) nothing else. If your score event has a p-field controlling skiptime, then you can use that. Victor ----- Original Message ----- From: Andy Fillebrown <andy@...> Date: Saturday, June 27, 2009 6:39 pm Subject: [Csnd] Using setScoreOffsetSeconds() with sound-file playback. To: csound@... > Hello again, Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, National University of Ireland, Maynooth |
|
|
Re: Re: Using setScoreOffsetSeconds() with sound-file playback.Thanks Victor, I rewrote the .csd instrument with suggested p-field but I still couldn't get 'csoundSetScoreOffsetSeconds' to work until I sent the score statements programatically, instead of putting them in the .csd, like before. Anyway... the playback system is working great now and it's much faster/cheaper than I was expecting -- I'm getting 50+ fps on 3d model operations during audio playback, even on my aging laptop -- which is a nice reminder of why dealing with csound's quirks is worth the trouble. Wonderful, wonderful!!! Csound proves it viability once again! As a side note: I'm loving the discovery that csound adds volume envelopes when starting and stopping playback (no "pops" regardless of where start/stop occurs in the score). It is a big relief knowing I don't have to code that -- especially after banging my head on the wall trying to get the playback system working. Thanks again, -andy.f ----- "Victor Lazzarini" <Victor.Lazzarini@...> wrote: > The function does what it says on the tin: set score offset in > seconds. This means > score events (midi events from a midifile too) nothing else. If your > score event > has a p-field controlling skiptime, then you can use that. > > Victor > ----- Original Message ----- > From: Andy Fillebrown <andy@...> > Date: Saturday, June 27, 2009 6:39 pm > Subject: [Csnd] Using setScoreOffsetSeconds() with sound-file > playback. > To: csound@... > > > > > > > Hello again, > > > > I'm having an issue getting 'csoundSetScoreOffsetSeconds' to work > correctly when called on a .csd that uses the 'soundin' opcode. After > calling 'csoundSetScoreOffsetSeconds', the 'soundin' opcode still > reads the sound-file from wherever it left off from the previous > performance. I've tried a few different ways of working around this, > using 'loscil' with GEN01, 'diskin', 'diskin2', etc... but they all do > the same thing as 'soundin'. Is there a way to play sound-files and > still have them respond correctly to 'csoundSetScoreOffsetSeconds', > without having to recompile the .csd? > > > > Regards, > > -andy.f > > > > > > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, > National University of Ireland, Maynooth Send bugs reports to this list. To unsubscribe, send email sympa@... with body "unsubscribe csound" |
| Free embeddable forum powered by Nabble | Forum Help |