Csound Csound-dev Csound-tekno Search About

Re: Sample playback instrument - multiple sample playbacks in one instrument? looping?

Date2007-08-18 14:37
FromVictor Lazzarini
SubjectRe: Sample playback instrument - multiple sample playbacks in one instrument? looping?
from the manual:

instr 1

aout flooper2 16000, 1, 1, 5, 0.05, 1   ;  loop starts at
sec,
                                    ; for 4 secs 0.05
crossfade
       out aout

endin


score example:

f1 0 0 1 "myfile.wav"  0 0 1

i1 0 60


Victor


>
>
> Thank you, Victor!
>
> Do you have some code example to share?
>
> Jonas
>
>
> 2007/8/18, Victor Lazzarini :
> >
> > For looping, try flooper2 with the soundfile
> > loaded into a ftable using GEN01.
> >
> > Victor
> >
> > >
> > >
> > > Hi!
> > >
> > > Experimenting with creating kind of a sample playback
> > > instrument. This is what the instrument looks right
> > > now (Thank you Victor, Luis, Jacob and others..!):
> > >
> > > instr 60
> > >   idur = p3  ; duration of note
> > >    ivol = p4  ; volume
> > >   ipan = p5 * 1.570796327 ; pan
> > >   aleft, aright diskin "Grand/80/60.wav", 1
> > >   aenv linseg 0, 0.02, 1, idur - 0.04, 1, 0.02, 0  ;
> > > envelope for avoiding clicks
> > >   aleft = aleft * ivol * cos(ipan) * aenv
> > >   aright = aright * ivol * sin(ipan) * aenv
> > >   outs aleft, aright
> > > endin
> > >
> > > I want to extend the functionality of this, using
> > > multiple wav samples (if possible)...
> > >
> > >    1. Does Csound instruments allow more than one
> > > diskin wav playback
> > >    simultaneously, for example for mixing over time
> > > between them?
> > >
> > >    2. Would this be possible: Wav A for note attack,
> > > mixing into Waw B
> > >    for note sustain (preferably with looping), mixing
> > > into Wav C for release?
> > >
> > > I don't need any midi realtime control of mixing etc
> > > (right now). I realize that what I want to accomplish
> > > should be possible by clever use of different
> > > instruments and score files together, but it would be
> > > nice to have it in the instrument area...
> > >
> > > Best regards!
> > >
> > > Jonas Nyström
> > > 
> > >
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk >
>
>
>
> --
> Med vänlig hälsning!
>
> Jonas Nyström
> jonasnys@gmail.com
> 070-670 36 50
>