[Csnd] Sample playback Etude 1
Date | 2017-12-21 15:00 |
From | Joel Ramsbottom |
Subject | [Csnd] Sample playback Etude 1 |
I'm using the code below the sing.aif file in the directory of the code it runs but no sound occurs from the audio file? I'm not sure why? |
Date | 2017-12-21 15:19 |
From | Steven Yi |
Subject | Re: [Csnd] Sample playback Etude 1 |
Hi Joel, What version of Csound and what Operating System are you using? It could be a few things (maybe the loscil bug that was fixed in current Csound and about to be released in 6.10) steven On Thu, Dec 21, 2017 at 10:00 AM, Joel Ramsbottom |
Date | 2017-12-21 15:21 |
From | "Jeanette C." |
Subject | Re: [Csnd] Sample playback Etude 1 |
Hi Joel, Dec 21 2017, Joel Ramsbottom has written: ... > -odac On which system are you and which audio system are you using? One example, where it might fail: on Linux running JACK, but standard dac option being ALSA. You might try with: -o test.wav -W instead. But one more... ... > ksmps = 32 > sr = 44100 > kr = 4410 This shouldn't silence your sound, but there is a mismatch between kr and ksmps. You should change your ksmps: ksmps = 10 Because: sr / kr = ksmps I remember this producing no sound or errors, being fixed ages ago. No more ideas. Good luck! Best wishes, Jeanette ... -------- * website: http://juliencoder.de - for summer is a state of sound * SoundCloud: https://soundcloud.com/jeanette_c you made me realize..not to compromise the fact that you and i should meet... <3 (Britney Spears) Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-12-21 15:35 | |||||
From | Lars Indrek Hansson | |||||
Subject | [Csnd] SV: [Csnd] Sample playback Etude 1 | |||||
kcps value in loscil should be 1 if it´s supposed to be played
forward at normal speed. Perhaps 440 is a bit to fast;)
/Lars Från: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> för Joel Ramsbottom <joel.ramsbottom@HOTMAIL.CO.UK>
Skickat: den 21 december 2017 16:00 Till: CSOUND@LISTSERV.HEANET.IE Ämne: [Csnd] Sample playback Etude 1 I'm using the code below the sing.aif file in the directory of the code it runs but no sound occurs from the audio file? I'm not sure why?
<CsoundSynthesizer> <CsOptions> -odac </CsOptions> <CsInstruments> ksmps = 32 sr = 44100 kr = 4410 ksmps = 10 nchnls = 1 instr 101 a1 oscil 10000, 440, 1 out a1 endin instr 102 a1 foscil 10000, 440, 1, 2, 3, 1 ;simple 2 operator fm opcode out a1 endin instr 103 a1 buzz 10000, 440, 10, 1 ;variable pulse train out a1 endin instr 104 a1 pluck 10000, 440, 440, 2, 1 ;karplus-strong plucked string out a1 endin instr 105 a1 grain 5000, 440, 55, 5000, 10, .05, 1, 3, 1 ;asynchronous granular synthesis out a1 endin instr 106 a1 loscil 10000, 440, 4 ;sample-based looping oscillator out a1 endin </CsInstruments> <CsScore> ; Function 1 uses the GEN10 subroutine to compute a sine wave ; Function 2 uses the GEN10 subroutine to compute the first sixteen partials of a sawtooth wave ; Function 3 uses the GEN20 subroutine to compute a Hanning window for use as a grain envelope ; Function 4 uses the GEN01 subroutine to read in an AIF audio file f 1 0 4096 10 1 f 2 0 4096 10 1 .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076 .071 .066 .062 f 3 0 4097 20 2 1 f 4 0 0 1 "sing.aif" 0 0 0 ;inst start duration ;i 101 0 3 ;i 102 4 3 ;i 103 8 3 ;i 104 12 3 ;i 105 16 3 i 106 0 3 </CsScore> </CsoundSynthesizer> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
Date | 2017-12-21 16:37 | ||||||||||
From | Joel Nash | ||||||||||
Subject | Re: [Csnd] Sample playback Etude 1 | ||||||||||
It turns out to be the frequency I was playing the sample back with. I'm on OSX version 10.12.6...I'm having trouble with Csound QT crashing almost every other time I fun code? From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Steven Yi <stevenyi@GMAIL.COM>
Sent: 21 December 2017 15:19 To: CSOUND@LISTSERV.HEANET.IE Subject: Re: [Csnd] Sample playback Etude 1 Hi Joel,
What version of Csound and what Operating System are you using? It could be a few things (maybe the loscil bug that was fixed in current Csound and about to be released in 6.10) steven On Thu, Dec 21, 2017 at 10:00 AM, Joel Ramsbottom <joel.ramsbottom@hotmail.co.uk> wrote: > I'm using the code below the sing.aif file in the directory of the code it runs but no sound occurs from the audio file? I'm not sure why? > > > <CsoundSynthesizer> > <CsOptions> > -odac > </CsOptions> > <CsInstruments> > > ksmps = 32 > sr = 44100 > kr = 4410 > ksmps = 10 > nchnls = 1 > > instr 101 > a1 oscil 10000, 440, 1 > out a1 > endin > > instr 102 > a1 foscil 10000, 440, 1, 2, 3, 1 ;simple 2 operator fm opcode > out a1 > endin > > instr 103 > a1 buzz 10000, 440, 10, 1 ;variable pulse train > out a1 > endin > > instr 104 > a1 pluck 10000, 440, 440, 2, 1 ;karplus-strong plucked string > out a1 > endin > > instr 105 > a1 grain 5000, 440, 55, 5000, 10, .05, 1, 3, 1 ;asynchronous granular synthesis > out a1 > endin > > instr 106 > a1 loscil 10000, 440, 4 ;sample-based looping oscillator > out a1 > endin > </CsInstruments> > <CsScore> > > ; Function 1 uses the GEN10 subroutine to compute a sine wave > ; Function 2 uses the GEN10 subroutine to compute the first sixteen partials of a sawtooth wave > ; Function 3 uses the GEN20 subroutine to compute a Hanning window for use as a grain envelope > ; Function 4 uses the GEN01 subroutine to read in an AIF audio file > > f 1 0 4096 10 1 > f 2 0 4096 10 1 .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076 .071 .066 .062 > f 3 0 4097 20 2 1 > f 4 0 0 1 "sing.aif" 0 0 0 > > > ;inst start duration > ;i 101 0 3 > ;i 102 4 3 > ;i 103 8 3 > ;i 104 12 3 > ;i 105 16 3 > i 106 0 3 > > </CsScore> > </CsoundSynthesizer> > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to > https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |